content
stringlengths
5
1.05M
-- -- "declare" these two functions here, so the ide doesn't scream that they're unused function Random() end function MutexedWriter() end -- -- defining a function for cpp to call function Writings(n) for i = 1, 5 do Str = "\n[lua " Str = Str .. tostring(n) Str = Str .. " loop " St...
local RDMF = game:GetService("ServerScriptService"):WaitForChild("RDM") local RDM = require(RDMF:WaitForChild("MainModule"))(script) local Players = game:GetService("Players") local HttpService = game:GetService("HttpService") local Promise = RDM:Import("Promise") local baseUrl = "https://example.com/" local functi...
ix.currency.symbol = "" ix.currency.singular = "Union Token" ix.currency.plural = "Union Tokens" ix.config.SetDefault("scoreboardRecognition", true) ix.config.SetDefault("music", "music/vlvx_song25.mp3") ix.config.SetDefault("maxAttributes", 65) ix.config.Add("rationTokens", 35, "The amount of tokens that a person w...
local miniGameName = "inMemoria"; local miniGamePath = "miniGames/inMemoria/"; --utils:log(miniGameName, "Loaded"); local miniGameBase = require("miniGames.miniGameBase"); local scene = miniGameBase:newMiniGameScene(miniGameName); -- Game instructions. scene.instructions = "Hope your memory is good! Find as many mat...
local discordia = require("discordia") local endpoints = require('./endpoints') local enums = require('./enums') local f = string.format local Snowflake_m = discordia.class.classes.Snowflake local IA, IAgetters = discordia.class('Interaction', Snowflake_m) function IA:__init(data, parent) self._id = data.id self._pa...
-- VERSION 2022-01-04 -- DESCRIPTION -- -- This Lua filter for Pandoc converts LaTeX math with katex for insertion into the -- output document in a standalone manner. SVG output is in any of the available -- MathJax fonts. This is useful for server-side rendering. No Internet connection -- is required when genera...
-- _ _ _ _ -- /\ | | | | | | | | -- / \ | |_| | __ _ ___ ___| |__ __ _| |_ -- / /\ \| __| |/ _` / __| / __| '_ \ / _` | __| -- / ____ \ |_| | (_| \__ \ | (__| | | | (_| | |_ -- /_/ \_\__|_|\__,_|___/ \___|_| |_|\__,_|\__| -- ...
-- P51 - [练习 1.41] function double(f) return function (x) return f(f(x)) end end function inc(x) return x + 1 end print(double(double(double))(inc)(5)) -- 21
-- Soldiers ( Team F ) -- Officer mobs:register_mob("mobs_modern:moTFof", { -- animal, monster, npc name = "moTFofficer", type = "armyf", "tf", owner = "PresidentF", -- aggressive, shoots shuriken damage = 3, attack_type = "shoot", shoot_interval = 1, arrow = "mobs_modern:bullet", shoot_offs...
-- Fri Apr 24 21:09:39 2020 -- (c) Alexander Veledzimovich -- game HOT -- lua<5.3 local unpack = table.unpack or unpack local utf8 = require('utf8') local hot = require('lib/lovhot') local Cell = dofile('game/obj/cell.lua') local Tnt = dofile('game/obj/tnt.lua') local Game = {tag='Game', objects={}, nobj=0, stop=fal...
-- print immediately io.stdout:setvbuf("no") require("player") require("nonplayer") require("constants") require("util") require("files") function loadCurrentLevel() if currentLevel >= largest then gameOver = true playerTurn = false else playerPrimary, playerSecondary, primaryEnd, secondaryEnd, enemies...
local share_record_layout= { name="share_record_layout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shareBg",type=1,typeName="Image",time=71116589,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth...
local vim = vim local main = require('symbols-outline') local util = vim.lsp.util local M = {} local function get_hover_params(node, winnr) local bufnr = vim.api.nvim_win_get_buf(winnr) local fn = "file://" .. vim.api.nvim_buf_get_name(bufnr) return { textDocument = {uri = fn}, position ...
local root = script.Parent.Parent local G = require(root.G) local module = {} local inputService = game:GetService("UserInputService") local positionX = math.huge local positionZ = math.huge local strength = 1 local size = 4 module.Start = function() local mouse = G.plugin:GetMouse() local widgetButton = G.class...
return function(t) local shuffled = {} for i, v in ipairs(t) do shuffled[i] = v end for i = 1, #t do local a, b = math.random(#t), math.random(#t) t[a], t[b] = t[b], t[a] end return shuffled end
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:23' 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...
module ("s2s", package.seeall) assist_struct = {} assist_struct.DEBUG = 0 require ("s2s.help") require ("s2s_c") require ("s2s.api") require ("s2s.rmod_api") require ("s2s.load_files") require ("s2s.auto") require ("s2s.cqa_compare") function s2s:s2s_launch (args, aproject) local help = s2s:init_help() local lpr...
local myname, ns = ... local merge = ns.merge local path = ns.path merge(ns.points[862], { -- Zuldazar [43607740] = {["label"] = "Time Rift", ["cont"] = true, timeRift = true,}, [45003900] = {["label"] = "Time Rift", ["cont"] = true, timeRift = true,}, [54006000] = {["label"] = "Time Rift", ["cont...
KytheraReferencePoint = { type = "KytheraReferencePoint", Editor = { Icon = "TagPoint.bmp", }, Properties = { sTag = "", sTag2 = "", }, } ------------------------------------------------------- function KytheraReferencePoint:OnSpawn() self:SetFlags(ENTITY_FLAG_SERVER_ONLY,0); end ------------------------...
local path = select(1,...):sub(1,-(string.len("textbox")+1)) local class = require("Libraries.middleclass") local base = require(path..".base") --Button with a text label local textbox = class("DiskOS.GUI.textbox",base) --Default Values: textbox.static.text = "Text" textbox.static.align = "left" --Create a new text...
--simple 2d shapes require "common" config=make_config({ {"n",1,type="int",min=0,max=15}, },config) local size=STATE.size img_buf=make_image_buffer(size[1],size[2]) function resize( w,h ) img_buf=make_image_buffer(w,h) size=STATE.size end function count_lines( s ) local n=0 for i in s:gmatch("\n") do n=n+1 end ...
local Object = require 'classic' local function push (t, ...) local pushed = select('#', ...) for i = 1, pushed do t[t.n + i] = select(i, ...) end return t.n + pushed end local function clean (t, n) for i = (t.n + 1), n do t[i] = nil end end local EventEmitter = Object:extend() function EventE...
local api = vim.api local fn = vim.fn local queries = require'nvim-treesitter.query' local parsers = require'nvim-treesitter.parsers' local health_start = vim.fn["health#report_start"] local health_ok = vim.fn['health#report_ok'] local health_warn = vim.fn['health#report_warn'] local health_error = vim.fn['health#rep...
function isPrime(n) sn = math.floor(math.sqrt(n)) for i=2,sn do if n % i == 0 then return false end end return true end print("Primes.") c = 0 for i=2,1000000 do if isPrime(i) then c = c + 1 end end print("Done.",c)
object_tangible_dungeon_echobase_key = object_tangible_dungeon_shared_echobase_key:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_echobase_key, "object/tangible/dungeon/echobase_key.iff")
do local _ = { ['fake-selection-box-2x2'] = { flags = {'placeable-off-grid', 'not-on-map'}, name = 'fake-selection-box-2x2', arrow_picture = {filename = '__core__/graphics/empty.png', width = 1, priority = 'low', height = 1}, circle_picture = { ...
-- Really stupid simple loading of secrets into `hs.settings`. -- Example: -- Secrets = require("secrets") -- -- Expect secrets file to contain json table data. i.e. { "p": "SecretPassCode!¡" } -- local secrets = hs.settings.get("secrets")["p"] module = {} module.start = function() local filename = ".secrets.json" ...
-- special thanks for Shaday, who made these translations --Dominique120 edits: I made some statements to sound more formal and appropriate as well as correcting a few words that were not translated. I also added a few notes for future translators to keep in mind. return { name = "es", charset = "cp1252", langu...
if SERVER then include("hszs_gen_stones/init.lua") end
--[[ Language Localization: zhCN Translated by: Junxian <junxian1121@hotmail.com> ]] WIM.AddLocale("zhCN", { ["WIM (WoW Instant Messenger)"] = true, ["_Description"] = "WIM 的设计是为了让你在魔兽世界中与人交谈时有更亲切的介面,在这个视窗中您可以自订所有的设定。若您有任何的问题,欢迎各位到官方网页提供意见。\n网址:http://www.WIMAddon.com", ["_DemoText"] = "这个视窗可以设定对...
TOOL.Category = "NPC Tools 2" TOOL.Name = "NPC Follower" TOOL.Command = nil TOOL.ConfigName = "" if(CLIENT) then TOOL.Information = { { name = "left" }, { name = "right" }, { name = "reload" } } language.Add("tool.npctool_follower.name","NPC Follower") language.Add("tool.npctool_follower.desc","M...
local DebugLog = require('klib/utils/dlog') local dlog = DebugLog.new() --debug.Level = Debug.Level dlog.level = DebugLog.Level.DEBUG dlog.threshold = DebugLog.Level.DEBUG return dlog
local PANEL = {}; function PANEL:GrabItem ( dontScrewAlpha ) if (GAMEMODE.PlayerItems[self.itemID]) then self.itemTable = ITEM_DATABASE[GAMEMODE.PlayerItems[self.itemID].ID]; self.actualItem = GAMEMODE.PlayerItems[self.itemID]; if (!self.ModelPanel) then //Msg("create\n") self.ModelPanel = vgui.Crea...
---@class CS.FairyEditor.View.FavoritesView : CS.FairyGUI.GComponent ---@type CS.FairyEditor.View.FavoritesView CS.FairyEditor.View.FavoritesView = { } ---@return CS.FairyEditor.View.FavoritesView function CS.FairyEditor.View.FavoritesView.New() end return CS.FairyEditor.View.FavoritesView
-- --------------------------------------------- -- MOUSE -- --------------------------------------------- root.buttons(awful.util.table.join( awful.button({ }, 3, function () menu_side:toggle() end) --awful.button({ }, 4, awful.tag.viewprev), --awful.button({ }, 5, awful.tag.viewnext) )) clientbuttons = awful.u...
ITEM.name = "Ecologist startup kit (OOC)" ITEM.description= "This item is supposed to be given to new ecologists. Contains some items and cash for starting out." ITEM.model = "models/lostsignalproject/items/misc/backpack.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.flag = "A" ITEM.itemsForcedDrop = { {"detectorecho"}, {"...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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...
local luagbk = require('gbk') -- temp local MessageGroup = { message = '', } function MessageGroup:new(o) o = o or {} setmetatable(o, self) self.__index = self self.message = '' return o end function MessageGroup:msg(text) self.message = '' .. text return self end function MessageGroup:send() --print (se...
-- KEYS[1]: full path of entry local full_path = KEYS[1] -- KEYS[2]: dir of the entry local dir_list_key = KEYS[2] -- ARGV[1]: content of the entry local entry = ARGV[1] -- ARGV[2]: TTL of the entry local ttlSec = tonumber(ARGV[2]) -- ARGV[3]: isSuperLargeDirectory local isSuperLargeDirectory = ARGV[3] == "1" -- ARGV[...
require "Assets.LuaScripts.Modulus.ECS.LComponent.Const.LCompType" require "Assets.LuaScripts.Modulus.ECS.LComponent.Const.LoadStatus" require "Assets.LuaScripts.Modulus.ECS.LComponent.Base.LComponent" require "Assets.LuaScripts.Modulus.ECS.LComponent.Factory.__init" require "Assets.LuaScripts.Modulus.ECS.LComponent....
--lune/base/OutputDepend.lns local _moduleObj = {} local __mod__ = '@lune.@base.@OutputDepend' local _lune = {} if _lune6 then _lune = _lune6 end function _lune.loadModule( mod ) if __luneScript then return __luneScript:loadModule( mod ) end return require( mod ) end function _lune.__isInstanceOf( o...
-- Created by Elfansoer --[[ ]] -------------------------------------------------------------------------------- modifier_talent = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_talent:IsHidden() return true end function modifier_talen...
local colors = require('colors') local resolutionEngine = require('resolutionEngine') local rectangleEngine = require('rectangleEngine') local proto = require('proto') local scaleF = resolutionEngine.scaleFloat local stripes = proto.object:extend({ paint = function (self) local width, height = resolutionEngine....
require("./init")(function(...) do --- something end end)
local pathJoin = require('pathjoin').pathJoin ---@type discordia local discordia = require('discordia') ---@type typed local typed = require('typed') local uv = require('uv') local fs = require('fs') local new_fs_event = uv.new_fs_event local configValidation = typed.Schema('CommandUtil.config') --; TODO :field('a...
data:extend({ { type = "double-setting", name = "lepp_light_size_factor", order = "aa", setting_type = "startup", default_value = 1, -- default size = 40 equal to a a small lamp on medium pole minimum_value = 0, -- 0 = don't scale, use small light everywhere maximum_value = 100, ...
local dx,dz dx,dz = 1,0 local tx,ty,tz tx,ty,tz = 32,32,32 local x,y,z,i,j function putrot(tx,y,tz,dx,dz,x,z,bidx) minecraft.settile_announce(tx+dx*x+dz*z,y,tz+dz*x-dx*z,bidx,-1) end for y=0,23 do for i=0,3 do minecraft.settile_announce(tx-2,ty+y,tz+i-2,tile.BRICK,-1) minecraft.settile_announce(tx+2,ty+y,tz+2...
#!/usr/bin/env th ---------------------------------------------------------------------- -- This script presents how to run some scenarios. -- Configuration is loaded from "../../examples/config/<SCENARIO_NAME>.cfg" file. -- <episodes> number of episodes are played. -- Random combination of buttons is chosen for every...
object_tangible_component_armor_base_armor_segment_enhancement_bone = object_tangible_component_armor_shared_base_armor_segment_enhancement_bone:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_base_armor_segment_enhancement_bone, "object/tangible/component/armor/base_armor_segment_enhancement_bone.i...
local _, ns = ... local Search = LibStub('CustomSearch-1.0') local Filters = {} function ns.Find(target, search) return Search(target, search, Filters) end Filters.abstract = { tags = {'n', 'name', 't', 'title', 'c', 'comment'}, canSearch = function(self, operator, search) return not operator and search end, ...
local PANEL = {} function PANEL:Init() self.Hover = false self.Pressed = false self.Text = "No-Title Button" self.ClickSound = "buttons/lightswitch2.wav" self.ClickEnable = true self.HoverSound = "common/bugreporter_succeeded.wav" self.HoverEnable = false self:SetText("") self.SetText = function(s,t...
-- begin MySQL module local MySQL = {} MySQL.debug = false local dpaths = {} local tasks = {} --[[ local function tick() SetTimeout(1, function() -- protect errors from breaking the loop SetTimeout(1000, tick) local rmtasks = {} for id,cb in pairs(tasks) do local r = exports.vrp_mysql:checkTask...
nscp.print('Loading test script...') nscp.execute('version') v = nscp.getSetting('NSCA Agent', 'interval', 'broken') nscp.print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') nscp.print('value: ' .. v) nscp.print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') nscp.register('check_something', 'something') nscp.register('lu...
data:extend( { { type = "bool-setting", name = "luacom-indent-code", setting_type = "runtime-global", default_value = true, order = "a1", per_user = false } } ) data:extend( { { type = "bool-setting", name = "luacom-colorize-code", setting_type = "runtime-global", default_value = ...
require('gitsigns').setup { numhl = false, linehl = false, keymaps = { noremap = true, ['n ]c'] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns.actions\".next_hunk()<CR>'"}, ['n [c'] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns.actions\".prev_hunk()<CR>'"...
--[[ desc: STRING, a lib that encapsulate string function. author: Musoucrow since: 2018-8-13 alter: 2018-12-31 ]]-- local _UTF8 = require("utf8") local _CONFIG = require("config") ---@class Lib.STRING local _STRING = { colorMap = { w = {255, 255, 255, 255}, --white W = {255, 255, 230, 255}, ...
require("fudrill.prototypes.entity-updates")
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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...
f = SimpleForm("esurfing-client") f.reset = false f.submit = false f:append(Template("esurfing-client/log")) return f
module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") function test() local complete = 0 process.nextTick(function () complete = complete + 1 process.nextTick(function () complete = complete + 1 process.nextTick(function () complete = complete + 1 end) end) end) setT...
#!/usr/local/bin/lua print("hello")
local class = require('opus.class') local Util = require('opus.util') local TableDB = class() function TableDB:init(args) local defaults = { fileName = '', dirty = false, data = { }, } Util.merge(defaults, args) Util.merge(self, defaults) end function TableDB:load() local t = Util.readTable(self.fileName)...
LinkLuaModifier("modifier_frantic", "components/modifiers/mutation/modifier_frantic.lua", LUA_MODIFIER_MOTION_NONE ) ListenToGameEvent('game_rules_state_change', function(keys) -- Minor delay is required as the "custom game difficulty" is not initialized on the exact frame of game rule state change Timers:CreateTime...
selfcall = {} function selfcall:call(...) return self, ... end return function(...) return selfcall:call(...) end,{1,2,3},{selfcall,1,2,3}
--Gör en koll om real x oxh real y är utanför "skärmen" och anpassa --Skapa en karta och gör så den ritas ut istället för prickar. --Skapa ett spel där man ska matcha en Voronoi mot en annan, där lagret man ändrar är halvtransparent. Generera en grid random med 2 eller fler punkter och sen generera en till som ligger...
:ls --Made by LuisPambid-- --Please dont ever edit this script-- local player=game.Players.LocalPlayer local char=player.Character repeat wait() until player and char local torso=char.Torso local head=char.Head local human=char.Humanoid local hat for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end ...
-- This script is modified from https://github.com/liuzhuang13/DenseNet -- the DenseNet model hyper-parameters are hard-coded here. require 'nn' require 'cunn' require 'cudnn' require 'models/DenseConnectLayer' require 'patch/SpatialConvolutionFullGrad' require 'patch/BatchNormalizationFullGrad' require 'pa...
local core = require "core" local command = require "core.command" local keymap = require "core.keymap" local console = require "plugins.console" command.add(nil, { ["project:build-project"] = function() core.log "Building..." console.run { command = ".\\build.bat", file_pattern = "(.*):(%d+):(%d...
-- create node Hue require "moon.sg" local node = moon.sg.new_node("sg_hue") if node then node:set_pos(moon.mouse.get_position()) end
local Config = require("config") local Switch = Config.switch local Option = Config.option local Flag = Config.flag local Utils = require("utils") local Lib = require("lib") local Log = require("log") local red = ngx.ctx.red local hostConfig = Utils.get_config(Flag.base,red) local uriConfig = Utils.get_config(Flag.cus...
return function() -- Basic setup require 'torch' require 'paths' require 'optim' require 'nn' require 'nngraph' require 'cunn' require 'cudnn' local opts = require 'opts' local opt = opts.parse(arg) -- Make torch settings torch.setdefaulttensortype('torch.FloatTensor') torch.setnumthreads(1) ...
require("utils/lib_loader") LOG_ENABLED = false NUM_FRIENDS = 60 if LOG_ENABLED then log("\n\n\nbegin script logging:") end local tap_third_sticker = retry(stickers_tap_sticker("THREE")) local function select_eighths_sticker_coll() for i = 1, 8, 1 do greeting_dialog_sticker_list_scroll_right_once() end ...
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_LoreText C_LoreText = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_LoreText.RequestLoreTextForCampaignID) ---@p...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') ENT.WireDebugName = "ConsoleScreen" function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self.Inputs = WireLib.CreateInputs(self, { "CharX", "CharY", "Char (ASC...
do for i = 1, 7 do print(i) if i > 2 then break end end print("end") end
ITEM.name = "Snowflake" ITEM.model ="models/nasca/etherealsrp_artifacts/snowflake.mdl" ITEM.description = "This artifact features blue spikes." ITEM.longdesc = "Also colloquially known as 'Radioactive Snowflake'. At first glance, this artifact resembles a white Kolobok. Some claim that it actually is a form of Kolobok ...
local component = require("component") for address, name in component.list() do io.write(name .. "\t" .. address .. "\n") end
-- clearing for the overflow prevention update global.OnTheWay = {} global.FlyingItems = {} for catapultID, properties in pairs(global.CatapultList) do properties.ImAlreadyTracer = "traced" end for PlayerID, PlayerLuaData in pairs(game.players) do global.AllPlayers[PlayerID] = {} end settings.global["RTOverflowComp"]...
package("mfast") set_homepage("https://github.com/objectcomputing/mFAST") set_description("High performance C++ encoding/decoding library for FAST (FIX Adapted for STreaming) protocol.") set_license("BSD-3-Clause") add_urls("https://github.com/objectcomputing/mFAST/archive/refs/tags/$(version).zip", ...
-- According to the IMAP specification, when trying to write a message -- to a non-existent mailbox, the server must send a hint to the client, -- whether it should create the mailbox and try again or not. However -- some IMAP servers don't follow the specification and don't send the -- correct response code to the cli...
local player = "LocalPlayer" local Character = game.Players[player].Character it = Instance.new vt = Vector3.new cf = CFrame.new euler = CFrame.fromEulerAnglesXYZ angles = CFrame.Angles mr = math.rad local decreaseatk = 0 local decreasedef = 0 local decreasemvmt = 0 local Anim = "Idle" local Effects = {} local armorpar...
-- VERSION = Scaler 1.0.1 -- DESCRIPTION = loaf 2d screen render scaler -- URL = http://github.com/danomatika/loaf-ingredients -- LICENSE = -- Copyright (c) 2017 Dan Wilcox <danomatika@gmail.com> MIT License. -- For information on usage and redistribution, and for a DISCLAIMER OF ALL -- WARRANTIES...
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local command = require "core.command" config.plugins.indent_convert = { update_indent_type = true -- set to false to avoid updating the document indent type } local zero_pattern = _VERSION == "Lua 5.1" and "%z" or "\0"...
local xe = require 'xemsg' xe.NN_POLLIN = 1 xe.NN_POLLOUT = 1 local px = require "parxe" local predicted1 = assert(arg[1], "Needs a CSV predicted file as first argument") local predicted2 = arg[2] local test_csv = arg[3] or "answer_key.csv" if predicted2 == "nil" then predicted2 = nil end if test_csv == "nil" then te...
local KM_GroundMounts, KM_WaterGroundMounts, KM_UnderWaterMounts, KM_NoSkillMounts, KM_FlyingMounts, KM_AQMounts, MMFavGround, MMFavFlying, hasSeahorse local KM_QueueCheck, KMDebug, KM_nofly = true, false, false local KMname = "\124c0c5f94ffKMount: \124cffffffff"; local KMnamedb = "\124c9021cfffKMount debug: \124cfffff...
return function() filter {} add_dependencies { "vendor:msgpack-c" } end
local Tunnel = module("_core", "lib/Tunnel") local Proxy = module("_core", "lib/Proxy") API = Proxy.getInterface("API") cAPI = Tunnel.getInterface("API") local r = { ["trooper"] = {payment = 3000}, ["sheriff"] = {payment = 4500}, ["medic"] = {payment = 2500, xp = 0.0} -- ["vip1"] = {payment = 0, xp = 1.10}, -- [...
function pp(t)local tt={}local i=0 for k,v in pairs(t)do i=i+1 tt[i]=tostring(k).." = "..tostring(v)end table.sort(tt)print(table.concat(tt,"\n"))end function ls()pp(file.list())end
local diff = { ["axisDiffs"] = { ["a2003cdnil"] = { ["name"] = "Rudder", ["removed"] = { [1] = { ["key"] = "JOY_RZ", }, }, }, ["a2004cdnil"] = { ["name"] = "Thrust", ["removed"] = { [1] = { ["key"] = "JOY_Z", }, }, }, }, ["keyDiffs"] = { ["d3002pnilu3002cd13vd1vp...
function start(song) -- do nothing end function update(elapsed) if difficulty == 2 then if curBeat>=704 and curBeat<832 then local currentBeat = (songPos / 1000)*(bpm/60) for i=0,7 do setActorX(_G['defaultStrum'..i..'X'] + 10 * math.sin((currentBeat + i*0.25) * math.pi), i) setActorY(_G['defaultSt...
--[[ --=====================================================================================================-- Script Name: Sync Your Files (utility), for SAPP (PC & CE) Implementing API version: 1.11.0.0 Description: This script will sync your <filename>.<ext> file with a remote server. An automatic...
ccp = CCPoint ccsize = CCSize ccrect = CCRect cc.p = CCPoint cc.size = CCSize cc.rect = CCRect cc.c3 = ccc3 cc.c4 = ccc4 cc.c4f = ccc4f cc.TOUCH_IGNORE = 0 cc.TOUCH_BEGAN = 1 cc.TOUCH_BEGAN_SWALLOWS = cc.TOUCH_BEGAN cc.TOUCH_BEGAN_NO_SWALLOWS = 2 cc.TOUCH_MOVED =...
object_draft_schematic_weapon_loot_corestrike = object_draft_schematic_weapon_shared_loot_corestrike:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_loot_corestrike, "object/draft_schematic/weapon/loot_corestrike.iff")
----------------------------------- -- Area: Bastok Mines -- NPC: Maymunah -- Guild Merchant NPC: Alchemy Guild -- !pos 108.738 5.017 -3.129 234 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop"); local ID = require("scripts/zones/Bastok_Mines/IDs"); --------------...
--[[-- Simple demonstration of the Luna-Love-Scene paradigm. ]] local class = require "lib.middleclass.middleclass" local Lna = require "llscn" --[[ Example actor. Performs "hello world" until signalled on cue to perform "bye world". ]] local HiWorld = class("HiWorld", Lna.Actor) function HiWorld:initialize() ...
-- Since we added hero-turrets as a hidden optional dependency, -- force regeneration of the boostInfo table local cu = require "control-tunion" cu.UpdateBlockList()
local Player = require 'objects.player' local Lizard = require 'objects.lizard' function cafe.load() player = Player(0, 0) liz = Lizard(32, 32) canv = cafe.Texture(160, 95, 3) a = cafe.Audio("assets/Som.wav") a:volume(0.2) a:play() end function cafe.update(dt) player:update(dt) liz:upda...
local lgi = require 'lgi' local Gtk = lgi.Gtk local textview = Gtk.TextView {} local popover local popover_box = Gtk.Box { margin = 20, orientation = 'HORIZONTAL', Gtk.Entry {}, Gtk.Button { label = 'Change' } } local popover_box_sc = popover_box:get_style_context() popover_box_sc:add_class('linked')...
pg = pg or {} pg.enemy_data_statistics_213 = { [12400330] = { cannon = 36, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 20004, air = 86, rarity = 1, dodge = 9, torpedo = 0, durability_growth = 65600, antiaircraft = 134, reload_growth = 0, dodge_growth = 96, hit_...
--[[------------------------------------------------------ dub.Function ------------ ... --]]------------------------------------------------------ require 'lubyk' local should = test.Suite('dub.Function') local ins = dub.Inspector { doc_dir = 'test/tmp', INPUT = 'test/fixtures/simple/include', } -- Te...