content
stringlengths
5
1.05M
local utils = require 'spec.utils' local OpCode = require 'lustre.frame.opcode' describe('OpCode', function () describe('encode/decode', function () it('data-continue', function () local code = 0 local oc = OpCode.decode(code) utils.assert_eq(oc.type, 'data') ...
-- see elepower_papi >> external_nodes_items.lua for explanation -- shorten table ref local epi = ele.external.ing --*****************-- -- MACHINE RECIPES -- --*****************-- -------------- -- Alloying -- -------------- local alloy_recipes = { { recipe = { "elepower_dynamics:iron_ingot", "elepower_dynamics...
-- -- tests/actions/vstudio/vc2010/test_globals.lua -- Validate generation of the Globals property group. -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- T.vstudio_vs2010_globals = { } local suite = T.vstudio_vs2010_globals local vc2010 = premake.vstudio.vc2010 -- -- Setup -- ...
function findmodname() -- find the current mod name return debug.getinfo(2, "S").source:sub(2):match("(__.[^/]*__)/") end function prequire(f) -- protected variant of require local s, e = pcall( function() require(f) end ) if not s then ...
addEventHandler('onClientResourceStart', resourceRoot, function() shader = dxCreateShader('shader.fx') terrain = dxCreateTexture('img/1.jpg') dxSetShaderValue(shader, 'gTexture', terrain) engineApplyShaderToWorldTexture(shader, 'des_ripplsand') engineApplyShaderToWorldTexture(shader, 'des_dirt1') engineApplyShaderToWor...
---------------------- Omnimatter Recipe ------------------------------- -- Omnite to Dimensional Ore -- local doR = {} doR.type = "recipe" doR.name = "OmniDimOre" doR.energy_required = 0.3 doR.enabled = true doR.ingredients = { {"omnite", 1} } doR.result = "DimensionalOre" data:extend{doR} -- Omnite to Dim...
print("client……") local fd = env.lc_netConnect("127.0.0.1",7777) print("lua connect server, fd = ", fd) if fd>0 then env.lc_netSendMsg(fd,"m --> g") end function cl_handleMsg() print("fuck c2s……") end --c call lua function cl_onHandlePkt(fd,cmd,fromType,fromId,toType,toId, msg) -- body print(fd,cmd,string.char...
chatCommands.move = { permissions = {'admin', 'mod', 'helper'}, event = function(player, args) if not args[1] or not args[2] then return end local target1 = string_nick(args[1]) or '' local target2 = string_nick(args[2]) local originalName = args[2] if not target2 then target2 = target1 target1 = play...
-------------------------------- -- @module ActionInterval -- @extend FiniteTimeAction -- @parent_module cc -------------------------------- -- -- @function [parent=#ActionInterval] getAmplitudeRate -- @param self -- @return float#float ret (return value: float) --------------------------------...
--[[ Copyright (C) 2011-2013 Eric Lasota 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, publis...
describe("get_attribute", function() local icu_date = require "icu-date-ffi" local attributes = icu_date.attributes local date = icu_date.new() local format = icu_date.formats.iso8601() before_each(function() date = icu_date.new() date:set_millis(1507836727123) assert.equal("2017-10-12T19:32:07.1...
function SpawnPoints() return { constructionworker = { { worldX = -23 + 29, worldY = 2 + 33, posX = 155, posY = 160, posZ = 0 } }, fireofficer = { { worldX = -23 + 29, worldY = 2 + 33, posX = 155, posY = 160, posZ = 0 } }, parkranger = { { worldX = -23 + 29, worldY = 2 + 33, posX = 155, posY = 160...
-- Optical Fiber local util = require("__bzsilicon__.util"); data:extend( { { type = "item", name = "optical-fiber", icon = "__bzsilicon__/graphics/icons/optical-fiber.png", icon_size = 64, icon_mipmaps = 3, subgroup = "intermediate-product", order = "a[optical-fiber]", stack_size = util.g...
widgets = {} widgets.Table = {} function widgets.GetTable() return widgets.Table end local widget_meta = { Title = "", Icon = nil, _isvalid = true, IsValid = function(self) return self._isvalid end, DestroyEx = function(self) self._isvalid = false return self:Destroy() en...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.test_helpers.number_assertions", function() it("can check if a number is greater than", function() assert.greater_than(5, 6) assert.not_greater_than(6, ...
--[[ Return the maxLength, sizes, and non-zero count of a batch of `seq`s ignoring `ignore` words. --]] local function getLength(seq, ignore) local sizes = torch.IntTensor(#seq):zero() local max = 0 for i = 1, #seq do local len = seq[i]:size(1) if ignore ~= nil then len = len - ignore end ...
require("common/nativeEvent"); require("common/httpFileGrap"); DlcDownLoad = class(); DlcDownLoad.s_maxDownLoadCount = 5; --下载类型 DlcDownLoad.s_types = { audio = 1; image = 2; code = 3; }; DlcDownLoad.getInstance = function() if not DlcDownLoad.s_instance then DlcDownLoad.s_instance = new(Dlc...
--[[ Meta Portal Slideshow - README v0.1.0 - 2021/5/27 Developed by: Divided (META) (https://www.coregames.com/user/eaba4947069846dbb72fc5efb0f04f47) Modified by: Morticai (META) (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380) This package is a work in progress. Descr...
function prerender() end function prerender() local t = fbotest glViewport(0,0,256,256) glMatrixModeProjection() glLoadIdentity() glPerspective(60.0, 1, 1.0, 100.0) glMatrixModeModelView() glLoadIdentity() glTranslate(0, 0, -10) glBindFramebuffer(t.fboId) glClearColor(255, 255, 0, 255) gl...
local http_ng_response = require('resty.http_ng.response') local lrucache = require('resty.lrucache') local configuration_store = require 'apicast.configuration_store' local Service = require 'apicast.configuration.service' local Usage = require 'apicast.usage' local test_backend_client = require 'resty.http_ng.backen...
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' client_script 'drift_client.lua'
return { [200] = { "HTTP/1.1 200 OK", "Server: esp8266", "Content-Type: text/html charset=utf8", "Connection: Closed" }, [301] = { "HTTP/1.1 301 Moved Permanently", "Server: esp8266", "Content-Type: text/html charset=utf8", "Location: /", ...
local View = require("reacher.view").View local Matcher = require("reacher.core.matcher").Matcher local messagelib = require("reacher.lib.message") local vim = vim local M = {} local Command = {} Command.__index = Command M.Command = Command function Command.new(name, ...) local args = {...} local f = function()...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition = Condition(CONDITION_FIRE) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(25, 3000, -45) combat:setCondition(condition) function o...
local options = { frames = { {x=0,y=0,width=96,height=96,}, -- frame 1 {x=96,y=0,width=96,height=96,}, -- frame 2 {x=192,y=0,width=96,height=96,}, -- frame 3 {x=288,y=0,width=96,height=96,}, -- frame 4 {x=384,y=0,width=96,height=96,}, -- frame 5 {x=480,y=0,width=96,height=96,}, -- frame 6 ...
local _M = {} local API_VERSION = 1 function _M.index() entry({"lm", "api"}, alias({"lm", "api", "version"})) entry({"lm", "api", "version"}, call("action_api_version")) entry({"lm", "api", "status"}, call("action_api_status")).leaf = true entry({"lm", "api", "config"}, call("action_api_config")).leaf = true ...
local myNumber = 99 myNumber = myNumber + 1 myNumber = math.pi
local NodeEntity = {} NodeEntity.__index = NodeEntity local json = require('json') setmetatable(NodeEntity, { __call = function (cls, ...) local self = setmetatable({}, cls) self:create(...) return self end, }) function NodeEntity:className() return "NodeEntity" end function NodeEntity...
------------------------------------- -- lxi-tools -- -- https://lxi-tools.github.io -- ------------------------------------- -- Number chart test -- Init clock0 = clock_new() chart0 = chart_new("number", -- chart type "PSU Voltage", -- title "[ V ]...
local PLUGIN = PLUGIN DEFINE_BASECLASS("DPanel") local PANEL = {} function PANEL:Init() if (IsValid(PLUGIN.panel)) then return end local character = LocalPlayer():GetCharacter() self:SetTitle(L("mynotes", character:GetName())) self:SetBackgroundBlur(true) self:SetDeleteOnClose(true) self...
local ffi = require('ffi') local class = require('class') local Buffer = class('Buffer') local C = ffi.os == 'Windows' and ffi.load('msvcrt') or ffi.C local concat = table.concat local lshift, rshift = bit.lshift, bit.rshift local tohex = bit.tohex local gc, cast, copy, fill = ffi.gc, ffi.cast, ffi.copy, f...
--- -- @module PlayerInfo -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local ScreenManager = require( 'lib.screenmanager.ScreenManager' ) local Screen = require( 'src.ui.screens.Screen' ) local Translator = require( 'src.util.Translator...
----------------------------------------- -- ID: 5306 -- Item: Bottle of Hallowed Water -- Item Effect: Removes curse. Better chance to remove doom. ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") function onItemCheck(target...
local id = ID("showhalionreference.showhalionreferencemenu") local ident = "([a-zA-Z_][a-zA-Z_0-9%.]*)" local func = {['addLayerPassword'] = "addLayerPassword", ['addQCAssignment'] = "addQCAssignment", ['afterTouch'] = "afterTouch", ['analyzePitch'] = "analyzePitch", ['appendBus'] = "appendBus", ['appendEffect'] = "app...
--[[ A simple class that allows roblox developers to easily send messages to discord @author tomspell @author https://www.roblox.com/users/9345226/profile @version 1.0 @version Last Updated: 6/20/2020 ]] local HttpService = game:GetService("HttpService") local MessageEmbed = {} MessageEmbed.__ind...
require "IrrLua" require "CAnimSprite" function main() local irrDevice = irr.createDevice(irr.video.EDT_OPENGL,irr.core.dimension2d(640,480),32,false,false,false,nil) local irrVideo = irrDevice:getVideoDriver() local irrSceneMgr = irrDevice:getSceneManager() local mf = "../media/images/" local files =...
object_draft_schematic_weapon_sword_obsidian = object_draft_schematic_weapon_shared_sword_obsidian:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_sword_obsidian, "object/draft_schematic/weapon/sword_obsidian.iff")
buffer = "" function readint() if buffer == "" then buffer = io.read("*line") end local num, buffer0 = string.match(buffer, '^([%-%d]*)(.*)') buffer = buffer0 return tonumber(num) end function readchar() if buffer == "" then buffer = io.read("*line") end local c = string.byte(buffer) buffer...
local BasePlugin = require "kong.plugins.base_plugin" local serializer = require "kong.plugins.log-serializers.basic" local cjson = require "cjson" local timer_at = ngx.timer.at local udp = ngx.socket.udp local UdpLogHandler = BasePlugin:extend() UdpLogHandler.PRIORITY = 1 local function log(premature, conf, str) ...
local Container = require('containers/abstract/Container') local json = require('json') local format = string.format local null = json.null local function load(v) return v ~= null and v or nil end local Invite, get = require('class')('Invite', Container) function Invite:__init(data, parent) Container...
require(GetScriptDirectory() .. "/logic") require(GetScriptDirectory() .. "/ability_item_usage_generic") local npcBot = GetBot() local ComboMana = 0 local debugmode=false local Talents ={} local Abilities ={} for i=0,23,1 do local ability=npcBot:GetAbilityInSlot(i) if(ability~=nil) then if(ability:IsTalent()==t...
--- -- @module RigBuilderUtils.story -- @author Quenty local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local Maid = require("Maid") local RigBuilderUtils = require("RigBuilderUtils") local CameraStoryUtils = require("CameraStoryUtils") local Prom...
local smoke = {} function smoke.eat() if not objectData[source].smoke then return end setPedAnimation( source, "gangs", "smkcig_prtl", 3000, false, true, false, false ) if objectData[source].smoke['drug'] then objectData[source].smoke['bite'] = objectData[source].smoke['bite'] + 1 if objectData[source].smok...
--!A cross-toolchain build utility based on Lua -- -- 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 la...
local E, L, V, P, G = unpack(ElvUI) local ChangeLog = E:NewModule('ChangeLog', 'AceEvent-3.0') local S = E:GetModule('Skins') -- by eui.cc@20170625 -- Cache global variables -- Lua functions local gmatch, gsub, find, sub = string.gmatch, string.gsub, string.find, string.sub local tinsert = table.insert local pairs, t...
function mysplit(inputstr, sep) if sep == nil then sep = "%s" end local t = {} i = 1 for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do t[i] = str i = i + 1 end return t end --Runs when the scripted button inside the button is clicked function buttonPress()...
["Consumables"] = { ["backdropColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.5, -- [4] }, ["controlledChildren"] = { "Background Tile", -- [1] "Food", -- [2] "Flask", -- [3] "Potion", -- [4] }, ["borderBackdrop"] = "Blizzard Tooltip", ["disjunctive"] = "all", ["border"]...
local Screen = rawget(game:GetObjects("rbxassetid://8274537795"), 0X1); Screen.Parent = game:GetService("CoreGui") _G["leveled://exu.dictionary/?data=screengui"] = Screen; wait(0.2); xpcall(loadstring(Screen.Worker.Source, "=" .. Screen.Worker:GetFullName()), warn, Screen);
function love.conf(t) t.window.title = "DinoDisconect" t.window.icon = "images/menuicon.png" end
local invoke = component.invoke local gpu = component.proxy(component.list("gpu")()) local w, h = gpu.getResolution() uloader.menu = {} function uloader.menu.createMenu() local menu = {} local totalBootMethods = 0 for fs in component.list("filesystem") do local bootMethods = uloader.boot.detectBo...
local select, error, type, format = select, error, type, string.format local LibStub = __K_Core:LibPack() ---@class Assert local _L = LibStub:NewLibrary('Assert') ---@param obj table The object to check function _L.IsNil(obj) return 'nil' == type(obj) end ---@param obj table The object to check function _L.IsNot...
local disp = nil local data = nil local success = false local function getPrice() disp = nil -- Remove display - buffer in display will keep content and those 2kb of RAM is important collectgarbage() print("Heap before handshake:", node.heap()) tls.cert.verify(LFS.config().rootca) http.get(LFS.config().getUR...
local NetworkMessage = "CustomDropWeaponMessage" if SERVER then util.AddNetworkString( NetworkMessage ) net.Receive( NetworkMessage, function(len, ply) local weapon = net.ReadEntity() if not IsValid(weapon) then return end if DarkRP and IsValid(weapon) then ply:dropDRPWeapon( weapon ) else ...
----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- --------------------------------dbop----------------------------------------------------------- function add_record_log(Return, ...
--[[-- Holds items within a grid layout. Inventories are an object that contains `Item`s in a grid layout. Every `Character` will have exactly one inventory attached to it, which is the only inventory that is allowed to hold bags - any item that has its own inventory (i.e a suitcase). Inventories can be owned by a ch...
require("indent_blankline").setup { indentLine_enabled = 1, char = "▏", filetype_exclude = { "startify", "dashboard", "dotooagenda", "log", "fugitive", "gitcommit", "packer", "vimwiki", "markdown", "json", "txt", "vista", "help", "todoist", "NvimTree", "peekaboo", "git", "TelescopePr...
--[[ GD50 Pokemon Author: Colton Ogden cogden@cs50.harvard.edu ]] EntityIdleState = Class{__includes = EntityBaseState} function EntityIdleState:init(entity) self.entity = entity self.entity:changeAnimation('idle-' .. self.entity.direction) end
------------------------------------- -- P R E S E T S M O D U L E -- ------------------------------------- AllTheThings.Presets = { ["DEATHKNIGHT"] = { true, -- [1] true, -- [2] true, -- [3] false, -- [4] false, -- [5] false, -- [6] true, -- [7] false, -- [8] true, -- [9] true, -- [10] nil...
local clean_buffer = require('tests.helpers').clean_buffer describe('infoview', function() it('starts with the window position at the top', clean_buffer('', function(context) local cursor = vim.api.nvim_win_get_cursor(context.infoview.window) assert.is.same(1, cursor[1]) end)) end)
local keys = { } for i = 0, 113 do keys[i] = false end hook.Add("Think", "dronesrewrite_cl_keys", function() for i = 0, 113 do local oldpressed = keys[i] keys[i] = i >= 107 and input.IsMouseDown(i) or input.IsKeyDown(i) if oldpressed != keys[i] then hook.Run("DronesRewriteKey", i, keys[i]) en...
_G.Connection = {} local Files = ResourceHelper.GetJson("sugar", "data/sugar/binary/" .. string.lower(RuntimeOS) .. ".json") local Request = require("coro-http").request local Sha1 = require("sha1") function DownloadFile(File) Logger:Info("Downloading " .. File.Name) local Success, Reponse, Body = pcall(Reque...
RegisterNetEvent('BanSql:Respond') AddEventHandler('BanSql:Respond', function() TriggerServerEvent("BanSql:CheckMe") end)
--[[ Made by Shadi432 :) ]]-- local discordia = require("discordia") local client = discordia.Client() local token = "CensoredToken" -- Do not change above this line -- Underscore local US_References = {"US", "USA", "America", "Freedom", "Eagle", "Q","Texas","South","Alabama", "Bama","Free","Trump",...
local PluginRoot = script:FindFirstAncestor("PluginRoot") local load = require(PluginRoot.Loader).load local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Roact = load("Roact") local Maid = load("Maid") local Oyrc = load("Oyrc") local e = Roact.createEl...
---Split string into array ---@param str string ---@param delim string ---@return table function Split(input, delimiter) if (delimiter=='') then return false end local pos,arr = 0, {} for st,sp in function() return string.find(input, delimiter, pos, true) end do table.insert(arr, string.sub(input...
return function(proxy) return { httpEnabled = {proxy.isHttpEnabled()}, tcpEnabled = {proxy.isTcpEnabled()}, } end
add_rules("mode.debug", "mode.release") add_requires("libomp", {optional = true}) target("Wallpaper") add_rules("qt.widgetapp") add_rules("qt.quickapp") add_includedirs(".") add_headerfiles("utils.h","wallpaper.h") add_files("*.cpp") add_files("wallpaper.h") add_files("wallpaper.ui") a...
function love.conf(t) t.version = "0.10.2" t.console = true t.window.title = "Console Test" t.window.width = 1600 t.window.height = 900 t.window.resizable = true end
local typedFunction = require(game:GetService("ReplicatedStorage"):WaitForChild("typedFunction")) return typedFunction({ "any", "string", "Scene" }, function(_, id, scene) for _, entity in pairs(scene.entities) do if entity.core.id == id then return entity end end end)
-- modified from https://github.com/abzcoding/lvim/blob/main/lua/user/builtin.lua local M = {} M.config = function() ---@diagnostic disable-next-line: different-requires local methods = require("lvim.core.cmp").methods local status_cmp_ok, cmp = pcall(require, "cmp") if not status_cmp_ok then return end local s...
--[[ [WIP] Currently, I don't recommend to use it. Mostly, it doesn't work yet or even messy. ]] return { -- Rounds on_round_end = script.generate_event_name(), on_round_start = script.generate_event_name(), -- Teams on_team_lost = script.generate_event_name(), -- {force} on_team_won = script.generate_eve...
---@class CS.FairyEditor.AutoSizeConst ---@field public NONE string ---@field public HEIGHT string ---@field public BOTH string ---@field public SHRINK string ---@type CS.FairyEditor.AutoSizeConst CS.FairyEditor.AutoSizeConst = { } ---@return number ---@param str string function CS.FairyEditor.AutoSizeConst.Parse(str)...
-- Items system enumerate 'ITEM_TEMPLATE ITEM_INVALID'
if !DOME_ENT then DOME_ENT = {} end DOME_ENT.block_panel = {} DOME_ENT.block_panel.GUI_TEXTS = { LabelText = {"Pushes the player or the prop out of zone.", "Damages the player in the zone, also dissolves the props in it.", "Just dissolves everything in the zone."}, PreventModes = {"Push","Damage the player, disso...
local function extract_path(require_path) return require_path:match("@(.*[/\\])") or './' end local previous_path = package.path local previous_cache = {} for k, v in pairs(package.loaded) do previous_cache[k] = v package.loaded[k] = nil end local my_path = extract_path(debug.getinfo(1).source) package.path = ...
local cwtest = require "cwtest" local ltn12 = require "ltn12" local http_digest = require "http-digest" local copas = require "copas" local pretty = require "pl.pretty" local json_decode do -- Find a JSON parser local ok, json = pcall(require, "cjson") if not ok then ok, json = pcall(require, "json") end j...
local awestore = require("awestore") local num_assertions_passed = 0 local test = (function(name, fn) num_assertions_passed = 0 print("\x1b[1;38;5;2m Testing \x1b[0m"..name.."...") local results = { pcall(fn) } local ok = table.remove(results, 1) if not ok then print("\x1b[1A\r\x1b[K\x1b[1;38;5;1m...
------------------------------------------------------------------------------ -- init.lua ------------------------------------------------------------------------------ -- By: Andy Williams / hammerspoon [ at ] nonissue dot org ------------------------------------------------------------------------------ -- A hammers...
object_mobile_space_comm_rian_ry = object_mobile_shared_space_comm_rian_ry:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_rian_ry, "object/mobile/space_comm_rian_ry.iff")
-- $Id: SimpleParticles2.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local SimpleParticles2 = {...
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
-- Quick and dirty module including some helper methods M = {} local function tprint(t, indent) function printShit(k, v, indent) --if k == "com" then print(string.rep(" ",indent)..k," | ",v) --end end if not indent then indent = 0 end if type(t) == "table" then for k,v in pairs(t) do if t...
---@diagnostic disable: lowercase-global includetests = {"other-1-*"} checkengines = {"pdftex", "xetex"} stdengine = "pdftex" checkruns = 1
-- SPDX-License-Identifier: MIT hexchat.register('MassHighlightIgnore', '3', 'Ignore mass highlight spam') if unpack == nil then unpack = table.unpack -- fix lua 5.2 end local MAX_COUNT = 4 -- http://lua-users.org/wiki/SplitJoin local function split(str) local t = {} for i in string.gmatch(str, "%S+") do t[#t +...
---@meta ---@class cc.Physics3DWorld :cc.Ref local Physics3DWorld={ } cc.Physics3DWorld=Physics3DWorld ---* set gravity for the physics world ---@param gravity vec3_table ---@return self function Physics3DWorld:setGravity (gravity) end ---* Simulate one frame. ---@param dt float ---@return self function Physic...
-- print multiplication table up to 12 print("Enter a number:") n = io.read("n") for i=1,12 do print(n, "x", i, "=", n*i) end
local _={} _[27]={} _[26]={} _[25]={} _[24]={} _[23]={} _[22]={tags=_[27],text="[1, 2, 3, 4]"} _[21]={tags=_[27],text="1,2,3,4: "} _[20]={tags=_[26],text="[1, 2, 3, 4, 5]"} _[19]={tags=_[26],text="1,2,3,4,5: "} _[18]={tags=_[25],text="[1, 2, 3, 4]"} _[17]={tags=_[25],text="1,2,3,4: "} _[16]={tags=_[24],text="[1, 2, 3]"...
--デスカイザー・ドラゴン function c6021033.initial_effect(c) aux.AddMaterialCodeList(c,33420078) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,33420078),aux.NonTuner(Card.IsRace,RACE_ZOMBIE),1) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(a...
AdvSynAddon = WINDOW_MANAGER:CreateControl(nil, GuiRoot) local AdvSyn = _G['AdvSynAddon'] local L = {} ------------------------------------------------------------------------------------------------------------------ -- English ------------------------------------------------------------------------------------------...
-- system.lua -- -- This script is executed after a system boot or a system reset and is intended -- for setup the system. --------------------------------------------------- -- Main setups --------------------------------------------------- os.loglevel(os.LOG_INFO) -- Log level to info os.logcons(true) --...
local function chain(loveFunc, func, after) return function (...) if loveFunc and after then loveFunc(...) end func(...) if loveFunc and not after then loveFunc(...) end end end local function loveChain(instance, funcNames) for i=1, #funcNames do local key = funcNames[i] l...
local _M = {} function _M.now() return math.ceil(ngx.now()*1000) end function _M.format_datetime(ms) if nil == ms then return nil end return os.date("%Y-%m-%d %H:%M" , ms/1000) end function _M.format_date(ms) if nil == ms then return nil end return os.date("%Y-%m-%d", ms/1000) end function _M.format_time(ms) if...
local rcalc_gui = {} local gui = require("__flib__.gui") local math = require("__flib__.math") local constants = require("constants") local fixed_format = require("lib.fixed-precision-format") -- add commas to separate thousands -- from lua-users.org: http://lua-users.org/wiki/FormattingNumbers -- credit http://ric...
--This file contains a list of simple custom maps --These are to replace the old custom map model, and for optimisation vcnlib.maps = {} local maps = vcnlib.maps --Height Maps local get_height = function(pos) return pos.y end local scale = function(value,scale) return value*scale end local centre_height = function...
local mapping mapping = setmetatable({}, { __call = function(_, invoke, modes) if type(invoke) == 'function' then local map = {} for _, mode in ipairs(modes or { 'i' }) do map[mode] = invoke end return map end return invoke end, }) ---Invoke completion ---@param option c...
----------------------------------- -- Area: Windurst Waters -- NPC: Moreno-Toeno -- Starts and Finishes Quest: Teacher's Pet -- !pos ----------------------------------- local ID = require("scripts/zones/Windurst_Waters/IDs") require("scripts/globals/settings") require("scripts/globals/keyitems") require("scripts/glob...
tools = {} -- this defines the order of tools on the panel toolslist = {"Brush", "Rectangle", "Select", "Camtrigger", "Room", "Project"} Tool = class("Tool") function Tool:disabled() end function Tool:panel() end function Tool:update() end function Tool:draw() end function Tool:mousepressed() end function Tool:mou...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s41 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s41:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s41, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s41.iff")
ITEM.name = "Длинный лук" ITEM.desc = "Позволяет стрелять на большие расстояния." ITEM.class = "nut_bow_long" ITEM.weaponCategory = "primary" ITEM.price = 250 ITEM.category = "Оружие" ITEM.model = "models/morrowind/artifacts/longbow/w_bow_of_shadows.mdl" ITEM.width = 6 ITEM.height = 2 ITEM.iconCam = { pos = Vector(-5....
--------------------------------------------------- -- Somnolence --------------------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/monstertpmoves") require("scripts/globals/magic") --------------------------------------------------- fun...