content
stringlengths
5
1.05M
-- NetHack 3.6 oracle.des $NHDT-Date: 1524689580 2018/04/25 20:53:00 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.10 $ -- Copyright (c) 2015 by Pasi Kallinen -- NetHack may be freely redistributed. See license for details. des.level_flags("noflip"); des.room({ type ="delphi", lit = 1, x=39, y=10, xalign="cente...
impulse.Ops = impulse.Ops or {} impulse.Ops.Snapshots = impulse.Ops.Snapshots or {} local snapshotCommand = { description = "Plays the snapshot specified by the snapshot ID.", requiresArg = true, adminOnly = true, onRun = function(ply, arg, rawText) local id = arg[1] if not tonumber(id...
-- -- Created by IntelliJ IDEA. -- User: james -- Date: 2018/2/24 -- Time: 16:03 -- To change this template use File | Settings | File Templates. -- redis.call('SET', KEYS[1], ARGV[1]) redis.call('SET', KEYS[2], ARGV[2]) local currentVal = redis.call('GET', KEYS[1]) if currentVal == ARGV[1] then redis.call('SET', KE...
-- ============================================= -- -== Nvim LSP ==- -- ============================================= local colors = require("tokyonight.colors").setup({}) local lsp_installer = require("nvim-lsp-installer") local lspconfig = require("lspconfig") local lsp_colors = require("lsp-colors") loca...
local skynet = require "skynet" local sharedata = require "sharedata" local syslog = require "syslog" local mapdata = require "gddata.map" local CMD = {} local map_instance = {} local online_character = {} function CMD.kick (character) local a = online_character[character] if a then skynet.call (a, "lua", "kick")...
local entityMeta = FindMetaTable("Entity") -- Make a cache of chairs on start. local CHAIR_CACHE = {} -- Add chair models to the cache by checking if its vehicle category is a class. for k, v in pairs(list.Get("Vehicles")) do if (v.Category == "Chairs") then CHAIR_CACHE[v.Model] = true end end -- Whether or not ...
slot0 = class("GalleryView", import("..base.BaseSubView")) slot0.getUIName = function (slot0) return "GalleryUI" end slot0.OnInit = function (slot0) slot0:initData() slot0:findUI() slot0:addListener() slot0:initCardListPanel() slot0:initTimeSelectPanel() slot0:initPicPanel() slot0:Show() slot0:recoveryFromRu...
local _, cfg = ... --import config local _, ns = ... --get addon namespace local _, playerClass = UnitClass("player") local isBeautiful = IsAddOnLoaded("!Beautycase") --!Beautycase check if not cfg.group.enable then return end ----------------------------- -- functions ----------------------------- -- Backdrop functi...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- function PPM.TextureIsOutdated(ent, name, newhash) -- if not PPM.isValidPony(ent) then return true end -- if ent.ponydata_tex == nil then return true end -- if ent.ponydata_tex[name] == nil then return true end -...
--Incremental live completion (note: this is now a default on master) vim.opt.inccommand = "nosplit" --Set highlight on search vim.opt.hlsearch = true --Make line numbers default vim.wo.number = true --Do not save when switching buffers (note: this is now a default on master) vim.opt.hidden = true --Enable mouse mo...
return function() filter {} configuration {} if _OPTIONS['game'] == 'five' then add_dependencies { 'gta:mission-cleanup', 'gta:streaming', 'devtools:five' } end end
require("nvim-treesitter.configs").setup({ ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages highlight = { enable = true, -- false will disable the whole extension additional_vim_regex_highlighting = true, indent = { enable = true }, }, ...
--Initialize randomness! math.randomseed(os.time()) --Moves and choices! local moves = {"rock", "paper", "scissors"} local res = 0 local mov = 0 --Function to get Rock/Paper/Scissors. function get_move() return math.random(1, 3) end --Sleep function. Taken from lua wiki. function sleep(s) local ntime = os.cl...
local lume = require "lib/lume" local event = require "event" ui.checkBoxSettings = { name = "noname", x = 0, y = 0, w = 100, h = 100, checked = false, hoverColor = { 37 / 255, 41 / 255, 49 / 255 }, color = { 33 / 255, 37 / 255, 43 / 255 }, } -- checkBox function ui.checkBox( settings ) loc...
tests.includes = {os.realpath(".")} library "TestHelpers" files {"helpers/**.cpp"} includedirs(tests.includes) library "TestDoubles" files {"doubles/**.cpp"} includedirs(tests.includes) include "libs" include "testcases" include "benchmarks"
vim.g.colors_name = "apropospriate" -- useful when testing package.loaded["lush_theme.apropospriate"] = nil require("apropospriate")
es.news = {} es.news["last"] = { image = "https://i.imgur.com/WdwlDpi.png", title = "Обновление 1.1.0", desc = [[• Сервер получил обновление: - Был установлен пак FAS 2.0 - Добавлены паки: 'Новичок' и 'Про' - Система уровней (!lvl) > Встроенный боевой пропуск (неактивен) > Поднимай уровень и получай к...
require 'util' -- [1518-04-05 00:00] Guard #131 begins shift -- [1518-09-12 00:54] falls asleep -- [1518-08-28 00:12] falls asleep -- [1518-06-06 00:25] wakes up function countBy(t,f) local res = {} local g for k,v in pairs(t) do if type(f) == 'function' then g = f(v) el...
function util.gregor(el_id, relaxed) ui.script{ script = 'gregor_addGui({' .. 'element_id: "' .. el_id .. '",' .. 'month_names: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],' .. 'weekday_names: ["Mo", "T...
local mobLocations = { domsy={name='domsy',start=1,frames=4}, nomsy={name='nomsy',start=5,frames=32}, } return mobLocations
require "util" -- this is both in demo and alpha require("prototypes.ambient-sounds") require("prototypes.entity.demo-entities") require("prototypes.entity.demo-explosions") require("prototypes.entity.demo-crash-site") require("prototypes.entity.demo-mining-drill") require("prototypes.particle.demo-particles") require...
ITEM.name = "File Cabinet" ITEM.description = "containerFileCabinetDesc" ITEM.ContainerModel = "models/props_wasteland/controlroom_filecabinet002a.mdl" ITEM.price = 360
-------------------------------------------------------- -- Defines globals availables in all scripts -- Author: DArt, Ked -------------------------------------------------------- env.info( '*** LOADING 3rd DCS Lua Framework *** ' ) local _com = { version = "0.0.1" } -- Main object -- Use to store initialistaion of ...
require("gameData/gameData"); require("hall/php/phpSocketCmd"); --@brief 排行榜tab显示控制 RankListTabData = class(GameData); RankListTabData.Delegate = { onGetRankListTabCallBack = "onGetRankListTabCallBack"; } RankListTabData.initData = function(self) self.m_orgData = {}; self.m_tabList = {}; ...
print("this is the util.lua")
-- An Elepower Mod -- Copyright 2018 Evert "Diamond" Prants <evert@lunasqu.ee> local modpath = minetest.get_modpath(minetest.get_current_modname()) elesolar = rawget(_G, "elesolar") or {} elesolar.modpath = modpath dofile(modpath.."/generator.lua") dofile(modpath.."/register.lua") dofile(modpath.."/crafting.lua") i...
local MakePlayerCharacter = require "prefabs/player_common" local function DoCharacter(name) return MakePlayerCharacter(name, {}, { Asset("ANIM", "anim/"..name..".zip"), Asset("SOUND", "sound/"..name..".fsb") } , function() end) end return DoCharacter("wilton")
#!/usr/bin/env luajit local argparse = require('argparse') local parser = argparse("replace-config", "Replace the collectd's config and restart the daemon") parser:argument({ name = "new_config_path", description = "A path to collectd's config file", args = "?" }) parser:option("-c --command", "colle...
-- ===================== -- Global variables -- ===================== local Setter = {} -- ============== -- Functions -- ============== -- -- What does it do? -- This function adds the given character to the end of the line. -- -- Parameters: -- @bufnr: The buffer number where to change it (0 for current) -- @line_...
local hsluv = require("nightfox.hsluv") local util = {} util.bg = "#000000" util.fg = "#ffffff" util.day_brightness = 0.3 function util.warn(...) for _, msg in ipairs({ ... }) do vim.api.nvim_command('echohl WarningMsg | echom "Nightfox: ' .. msg .. '" | echohl NONE') end end function util.hex_to_rgb(hex_st...
--[[ This files takes care of the digging and EXP adding. by Ryan Dang --]] -- checks for which exp to assign minetest.register_on_dignode(function(pos, oldnode, digger) local tool = digger:get_wielded_item():get_name() -- checking for axe exp -- node must be tree if string.find(oldnode.name, "tree") then ...
--Keep the Faith -Sayuri Remix- xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end) local m,cm=Senya.SayuriRitualPreload(37564910) cm.Senya_name_with_remix=true function cm.initial_effect(c) c:EnableReviveLimit() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_T...
local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local ftp = require "ftp" description=[[ Checks to see if an FTP server allows port scanning using the FTP bounce method. ]] author = "Marek Majkowski" license = "Same as Nmap--See https://...
TOOL.Tab = "Aperture Science" TOOL.Category = "Construction" TOOL.Name = "#tool.aperture_paint_dropper.name" TOOL.ClientConVar["model"] = "models/aperture/paint_dropper.mdl" TOOL.ClientConVar["keyenable"] = "45" TOOL.ClientConVar["startenabled"] = "0" TOOL.ClientConVar["toggle"] = "0" TOOL.ClientConVar["paint_typ...
require "lib.util" require "lib.require" local assets = require 'assets' local Signal = require 'lib.hump.signal' local Timer = require 'lib.hump.timer' local Gamestate = require "lib.hump.gamestate" local love = love local state = require.tree("gamestate") --local shader, shader2 function love.load() Gamestate....
return function(thread) local API={ _version={0,0,5}; _dependencies={ "stdlib"; "gel"; }; elements={}; } local text_buffer_element=thread.libraries["gel"].elements.default_element:extend() --::::::::::::::::::::[Text Buffer Element]:::::::::::::::::::: function text_buffer_element:__tostr...
game = Canvas{camera = Camera2D{size = {20, 20}, fixed = false}} addCanvas(game) player = Actor { graphics = SpriteGraphics{sprite="hero.tga"}, collider = AabbCollider{}, physics = {cor=0.01, cof=0}, transform = {position = {2, 0}} } game:addActor(player) game:setCenter(10, 0) camY = 0 --game:setCenter...
_player = {}; _hooks = {"join", "team", "say", "sayteam", "name", "endround", "hit", "startround", "spawn", "kill", "leave", "minute", "serveraction", "mapchange"}; _ranksPath = "gfx/ranks/"; _cooldownTime = 3000; _serverMsgs = { ["info"] = "\169041098255[Server]: \169250250250"; ["success"] = "\169000225000[Serv...
-- general lvim lvim.log.level = "warn" lvim.format_on_save = true lvim.colorscheme = "kanagawa" -- vim.g.tokyonight_style = "day" -- lvim.colorscheme = "tokyonight" lvim.lsp.diagnostics.virtual_text = false -- keymappings [view all the defaults by pressing <leader>Lk] lvim.leader = "space" lvim.keys.normal_mode["<C...
--[[ FiveM Scripts Copyright C 2018 Sighmir This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option any later version. ...
require 'nn' require 'cunn' require 'cudnn' require 'nngraph' require './BinarizedNeurons' require './cudnnBinarySpatialConvolution' require './BinaryLinear' require 'nnx' local DimConcat = 2 local SpatialConvolution = cudnnBinarySpatialConvolution local SpatialMaxPooling = cudnn.SpatialMaxPooling local SpatialAverage...
local helper = require("null-ls.helpers") local methods = require("null-ls.methods") local FORMATTING = methods.internal.FORMATTING local RANGE_FORMATTING = methods.internal.RANGE_FORMATTING local DIAGNOSTICS = methods.internal.DIAGNOSTICS local M = {} M.latexindent = helper.make_builtin({ name = "latexindent", ...
#!/usr/bin/env lua -- MoonFLTK example: input.lua -- -- Derived from the FLTK test/input.cxx example (http://www.fltk.org) -- fl = require("moonfltk") function cb(ob) print("Callback for " .. ob:label() .. " '" .. ob:value() .."'") end when = 0 input = {} function toggle_cb(b, v) if b:value() then when = when...
local _, ns = ... local SyLevel = ns.SyLevel local argcheck = SyLevel.argcheck local pipesTable = ns.pipesTable local filtersTable = {} local activeFilters = {} local numFilters = 0 function SyLevel:RegisterFilter(name, type, filter, desc) argcheck(name, 2, "string") argcheck(type, 3, "string") argcheck(filter, 4...
dynamic_liquid = {} -- global table to expose liquid_abm for other mods' usage dynamic_liquid.registered_liquids = {} -- used by the flow-through node abm dynamic_liquid.registered_liquid_neighbors = {} local water_level = tonumber(minetest.get_mapgen_setting("water_level")) local modname = minetest.get_current_modn...
vehicleInfoTable = {} patternInfoTable = {} local verFile = LoadResourceFile(GetCurrentResourceName(), "version.json") local curVersion = tonumber(json.decode(verFile).version) or 000 local latestVersion = curVersion local resourceName = "ELS-FiveM" .. (GetCurrentResourceName() ~= "ELS-FiveM" and " (" .. GetCurrentRes...
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2004. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: -- ---------------------------------------------------------...
local ChangeHistoryService = game:GetService("ChangeHistoryService") local Selection = game:GetService("Selection") local toolbar = plugin:CreateToolbar("Part-To-Lua") local NewButton = toolbar:CreateButton("Convert", "Convert now!", "rbxassetid://4458901886") NewButton.Click:Connect(function() local tbl = Selectio...
function clamp(val,minval,maxval,valadded) if val+valadded <= maxval then if val+valadded >= minval then val = val+valadded else val = minval end else val = maxval end return val end function table_count(tbl) local nb = 0 for k, v in pairs(tbl) do ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('PhotoFilterPreset', { SortKey = 1000, desc = T(7072, --[[PhotoFilterPreset None desc]] "None"), displayName = T(7071, --[[PhotoFilterPreset None displayName]] "None"), id = "None", }) PlaceObj('PhotoFilterPreset', { SortKey = 2000, desc...
UtilFunctions = {} LuxModule.registerclass("luxinialuacore","UtilFunctions", "The UtilFunctions class is a collection of miscellanous useful lua functions.",UtilFunctions,{}) LuxModule.registerclassfunction("pairsByKeys", [[ (function):(table,[comperator]) - returns an iterator function to traverse the table in so...
function randomNumber(max) math.randomseed(os.time()) rnd = math.random() return math.random(max) end print "Guess a number" number = randomNumber(100) count = 0 while true do print("What is the number you propose ?") answer = io.read("*n") count = count + 1 print("Your answer is : " .. a...
local join = function(self, channel, data) if(type(data) == 'table' and data.password) then self:Join(channel, data.password) else self:Join(channel) end end return { ['376'] = { function(self) if(not self.config.channels) then return end for channel, data in next, self.config.channels do s...
return {'ebitda'}
-- Json Parsing based on https://gist.github.com/tylerneylon/59f4bcf316be525b30ab -- Base64 decoding based on wikipedia description of 8/6bit encoding. -- base64 char array.. note final 2 chars are for RFC4648-URL encoding -- as per JWT spec section 2 terminology 'Base64url Encoding' local OBJDEF = {} local alpha = 'AB...
object_tangible_tcg_series4_vendor_deed_toydarian = object_tangible_tcg_series4_shared_vendor_deed_toydarian:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series4_vendor_deed_toydarian, "object/tangible/tcg/series4/vendor_deed_toydarian.iff")
--[[ MIT License Copyright (c) 2019 Michael Wiesendanger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
-------------------------------- -- @module EaseBounceInOut -- @extend EaseBounce -- @parent_module cc -------------------------------- -- @function [parent=#EaseBounceInOut] create -- @param self -- @param #cc.ActionInterval actioninterval -- @return EaseBounceInOut#EaseBounceInOut ret (return value: cc.EaseBounceI...
local _2afile_2a = "fnl/aniseed/fs.fnl" local _2amodule_name_2a = "conjure.aniseed.fs" local _2amodule_2a do package.loaded[_2amodule_name_2a] = {} _2amodule_2a = package.loaded[_2amodule_name_2a] end local _2amodule_locals_2a do _2amodule_2a["aniseed/locals"] = {} _2amodule_locals_2a = (_2amodule_2a)["aniseed/...
----------------------------------- -- Drakesbane -- Polearm weapon skill -- Skill level: N/A -- Delivers a fourfold attack. Chance of params.critical hit varies with TP. Ryunohige: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Dragoon) quest. -- Aligned with the Flame Gorget...
-- Copyright 2016 The Cartographer Authors -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or...
-- -- This file is part of SmithSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- Copyright (C) 2015, Leo Ma <begeekmyfriend@gmail.com> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation...
local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local Constants = require(script.Parent.Parent.Constants) local FRAME_HEIGHT = Constants.UtilityBarFormatting.FrameHeight local SMALL_FRAME_HEIGHT = Constants.UtilityBarFormatting.SmallFrameHeight local CS_BUTTON_WIDTH = Con...
local fontEngine = {} local scale local x,y,r,sx,sy local HelloWorld local lg = love.graphics function fontEngine.createFont(pFontFileTTF,pFontName) fontEngine[pFontName] = {} local new = fontEngine[pFontName] for i=1, 100 do new[i] = love.graphics.newFont( pFontFileTTF, i ) end end -- function fontEngin...
--- Provide cms function in lua. -- cms are based on apps/cms.c from the OpenSSL dist, so for more information, see the documentation for OpenSSL. -- cms api need flags, not support "detached", "nodetached", "text", "nointern", "noverify", "nochain", "nocerts", -- "noattr", "binary", "nosigs" -- -- Decrypts the S/MIME ...
-- _.identity.lua -- -- This method returns the first argument provided to it. -- @usage local object = {x=5} -- _.print(_.identity(object) == object); -- --> true -- -- @param value Any value. -- @return Returns value. _.identity = function(...) return ... end local iterCollection = function(table, desc) local sor...
--Obtenha o tamanho do cliente do servidor --Como um script ClientWidth()Após a execução, você pode conectar a variável global e a variável correspondente.. function ClientWidth() Server.FireEvent("GetW") end function ClientHeight() Server.FireEvent("GetH") end Server.GetTopic("Width").Add( function(...
local NORMAL_ZSET = KEYS[1]; local TEMP_ZSET = KEYS[2]; local RETRY_ZSET = KEYS[3]; local PAUSE_ZSET = KEYS[4]; local taskId = ARGV[1]; -- the taskid in TEMP_ZSET means it is waiting for execution resp,you can not modify it local score = redis.call("ZSCORE", TEMP_ZSET, taskId); if (score) then return nil; end; ...
local entities = {} entities.prototypes = {} entities.prototypes.goblin = {} entities.prototypes.goblin.image = love.graphics.newImage("res/goblin.png") entities.prototypes.rogue = {} entities.prototypes.rogue.image = love.graphics.newImage("res/rogue.png") entities.prototypes.wizard = {} entities.prototypes.wizard...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.0.3", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 28, tilewidth = 8, tileheight = 8, nextobjectid = 20, properties = {}, tilesets = { { name = "menu_tiled", firstgid = ...
local log = require "log" local Co = require "internal.Co" local timer = require "internal.Timer" local redis = require "protocol.redis" local type = type local error = error local pcall = pcall local toint = math.tointeger local tostring = tostring local setmetatable = setmetatable local co_self = Co.self local co_w...
--白泽球的装甲 function c22222001.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(c22222001.condition) e1:SetOperation(c22222001.activate) c:Registe...
local local0 = 0.6 - 0.5 local local1 = 0 - local0 local local2 = 2.2 - local0 local local3 = 0 - local0 local local4 = 2.6 - local0 local local5 = 0 - local0 local local6 = 0 - local0 local local7 = 2.3 - local0 local local8 = 0 - local0 local local9 = 2.3 - local0 local local10 = 0 - local0 local local11 = 2.1 - loca...
function RPGM.SetBabyGod(ply, enabled) if not RPGM.Config.BabyGodEnabled then return end if not IsValid(ply) then return end if enabled then timer.Remove("RPGM.BabyGod:" .. ply:UserID()) ply:GodEnable() ply:SetRenderMode(RENDERMODE_TRANSALPHA) ply:SetColor(Color(255, 255, ...
--閃術兵器-H.A.M.P. -- --Script by Ruby & mercury233 function c100285001.initial_effect(c) --special summon rule(on self field) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100285001,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetRange(LOCATION_HAND) e1:SetProper...
local Constants = require(game:GetService("ReplicatedStorage").Constants) local module = {} function module.SetJump(jump) if jump > Constants.MaxJump then return Constants.MaxJump elseif jump < Constants.MinJump then return Constants.MinJump else return jump end end function module.SetSpeed(speed) if spee...
--load our other stools first --include( "RD2/tool_manifest.lua" ) --dev link stool --TOOL = ToolObj:Create() TOOL.Mode = "rd3_dev_link2" TOOL.Category = "Resource Distribution" TOOL.Name = "#Smart Link Tool" TOOL.Command = nil TOOL.ConfigName = "" if CLIENT and GetConVarNumber("CAF_UseTab") == 1 then TOOL.Tab = "...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- local tex = Material("sassilization/goldhud.png") local texw, texh = 271, 90 local tex2 = Material("sassilization/icons/gold.png") local texw2, texh2 = 32, 32 local runnerUpGold, gold, u, v, w, h, x, y, x1, y1, text...
--- -- @module CommonFuncs --- -- Leftover from demon souls, shouldn't work as expected in DS3. Issues NPC_ATK_ChangeWep_L1 if left hand weapon isn't WEP_Primary for npcs. -- @tparam userdata ai AI object. -- @tparam userdata goal Goal object. function CommonNPC_ChangeWepL1(ai, goal) local wepIndex = ai:GetEq...
class 'Taxi' function Taxi:__init( position, angle, faction, lane, cell ) self.position = position self.angle = angle self.faction = faction self.lane = lane self.removed = false local destination = nil local node = GetClosestNode( position, 1 ) position = node.position local speed_limit = node.info.speed_l...
local opts = { backup = false, clipboard = "unnamedplus", cmdheight = 1, completeopt = { "menu", "noselect" }, conceallevel = 0, expandtab = true, fileencoding = "utf-8", guicursor = "i:block", hlsearch = true, ignorecase = true, mouse = "a", number = true, numberwidt...
local module = {} local mytmr = tmr.create() token = nil rtctime.set(1574509386, 0) local function get_token() -- counter = 1 -- maxCounter = config.COUNT -- mytimer = tmr.create() -- mytimer:register(10000, tmr.ALARM_AUTO, function(t) -- if counter <= maxCounter then reqSec, reqUsec = rtc...
module("luci.controller.mikhmon", package.seeall) function index() entry({"admin", "services", "mikhmon"}, template("mikhmon"), _("Mikhmon"), 2).leaf=true end
local OwnedProperties, Blips, CurrentActionData = {}, {}, {} local CurrentProperty, CurrentPropertyOwner, LastProperty, LastPart, CurrentAction, CurrentActionMsg local firstSpawn, hasChest, hasAlreadyEnteredMarker = true, false, false ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:g...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT.Initialize(self) self:SetModel("models/freeman/owain_prisonhole_top.mdl") self:SetUseType(SIMPLE_USE) self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetRenderMode(R...
--- @module tank local tank = {} local terrain = require "terrain" local utils = require "utils" local bullets = require "bullets" local effects = require "effects" -- gameplay constants local FPS = 32 local TANK_VELOCITY_MAX = 4.0 * 2 local TANK_VELOCITY_DELTA = TANK_VELOCITY_MAX / FPS / 2 local TANK_BREAKING_VELOCI...
local collider = {} -- Checks if rectangles a and b overlap. function CheckCollision(ax1,ay1,aw,ah, bx1,by1,bw,bh) local ax2,ay2,bx2,by2 = ax1 + aw, ay1 + ah, bx1 + bw, by1 + bh return ax1 < bx2 and ax2 > bx1 and ay1 < by2 and ay2 > by1 end return collider
local invoke, emit local onInvoke, on local serverScript do local remoteEvent = script.Parent.RemoteEvent local remoteFunction = script.Parent.RemoteFunction function invoke(event, ...) if type(event) ~= "string" then error("`event` must be a string") end return remoteFunction:InvokeServer(event, ...) en...
--[[ compose Longest Common Subsequence and Shortest Edit Script. The algorithm implemented here is based on "An O(NP) Sequence Comparison Algorithm" by described by Sun Wu, Udi Manber and Gene Myers --]] ONP = {} function ONP.new (a, b) local self = { A = a, ...
----------------------------------- -- Area: Windurst Waters -- NPC: Gantineux -- Starts Quest: Acting in Good Faith -- !pos -83 -9 3 238 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/keyitems") require("scripts/globals/shop") require("scripts/globals/quests") local I...
return { PlaceObj("ModItemOptionToggle", { "name", "EnableMod", "DisplayName", T(302535920011303, "<color ChoGGi_yellow>Enable Mod</color>"), "Help", T(302535920011793, "Disable mod without having to see missing mod msg."), "DefaultValue", true, }), PlaceObj("ModItemOptionToggle", { "name", "DisableHUD", ...
--[[ Ingots - allows the placemant of ingots in the world Copyright (C) 2018 Skamiz Kazzarch This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at yo...
object_mobile_exar_kun_tomb_guardian_01 = object_mobile_shared_exar_kun_tomb_guardian_01:new { } ObjectTemplates:addTemplate(object_mobile_exar_kun_tomb_guardian_01, "object/mobile/exar_kun_tomb_guardian_01.iff")
do local _ = { ['burner-mining-drill'] = { icon = '__base__/graphics/icons/burner-mining-drill.png', vector_to_place_result = {-0.5, -1.3}, damaged_trigger_effect = { damage_type_filters = 'fire', entity_name = 'spark-explosion', ...
function onCreate() addCharacterToList('bf-copy', 'boyfriend'); makeLuaSprite('uproarScreenThing', nil, -700, -500); makeGraphic('uproarScreenThing', screenWidth * 2, screenHeight * 2, 'FFFFFF'); setScrollFactor('uproarScreenThing', 0, 0); addLuaSprite('uproarScreenThing', true); setProperty('uproarScree...
return { PlaceObj("ModItemOptionToggle", { "name", "NewPause", "DisplayName", T(302535920011076, "Pause on New Game"), "DefaultValue", true, }), PlaceObj("ModItemOptionToggle", { "name", "LoadPause", "DisplayName", T(302535920011565, "Pause on Load Game"), "DefaultValue", true, }), }
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "ACF Gun" ENT.WireDebugName = "ACF Gun" if CLIENT then local ACF_GunInfoWhileSeated = CreateClientConVar("ACF_GunInfoWhileSeated", 0, true, false) function ENT:Initialize() self.BaseClass.Initialize( self ) self.Last...
-- All the net messages defined here util.AddNetworkString("xyz_orgs_menu") util.AddNetworkString("xyz_orgs_join") util.AddNetworkString("xyz_orgs_create") util.AddNetworkString("xyz_orgs_deposit") util.AddNetworkString("xyz_orgs_withdraw") util.AddNetworkString("xyz_orgs_disband") util.AddNetworkString("xyz_orgs_updat...
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file. * File.....: Core\Locales.lua * Revision.: 360 * Author...: StormFX Localization [ Notes ] The contents of this file are automatically generated. Please use the...
-- Allows for script-based wishing. function createItem(mat,itemType,quality,pos) local item=df['item_'..df.item_type[itemType[1]]:lower()..'st']:new() --incredible item.id=df.global.item_next_id df.global.world.items.all:insert('#',item) df.global.item_next_id=df.global.item_next_id+1 if itemType...