content
stringlengths
5
1.05M
local function find_tracepoints(filename) local f, err = io.open(filename, 'r') if not f then return nil, err end local tracepoints = {} local line_no = 1 for line in f:lines() do local trace_var = string.match(line, '--%s*trace:%s*([%w_]+)%s*$') if trace_var then tracepoints[#tracepoi...
local Players = game:GetService("Players") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Rodux = require(Modules.Packages.Rodux) local Cryo = require(Modules.Packages.Cryo) local TableUtilities = require(Modules.Common.TableUtilities) local mutedError = require(Modules.NotLApp.mutedErro...
slot0 = class("EquipmentItem") slot1 = 0.5 slot0.Ctor = function (slot0, slot1) slot0.go = slot1 slot0.bg = findTF(slot1, "frame/bg") slot0.mask = findTF(slot1, "frame/bg/mask") slot0.nameTF = findTF(slot1, "frame/bg/name"):GetComponent(typeof(Text)) slot0.newTF = findTF(slot1, "frame/bg/icon_bg/new") slot0.unlo...
local lu = require("luaunit") local Queue = require("lib.queue") TestQueue = {} function TestQueue:test_to_string() local queue = Queue:new() queue:push(1) queue:push("aei") queue:push("HAHA") lu.assertEquals(queue:to_string(), "1, aei, HAHA") end function TestQueue:test_pop() local queue = Q...
-- $Id: html.lua,v 1.2 2007-05-12 04:37:20 tclua Exp $ module(..., package.seeall) entity = { nbsp = " ", lt = "<", gt = ">", quot = "\"", amp = "&", } -- keep unknown entity as is setmetatable(entity, { __index = function (t, key) return "&" .. key .. ";" end }) tags = { font = {empty = false} ...
function switch(t) t.case = function (self,x) local f=self[x] or self.default if f then if type(f)=="function" then f(x,self) else error("case "..tostring(x).." not a function") end end end return t end a = switch { [1] = function (x) print(x,10) end, [2] = funct...
return { name = "james2doyle/cookie", version = "0.0.2", homepage = "https://github.com/james2doyle/lit-cookie", description = "Parse and serialize cookies", tags = { "cookie", "parse", "serialize" }, license = "MIT", author = { name = "James Doyle", email = "james2doyle@gmail.com" ...
fx_version 'cerulean' game 'gta5' author 'BRAZUCAS' contact '' client_scripts{ '@vrp/lib/utils.lua', 'config/config.lua', 'cliente/*.lua' } server_scripts{ '@vrp/lib/utils.lua', 'config/config.lua', 'servidor.lua' }
local lu = require 'luaunit' local openssl = require 'openssl' local pkcs7 = openssl.pkcs7 local helper = require 'helper' TestPKCS7 = {} function TestPKCS7:setUp() self.alg = 'sha1' self.dn = {{commonName = 'DEMO'}, {C = 'CN'}} self.digest = 'sha1WithRSAEncryption' end function TestPKCS7:testNew() local c...
-- look_brownsteel.lua drawing engine configuration file for Notion. if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { shadow_colour = "#404040", highlight_colour = "#707070", background_colour = "#505050", foreground_colour = "#a0a0a0", padding_pixels = 1, highlight...
local oo = require("oo") local ui = require("ui") local log = require("log") local event = require("event") local Button = oo.class("ui.Button", ui.Window) function Button.new(parent, text, x, y, w, h, self, klass) self = self or {} Button.super.new(parent, x, y, w or (#text+2), h or 1, self, klass o...
--- Simple 2D bin packing implementation for Lua. -- -- Packs different-sized rectangles into a rectangular container. This implementation -- solves the online bin packing problem where rectangles are inserted one at a time -- in random order. -- -- @module binpack -- @author Fabian Staacke -- @copyright 2019 -- @licen...
local function Npc_showDialog(id, desc, delay, duration, type) SGK.Action.DelayTime.Create(delay):OnComplete(function() LoadNpcDesc(id, desc, nil, type, duration) end) end local function Npc_move(obj, Vector, delay, is_shunyi) local x,y,z = Vector.x,Vector.y,Vector.z SGK.Action.DelayTime.Create(delay):OnCo...
local gauntlet_data = require "gauntlet_data" local deepcopy = require "deepcopy" local Backstab = { NAME = "Backstab", REMOVE_AFTER_ACTIVATION = 1, DOUBLE_RARITY = 1, } local PERCENTAGE_DAMAGE = 0.20 function Backstab:activate(current_round) gauntlet_data.backstab_percentage_damage = gauntlet_data....
object_tangible_tcg_series5_hangar_ships_black_sun_fighter_medium_01 = object_tangible_tcg_series5_hangar_ships_shared_black_sun_fighter_medium_01:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_black_sun_fighter_medium_01, "object/tangible/tcg/series5/hangar_ships/black_sun_fighter_mediu...
local beep = 0 local lines = {} local prompt = ": " local input_line = prompt local children = {} local note = 0 function audio_tick(channel) local channel_conf = "\00\00\00\00" if channel == 0 then if beep > 0 then beep = beep-1 if beep > 5 then note = math....
function onEvent(n,v1,v2) if n == "TweenSpin" then if Modchart then runTimer('tweenstop',0.35); -- bf notespin noteTweenAngle('A',4 , 360 , 0.35, "quintOut") noteTweenAngle('B',5 , 360 , 0.35, "quintOut") noteTweenAngle('C',6 , 360 , 0.35, "quintOut") noteTweenAngle('D',7 , 360 , 0.35, "qui...
local wibox = require("wibox") local awful = require("awful") local xbacklight = { brightness = "" } local widget = wibox.widget.textbox() function widget:init(beautiful) widget.beautiful = beautiful return widget end function widget:display() local padding_left = "" if tonumber(xbacklight.brightnes...
local module = {} module.history = {} module.temporaryPositions = {} local path = script.Parent.Parent local Enums = require(path.Enums) function module:Setup(server) module.server = server end function module:WritePlayerPositions(serverTime) local players = self.server:GetPlayers() local snapshot = {} ...
-- utils to create random keys -- copyright 2014 Samuel Baird MIT Licence local string = require('string') local math = require('math') local table = require('table') local os = require('os') local module = require('core.module') return module(function (random_key) math.randomseed(os.time()) function random_key....
a = "one string" b = string.gsub(a, "one", "another") print(a) print(b) a = "hello" print(#a) print(#"good byte") print("Hello " .. "World") print("result is " .. 3)
coa2_relay_guard = Creature:new { objectName = "@mob/creature_names:stormtrooper", randomNameType = NAME_STORMTROOPER, socialGroup = "imperial", faction = "imperial", level = 27, chanceHit = 0.37, damageMin = 260, damageMax = 270, baseXp = 2822, baseHAM = 8100, baseHAMmax = 9900, armor = 0, resists = {20,2...
local CemeteryConf = require "config.cemeteryConfig" local activityDesc = {} function activityDesc:Start(data) self:initData(data) self:initUi() end function activityDesc:initData(data) self.cemeteryCfg = CemeteryConf.Getteam_battle_conf(data.gid) end function activityDesc:initUi() self.view = CS.SGK...
if(GetRealmName() == "Zandalar Tribe")then WP_Database = { ["Ôrdi"] = "ST:829/99%SB:834/99%SM:1009/99%", ["Dangerous"] = "ST:794/99%SB:803/99%SM:1000/99%", ["Latham"] = "ST:808/99%SB:834/99%SM:1050/99%", ["Silkon"] = "LT:782/98%SB:798/99%SM:953/99%", ["Yallfolx"] = "ST:799/99%SB:818/99%SM:1049/99%", ["Strovix"] = "LT:7...
PLUGIN.name = "Employment" PLUGIN.author = "Adolphus" PLUGIN.description = "Adds a basic employment system using ID terminals to give paygrades and occupation names." ix.util.Include("sv_hooks.lua") ix.util.IncludeDir(PLUGIN.folder .. "/commands", true) ix.util.IncludeDir(PLUGIN.folder .. "/meta", true) local PLUGIN ...
-- For acc-lua only, does not get copied to final library or definitions. __source = function(name) end __states = function(name) end __allow = function(name) end __namespace = function(name) end ---@param cb function __post_cdef = function(cb) end __definitions = function() end __enum = function(params, values) end...
local bench = script and require(script.Parent.bench_support) or require("bench_support") local RANKS = "12345678" local FILES = "abcdefgh" local PieceSymbols = "PpRrNnBbQqKk" local UnicodePieces = {"♙", "♟", "♖", "♜", "♘", "♞", "♗", "♝", "♕", "♛", "♔", "♚"} local StartingFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNB...
-- ===================================================================== -- -- completion.lua - -- -- Created by liubang on 2021/09/04 21:05 -- Last Modified: 2021/09/04 21:05 -- -- ===================================================================== vim.opt.completeopt = { 'menuone', 'noselect' } -- Don't show the d...
--[[ Copyright (C) 2020 KFERMercer <KFER.Mercer@gmail.com> Copyright (C) 2020 [CTCGFW] Project OpenWRT THIS IS FREE SOFTWARE, LICENSED UNDER GPLv3 ]]-- m = Map("baidupcs-web") m.title = translate("BaiduPCS-Web") m.description = translate("Based on BaiduPCS-Go,you can use Baidu cloud efficiently") m:section(SimpleS...
-------------------------------------------------------------------------------- -- Реостатный контроллер (ЕКГ-17Б) -------------------------------------------------------------------------------- Metrostroi.DefineSystem("PKG_17B") function TRAIN_SYSTEM:Initialize() -- Rheostat configuration self.Configuration = { ...
function nodes.register_lootbox(name, def) minetest.register_node(name, { description = def.description, tiles = { "nodes_chest_top.png", "nodes_chest_bottom.png", "nodes_chest_side.png", "nodes_chest_side.png", "nodes_chest_back.png", "nodes_chest_front.png" }, groups = {unbreakable = 1, loadme = 1, ...
solution("simple-pt") language("C++") location(".build") targetdir(".build/bin") debugdir(path.getabsolute(".")) debugargs('"test/scene.xml" -w 500 -h 200 -s 128 -o scene.ppm') buildoptions({'-openmp'}) configurations({"Debug", "Release"}) platforms({"x32","x64"}) startproject("simple-pt") configuration("Debug") flag...
local varOne = KEYS[1] local varTwo = ARGV[1] local setName = 'points:'..varOne --[[ --]] local allString = "" local name=redis.call("smembers", setName) for _,key in ipairs(name) do local val = redis.call("HGET", key, "name") --io.write(val) allString = val..', '..allString end --[[ loc...
----------------------------------------- -- ID: 5294 -- Hume Rice Cake -- Enchantment: 60Min, Costume - Hume child (female) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onItemCheck(target) if not targe...
-- error.TbCodeInfo return { [6] = { code=6, key="EXAMPLE_FLASH", }, [7] = { code=7, key="EXAMPLE_MSGBOX", }, [8] = { code=8, key="EXAMPLE_DLG_OK", }, [9] = { code=9, key="EXAMPLE_DLG_OK_CANCEL", }, [100] = { code=100, key="ROLE_CREATE_NAME_INVALID_CHAR", }, [101] = { code=101, key="ROLE_CREATE_NA...
local vote_info = GM.VoteInfo local writers = vote_info.Networking.Writers local readers = vote_info.Networking.Readers function GM:SendVote(vote) if not self.m_VoteStarted then return false end if hook.Run("YAWDCanAddVote", LocalPlayer(), vote) == false then return false end local writer = writers[self.m_VoteType...
local utils = require("clangffi.utils") local types = require("clangffi.types") local mod = require("clang.mod") local clang = mod.libs.clang local CXCursorKind = mod.enums.CXCursorKind ---@class Variable ---@field name string ---@field type any local Variable = { set_type = function(self, t) self.type = t...
return { --> identifying information <-- id = 25; --> generic information <-- name = "Oak Shoulder Pads"; rarity = "Common"; image = "rbxassetid://2528902858"; description = "Wooden protection that's quite effective against soft targets."; itemType = "armor"; --> equipment information <-- isEquippable = tr...
--Generate Table of events --Portions of this code graciously liberated from Smart Trains and Custom Events Mods require 'stdlib/event/event' -- Generate the event names Event.on_player_opened = script.generate_event_name() Event.on_player_closed = script.generate_event_name() local function create_globals() glo...
local _G = getfenv(); local X_OFFSET = 0; local Y_OFFSET = 1; _G.ChatFrameEditBox:ClearAllPoints(); _G.ChatFrameEditBox:SetPoint("BOTTOMLEFT", _G.DEFAULT_CHAT_FRAME, "TOPLEFT", X_OFFSET, Y_OFFSET); _G.ChatFrameEditBox:SetPoint("BOTTOMRIGHT", _G.DEFAULT_CHAT_FRAME, "TOPRIGHT", X_OFFSET, Y_OFFSET);
local Heap = {} Heap.__index = Heap local function findLowest( a, b ) return a < b end local function newHeap( template, compare ) return setmetatable( { Data = {}, Compare = compare or findLowest, Size = 0 }, template ) end local function sortUp( heap, index ) if index <= 1 ...
local runners = {} function runners.lua(arg) local code, err = load('return ' .. arg, '@runcode') -- if failed, try without return if err then code, err = load(arg, '@runcode') end if err then print(err) return nil, err end local status, result = pcall(code) print(result) if status then return res...
-- Copyright (C) 2009 Google Inc. -- -- 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 agreed to in ...
local loveframes local tween local demo = {} function demo.createToolbar() local width = love.graphics.getWidth() local version = loveframes.version local stage = loveframes.stage local toolbar = loveframes.create("panel") toolbar:setSize(width, 35) toolbar:setPosition(0, 0) local info = loveframes.create("t...
object_intangible_pet_tcg_familiar_xwing_fighter_pcd = object_intangible_pet_shared_tcg_familiar_xwing_fighter_pcd:new { } ObjectTemplates:addTemplate(object_intangible_pet_tcg_familiar_xwing_fighter_pcd, "object/intangible/pet/tcg_familiar_xwing_fighter_pcd.iff")
local cqueues = require("cqueues") local http_request = require("http.request") local Process = require("luatika/process") local Server = {} local methods = {} local metatable = {} function metatable.__index(server, key) return methods[key] end function methods:spawn() self.process:spawn() end function me...
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet --------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2014, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 4 Feb 2015 by Daniel Barney ...
-- © 2015 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. local string_format = string.format ----------------------------------------------------------------------------- -- Build the status bar. do local function cb(event, ...
Events.Subscribe("TBB_Client_HUD_Team2_Points", function (text) MainHUD:CallEvent("TBB_HUD_Team2_Points", "Team2: " .. text) end) Events.Subscribe("TBB_Client_HUD_Team1_Points", function (text) MainHUD:CallEvent("TBB_HUD_Team1_Points", "Team1: " .. text) end) Events.Subscribe("TBB_Client_HUD_Timer", function...
--- -- @module BTHasMeleeWeapon -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Log = require( 'src.util.Log' ) local BTLeaf = require( 'src.characters.ai.behaviortree.leafs.BTLeaf' ) -- ---------------------------------------------...
require("prototypes.item.bow.bow-item") require("prototypes.item.bow.bow-recipe") require("prototypes.item.bow.bow-util") create_bow("游子弓", 30) create_bow("神臂弓", 36) create_bow("灵宝弓", 49) create_bow("万石弓", 64) create_bow("震天弓", 81) create_bow("射雕神弓", 100) create_bow("霸王弓", 150) create_bow("轩辕弓", 200) create_bow("落日弓",...
local a = redis.call('get', KEYS[1]) local b = redis.call('get', KEYS[2]) return a + b
workspace "dbe" configurations { "debug", "release" } group "extern" include "extern/assimp" include "extern/glad" include "extern/glfw" include "extern/imgui" include "extern/physfs" group "projects" include "engine" include "sbox" group ""
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eq = helpers.eq local eval = helpers.eval local funcs = helpers.funcs local meths = helpers.meths local exc_exec = helpers.exc_exec describe('printf()', function() before_each(clear) it('works with zero and %b', func...
--[[ ...
--[[ M1 Garand The most reliable and powerful production service rifle I have ever seen. Fires 8 .30-06 Springfield rifle rounds. --]] if script == nil then return end ModelName = "M1 Garand" AmmoType = ".30-06 Springfield" MagazineCapacity = 8 MagazineCapacityAdd = 0 Player = script:FindFirstChild("Player") ~= nil...
object_tangible_quest_empire_day_crash_site_02_crate_02_container = object_tangible_quest_empire_day_shared_crash_site_02_crate_02_container:new { } ObjectTemplates:addTemplate(object_tangible_quest_empire_day_crash_site_02_crate_02_container, "object/tangible/quest/empire_day/crash_site_02_crate_02_container.iff")
local completeLifecycleOrderTests = require(script:FindFirstAncestor("lifecycle").completeLifecycleOrderTests) return function() describe("file name", completeLifecycleOrderTests) end
function TrapHoleFilter(c) return FilterType(c,TYPE_TRAP) --and FilterType(c,TYPE_NORMAL) and(FilterSet(c,0x4c) or FilterSet(c,0x89)) end function TraptrixFilter(c) return bit32.band(c.type,TYPE_MONSTER)>0 and IsSetCode(c.setcode,0x108a) end function ArtifactFilter(c) return bit32.band(c.attribute,ATTRIBUTE...
---------------------------------------------------------------------------------- -- Total RP 3 -- Character page : Characteristics -- --------------------------------------------------------------------------- -- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) -- -- Licensed under the Apache Licen...
return require("null-ls.builtins").diagnostics.eslint.with({ name = "eslint_d", command = "eslint_d" })
-------------------------------- -- @module Label -- @extend SpriteBatchNode,LabelProtocol -- @parent_module cc -------------------------------- -- @function [parent=#Label] isClipMarginEnabled -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- @function [parent...
--- A Component that defines color information. -- Used primarily in a @{Brush} Component. -- @classmod Color local Base = require("vyzor.base") local ColorMode = require("vyzor.enum.color_mode") local Color = Base("Component", "Color") --- Color constructor. -- Expected arguments differ depending on mode. -- -- RGB...
name = "HP EV: Viridian Forest (near Viridian)" author = "Zip (Bleep)" description = [[This script will catch shiny or rare Pokemon and will train HP EV of your first Pokemon of your team in Viridian Forest.]] mpaName = "Viridian Forest" -- Change map name as you want. X = 39 -- Change the X value according to your ma...
concommand.Add("ghostban_setpos", function(ply) if !ply:IsAdmin() then return end GhostBan.setPos = ply:GetPos() + Vector(0,0,5) file.Write("ghostban_config.txt", util.TableToJSON(GhostBan)) ply:PrintMessage(HUD_PRINTCONSOLE,"Position set") end) concommand.Add("ghostban_unsetpos",function(ply) if !ply:IsAdmin() t...
-- 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 str_decode = require("string_decode") ValidFailRangeStr = class.class(KaitaiStruct) function ValidFailRangeStr:_i...
-- -- PianoRollUtilitiesView.lua -- if language() == "fr" then propertiesStr="Propriétés" eventsStr="Événements" else propertiesStr="Properties" eventsStr="Events" end
--- -- A test program that uses a mutex to control concurrent access -- to a function. --look for packages one folder up. package.path = package.path .. ";;;../../?.lua;../../?/init.lua" --require "strict" local lumen = require 'lumen' local sched = lumen.sched local mutex = lumen.mutex local mx = mutex.new() local...
object_intangible_beast_bm_krahbu = object_intangible_beast_shared_bm_krahbu:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_krahbu, "object/intangible/beast/bm_krahbu.iff")
-- -- returns parse-function, token-table, precendence table -- -- parse-function takes a string and returns a table of tokens -- where each token is a tuple with [1] being a token from the -- token-table, [2] any associated value and [3] the message -- byte offset of the token start. -- local tokens = { -- basic data ...
local ffi = require 'ffi' local header_file = "core.h" local qc = ffi.load('./lib_ab.so') local JSON = require "JSON" local file = io.open(header_file, "r") ffi.cdef(file:read("*all")) file:close() ffi.cdef([[ void * malloc(size_t size); void free(void *ptr); ]]) local fns = {} local function init_ab(config_file...
-- make sure the draggin framework is found package.path = package.path .. ';' .. os.getenv("DRAGGIN_FRAMEWORK") .. '/src/?.lua' -- makes output work better on most hosts, or when running through Sublime Text. io.stdout:setvbuf("no") local Draggin = require "draggin/draggin" local Display = require "draggin/display" ...
local K, C, L, _ = unpack(select(2, ...)) local unpack = unpack local select = select local floor = math.floor local collectgarbage = collectgarbage local print = print local GetNumAddOns, GetAddOnInfo, GetAddOnMemoryUsage = GetNumAddOns, GetAddOnInfo, GetAddOnMemoryUsage local CreateFrame = CreateFrame local IsAddOnL...
function stripchars(str, chrs) local s = str:gsub("["..chrs:gsub("%W","%%%1").."]", '') return s end print( stripchars( "She was a soul stripper. She took my heart!", "aei" ) ) --> Sh ws soul strppr. Sh took my hrt! print( stripchars( "She was a soul stripper. She took my heart!", "a-z" ) ) --> She ws soul strip...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local model = require "game.model.role_model" local config = require "game.template.arena" local timetool = require "include.timetool" local _M = model:extends() _M.class = "role.guid" _M.push_nam...
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local lmgtfy = {} local mattata = require('mattata') local url = require('socket.url') function lmgtfy:init() lmgtfy.commands = mattata.commands( self.info.username ):comman...
-- Quest module. Used for creating new quests for the player. require('constants') Quest = {} Quest.__index = Quest function truefn() return true end function falsefn() return false end function emptyfn() end -- Must be overridden on the table function Quest:quest_completion_condition_fn() return false end ...
--[[ module:ChatRoom author:DylanYang time:2021-02-18 22:38:25 ]] local User = require("patterns.behavioral.mediator.User") local super = require("patterns.behavioral.mediator.Mediator") local _M = Class("ChatRoom", super) local public = _M.public _M.isFirst = true _M.colleagues = {} function public:Crea...
local utils = require "src.utils" local themes = require "src.themes" local THEME = "default" local storage_path local images_folder local pencil_icon local app_image if utils.is_windows() then storage_path = ".\\storage_data.lua" images_folder = ".\\images" pencil_icon = images_folder.."\\"..themes[THEM...
local table = require('table') local Sequence = {} function Sequence:new() local o = {} setmetatable(o, self) self.__index = self self.count = 0 self.complete = 0 self.callbacks = {} self.stopped = true return o end function Sequence:cont(...) local fn function tickle(...) if self.stopped ...
--[[ Netherstorm -- Ethereum Avenger.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHe...
local helpers = require "spec.helpers" local PLUGIN_NAME = "referer" for _, strategy in helpers.each_strategy() do describe("Referer plugin (access) [#" .. strategy .. "]", function() local client lazy_setup(function() local bp = helpers.get_db_utils(strategy, nil, { PLUGIN_NAME }) do -- creat...
--[[ MIT License Copyright (c) 2022 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...
-- Copyright (C) 2018-2021 by KittenOS NEO contributors -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI...
--[[ Name: "sv_autorun.lua". Product: "kuroScript". --]] local MOUNT = MOUNT; -- Include some prefixed files. kuroScript.frame:IncludePrefixed("sh_autorun.lua"); -- Whether or not to only display typing notices when visible. kuroScript.config.Add("typing_visible_only", true, true); -- Called when a player starts ty...
math.randomseed(os.time()) local APAI = "Attempt to perform arithmetic with invalid type" -- Version conflict -- if not unpack then unpack = table.unpack end function runlib(line, elin, clin) local mathf = { abs = function(n) return math.abs(n) end , exp = function(n) return math.exp(n) end ,...
multiserver.on_joinplayer = {} multiserver.on_leaveplayer = {} multiserver.on_redirect_done = {} multiserver.on_msg = {} multiserver.alert = function(msg) multiserver.do_rpc("<-ALERT " .. msg, nil) end multiserver.get_default_server = function(cb) multiserver.do_rpc("<-GETDEFSRV", cb) end multiserver.get_player_co...
-- Created by AltiV (August 15th, 2018) -- Original Release "Issues" -- 1. Does not take inspiration from trees. Attempting to get any of their models crashes the client. -- 2. Retains particle effects from original hero. The vanilla Mischief skill does this as well, but -- it allows for less "strategic" usage of the ...
-- Lua stuff function onCreate() makeAnimatedLuaSprite('FRONT', 'Zardy2BG', -600, -200) luaSpriteAddAnimationByPrefix('FRONT', 'bop', 'BG', 24, true) scaleObject('FRONT', 0.9, 0.9); addLuaSprite('FRONT', false) end
function open_box(keys) local caster = keys.caster local box_number = tostring(keys.box_number) local table = _G.load_items[box_number] local count = table["count"] local number = RandomInt(1, count) local item_name = table[tostring(number)] local item = caster:AddItemByName(item_name) -...
require("ItemTweaker_Copy_CC"); --VILEM113APC --Mechanics TweakItem("Base.M113Tire1","DisplayCategory","Mechanics"); TweakItem("Base.M113Tire2","DisplayCategory","Mechanics"); TweakItem("Base.M113Tire3","DisplayCategory","Mechanics"); TweakItem("Base.OldM113Brake1","DisplayCategory","Mechanics"); TweakItem("Base.Norma...
--- settings settings = {} settings.Symbol = "$" --- Load the ini file into memory. function settings:load() local file = cIniFile() -- Try to read settings.ini file. if file:ReadFile(f:path() .. 'settings.ini') then f:log("Symbol: " .. file:GetValue("Coin", "Symbol")) self.Fee = file:GetValueSetF("C...
local awful = require "awful" local ruled = require "ruled" ruled.notification.connect_signal("request::rules", function() -- All notifications will match this rule. ruled.notification.append_rule { rule = {}, properties = { screen = awful.screen.preferred, implicit_time...
require 'image' require 'utils' local BatchIterator = torch.class('BatchIterator') function BatchIterator:__init(config, train_set, test_set) self.batch_size = config.batch_size or 128 self.pixel_means = config.pixel_means or {0, 0, 0} self.mr = config.mr self.train = {} self.test = {} sel...
-- Game information and data local Stats = {} Stats.__index = Stats function Stats:draw(players) for k, player in pairs(players) do local offset = 60 local line_space = 15 local fields = { PLAYER = player.name, HP = player.ship.integrity.."/"..player.ship.integr...
--銀河眼の残光竜 --Scripted by nekrozar function c100259029.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100259029,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,100259029) e1:SetCondition(...
local class = require 'middleclass' local lume = require 'lume' -- 基底クラス local Super = require 'Scene' -- クラス local Scene = class('Tavern', Super) -- 組み込み Scene:include(require 'stateful') -- 初期化 function Scene:initialize(t) Super.initialize(self) self.app = t.app or {} end -- 破棄 function Scene:destroy()...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] --[[ Contributor(s): ROSS <pootiswwe@gmail.com> --]] CW_RUSSIAN = Clockwork.l...
local gamestate = require("engine/application/gamestate") local flow = require("engine/application/flow") local menu_item = require("menu/menu_item") local game_session = require("progression/game_session") local painter = require("render/painter") local audio_data = require("resources/audio_data") local gameplay_dat...
return { version = "1.2", luaversion = "5.1", tiledversion = "1.2.4", orientation = "orthogonal", renderorder = "right-down", width = 30, height = 30, tilewidth = 32, tileheight = 32, nextlayerid = 5, nextobjectid = 4, properties = {}, tilesets = { { name = "conjunto_1", firstg...