content
stringlengths
5
1.05M
vim.cmd('packadd colorbuddy.nvim') local Color, c, Group, g, s = require("colorbuddy").setup() local b = s.bold local i = s.italic local n = s.inverse local uc = s.undercurl local ul = s.underline local r = s.reverse local sto = s.standout local no = s.NONE local v = vim v.colors_name = 'neowal' ----------------------...
-- vim.g.indentLine_char = '┊'
local PLUGIN = PLUGIN local EDITOR = nut.util.include("sv_editor.lua") util.AddNetworkString("nutVendorAllowClass") util.AddNetworkString("nutVendorAllowFaction") util.AddNetworkString("nutVendorExit") util.AddNetworkString("nutVendorEdit") util.AddNetworkString("nutVendorMode") util.AddNetworkString("nutVendorMoney")...
local Dictionary = script.Parent local Llama = Dictionary.Parent local t = require(LLama.Parent.t) local validate = t.table local function values(dictionary) assert(validate(dictionary)) local valuesList = {} local index = 1 for _, value in pairs(dictionary) do valuesList[index] = value index = index + 1 ...
local alib = loadmodule("avada_lib") local common = alib.common local myHero = objmanager.player local enemies = common.GetEnemyHeroes() -- local smiteSlot = nil -- local smiteDmg = { 390, 410, 430, 450, 480, 510, 540, 570, 600, 640, 680, 720, 760, 800, 850, 900, 950, 1000 } -- if myHero:spellslotcast(4).data.name ==...
local Class = require "Base.Class" local Preset = require "Persist.Preset" local FileSystem = require "Card.FileSystem" local UnitPreset = Class {} UnitPreset:include(Preset) function UnitPreset:init(data) Preset.init(self, data) self:setClassName("UnitPreset") end function UnitPreset:getLoadInfo() ...
local M = {} M.tokens = { heading = "atx_heading", loose_list = "loose_list", tight_list = "tight_list", list_item = "list_item", fenced_code_block = "fenced_code_block", code_fence_content = "code_fence_content", paragraph = "paragraph", soft_line_break = "soft_line_break", link = "link" } return M...
local math_abs = math.abs -- local movetype_blacklist = { MOVETYPE_FLY, MOVETYPE_FLYGRAVITY, MOVETYPE_NOCLIP, MOVETYPE_LADDER, MOVETYPE_OBSERVER, } scommand.Create('act_forward_jump').OnServer(function(ply) if not IsValid(ply) or slib.Animator.IsPlay('forward_jump_anim', ply) then return end if table.HasValueBy...
--author Himanshu Sharma local Point = {} local buddyName = nil local markerName = nil local longitude = nil local success = false local latitude = nil local createdOn = nil function Point:new() o = {} setmetatable(o, self) self.__index = self return o end function Point:getBuddyName() return self.buddyName...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT return { actions = require "game.rules.npcs.actions", behaviors = require "game.rules.npcs.behaviors", selectors = require "game.rules.npcs.selectors" }
-- BLUA Scripting Project -- Part of OutlandZoning Division -- Scripted by Hellgawd -- Give full credits if posting function Kataru_OnKill(pUnit,Event) pUnit:RemoveEvents(); end function Kataru_EnterCombat(pUnit,Event) pUnit:RegisterEvent("hittest_1",1000, 0) end function hittest_1(pUnit, Event) if pUnit:GetHealt...
local assets = { Asset("ANIM", "anim/star.zip") } --Needs to save/load time alive. local function kill_light(inst) inst.AnimState:PlayAnimation("disappear") inst:DoTaskInTime(0.6, function() inst.SoundEmitter:KillAllSounds() inst:Remove() end) end local function resumestar(inst, time) if inst.dea...
local keymaps = {} return keymaps
-------------------------------- -- @module MenuItemAtlasFont -- @extend MenuItemLabel -- @parent_module cc -------------------------------- -- Initializes a menu item from a string and atlas with a target/selector. -- @function [parent=#MenuItemAtlasFont] initWithString -- @param self -- @param #string value -- @...
--- intersection between two geometries ---@class math.intersection local M = {} local vec2 = require('math.vec2') local distance = require('math.distance_point') local function SinCos(angle) return math.sin(angle), math.cos(angle) end --- ---@param p0 math.vec2 ---@param p1 math.vec2 ---@param r number ---@retur...
local M = setmetatable({}, { __index = TimedGameState }) M.__index = M local Player = require "src.actors.Player" function M.new(gamestate, scene, graphics) if gamestate == nil then error ('gamestate must not be nil') elseif scene == nil or scene == '' then error ('scene must not be nil or emp...
--local transport_drone = require("script/transport_drone") --local depot_common = require("script/depot_common") local informatron = require("prototypes/informatron/informatron_script") local interface = { -- get_drone_count = function() -- return transport_drone.get_drone_count() -- end, informatron_menu =...
local ui, uiu, uie = require("ui").quick() local fs = require("fs") local utils = require("utils") local threader = require("threader") local scener = require("scener") local config = require("config") local sharp = require("sharp") local native = require("native") local shaper = require("shaper") local alert = require...
local M = {} function M.read_file(file) local lines = {} for line in io.lines(file) do lines[#lines + 1] = line end return lines end return M
local ffi = require 'ffi' local C = ffi.C ffi.cdef[[ typedef struct _ev_graphics ev_graphics; ev_graphics* ev_graphics_create(void); void ev_graphics_destroy(ev_graphics*); void ev_graphics_clear(ev_graphics*, float, float, float, float); ]] local _M = {} _M.__index = _M function _M:clear(r, g, b, a) C.ev_graphi...
--example functions to be tested list = {} function ascending(a, ...) local function lesser(a, b) return a < b end return sorted(lesser, a, ...) end list.ascending = ascending function descending(a, ...) local function greater(a, b) return a > b end return sorted(greater, a, ...) end list.descending = descending...
GM.OCRPPerks = {} GM.OCRPPerks[1] = {} GM.OCRPPerks[1].Name = "Heavy Money" GM.OCRPPerks[1].Desc = "Have online players with $5,000,000 collectively." GM.OCRPPerks[1].Reward = "Ability to carry 5 more pounds." GM.OCRPPerks[1].Check = function(orgid) local totalmoney = 0 for _,member in pairs(OCRP_Org...
-------------------------------------------------------------------------------- local Text = require 'cherry.libs.text' -------------------------------------------------------------------------------- local Icon = {} -------------------------------------------------------------------------------- function Icon:dr...
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
Locales['en'] = { -- shop ['boat_shop'] = 'Båd butik', ['boat_shop_open'] = 'Tryk ~INPUT_CONTEXT~ for at åbne ~y~båd butik~s~.', ['boat_shop_confirm'] = 'Køb <span style="color: yellow;">%s</span> for <span style="color: orange;">$%s</span>?', ['boat_shop_bought'] = 'Du har ~y~købt~s~ a ~b~%s~s~ for ~g~$%s~s~...
releasedCount = releasedCount + 1 assert(slot1.getState() == 0) -- toggled before calling handlers assert(releasedCount == 1) -- should only ever be called once, when the user releases the button
local gamestate = require "libs.gamestate" local u = require "useful" local Object = require "libs.class" local chain = require "chain" local lg = love.graphics local lm = love.mouse local lk = love.keyboard local palettes = { -- palettes are from http://www.colourlovers.com {u.rgb(120, 75, 121), u.rgb(78, 2...
local Translator = require("reacher.core.translator").Translator local regex_matcher = require("reacher.core.matcher").Matcher.must("regex") local vim = vim local M = {} local Collector = {} Collector.__index = Collector M.Collector = Collector function Collector.new(window_id, matcher, lines, number_sign_width, cur...
local dvdlogo = require('src.dvdlogo') debug = require('src.debug') function love.load() my_dvdlogo = dvdlogo.create() end function love.update() my_dvdlogo:update() end function love.draw() --[[ TODO: put this in a debug module love.graphics.setNewFont(15) love.graphics.print("Current FPS: "..tostring(lov...
--// Loaders Interface \\-- print("67vsygywgd67867fdsjbgd76") --// This is anti-ban bypass key! \\-- local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local Network = require(LocalPlayer.PlayerScripts.GunFramework.InternalModules.network) --// Functi...
local betterUIMod = GameMain:GetMod("CanVox.BetterUI"); betterUIMod.TalkUI = betterUIMod.TalkUI or {} local TalkUI = betterUIMod.TalkUI function TalkUI:NewChatText(text) print("TEXT") print(text) if not text then return end self:RefreshJianghu() end function TalkUI:SetSupplementUIVisible...
return { headers = {}, send = function(body) end, ["end"] = function() end, status = 404 }
-- Copyright 2019 Olivier Poitrey (rs@nextdns.io) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.nextdns", package.seeall) local util = require("luci.util") local i18n = require("luci.i18n") local templ = require("luci.template") local http = require("luci.http") ...
local decode = require "cjson.safe".decode local encode = require "cjson.safe".encode local redis = require "resty.redis" local emojis = require "app.emojis".replace local db = require "app.db" local ntime = ngx.time local htime = ngx.http_time local chat = {} local function time() return htime(ntime()) e...
--------------------------------------------- --Автоматическая очистка предметов --------------------------------------------- timer.Create( "itemcleanup", 8, 0, function() if table.Count(ents.FindByClass( "nut_item" )) > 40 then for k, v in ipairs(ents.FindByClass("nut_item")) do v:Remove() end end ...
tick = require("tick") Object = require("classic") function love.load() love.window.setMode(256, 192) end function love.draw() end function love.update(dt) end
local map = vim.api.nvim_set_keymap local setting = {noremap = true} -- navigating map('i', "<C-a>", "<Home>", {noremap = true}) map('i', "<C-e>", "<End>", {noremap = true}) map('i', "<C-f>", "<Right>", {noremap = true}) map('i', "<C-b>", "<Left>", {noremap = true}) map('i', "<C-p>", "<Up>", {noremap = true}) map('i',...
local class = require 'ext.class' local Equation = require 'symmath.op.Equation' local lt = class(Equation) lt.name = '<' lt.nameForExporterTable = {} lt.nameForExporterTable.LaTeX = '\\lt' lt.nameForExporterTable.SymMath = 'lt' function lt:switch() local a,b = table.unpack(self) return b:gt(a) end function lt:is...
-- INFO: https://github.com/hrsh7th/nvim-cmp#recommended-configuration vim.o.completeopt = 'menuone,noselect' local cmp = require('cmp'); cmp.setup({ formatting = { format = require('lspkind').cmp_format(), }, mapping = { ['<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }), ['<C-f>'] ...
object_mobile_dressed_dark_jedi_master_male_gotal_01 = object_mobile_shared_dressed_dark_jedi_master_male_gotal_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_master_male_gotal_01, "object/mobile/dressed_dark_jedi_master_male_gotal_01.iff")
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 67761 } }, { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = ""...
----------------------------------- -- Area: The Garden of Ru'Hmet -- NM: Qn'aern -- Note: The RNG versions in Garden assist Ix'Aern (DRK) -- All Qn'aerns can use their respective two-hour abilities multiple times (guessing 2-minute timers) ----------------------------------- mixins = {require("scripts/mixins/j...
print("hello world") for v=0,10,2 do print("v = "..v) end print("end") for v=1, 10, 1 do print("k", v) end local i = 0 while true do if i % 200000 == 0 then print("i = ", i) i = 0 end i = i + 1 end print("wwwwwww")
---------------------------------------------------------------------------- -- _ _ _______ _____ _____ _______ _____ _______ _______ -- -- | | | | | | | | |______ |______ -- -- |_____| | __|__ |_____ __|__ | __|__ |______ ______| -- ------------...
-- Description: -- Construct and return the BaseGUI object return function() local BaseGUI = { -- NeedsTicks :: bool -- True if gui will require ticks. NeedsTicks = false } -- OnShow( Self, Event ) :: bool -- Shows the GUI. -- playerIndex -- Self: is a table that contai...
require 'image' require 'xlua' require 'lmdb' local gm = require 'graphicsmagick' local DataProvider = require 'DataProvider' local config = require 'Config' -------------------------------Settings---------------------------------------------- local PreProcess = function(Img) local im = image.scale(Img, '^' .. c...
-------------------------------------------------------------------------------- -- АРС-АЛС -------------------------------------------------------------------------------- Metrostroi.DefineSystem("ALS_ARS") TRAIN_SYSTEM.DontAccelerateSimulation = true if CreateConVar then --[[concommand.Add("metrostroi_give_u...
require 'xlua' local DataPointer = torch.class('DataPointer') function DataPointer:__init(n_total) self.n_total = n_total if self.n_total > 0 then self.idx_perm = torch.randperm(self.n_total) self.current_pos = 1 else self.idx_perm = nil self.current_pos = nil end end ...
-- handle get request for / function handler.get(req, res) -- set data for index.html end
local skynet = require "skynet" local define = require "define" local RECORD_HOST = skynet.getenv("RECORD_HOST") local M = {} -- 代理可以直接创建房间,其他玩家不可以解散代理开的房,这里记录房主ID function M.init(info) local tOptions = {} -- 房主ID tOptions["master_id"] = info.player.userid -- 设置房间信息 for _, tData in pairs(info.ro...
------------------------------------- --- PANELS ------------------------------------- local Panels = MR.CL.Panels -- Section: load map modifications function Panels:SetLoad(parent, frameType, info) local frame = MR.CL.Panels:StartContainer("Load", parent, frameType, info) local width = frame:GetWide() local pane...
DefineClass.TerrainPaintConstructionSite = { __parents = { "LandscapeConstructionSiteBase" }, work_request = false, work_required = false, last_progress_marked = 0, } local work_per_hex_for_terrain_painting = 1000 function TerrainPaintConstructionSite:GatherConstructionResources() if self.work_request then retu...
local skynet = require "skynet" local i = 0 local hello = "hello" function response.ping(hello) skynet.sleep(100) return hello end function accept.hello() i = i + 1 print (i, hello) end function response.error() error "throw an error" end function init( ... ) print ("ping server start:", ...) -- You can ret...
-- -- User: Glastis -- Date: 19-Nov-19 -- local widget = require( "widget" ) local composer = require( "composer" ) local scene = composer.newScene() --Forward reference for test function timer local testTimer local USE_IOS7_THEME = false local isGraphicsV1 = ( 1 == display.getDefault( "graphicsCompatibility" ) ) lo...
--[[Info]]-- --[[Register]]-- RegisterServerEvent("clothing_shop:SetItems_server") RegisterServerEvent("clothing_shop:SpawnPlayer_server") RegisterServerEvent("skin_customization:SpawnPlayer") RegisterServerEvent("clothing_shop:SaveItem_server") RegisterServerEvent("clothing_shop:GetSkin_server") RegisterServerEvent...
local data_dir = vim.fn.stdpath('data') local lsp = require('modules.lsp') require'lspconfig'.vimls.setup { cmd = { data_dir .. "/lspinstall/vim/node_modules/.bin/vim-language-server", "--stdio" }, on_attach = lsp.common_on_attach, capabilities = lsp.capabilities }
function drawCross(o, c, s) local s = s if not s then s = 2 end gui.line(o.x , o.y - s, o.x , o.y + s, c) gui.line(o.x - s, o.y , o.x + s, o.y , c) end function math.clamp(value, min, max) return math.min(max, math.max(min, value)) end function cameraToScreen(o, c, clamp) local c...
function addDrachma( ply, amount, reason, applymultiplier ) if applymultiplier == nil then applymultiplier = true end if applymultiplier then local multy = ply:databaseGetValue( "drachmamultiplier" ) local smulty = GetConVar( "lab_globaldrachmamultiplier" ):GetFloat() if multy != nil then amount = math.Round( a...
local BaseClass = require('base') local DerivedClass = {} setmetatable(DerivedClass, BaseClass) DerivedClass.__index = DerivedClass --[[setmetatable(DerivedClass, { __index = BaseClass, -- this is what makes the inheritance work __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(......
local Check = {} function Check.string(str) if type(str) ~= 'string' then log("check_string:", str) assert(false) end end function Check.number(num) if type(num) ~= 'number' then log("check_number:", num) assert(false) end end function Check.table(tbl) if type(tbl) ...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Blizzard") local _G = _G local floor = _G.math.floor local format = _G.string.format local CreateFrame = _G.CreateFrame local hooksecurefunc = _G.hooksecurefunc local UnitAlternatePowerInfo = _G.UnitAlternatePowerInfo local UnitPowerMax = _G.UnitPowerMax...
local Carousel = script.Parent local Container = Carousel.Parent local App = Container.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local t = require(Packages.t) local withStyle = require(UIBlox.Core.Style.withStyle) local Core = UIBlox.Core local getIconSize =...
local Fade = Object:extend() function Fade:new(alpha,timer) self.a = alpha self.t = timer self.state = false end function Fade:update(dt) if self.state == true then self.a = self.a-(1/self.t * dt) end if self.a <= 1 then self.state = false self.a = 1 if door_locked == false then if ac...
local cmd = vim.cmd cmd 'packadd packer.nvim' ------------------------ --------Packages-------- ------------------------ return require('packer').startup(function() use {'wbthomason/packer.nvim', opt = true} ---- Utils ---- use 'tpope/vim-repeat' use 'tpope/vim-surround' use 'tpope/vim-commentary' use...
minetest.register_tool("rangedweapons:m60_r", { stack_max= 1, wield_scale = {x=2.0,y=2.0,z=1.4}, description = "", rw_next_reload = "rangedweapons:m60", load_sound = "rangedweapons_rifle_clip_in", range = 0, groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_m60_rld.png", }) minetest....
if !gAC.config.ANTI_METH then return end local _CompileString = CompileString local _math_Round = math.Round local _math_random = math.random local _print = print local _string_char = string.char local _tonumber = tonumber local _util_TableToJSON = util.TableToJSON local stringrandom = function(length, norm) local s...
--This script is a console with an output as a tree, because each command is a branch and each output a set of leafs --1.1 libraries and clipboard --1.1.1 libraries require("iuplua") --require iuplua for GUIs --1.1.2 initalize clipboard clipboard=iup.clipboard{} --1.1.3 loadstring for Lua 5.3 and ...
require "raytrace" MODE = 2 if MODE == 1 then local bvh = newBVH(OBJToTriangles(readOBJFile("models/box.obj"),{generateNormals=false}),4) local cam = newCamera({1.5,2,2}, {0,0,0}, 60, {640,480}) setCameraLookAt(cam,{0,0,0}) local frame = renderNDotL(cam, {1,0.8,0.5}, bvh) writePPM('output/render.ppm',fram...
Locales['es'] = { ['press_collect_coke'] = 'Presiona ~INPUT_CONTEXT~ para cosechar la Coca', ['press_process_coke'] = 'Presiona ~INPUT_CONTEXT~ para tratar la Coca', ['press_sell_coke'] = 'Presiona ~INPUT_CONTEXT~ para vender la Coca', ['press_collect_meth'] = 'Presiona ~INPUT_CONTEXT~ para recoger ingredientes del...
local L = LibStub("AceLocale-3.0"):NewLocale("ClassicCodex", "zhTW") if not L then return end L = L or {} -- browser.lua L["Quest Start"] = "任務開始" L["Quest End"] = "任務結束" L["Quest Level"] = "任務等級" L["Required Level"] = "需要等級" L["Hostile"] = "敵對" L["Friendly"] = "友方" L["Reaction"] = "反應" L["Alliance"] = "聯盟" L["Horde...
-- plugs core lib local class_http = {} function class_http:new (port) if not self._http then self._http = require('http') --print(self._http:new()) end self._port = port return self end function class_plugs:init (lib_name) self._plugs = require(lib_name .. '.init') self._pl...
--[[ Variables ]] pedsFlags = {} defaultpedsFlags = { isDead = false, isCuffed = false, isRobbing = false, isEscorting = false, isEscorted = false, isBlindfolded = false, isInTrunk = false, isInBeatMode = false, isInsideVanillaUnicorn = false, isNPC = false, isJobEmplo...
-------------------------------------------------------------------------------- --! @file CharaTppBreakableGenerator.lua --! @brief プレイヤーが壊せるギミック -------------------------------------------------------------------------------- CharaTppBreakableGenerator = { ---------------------------------------- --各システムとの依存関係の定義 -...
#!/usr/bin/env lua -- ================================================================== -- -- LOM (Lua Object Model): on top of 'lxp' -- DOM: doc = {['.'] = tag; ['@'] = {}; ['&'] = {{}..}; '\0comment', ...} -- Usage example: -- lom = require('lom') -- doc = lom(xmlfile or '') -- doc = lom('') doc:parse...
----------------------------------- -- Area: Lower_Delkfutts_Tower ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.LOWER_DELKFUTTS_TOWER] = { text = { CONQUEST_BASE = 0, -- Tallying conque...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by heyqule. --- DateTime: 01/09/2020 6:40 PM --- local Sprites = require('__stdlib__/stdlib/data/modules/sprites') local ERM_WeaponRig = require('__enemyracemanager__/lib/rig/weapon') require('util') local ProjectileAnimation = {} function Projecti...
local http = require("socket.http") local ltn12 = require("ltn12") return function( url, args ) local resp = {} args = args or {} -- set some defaults args.url = url args.sink = ltn12.sink.table(resp) if not args.method then args.method = 'GET' end local _, code, headers, status = http.request...
-------------------------------- -- @module ControlButton -- @extend Control -- @parent_module cc -------------------------------- -- -- @function [parent=#ControlButton] isPushed -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#Control...
--[[ Train + benchmark the 'best' network arch on the LSP (+MPII) datasets. ]] paths.dofile('train_mpii_lsp.lua') paths.dofile('benchmark_mpii_lsp.lua')
-- Called OnSpellStart function TauntStart(event) local caster = event.caster local ability = event.ability local ability_level = ability:GetLevel() - 1 local radius = ability:GetLevelSpecialValueFor("radius", ability_level) local duration = ability:GetLevelSpecialValueFor("duration", ability_level) local caste...
local b = true local GO = nil local InstructionsLayer = nil local GOXform = nil local GOMesh = nil local center = Vector3(0, 0, -16.0) local offscreen = Vector3(50.0, 0, -16.0) local speed = -100.0 local exitscreen = -100 local reached = false local exit = false movein = false completed = false local camera_GO = nil l...
includeFile("tangible/wearables/cybernetic/s05/cybernetic_s05_torso.lua") includeFile("tangible/wearables/cybernetic/s05/cybernetic_s05_arm_l.lua") includeFile("tangible/wearables/cybernetic/s05/cybernetic_s05_legs.lua") includeFile("tangible/wearables/cybernetic/s05/cybernetic_s05_arm_r.lua")
object_mobile_skeleton_bm_fambaa = object_mobile_skeleton_shared_bm_fambaa:new { } ObjectTemplates:addTemplate(object_mobile_skeleton_bm_fambaa, "object/mobile/skeleton/bm_fambaa.iff")
--este test esta deshabilitado porque no llamo los event handlers con pcall (para facilitar el debug) module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") function test() local order = {} local exceptionHandled = false -- This nextTick function will throw an error. It should only be c...
-- debugger/form_editor.lua local forms = {} local path = minetest.get_worldpath() -- Load forms local function load_formdata() local res = io.open(path.."/debugger_form_editor.txt", "r") if res then res = minetest.deserialize(res:read("*all")) if type(res) == "table" then forms = res end end...
local DEBUG = -- function() end d local function _tr(str) return str end if not InventoryManager then InventoryManager = {} end local IM = InventoryManager local _Gain = nil local function do_sell(data, eventCode, itemName, itemQuantity, money) if eventCode ~= nil then _Gain = _Gain + money en...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") -- Creating the net message stuff util.AddNetworkString("xyz_police_sign_open") util.AddNetworkString("xyz_police_sign_update") function ENT:Initialize() self:SetModel("models/freeman/owain_roadsign.mdl") self:PhysicsInit(SOLID_VPHYSICS) ...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 of the License, --or (at your option) any later version. ...
GM.MapData["slide_city_remake"] = { ToRemove = {}, FirstPush = {2490}, LastBrush = {3224}, LastType = "teleport", -- The restart teleporter doesn't take you to a spawn room SpawnTeleTriggers = {}, }
function Server_AdvanceTurn_Start (game,addNewOrder) AlreadyDeployed = {}; for _,terr in pairs(game.Map.Territories)do AlreadyDeployed[terr.ID] = 0; end --print('MAx DEPLOY ' .. Mod.Settings.MaxDeploy); end function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder) if(order.proxyT...
local GameplayStatics=import'GameplayStatics'; local testcase={} local HitResult = import('HitResult'); function testcase:test(uworld,actor) print("=====Begin test blueprint") local bpClass = slua.loadClass("/Game/TestActor.TestActor") -- get out TArray for actors local arr=GameplayStatics.GetAllAct...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
-- Toggles the Scoreboard Client:Subscribe("KeyUp", function(key_name) if (key_name == "Tab") then main_hud:CallEvent("ToggleScoreboard", {false}) end end) -- Toggles the Scoreboard Client:Subscribe("KeyDown", function(key_name) if (key_name == "Tab") then main_hud:CallEvent("ToggleScoreboard", {true}) end end...
torch = require 'torch' laia = laia or {} local ffi = wrequire 'ffi' local ssllib = nil if ffi ~= nil then ssllib = ffi.load('ssl') assert(ssllib ~= nil) ffi.cdef[[ typedef struct MD5state_st { unsigned long A,B,C,D; unsigned long Nl,Nh; unsigned long data[16]; unsigned int num; } MD5_CTX; int MD5_Init(M...
fx_version 'adamant' game 'gta5' ui_page 'html/index.html' files { 'html/index.html', 'html/css/materialize.min.css', 'html/css/style.min.css', 'html/libs/jquery-ui.min.css', 'html/js/build.js', 'html/libs/all.min.css', 'html/libs/jquery.min.js', 'html/libs/jquery.mask.min.js', 'html...
------------------------------------------------------------------------------- --- AUTHOR: Nostrademous --- GITHUB REPO: https://github.com/Nostrademous/Dota2-WebAI ------------------------------------------------------------------------------- function InTable (tab, val) if not tab then return false end ...
villageSivarraPhase1ConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "villageSivarraPhase1ConvoHandler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/fs_medic_puzzle_head_medic:s_d46bb0c5", -- Hello, I'm the head physician here....
local self = {} GLib.IEnumerable = GLib.MakeConstructor (self) function self:ctor () end function self:GetEnumerator () GLib.Error ("IEnumerable:GetEnumerator : Not implemented.") end function self:Filter (filterFunction) return GLib.Enumerable.FromEnumeratorFactory ( function () return GLib.Enumerator.Filter...
require("@vue/shared") require("runtime-core/src/errorHandling") require("runtime-core/src/errorHandling/ErrorCodes") require("runtime-core/src/warning") require("runtime-core/src/componentProps") function emit(instance, event, ...) local props = instance.vnode.props or EMPTY_OBJ if __DEV__ then local options ...
local Board = require "board" local window = require "window" local fonts = require "fonts" local Prompt = {} Prompt.__index = Prompt --- -- Create a new Prompt -- @param message to display -- @param callback when user answer's prompt -- @return Prompt function Prompt.new(width, height, message, callback, options) ...