content
stringlengths
5
1.05M
----------------------------------- -- Area: Caedarva Mire -- NPC: qm9 -- Involved in quest: The Wayward Automation -- !pos 129 1.396 -631 79 ----------------------------------- local ID = require("scripts/zones/Caedarva_Mire/IDs"); require("scripts/globals/quests"); function onTrade(player,npc,trade) end; function...
return { ["id"]=304, ["debug"]=false, ["variables"]={ }, ["nodes"]={ [1]={ ["uuid"]="3ec1876f6cad4655aaefb5dfea6aed49", ["Type"]="Root", ["mark"]="", ["links"]={ [1]={ ["child"]="b4846265634e4c999dac86cb19a2f1b9", ["weight"]=0, }, }, }, [2]={ ["uuid"]="b4846265634e4c999dac...
local baseline = SCREEN_HEIGHT*0.39 local meterheight = SCREEN_HEIGHT*0.75 local notes = GAMESTATE:GetCurrentSteps(pn):GetRadarValues(pn):GetValue(0) local progress = 0 local maxcombo = 0 local percent local passflag = 0 local target = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).TargetGoal local targ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner ENT.SyncTable = { "EnableBVEmer","Ticker","KAH","KAHk","ALS","ALSk","FDepot","PassScheme","EnableBV","DisableBV","Ring","R_Program2","R_Announcer","R_Line","R_Emer","R_Program1", "...
rule { outs = {}, ins = {}, cmds = {} } rule { outs = "a", ins = "b", cmds = "c", dirs = "d" }
-- Code here --
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Trial of the King", 994, 708) if not mod then return end -- Xin the Weaponmaster, Haiyan the Unstoppable, Ming the Cunning, Kuai the Brute mod:RegisterEnableMob(61884, 61445, 6144...
local magic = {} local log = require('nvim-magic._log') magic.backends = {} -- should be set during setup() local function default_config() return { backends = { default = require('nvim-magic-openai').new(), }, use_default_keymap = true, } end function magic.version() return '0.3.2-dev' end function ma...
local COLOR_DIV = cat.COLOR_DIV function cat.color_rgba(r,g,b,a) return r * COLOR_DIV,g * COLOR_DIV,b * COLOR_DIV,a * COLOR_DIV end function cat.color_hsv(h,s,v,a) a = a or 255 if s <= 0 then return v,v,v end h, s, v = h/256*6, s/255, v/255 local c = v*s local x = (1-math.abs((h%2)-1))*c l...
local K, C, L = unpack(select(2, ...)) if C.Skins.MinimapButtons ~= true or C.Minimap.Enable ~= true then return end local match = string.match local select = select local find = string.find local unpack = unpack -- Skin addons icons on minimap local buttons = { "GameTimeFrame", "GatherMatePin", "HandyNotesPin", ...
#!/usr/bin/lua package.path = "../src/?.lua;" .. package.path local epnf = require( "epnf" ) local nan, inf = 0/0, 1/0 -- luacheck: ignore _ENV protofile message import pkg enum extend option service -- luacheck: ignore messagefield ignore extensions enumfield fieldoption msgoptionv rpc local pg = epnf.define( func...
---@diagnostic disable: undefined-global -- language specific higlights local lush = require("lush") local base = require("lush_jsx.base") local M = {} M = lush(function() return { javascriptreactBraces({ base.LushJSXRedBold }), javascriptreactFunction({ base.LushJSXAquaItalicBold }), javascriptreactIdentifier...
--- Utility methods for JSON -- @module JSONUtils local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local HttpService = game:GetService("HttpService") local Promise = require("Promise") local JSONUtils = {} function JSONUtils.jsonDecode(str) if type(str) ~= "string" then re...
-------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod is licensed under the terms of the MIT license reproduced below. -- This means that Lmod is free software and can be used for both academic -...
local rankMineBottomView = require(ViewPath.."hall/ranklist/rankMineBottomView"); local ranklist_pin_map = require("qnFiles/qnPlist/hall/ranklist_pin") local RankMineBottomView = class(CommonGameLayer, false); local h_index = 0; local getIndex = function(self) h_index = h_index + 1; return h_index; end Rank...
-- Copyright (C) 2013 Piotr Gaertig -- Naive file storage implementation for each valid chunk status code "201 Created" is returned. -- Upload module has no contact with a backend. The client uploading the file should call the backend -- after successfully submitting last chunk of file. Then the backend should look fo...
-- highlight.lua hl = require('utils').highlight -- Make background transparent hl('Normal', 'NONE', nil, 'NONE', nil, true) hl('NonText', 'NONE', nil, 'NONE', nil, true) -- -- -- set color of 80 char width column hl('ColorColumn', '#303030', nil, '0', nil, true) -- -- -- change color of cursor line hl('CursorLine',...
--This script contains common functions that are used in CRQs: -- [GENIVI] SDL must retrieve the value of 'menuIcon' and 'menuTitle' parameters from .ini file --How to use: --1. local testCasesForMenuIconMenuTitleParameters = require('user_modules/shared_testcases/testCasesForMenuIconMenuTitleParameters') local comm...
--region CXXX.lua --Author : jefflwq --Date : 2015/2/28 --说明 : CXXX 类 --endregion using "Joop" namespace "System" { class "CXXX" -- : CBase { CXXX = function(self, ...) --self.super(...) --other code end, } }
--require("compat-5.1") System=luanet.System WebClient=System.Net.WebClient StreamReader=System.IO.StreamReader Math=System.Math print(Math:Pow(2,3)) myWebClient = WebClient() myStream = myWebClient:OpenRead(arg[1]) sr = StreamReader(myStream) line=sr:ReadLine() repeat print(line) line=sr:ReadLine() until not l...
QBCore = nil TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end) QBCore.Functions.CreateUseableItem('bag', function(source, item) local src = source local User = QBCore.Functions.GetPlayer(src) if User.Functions.GetItemByName('bagkey').amount >= 1 then TriggerClientEvent("wht:cantaac",...
include("shared.lua") local firePar = "fire_large_01" PrecacheParticleSystem(firePar) game.AddParticles("particles/fire_01.pcf") function ENT:Think() if LocalPlayer():GetPos():DistToSqr(self:GetPos()) > 15000000 then return end if self.particleCreated then return end self.particleCreated = true ParticleEffectAttac...
local config = require 'conf' local BaseGui = require 'src.gui.BaseGui' local Escape = require 'src.gui.overlays.Escape' local Death = require 'src.gui.overlays.Death' local PlayerInventory = require 'src.gui.overlays.PlayerInventory' local Player = require 'src.Player' local ClassLookup = require 'src.class.ClassLook...
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Marc...
--[[ AscendScripting Script - This software is provided as free and open source by the staff of The AscendScripting Team.This script was written and is protected by the GPL v2. The following script was released by a AscendScripting Staff Member. Please give credit where credit is due, if modifying, redistributing and/...
data:extend({ { type = "recipe", name = "bone-bullets", enabled = false, energy_required = 5, ingredients = {{"meat-bones", 10}}, result = "bone-bullets" }, { type = "ammo", name = "bone-bullets", icon = "__TheyreMadeOutofMeat__/graphic...
-- MIT License -- Copyright (c) 2018 Christian Wahl -- 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, ...
local status_ok, reference = pcall(require, "nice-reference") if not status_ok then return end reference.setup({ anchor = "NW", -- Popup position anchor relative = "cursor", -- Popup relative position row = 1, -- Popup x position col = 0, -- Popup y position border = "double", -- Popup borderst...
choices = { "Strength", "Dexterity", "Endurance", "Perception", "Intellect", "Wisdom" } function on_activate(parent, ability) local cb = ability:create_callback(parent) cb:set_on_menu_select_fn("menu_select") local level = parent:ability_level(ability) local menu = game:create_menu("Select an attri...
local RunService = game:GetService("RunService") local CollectionService = game:GetService("CollectionService") local MinkowskiSumInstance = require(script.Parent.MinkowskiSumInstance) local TerrainModule = require(script.Parent.TerrainCollision) local module = {} module.hullRecords = {} module.dynamicRecords = {} l...
local EVTButtonPosition = 0; local EVTButtonX = 0; local EVTButtonY = 0; EVTButtonPulsing = false; local EVTButtonLocked = true; --checks if you have a pending invite, if not, opens calendar frame function EVTButton_OnClick() if EVTButtonPulsing then EVT_ShowNextInvite(); else EVT_Toggle(); end end --makes ini...
--- Describes a location -- @classmod Location local class = require('classes/class') local prototype = require('prototypes/prototype') require('prototypes/serializable') local Location = {} -- region serializable function Location:serialize() return { name = self.name, description = self.description, c...
let storage = {} let a4 = #storage.name + 1 let a = 123.45 + 2 + #storage.name + tonumber('123') + "aaa" + 1 let b = 123.45 + 2 + #storage.name + tonumber('123') + 1
return { -- Packer can manage itself as an optional plugin {'wbthomason/packer.nvim', opt = true}, -- Improve performance { 'lewis6991/impatient.nvim', config = "require('impatient')", }, -- Color scheme -- { -- 'IMOKURI/challenger-deep-theme-vim', -- -- con...
--- -- FDMM Command Center Module. -- @module FDMM_CommandCenter env.info("---FDMM_CommandCenter Start---") require('Territory/FDMM_Facility') --- FDMM command center module. fdmm.commandCenter = {} do -- FDMMCommandCenter --- Command center class that manages an command center facility in a territory, which acts...
--[[ TheNexusAvenger Project for fetching resources in ReplicatedStorage. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local NexusProject = require(ReplicatedStorage:WaitForChild("External"):WaitForChild("NexusProject")) --Create the project. local Project = NexusProject.new(ReplicatedStorag...
-- Return if there's nothing to add on to if ( !util ) then return end if ( CLIENT ) then include( "util/worldpicker.lua" ) end --[[--------------------------------------------------------- Name: IsValidPhysicsObject Params: <ent> <num> Desc: Returns true if physics object is valid, false if not ----------...
slot0 = class("BackyardEffectMgr") slot0.Ctor = function (slot0, slot1) slot0.effectContains = slot1 slot0.effects = {} slot0.counts = {} end slot0.applyEffect = function (slot0, slot1) if slot0.effects[slot1] then slot0.counts[slot1] = (slot0.counts[slot1] or 0) + 1 return end PoolMgr.GetInstance():GetPr...
local AST = require("lunar.ast") local SyntaxKind = require("lunar.ast.syntax_kind") local BaseTranspiler = require("lunar.compiler.codegen.base_transpiler") local Transpiler = setmetatable({}, { __index = BaseTranspiler, }) Transpiler.__index = setmetatable({}, BaseTranspiler) function Transpiler.new(ast) return T...
local animations = require "character.animations" local rules = require "scripts.rules" local Character = require "character.character" local BountyHunter = Character:new() function BountyHunter:new(o, control) o = o or Character:new(o, control) setmetatable(o, self) self.__index = self return o end functio...
local ABP_PlayerName = nil; local ABP_SpellBookNameToId = {}; local ABP_InventoryItemNameToId = {}; local ABP_BagItemNameToId = {}; local MAX_ACTIONS = 144; function ABP_OnLoad() this:RegisterEvent("VARIABLES_LOADED"); SLASH_ABP1 = "/ABP"; SlashCmdList["ABP"] = function(msg) ABP_SlashCommand(msg); ...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local quest_files = moonpie.utility.files.find("assets/quests/", "lua$", "_spec.lua$") local quests = moonpie.collections.list:new() for _, v in ipairs(quest_files) do if strin...
-- Call with return values local function a(a, b) return a+b end local function b() return 1, 2 end print(a(b())) print(a(1, b()))
EFFECT.Mat = Material("effects/select_ring") function EFFECT:Init(data) local size = 8 self:SetCollisionBounds(Vector(-size, -size, -size), Vector(size, size, size)) local Pos = data:GetOrigin() + data:GetNormal() * 2 self:SetPos(Pos) -- This 0.01 is a hack.. to prevent the angle being weird and messing up w...
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[4.9.8]binary data[parent:] --- ---@class OF_ParamBinary --- ---[4.9.8]name string --- ---@field name string --- ---[4.9.8]binray width --- ---@field width int --- ---[4.9.8]binray height --- ---@field height int --- ---[4.9.8]binra...
local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear = helpers.clear local exec = helpers.exec local feed = helpers.feed before_each(clear) describe('statusline', function() local screen before_each(function() screen = Screen.new(50, 7...
modifier_take_damage = class(Modifier) LinkLuaModifier("modifier_take_damage", modifier_take_damage) function modifier_take_damage:OnCreated () --Debug.Log('I was created? Cool!') end function modifier_take_damage:OnAttached() self:AddTimer(0.5,"0.5s timer") if(self:GetCaster():GetId() == self:GetParent():GetId()...
Notifier = {} function Notifier:child() self.__index = self return setmetatable({ base = self }, self) end function Notifier:new() self.__index = self return setmetatable({}, self) end function Notifier:notify_results(results) error('notify_results is not implemented') end return Notifier
module 'mock' local enumSpawnMethod = _ENUM_V { 'root', 'sibling', 'child', 'parent_sibling' } CLASS: ProtoSpawner ( Component ) :MODEL{ Field 'proto' :asset('proto'); Field 'spawnName' :string(); Field 'showIcon' :boolean(); '----'; Field 'copyLoc' :boolean(); Field 'cop...
--[[ Manager.lua Plugin manager UI support. --]] local Manager, dbg = Object:newClass{ className = 'Manager' } --- Constructor for extending class. -- function Manager:newClass( t ) return Object.newClass( self, t ) end --- Constructor for new instance. -- function Manager:new( t ) ...
-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function lure.rom.newInlineBoxObject( pParamTable ) local self = lure.rom.newBoxObject( {nodeType=1, boxType=2, formatingContext=2, nodeDesc="ROMInlineBoxNode"} ) --===============================================================...
return { name = "attack_or_patrol", desc = "demo hahaha", parent_name = "", keys = { { name = "OriginPosition", desc = "", is_static = false, type = 5, type_class_name = "", }, { name = "TargetActor", ...
modifier_template = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_template:IsHidden() return false end function modifier_template:IsDebuff() return false end function modifier_template:IsStunDebuff() return false end function modif...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local usage = require("program.snabbmark.README_inc") local basic_apps = require("apps.basic.basic_apps") local pci = require("lib.hardware.pci") local ethernet = require("lib.protocol.ethernet")...
bSecure.Steam = {}
import "CoreLibs/object" import "CoreLibs/graphics" import "CoreLibs/sprites" import "CoreLibs/timer" local menu = import "ui.lua" local State = import "game_state.lua" local gfx = playdate.graphics local state = State.read() local function render(view) gfx.clear(gfx.kColorWhite) if not view then return e...
---- Copyright(c) Cragon. All rights reserved. -- --ForestPartyCommon {} -- --function ForestPartyCommon:new(o, com_common) -- o = o or {} -- setmetatable(o, self) -- self.__index = self -- self.BetCountDownSound = "ForestPartyBetCountDown" -- self.ComCommon = com_common -- self.ComBanker = self.ComCo...
object_mobile_dressed_meatlump_hideout_male_04 = object_mobile_shared_dressed_meatlump_hideout_male_04:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_hideout_male_04, "object/mobile/dressed_meatlump_hideout_male_04.iff")
local Path = require "plenary.path" local path = Path.path describe("Path", function() it("should find valid files", function() local p = Path:new "README.md" assert(p.filename == "README.md", p.filename) assert.are.same(p.filename, "README.md") end) describe("absolute", function() it(".absolute...
#!/usr/bin/env luajit local ENABLE_LOG = false -- Mesh Wizard for Team THOR -- Accumulate lidar readings into an image for mesh viewing -- (c) Stephen McGill, Seung Joon Yi, 2013, 2014 dofile'../include.lua' local libMesh = require'libMesh' local si = require'simple_ipc' local mpack = require'msgpack.MessagePack'.pack ...
--[[--------------------------------------------------------------------------- Messages ---------------------------------------------------------------------------]] local function ccTell(ply, args) local target = DarkRP.findPlayer(args[1]) if target then local msg = "" for n = 2, #args do ...
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialize...
-- ?? helps with all the warnings spam local vim = vim local utils = require('rust-tools.utils.utils') local M = {} local function get_params() return vim.lsp.util.make_position_params() end local latest_buf_id = nil -- parse the lines from result to get a list of the desirable output -- Example: -- // Recursiv...
---@class CS.UnityEngine.AnimatorControllerParameter ---@field public name string ---@field public nameHash number ---@field public type number ---@field public defaultFloat number ---@field public defaultInt number ---@field public defaultBool boolean ---@type CS.UnityEngine.AnimatorControllerParameter CS.UnityEngine...
----------------------------------- -- Area: Dynamis-Xarcabard ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/dynamis") require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.DYNAMIS_XARCABARD] = { text = { ...
-- Copyright 2016 Yat Hin Wong local raycast = {} local camera = {} local rsin, rcos -- ray sine and cosine local function tableConcat(t1, t2) for i=1, #t2 do t1[#t1+1] = t2[i] end return t1 end -- finds the next grid intersection local function step(rise, run, x, y, inverted) if run == 0 then...
local json = require('arken.json') local url = require('arken.net.url') local test = {} test.should_return_table_of_parse = function() local result = url.parseQuery("val1=123&val2=strval") assert(type(result) == 'table') assert(result.val1 == '123', json.encode(result)) assert(result.val2 == 'strval', json.en...
hslk_conf = function(conf) F6_CONF_SET(conf) end hslk_ability = function(_v) _v = F6V_A(_v) _v._id = SLK_ID(_v) SLK_GO_SET(_v) return _v end hslk_ability_empty = function(_v) _v._parent = "Aamk" _v._type = "empty" _v.levels = _v.levels or 1 _v.hero = _v.hero or 0 local data = {...
--world quest tracker object local WorldQuestTracker = WorldQuestTrackerAddon if (not WorldQuestTracker) then return end --framework local DF = _G ["DetailsFramework"] if (not DF) then print ("|cFFFFAA00World Quest Tracker: framework not found, if you just installed or updated the addon, please restart your client...
do local _class_0 local _base_0 = { get = function(self, x, y) return self.tiles[x][y] end, add_actor = function(self, actor) local id = self:_id() actor.id = id actor.grid = self self.actors[id] = actor local tile = self.tiles[actor.x][actor.y] tile:insert(acto...
local t = Def.ActorFrame { Def.Sprite { Texture = NOTESKIN:GetPath("_down", "tap mine"), Frames = Sprite.LinearFrames(8, 1) } } return t
-------------------------------------------------------------------------------- -- Handler.......... : onLimitFPS -- Author........... : -- Description...... : -------------------------------------------------------------------------------- ------------------------------------------------------------------------...
Ambi.Cache = Ambi.Cache or {} -- --------------------------------------------------------------------------------------------------------------------------------------------------------- local Gen = Ambi.General local Fetch, isstring, isnumber, print, file = http.Fetch, isstring, isnumber, print, file local crc = util...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by thsheep. --- DateTime: 2018/5/22 上午9:25 --- 这个lua脚本是为了代替集群中不支持的multi事务;保证在获取的同时删除 --- local result = redis.call('zrange', KEYS[1], 0, 0) local element = result[1] if element then redis.call('zremrangebyrank', KEYS[1], 0, 0) return element ...
-- tilemapper v0.0.5 -- Depends on: -- - json.lua (https://github.com/rxi/json.lua) -- - classic.lua (https://github.com/rxi/classic) -- - bump.lua (https://github.com/kikito/bump.lua) local json = require("lib.json") local Tilemapper = Class:extend() local Layer = Class:extend() function Layer:new(tiles, name) ...
local STRINGS = GLOBAL.STRINGS local strings = { CHARACTER_ABOUTME = { miotan = "Mio cames from another world, where nightmare is everywhere.", }, CHARACTER_BIOS = { miotan = { { title = "Birthday", desc = "July 17" }, { title = "Favorite Food", desc = "None" } } }, CHARACTER_...
TOOL.Category = "Lite Tools" TOOL.Name = "#tool.lite_rotate.name" TOOL.Information = { {name = "left"}, {name = "reload"} } TOOL.ClientConVar["pitch"] = "0" TOOL.ClientConVar["yaw"] = "0" TOOL.ClientConVar["roll"] = "0" TOOL.ClientConVar["undo"] = "1" if CLIENT then language.Add("tool.lite_rotate.name", "Rotate")...
function onEvent(name, value1, value2) if name == 'Phantom Chica' then if value1 == '1' then objectPlayAnimation('cha', 'idc', true) playSound('jumpscare', 1) doTweenAlpha('chacha', 'cha', 0, 2, 'linear') end end end
function RemoveItemFromTable(tbl, keyname, keyvalue) for i,v in ipairs(tbl) do if (v[keyname] == keyvalue) then -- If the current table category name is the one we are looking for then -- remove the category from the table. table.remove(tbl, i); break; end end end RemoveItemFromTable(...
---This module provides some kafka functions local kafka ---produces a kafka message ---@param broker string brokers address ---@param topic string name of the topic ---@param key any key of the new message. If not specified a random key is generated ---@param message any the message. If not specified a random message...
--[[ $ | networking EXPORTS sock ]] require'$' sock = require'sock' thread = sock.thread resume = sock.resume suspend = sock.suspend transfer = sock.transfer cofinish = sock.cofinish cowrap = sock.cowrap yield = sock.yield currentthread = sock.currentthread t...
local addon, private = ... local strsplit = private.strsplit local strtrim = private.strtrim -- Rift v.2.6 changed the artifact IDs for fished up artifact sets local OLD_SETS = { ["Driftwood"] = { ["I49FE125D94B450C6,EED062C24C308EF2,,,,,,"] = true, ["I0DC44F90D0BC4787,BB7605865B44A983,,,,,,"] = true, ["I6C66F1C03...
local Concord = require("lib.concord") local Cpml = require("lib.cpml") local Controllable = Concord.component(function(e) e.velocity = Cpml.vec3(0, 0, 0) e.turnVelocity = Cpml.vec3(0, 0, 0) e.friction = 10 e.turnFriction = 50 end) return Controllable
return {InstCall_regs_readAddress=805339136,InstCall_regs_len=1024,InstCall_regs_writeAddress=805347328}
-- NOT DISABLEABLE data:extend({ { type = "recipe-category", name = "tsp-evaporation" }, { type = "recipe-category", name = "tsp-recycle-solar-items" }, { type = "recipe", name = "tsp-molten-salt", enabled = false, category = "crafting-with-fluid", energy_required = 20, ing...
print("Hello World") ---[[ -- Application object. local app = {} app.Url = "" print("1") -- Open TextBox to enter URL to Lua code to run. app.OpenUrlTextBox = function(self) mosync.SysOpenTextBox( "Enter URL", "http://divineprog.se/", mosync.MA_TB_TYPE_URL, 255, function(url) if nil == url then ...
local base64 = require("mbedtls").base64 local spec = require("test.spec").new() spec:describe("check class", function() assert(base64 ~= nil) assert(base64.class == "base64") end) spec:describe("enocde (small)", function() assert(base64 ~= nil) local input = [[lua base64 encode test]] local expected = [[bH...
local Types = require(script.Parent.Parent.Types) type Array<T> = Types.Array<T> local function loadChildren(parent: Instance) local modules: Array<any> = {} for _, child in parent:GetChildren() do if child:IsA("ModuleScript") then table.insert(modules, require(child :: ModuleScript)) end end return modu...
local S = mobs.intllib -- custom particle effects local effect = function( pos, amount, texture, min_size, max_size, radius, gravity, glow) radius = radius or 2 min_size = min_size or 0.5 max_size = max_size or 1 gravity = gravity or -10 glow = glow or 0 minetest.add_particlespawner({ amount = amount, ...
ITEM.name = "Makarov" ITEM.description = "A Russian steel-framed police pistol that fires 9x18 Makarov." ITEM.model = "models/weapons/ethereal/w_makarov.mdl" ITEM.class = "cw_kk_ins2_makarov" ITEM.weaponCategory = "secondary" ITEM.width = 2 ITEM.height = 1 ITEM.price = 400 ITEM.weight = 2
local uv = require 'couv' local Buffer = uv.Buffer local exports = {} exports['uv.fs.open.sync.OK'] = function(test) local fd = uv.fs.open('couv.lua', 'r', '0666') test.is_number(fd) uv.fs.close(fd) -- try to close twice local ok, err = pcall(uv.fs.close, fd) test.ok(not ok) test.equal(string.sub(err,...
local M = {} local vim = vim local loop = vim.loop local api = vim.api M.items = {} M.callback = false -- onDirScanned handler for vim.loop local function onDirScanned(_, data) if data then local function iter() return vim.loop.fs_scandir_next(data) end for name, type in iter do table.insert...
-- addBuilding -- Author: datvm -- DateCreated: 1/23/2019 5:22:35 PM -------------------------------------------------------------- print("OP Building Loaded!") function ESOAddB(iPlayer, iCityID) local pPlayer = Players[iPlayer] local pBuilding = GameInfo.Buildings["BUILDING_OP_BUILDING"].Index if pPlayer:IsHuman(...
-- sampswap v0.1.0 -- -- -- llllllll.co/t/sampswap -- -- -- -- ▼ instructions below ▼ -- -- E1 selects a track -- E2 selects a parameter -- E3 modifies parameter -- K2 generates track -- K3 toggles playing include("sampswap/lib/utils") UI=require("ui") if not string.find(package.cpath,"/home/we/dus...
--[[------------------------------------------------------ # Very fast xml parser The parser does not return information on comments, declarations, doctypes and pi nodes. These are validly parsed but not returned. This module is part of [lubyk](http://lubyk.org) project. Install with [luarocks](http://lua...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. carbine_ee3 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Ee3 carbine", directObjectTemplate = "object/weapon/ranged/carbine/carbine_ee3.iff", craftingValues = { {"mindamage",56,90,0}, {"maxdamage",91,163,0}, {"attackspeed",5.3...
-- 获取参数 local requestIDKey = KEYS[1] local currentRequestID = ARGV[1] -- 判断requestID一致性 if redis.call('hget',KEYS[1],'lockKey') == currentRequestID then -- requestID相同,重入次数自减 local currentCount = redis.call('hincrby',KEYS[1],'lockCount',-1) if currentCount == 0 then -- 重入次数为0,删除锁 redis.call('del',KEY...
--; ============================================================ --; Lua Weather --; ============================================================ function setWeatherInput() SKIN:Bang('!CommandMeasure MeterSkinInputWeather "ExecuteBatch 1"') end function setWeatherApply() SKIN:Bang('!RefreshGroup Weather...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACK...