content
stringlengths
5
1.05M
function getStaticAddress(namespace, className, field) for i,domain in ipairs(mono_enumDomains()) do for j,assembly in ipairs(mono_enumAssemblies(domain)) do local image = mono_getImageFromAssembly(assembly) for k,class in ipairs(mono_image_enumClasses(imageId)) do local nsn = mono_class_getNa...
id = os.getComputerID() version = os.version() server = "127.0.0.1:8080" function readConfig() if fs.exists("download") then local hnd = fs.open("download", "r") local content = hnd.readAll() hnd.close() local it = string.gmatch(content, "server = \"[^\"]+\"") local line = it() server = string.sub(line, 1...
local CRLF = "\013\010" local input = source.chain(source.file(io.stdin), normalize(CRLF)) local output = sink.file(io.stdout) pump.all(input, output)
function Init() -- MoveTank.lua MoveTank = {} MoveTank.Variables = { -- Public Variables [All must be initialized] speed = 7.1 --[Slider(0, 10)] } function MoveTank:Start() end function MoveTank:Update() --Movement local pos = transform.position if input.getKey("w") then transform:SetPositionv(...
local api = vim.api local fn = vim.fn local luv = vim.loop local utils = require "nvim-treesitter.utils" local parsers = require "nvim-treesitter.parsers" local info = require "nvim-treesitter.info" local configs = require "nvim-treesitter.configs" local shell = require "nvim-treesitter.shell_command_selectors" local...
local width = 960 local height = 640 AquaShine = assert(love.filesystem.load("AquaShine.lua"))({ Entries = { test = {0, "Test.lua"}, }, DefaultEntry = "test", Width = width, -- Letterboxing Height = height -- Letterboxing }) love.window.setMode(width, height)
local viewBase = require("games/common2/module/viewBase"); local SystemInfoView = class(viewBase, false); local l_index = 0; local getIndex = function(...) l_index = l_index + 1; return l_index; end SystemInfoView.s_controls = { battery = getIndex(); timeText = getIndex(); }; function SystemInf...
---@diagnostic disable: undefined-global -- NOTE: {{{ -- -- This file should *NOT* be loaded with your `init.lua`. It is only meant to be -- used as a script to be executed at an appropriate time using the `hs` CLI tool. -- -- The CLI tool can be installed with `hs.ipc.cliInstall()` -- -- See: `~/.config/nvim/lua/dm/ma...
function init() if init_tech_objects_modes == nil then return end local objects = init_tech_objects_modes() local initialized_objects = { } for number, value in ipairs(objects) do -- Проверка пустоты таблицы для импортируемых объектов. -- Экспорт выполняется так, что бы пустые элемен...
answ = {""} value = {""} total = (math.random(4990) + 3010) * 10; solution = math.random(total/2 - 12000) + 10000; number = total - solution temp = 10^4 * math.floor(total/10^4) + number answ[1] = tostring(math.floor(number)) .. " - x = " .. tostring(math.floor(total)) answ[2] = tostring(math...
-- File: init.lua --node.flashreload("light.img") node.flashindex("_init")() LFS.init_test() --dofile("init_test")
tmod = require("test_module") tmod.print_package_path() g1000_dev = mapper.device({ name = "SimHID G1000", type = "simhid", identifier = {path = "COM3"}, modifiers = { {class = "binary", modtype = "button"}, {class = "relative", modtype = "incdec"}, {name = "SW26", modtype = "bu...
local Condition = require "condition" local Rage = Condition:extend() Rage.name = "anger" Rage.count = 0 Rage:setDuration(5000) Rage:onAction(reactions.Die, function(self, level, actor, action) self.count = self.count + 1 end ) function Rage:getATK() return self.count * 2 end return Rage
Hooks:PostHook(HUDTeammate, 'init', 'Remove_Default_Down_Counter_I_Hate_Forced_Overkill_Features',function(self) self._panel:child("player"):child("revive_panel"):set_visible(false) self._panel:child("callsign"):set_visible(true) self._panel:child("callsign_bg"):set_visible(true) end)
local Log = Object:subclass {} function Log:__init() self:clear() end function Log:__call(fmt, ...) table.insert(self._head, fmt:format(...)) self.dirty = true end function Log:clear() self._turns = {} self._head = {} self._next_turn = 1 end function Log:turns() return coroutine.wrap(function() fo...
function math.sign(x) return x>0 and 1 or x<0 and -1 or 0 end function math.round(x) return math.floor(x+0.5) end function math.roundPrecision(val, precision) --return math.floor( (val * 1/precision) + 0.5) / (1/precision) --simplified: return math.floor((val/precision)+0.5)*precision end functi...
return {'ktv','ktvs'}
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Effects = { PlaceObj('RewardResearchPoints', { 'Amount', "<research_reward>", }), }, Prerequisites = {}, ScriptDone = true, SuppressTime = 2160000, Text = T(446294721798, --[[StoryBit LastFoun...
local function merge(...) local new = {} for dictionaryIndex = 1, select("#", ...) do local dictionary = select(dictionaryIndex, ...) if dictionary ~= nil then for key, value in pairs(dictionary) do new[key] = value end end end return new end return merge
local ok, wk = pcall(require, "which-key") if not ok then require("core.utils").errorL("which key fail to load: " .. wk, "which-key") return end local keys = { gi = { name = "+Git", B = "Toggle git blame (Popup Panel)", b = "Toggle inline git blame (Virtual text)", c = "Commit staged changes", ...
local S = minetest.get_translator("unified_inventory") local F = minetest.formspec_escape local has_stamina = minetest.global_exists("stamina") local ui = unified_inventory -- Backup to inject code unified_inventory_plus.craft_all = unified_inventory.pages["craft"].get_formspec local function onload() unified_invent...
local cc = buildM.generators.create_component_from_ingredients --[[ cc({name = "burner-omniphlog-component", tier=0, ings = {{"stone", 3}} }) cc({name = "omni-plant-component", tier=0, ings = {{"stone", 3}} }) cc({name = "omni-mutator-component", tier=0, ings = {{"stone", 3}} }) cc({name = "omnismelter-1-component", t...
module 'mock' -------------------------------------------------------------------- local function prioritySortFunc( a, b ) local pa = a.priority or 0 local pb = b.priority or 0 return pa < pb end -------------------------------------------------------------------- CLASS: CameraManager () :MODEL{} function Came...
-- _Functions_ are central in Lua. We'll learn about -- functions with a few different examples. -- Here's a local function that takes two `number`s and returns -- their sum. Note: functions are global by default. local function plus (a, b) -- lua requires explicit returns, i.e. it won't -- automatically return the...
local skynet = require "skynet" -- startmsgserver skynet.start(function() local gate = skynet.newservice("mymsgserver") --网关服务需要发送lua open来打开,open也是保留的命令 skynet.call(gate, "lua", "open" , { port = 8002, maxclient = 64, servername = "sample", --取名叫sample,跟使用skynet.name(".sample")一...
destinations = { --{-1743.325, -152.2545, 3.5547, "SF"}, --remap this {-2078.2285, -90.3376, 35.1641, "SF"}, {-1848.4825, 121.1523, 15.1172, "SF"}, {-1499.4032, 811.6879, 7.1853, "SF"}, {-2405.3394, 978.9814, 45.2969, "SF"}, {-2144.9658, -834.6199, 32.0234, "SF"}, {-2114.3389, -99.6285, 35.3203, "SF"}, {-2768....
--[[ Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved @file ExperInfo.lua @author sunnnychan@gmail.com @date 2016/03/12 11:27:24 @brief operate experiment config ]]-- local BDLOG = require('lua.bdlib.BdLogWrite') local Cjson = require('cjson.safe') local FileUtil = require('lua.bdlib.File') local json_decode =...
function fix_path (path) return '.' .. path end function skip_include(el) for i, item in ipairs(el) do el[i] = pandoc.walk_block(item, { Image = function (element) element.src = fix_path(element.src) return element end }) el[i] = pandoc.walk_block(el[i], { ...
return function(newENV) _ENV = newENV ----- DO NOT MODIFY ABOVE ----- hp = 70 atk = 8 def = 2 -- CYK variables mag = 7 -- MAGIC stat of the Player powers = { "KNID", "FUUF" } -- Powers of the Player (Unused) abilities = { "PCIFAY", "LIL PARYE" } -- Abilities of t...
-------------------------------- -- @module GridAction -- @extend ActionInterval -- @parent_module cc ---@class cc.GridAction:cc.ActionInterval local GridAction = {} cc.GridAction = GridAction -------------------------------- --- brief Get the pointer of GridBase. --- return The pointer of GridBase. ---@return cc.Gr...
-- Mathematical class library -- Written by Michiel Fokke <michiel@fokke.org> -- MIT license, http://opensource.org/licenses/MIT function printf(s,...) io.write(s:format(...)) end function newRingbuffer(mySize) local self = { buffer = {}, size = mySize or 3, index = 0 } local push = function (v) self.buffer[s...
AttractState = {} function AttractState:name() return "AttractState" end function AttractState:init() local keymap = { controls = { change_mode = {"key:m"}, one_player = {"key:1"}, two_player = {"key:2"} } } self.input = Baton.new(keymap) end function A...
-- EDU Bot NodeMCU Lua firmware, 2016 sw@kaltpost.de -- MIT License (MIT) -- See LICENSE file for details rf = {}; function rf.init(pin_trig, pin_echo) rf.trig = pin_trig or 4 rf.echo = pin_echo or 3 gpio.mode(rf.trig, gpio.OUTPUT) gpio.mode(rf.echo, gpio.INT) gpio.write(rf.trig, gpio.LOW) ...
return {'immanent','immanentie','immaterieel','immatriculeren','immens','immensiteit','immer','immermeer','immers','immigrant','immigrante','immigrantengezin','immigrantengroep','immigrantenpartij','immigrantenzoon','immigratie','immigratieambtenaar','immigratiebeleid','immigratiedebat','immigratiedienst','immigratiego...
do local _ = { car = { icon = '__base__/graphics/icons/car.png', guns = {'vehicle-machine-gun'}, close_sound = {filename = '__base__/sound/car-door-close.ogg', volume = 0.4}, burner = { smoke = { { de...
require("mod-gui") function remote_doit(who, args) --remote.call("DeleteEmptyChunks", "getSurface") --remote.call("DeleteEmptyChunks", "getRadius") --remote.call("DeleteEmptyChunks", "getPaving") --remote.call("DeleteEmptyChunks", "DeleteEmptyChunks", {surface="nauvis", radius=0, paving=false}) local target_...
--[[ Copyright (C) 2017-2019 Google Inc. 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the ho...
local memory = require "memory" local system = require "coutil.system" local channel = require "coutil.channel" local stateco = require "coutil.coroutine" local case, done, casesuffix = case, done do local currentop local backup = case function case(name, op) if casesuffix ~= nil then name = name.." "..casesu...
---@class CS.FairyEditor.ImageUtil ---@field public ToolAvailable boolean ---@type CS.FairyEditor.ImageUtil CS.FairyEditor.ImageUtil = { } function CS.FairyEditor.ImageUtil.Init() end ---@overload fun(image:CS.FairyEditor.VImage): Byte[] ---@overload fun(pngFile:string): string ---@return Byte[] ---@param pngFile stri...
local this = Class.inherit(UiDeco) function this:new(color, borderwidth, adjust, vertical) adjust = adjust or {} self.align = adjust.align or {x = 0, y = 0} self.size = adjust.size or {w = 0, h = 0} self.color = color self.borderwidth = borderwidth self.vertical = vertical end function this:draw(screen, widget...
--[[ Name: "cl_request_device.lua". Product: "HL2 RP". --]] local HELP = [[ <html> <font face="Arial" size="2"> <center>Request Device</center> <p> Request devices allow citizens to ask for help remotely. A sort of one way radio to the Civil Protection. You can buy a request device off any local merchant. O...
Object = require "classic" Entity = Object:extend() function Entity:new() self.entities = {} end function Entity:update(dt) self:eachChild(function(entity) entity:update(dt) end) end function Entity:draw() self:eachChild(function(entity) entity:draw() end) end function Entity:onKeyReleased(key) ...
local module = {} local player = game.Players.LocalPlayer local ui = script.Parent.gameUI.stamina function module.init(Modules) ui.BackgroundTransparency = 1 ui.value.BackgroundTransparency = 1 ui.Active = false ui.Visible = true local function updateStamina() if player.Character and player.Character.Primary...
local appId = 'com.apple.finder' -- local keyList = { -- hs.keycodes.map.shift, -- hs.keycodes.map.ctrl, -- hs.keycodes.map.tab -- } -- function postKeyEvent(...) -- local args={...} -- return function() -- for i=1, #keyList do -- local key = keyList[i] -- local isdown = args[i] -- if ...
---- WIP! local event = require 'utils.event' local healing_amount = { ["rock-big"] = 4, ["sand-rock-big"] = 4, ["rock-huge"] = 16 } local function heal_rocks() for key, rock in pairs(global.damaged_rocks) do if rock.last_damage + 300 < game.tick then if rock.entity.valid then rock.entity.health = ...
function dxDrawRoundedBorder(x, y, w, h, borderColor, postGUI) if (x) and (y) and (w) and (h) then borderColor = borderColor or tocolor(255, 255, 255, 230) dxDrawRectangle(x - 1, y + 1, 1, h - 2, borderColor, postGUI) -- left dxDrawRectangle(x + w, y + 1, 1, h - 2, borderColor, postGUI)-- right dxDrawRectangl...
return { Voc = { description = "# Voc\nfreq, pos, diameter, tenseness, velum -> f\nVocal Tract Physical Model" }, abs = { description = "# abs\nv1 (f) -> f\nPerforms absolute value." }, add = { description = "# add\nv1 (f), v2 (f) -> f\nPerforms addition." }, adsr = { description = "# adsr...
--[[ class TextBox TextBox displays text in text boxes. The text is actually a table containing a mix of strings and format specifiers. Format specifiers change the formatting of the text. ]]-- local Scene = require "xl.Scene" local TextEngine = require "xl.TextEngine" local function load9draw( path ) local imag...
return { reify_i = {name = 'reify';}; lua_i = {name = 'lua';}; macro_t = {name = 'macro';}; fn_t = {name = 'function';}; num_t = {name = 'number';}; str_t = {name = 'string';}; call_ctx_t = {name = 'call_ctx';}; lambda_i = {name = 'lambda';}; return_i = {name = 'return';}; bool_t = {name = 'boolean';}; list_...
addEvent ( "killP", true ) addEventHandler ( "killP", root, function ( ) killPed ( source ) end )
local ItemHelper = require "utils.ItemHelper" local ParameterShowInfo = require "config.ParameterShowInfo"; local HeroModule = require "module.HeroModule" local equipmentModule = require "module.equipmentModule"; local equipmentConfig = require "config.equipmentConfig" local View = {} function View:Start(arg) self.vi...
do local function parsed_url(link) local parsed_link = URL.parse(link) local parsed_path = URL.parse_path(parsed_link.path) i = 0 for k,segment in pairs(parsed_path) do i = i + 1 if segment == 'joinchat' then invite_link = string.gsub(parsed_path[i+1], '[ %c].+$', '') ...
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.conntrack",package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) return { title = "%H: Conntrack entries", vlabel = "Count", number_format ...
------------------------------------------------------------------------------- -- -- Lua Ballistics Library Examples -- ------------------------------------------------------------------------------- local ballistics = require( "ballistics" ) -- Default values local mps = 123.4 local grains = 40 local...
--[[ Button-Small class By Phil Garner May 2017 ]]-- local ButtonSmall = {} ButtonSmall.__index = ButtonSmall function ButtonSmall:new(id, x, y, theme) local win = { props = { id = id ,resizable = false ,width = theme:get("images").button_small:getWidth(...
local M = { } local TK = require("PackageToolkit") local append = (TK.module.import(..., "_append")).append local tail = (TK.module.import(..., "_tail")).tail local head = (TK.module.import(..., "_head")).head M.take = function(n, list) if (type(list)) ~= "table" then return { } end local aux aux = function...
-- npm install -g vscode-css-languageserver-bin local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true require'lspconfig'.cssls.setup { capabilities = capabilities, }
--@name Holodraw --@author Name --@client -- This example shows you how to properly use Hologram:draw method on a rendertarget with transparent background -- To solve the weird lighting issues, use render.setLightingMode with values of 1 (fullbright) or 2 (increased fullbright) -- Please note, this won't work for all ...
local jass = require 'jass.common' local japi = require 'jass.japi' local Unit = require 'war3library.libraries.types.unit' local Player = require 'war3library.libraries.ac.player' local Point = require 'war3library.libraries.ac.point' local setmetatable = setmetatable local table_insert = table.insert local table_remo...
local unescape_uri = ngx.unescape_uri local os_date = os.date local table_concat = table.concat local kafka = require "trochilus.gateway.context.kafka" local kafka_send_obj = kafka.send_obj local exports = {} local collect = function(ngx, ctx, req_ctx) local req, var = ngx.req, ngx.var local req_headers = req...
remote = require 'net.box' fiber = require 'fiber' test_run = require('test_run').new() -- #594: bad argument #1 to 'setmetatable' (table expected, got number) box.schema.func.create('dostring') box.schema.user.grant('guest', 'execute', 'function', 'dostring') test_run:cmd("setopt delimiter ';'") function gh594() ...
-- interpreter.lua -- -- This Lua chunk implements some of the behavior of the standard standalone -- Lua interpreter. Use it with cfromlua to generate a standalone -- interpreter that has built-in modules (implemented in either Lua or C). -- package.path = os.getenv("LUA_PATH") or ";?.lua;" package.cpath = os.getenv(...
-------------------------------------------------------------------------------- -- Aliases. -------------------------------------------------------------------------------- -- Execute Vim commands. local cmd = vim.cmd -- Execute vimscript. local exec = vim.api.nvim_exec -- Call Vim functions. local fn = vim.fn -- Glob...
Talk(64, "记得到我百花谷来.", "talkname64", 0); do return end;
local SteamParticles = class("SteamParticles", Particles) local PI = 3.14159 SteamParticles.static.puffimg = love.graphics.newImage("assets/particles/smokepuff.png") function SteamParticles:initialize(x, y, w, h, lifetime, scale) Particles.initialize(self, x, y, w, h, lifetime)--camera.view_x({x = x, y = y}), came...
local lwtk = require("lwtk") local Application = lwtk.Application local Group = lwtk.Group local Widget = lwtk.Widget local Color = lwtk.Color local Row = lwtk.Row local Column = lwtk.Column local Space = lwtk.Space local newClass = lwtk.newClass local fillRect = lwtk.draw.fil...
-- Copyright (C) 2016-2018 DBot -- 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, modify, merge, publish, dist...
-- Utilities function AddMonster(components, x, y) local id = components:CreateEntity() local collider = components:CreateComponentOfType("collider", id) local health = components:CreateComponentOfType("health", id) local monster = components:CreateComponentOfType("monster", id) local position = co...
require('math') local GymClient = require("gym_http_client") local HttpClient = require("httpclient") -- Set up client base = 'http://127.0.0.1:5000' local client = GymClient.new(base) -- Set up environment env_id = 'Pendulum-v0' instance_id = client:env_create(env_id) action_space = client:env_action_space_info(env...
-------------------------- -- Custom awesome theme -- -------------------------- local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local home_dir =...
----------------------------------------------------------------------------- -- Leda Stage Lua API -- Author: Tiago Salmito, Noemi Rodriguez, Ana Lucia de Moura ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -...
-- Project: OiL - ORB in Lua: An Object Request Broker in Lua -- Release: 0.6 -- Title : CORBA Interface Indexer -- Authors: Renato Maia <maia@inf.puc-rio.br> local oo = require "oil.oo" local giop = require "oil.corba.giop" local IDLIndexer = require "oil.corba.idl.Indexer" function giop.ObjectOperations._is_a:impl...
ITEM.name = "ArcCW Attachment" ITEM.description = "" ITEM.category = "ArcCW Attachments" ITEM.model = "models/Items/BoxMRounds.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.isAttachment = true ITEM.isArcCW = true if (CLIENT) then function ITEM:CanStack() return true end function ITEM:CanTooltip(targetItem) return ...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { EscapeInfo = {}, MapPoint = { { AreaId = 1, AreaRadius = 100, AreaX = 9190, AreaY = 12279, AreaZ = ...
-- Raven is an addon to monitor auras and cooldowns, providing timer bars and icons plus helpful notifications. -- Conditions.lua contains routines to test auras and status info to generate notifications. -- Exported functions: -- Raven:InitializeCondition(name, condition) adds a condition (or overwrites a default on...
-- CONFIGURATION -- Activate on these AI modes. Valid keys are "off", "on", "combat", -- "patrol", and "fleetmove". ActivateWhen = { off = true, on = true, -- combat = true, patrol = true, fleetmove = true, } -- How often to run. At 1, it will run every update. At 10, -- it will run every 10th update. T...
-- Class: Gamepad -- This represents a single gamepad connected to the user's computer. This offers the -- usual functions to check on the status of buttons; you can also inspect other -- controls, like analog joysticks, by checking properties like <axes> and <hats>. -- (Incidentally, a hat is used for things like...
util.AddNetworkString("banking_commands"); util.AddNetworkString("OpenBankMenu"); local Player = FindMetaTable("Player"); local function bankMsg(ply, text) ply:Chat(Color(0, 0, 0, 255), "[", Color(255, 25, 25, 255), "Bank", Color(0, 0, 0, 255), "] ", Color(255, 255, 255, 255), text) end function Player:LoadBank() ...
-------------------------------------------------------------------------------- -- io.lua - Contains functions that extend the default io functions -------------------------------------------------------------------------------- require "lfs" -- source: http://stackoverflow.com/questions/4990990/lua-check-if-a-file-...
-- this is just a sample print("Actual APPLICATION file") print("Memory heap: "..node.heap()) print("") print("Status codes:") for k, v in pairs(updFB) do print(k, v) end print("") print("Going to sleep for 1 second") node.dsleep(1000000)
w, h = 1000, 400 -- Size of window bv = 200 -- Bullet velocity blim = 1 -- Bullet limit maxd = 900 -- Win condition lcol = {200, 70, 230} -- Left player colour rcol = {70, 230, 200} -- Right player colour
function OnDisconnect(a_Player) WEBLOGINFO(a_Player:GetName() .. " has left the game") end
function Mapfill_math(Map_ID, Map_Size_X, Map_Size_Y, Map_Size_Z) Radius_0 = 38 Radius_1 = 40 Radius_2 = 50 Material = 21 Genauigkeit = 0.0000000000001 Offset_X = Map_Size_X/2 Offset_Y = Map_Size_Y/2 Offset_Z = Map_Size_Z/2 function Equalation(X) --return math.tan(X/10)*4 --return X*X return math...
instrument { name = "True Strength Indicator", short_name = "TSI" } input_group { "front.ind.dpo.generalline", long = input (25, "Long", input.integer, 1, 250), short = input (13, "Short", input.integer, 1, 250), src_idx = input (inputs.close, "front.ind.source", input.string_selection, inputs....
--- --- Name: eclipse-mk/eclipse-mk_project.lua --- Purpose: Generate Eclipse CDT Makefile based '.project' file --- Author: Petr Kalandra --- Created: 2019/02/15 --- function premake.modules.eclipse_mk.project.generate(prj) premake.eol("\r\n") premake.indent("\t") premake.escaper(premake.mo...
local sString local t = LoadFont("Common normal") .. { InitCommand = function(self) self:zoom(0.3, maxwidth, 5 / 0.3) end } return t
function onCreate() makeLuaSprite('main', 'impostor/MainBG', -600, -300); setScrollFactor('main', 1, 1); makeLuaSprite('red', 'impostor/red', -1000, -500); setScrollFactor('red', 1, 1); scaleObject('red', 5, 5); makeLuaSprite('red1', 'impostor/red1', -1000, -500); setScrollFactor('red1', 1, 1); sc...
return {'goh','gohan','gohans'}
local mysql = require "kong.tools.mysql" local Errors = require "kong.dao.errors" local utils = require "kong.tools.utils" local cjson = require "cjson" local get_phase = ngx.get_phase local timer_at = ngx.timer.at local tostring = tostring local ngx_log = ngx.log local concat = table.concat local ipairs = ipairs loca...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local str_decode = require("string_decode") local stringstream = require("string_stream") lo...
-- Event notes hooks function onEvent(name, value1, value2) if name == 'bf Notes Move' then duration = tonumber(value1); if duration < 0 then duration = 0; end targetX = tonumber(value2); tX1 = defaultPlayerStrumX0 + targetX; tX2 = defaultPlayerStrumX1 + targetX; tX3 = defaultPlayerStrumX2 + targetX;...
--- author:totalwarANGEL current maintainer:totalwarANGEL v1 -- -- fügt resourcen aus eiem cost table zu einem player hinzu. function AddResourcesToPlayer(_PlayerID, _Resources) if _Resources[ResourceType.Gold] ~= nil then AddGold(_PlayerID, _Resources[ResourceType.Gold] or _Resources[ResourceType.GoldRa...
function print_r ( t ) local print_r_cache={} local function sub_print_r(t,indent) if (print_r_cache[tostring(t)]) then print(indent.."*"..tostring(t)) else print_r_cache[tostring(t)]=true if (type(t)=="table") then for pos,val in pairs(t) do if (type(val)=="table") then print...
--[[------------------------------------------------------ # osc test --]]------------------------------------------------------ package.path = './?.lua;'..package.path package.cpath = './?.so;' ..package.cpath local lub = require 'lub' local lut = require 'lut' local osc = require 'osc' local should =...
----------------------------------- -- Area: Gusgen Mines -- NPC: _5g2 (Door A) -- !pos -4.001 -42.4 -25.5 196 ----------------------------------- local ID = require("scripts/zones/Gusgen_Mines/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (...
local Class = require("Class") local AESC = Class("AES"); function AESC:ctor() self.N_ROW = 4; self.N_COL = 4; self.N_BLOCK = self.N_ROW * self.N_COL; self.N_MAX_ROUNDS = 14; self.KEY_SCHEDULE_BYTES = ((self.N_MAX_ROUNDS + 1) * self.N_BLOCK); self.key_sched = {}; self.round = 0; end function AESC:...
require("stdlib.string") require("stdlib.table") require("stdlib.math")
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author (zacharyenriquee@gmail.com). --]] ix.command.Add("ClearDecals", { description = "Clears all decals for all players.", adminOnly = true, OnRun = function(self, client) for k, v in pairs(player.GetAll()) do v:...
local args = ...; local entity = args.PiroGame.class('Entity'); function entity:initialize(x, y, rot, sx, sy, name, extra) -- print('Entity initialiation:', self, x, y, rot, sx, sy, name, extra); if (x == nil) then self.x = 0; else self.x = x; end if (y == nil) then self.y...
slot0 = class("GuildTechnologyPage", import("...base.GuildBasePage")) slot0.PAGE_DEV = 1 slot0.PAGE_UPGRADE = 2 slot0.PAGE_DEV_ITEM = 3 slot0.getTargetUI = function (slot0) return "TechnologyBluePage", "TechnologyRedPage" end slot0.OnLoaded = function (slot0) slot0.frame = slot0:findTF("frame") slot0.toggle = slot...