content
stringlengths
5
1.05M
return { no_consumer = true, fields = { source_header = { type = "string", required = true }, placeholder = { type = "string", required = true }, log_only = { type = "boolean", default = false }, darklaunch_url = { type = "string", default = "" } } }
gg_rct_Boss_Spawn = nil gg_rct_FightStart = nil gg_rct_PlayerOneSpawn = nil gg_rct_StatueNE = nil gg_rct_StatueNW = nil gg_rct_StatueSE = nil gg_rct_StatueSW = nil gg_rct_PlayerTwoSpawn = nil gg_trg_Untitled_Trigger_001 = nil function InitGlobals() end function CreateRegions() local we gg_rct_Boss_Spawn = Rect...
slot0 = class("BackYardDecrationLayer", import("...base.BaseUI")) slot1 = 1 slot2 = 2 slot3 = 3 slot4 = 4 slot5 = 5 slot6 = 6 slot7 = 7 slot8 = { "word_theme", "word_furniture", "word_decorate", "word_wallpaper", "word_floorpaper", "word_wall", "word_collection" } function slot9(slot0) return i18n(slot0[slot0]...
--!A static injector of dynamic library for application -- -- 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 appli...
local state = {} local DEFAULT_MODE = 'NORMAL' local DEFAULT_HYSTERESIS = 0.5 local ERROR_SETPOINT = -1 local NO_MEASUREMENT = 0 local getState = function() local freshState = {} local files = file.list() if not files['state'] then print('Creating new config file...') if file.open('stat...
-- -- Chartboost Corona SDK -- Created by: Chris -- -- This class is used to create a loading status view. -- Instantiate using CBLoadingView(cbProxy) -- Field 'view.group' must be added to the stage to see this view -- Call method 'view:destroy()' to remove the view from the stage and perform cleanup -- local cla...
-- © 2014 David Given -- This file is redistributable under the terms of the -- New BSD License. Please see the COPYING file in the -- project root for the full text. local Utils = require("Utils") local AST = require("AST") local function Resolve(ast) local nodes = { } AST.ForEachChild(ast, function(node) ...
if cond then func() end if condition == true then end if condition == true then local t = { } local t = { asdf } local t = { asdf, foo, } end -- vim: et sw=4 sts=4 ts=4
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local STUB_POST_URL = spec_helper.STUB_POST_URL describe("RequestSizeLimiting Plugin", function() setup(function() spec_helper.prepare_db() spec_helper.insert_fixtures { api = { { name = "test...
local ComponentBase = cc.import(".ComponentBase") local ButtonComponent = cc.class("cc.Button", ComponentBase) local _STATE_DISABLED = "DISABLED" local _STATE_IDLE = "IDLE" local _STATE_PRESSED = "PRESSED" local _SPRITES_MAP = { [_STATE_DISABLED] = "_N$disabledSprite", [_STATE_IDLE] = "_N$normalSpri...
for i,v in ipairs({ {18450,1768.2998,-851.2998,68.5,0,341.99341,18.24829}, {18450,1839.5,-827.79999,95.8,0,337.99438,18.24829}, {18450,1902.5,-807,123.8,0,335.99487,18.24829}, {4573,1983.2998,-802,106.2,0,0,17.99561}, {9090,1976.19922,-751.7998,109.7,0,0,107.99011}, {4573,1964.89941,-745.19922,1...
-- This file is never required by anything, and exists purely for the language server to determine types -- This is just a typedef, think of it like a struct global = { next_task_id = 1, --- @type PlayerTable[] players = {}, --- @type table<number, Task> tasks = {}, }
hp = 2500 attack = 200 defense = 300 speed = 80 mdefense = 300 luck = 80 float = 0 strength = ELEMENT_FIRE weakness = ELEMENT_ICE function initId(id) myId = id end function start() end function get_action(step) local n = getRandomNumber(2); if (n == 0) then return COMBAT_CASTING, "Fire2", ...
--lua 5.3 local N = io.read("*n") --print("N: " .. N) local bag5Count = math.floor(N / 5) local bag3Count = 0 while bag5Count >= 0 do bag3Count = math.floor((N - 5 * bag5Count) / 3) while bag3Count >= 0 do --print("bag5Count: " .. bag5Count .. ", bag3Count: " .. bag3Count) if N - 5 * bag5Count ...
local class = { list = { warrior = { attr = { str = 2, con = 1, dex = 1, wis = -1, int = -2 } }, thief = { attr = { dex = 2, con = 1, str = 1, int = -1, wis = -2 } }, mage = { attr = { int = 2, wis = 1, dex = 1, con = -1, str = -2 } }, cleric = { attr = { wis = 2, i...
local skynet = require "skynet" local queue = require "skynet.queue" require "skynet.manager" -- import skynet.register local CMD = {} local x = ... local HOURSEPEOPLE = 6 local lock local hourses = {}--[hourseid]={zerocount=0,num=1} local newhourseindex = {} local hourselist = {head={tail=true}}--{head=nil,next} func...
--[[ Copyright 2018 American Megatrends 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 a...
--[[ // File Name: Integral.lua // Written by: Carlos Verastegui // Description: Sub-class for computing the definite integral using Gauss-Legendre quadrature --]] -- External inheritence local Function = require(script.Parent:WaitForChild("Function")) -- Array containing roots for a 10-point quadrature local root...
function onCreate() --Iterate over all notes for i = 0, getProperty('unspawnNotes.length')-1 do --Check if the note is an Instakill Note if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Blent Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'kyle/BLENTNOTE_assets'); --Change texture s...
local javaScript = {} javaScript.clearelement = "clearMedia()" javaScript.playelement = "playMedia()" javaScript.pauseelement = "pauseMedia()" javaScript.stopelement = "stopMedia()" javaScript.fullscreen = "mediaFullScreen(REP1)" javaScript.setFill = "mediaFill(REP1)" javaScript.setSize = "resizeMedia(REP1,REP2)...
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'matrix' shared.require...
local params = {...} local path = params[1] local cm = require("cm") local function parent_path(path) local r = string.reverse(string.sub(path, 1)) local be = string.find(r, "\\") if be == nil then return "" else local b, _ = be return string.reverse(string.sub(r, b))...
-- Copyright (c) 2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- 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, m...
object_mobile_vehicle_podracer_anakin = object_mobile_vehicle_shared_podracer_anakin:new { templateType = VEHICLE, decayRate = 15, -- Damage tick per decay cycle decayCycle = 600 -- Time in seconds per cycle } ObjectTemplates:addTemplate(object_mobile_vehicle_podracer_anakin, "object/mobile/vehicle/podracer_anakin....
local lightGreyEscapeColor = string.format("|cff%02x%02x%02x", 115, 115, 115); local goldEscapeColor = string.format("|cff%02x%02x%02x", 255, 255, 125); local whiteEscapeColor = string.format("|cff%02x%02x%02x", 255, 255, 255); local blueEscapeColor = string.format("|cff%02x%02x%02x", 225, 225, 255); local winEscapeCol...
local t = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...
includeFile("custom_content/draft_schematic/space/shields/elite_shields.lua") includeFile("custom_content/draft_schematic/space/shields/gunship_shields.lua") includeFile("custom_content/draft_schematic/space/shields/shield_high_capacity_projector_mk5.lua")
-- wibar.lua -- Wibar (top bar) local awful = require("awful") local gears = require("gears") local gfs = require("gears.filesystem") local wibox = require("wibox") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local helpers = require("helpers...
CAR_EQUIPEMENT_GRID_NAME = "laser-car-equipment-grid" TANK_EQUIPEMENT_GRID_NAME = "laser-tank-equipment-grid" TRAIN_EQUIPEMENT_GRID_NAME = "electric-vehicles-electric-locomotive"
object_draft_schematic_furniture_wod_ns_potted_plant_scem_02 = object_draft_schematic_furniture_shared_wod_ns_potted_plant_scem_02:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_ns_potted_plant_scem_02, "object/draft_schematic/furniture/wod_ns_potted_plant_scem_02.iff")
local define = require 'proto.define' local files = require 'files' local guide = require 'core.guide' local matchKey = require 'core.match-key' local vm = require 'vm' local getHover = require 'core.hover' local config = require 'config' local util = require 'utility...
---- Roleplay: Prison local function GetIllegalWeaponList(InTargetPlayer) local OutWeaponList = {} local PlayerWeapons = InTargetPlayer:GetWeapons() for Index, Weapon in ipairs(PlayerWeapons) do local ClassName = Weapon:GetClass() --MsgN(ClassName) if ClassName ~= "weapon_rpp_unarmed" and ClassName ~= "...
--!A cross-platform 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 law...
--MoveCurve --M_DEM_21103_01/HitAirSoft HitAirSoft return { filePath = "M_DEM_21103_01/HitAirSoft", startTime = Fixed64(0) --[[0]], startRealTime = Fixed64(0) --[[0]], endTime = Fixed64(31457280) --[[30]], endRealTime = Fixed64(534773) --[[0.51]], isZoom = true, isCompensate = false, curve = { [1] = { tim...
return { [1]={"role_detail_info", {[1]={[1]="RoleId",[2]="number",},[2]={[1]="Level",[2]="byte",},[3]={[1]="Exp",[2]="number",},[4]={[1]="AttrDetail",[2]="attr_detail",},[5]={[1]="PetLevel",[2]="byte",},[6]={[1]="PetExp",[2]="number",},[7]={[1]="Model",[2]="number",},}}, [2]={"friend_space_info", {[1]={[1]="Uid",[2]="n...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local FORMATTING = methods.internal.FORMATTING return h.make_builtin({ method = FORMATTING, generator = { fn = function(_, done) local timeout = math.random(50) vim.defer_fn(function() ...
local handled = false addCommandHandler("startmusic", function ( plr, commandName, url ) setTimer(triggerClientEvent, 1000, 1, "playmus", root, url) end) function startmusic(url, plr) if (url and plr) then if (handled == false) then local name = getPlayerName(plr) setTimer(triggerClientEvent, 1000, 1, "NGC...
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple -- Models By Jaanus ---------------------------------------- select_limit = 10 --how many armies can be selected at once. NOTICE: too many causes crashes. unit_limit = select_limit...
-- scaffolding entry point for llvm return dofile("llvm.lua")
Term = {} Term.CommandDetection = false -- Broken rn Term.DamageModifierDetection = true Term.AntiGodmode = false -- Broken Term.NuiDetection = true Term.MaxHealth = 201 Term.InvisibilityDetection = true Term.SpectateDetection = true Term.SuperJumpDetection = true Term.ThermalVisionDetection = true Term.Plank...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local EventEmitter = require "AC-LuaServer.Core.Event.EventEmitter" local ExtensionTarget = require "AC-LuaServer.Core.Extension.ExtensionTarget" local Object = require "classic" --- -- Extends a ExtensionTarget and wil...
local function default() end local function switch(var) -- TODO: Can we avoid recreating new function each time? return function (map) for case, value in pairs(map) do local matches = false if type(case) == "table" then for _, v in pairs(case) do if v == var then matches = true break ...
-- -- lua-LIVR : <http://fperrad.github.com/lua-LIVR/> -- local tointeger if _VERSION >= 'Lua 5.3' then tointeger = math.tointeger else local SIZEOF_NUMBER = 8 if not jit then -- Lua 5.1 & 5.2 local loadstring = loadstring or load local luac = string.dump(loadstring "a = 1") ...
-------Sky School house----------------------------------------------------------------------------------------------------------------------- -------Commands----------------------------------------------------------------------------------------------------------------------- local admin = game.Players.acb227 functio...
local M = {} local toast = require "src.components.toast" function M.fireOn(self, gs) local scene = gs:current().scene if scene == self.scene then gs.toast = toast.new(gs, self.text) gs.toast:showToast() end end function M.new(scene, text) local ret = { scene = scene, type = "RoomTextEvent", text = text...
--- -- @module UIScrollbar -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local UIElement = require( 'src.ui.elements.UIElement' ) local TexturePacks = require( 'src.ui.texturepacks.TexturePacks' ) local GridHelper = require( 'src.util.Gr...
-- Swiped from Konamix; thank you! -- ScreenGameplay in local travelDist = SCREEN_WIDTH*1.7; local LeftToRight = Def.ActorFrame{ LoadActor("_LeftToRight"); Def.Quad{ InitCommand=cmd(addx,64;diffuse,color("#000000FF");halign,0;zoomto,travelDist,32); }; }; local RightToLeft = Def.ActorFrame{ LoadActor("_RightToLef...
--[[ Adds a job to the queue by doing the following: - Increases the job counter if needed. - Creates a new job key with the job data. - if delayed: - computes timestamp. - adds to delayed zset. - Emits a global event 'delayed' if the job is delayed. - if not delayed - Adds th...
local isLoggedIn = false local CurrentCops = 0 local copsCalled = false Citizen.CreateThread(function() while true do Citizen.Wait(1000 * 45 * 5) if copsCalled then copsCalled = false end end end) local requiredItemsShowed = false local requiredItemsShowed2 = false local re...
--白の烙印 --Scripted by mallu11 function c101104055.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101104055,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:Set...
local config = nil local function cfg(_config) config = _config end local handlers = { cfg = cfg } return handlers
gVersion = "2.0.12" gVerbose = false ------------- Util function Log(...) if c.isVerbose() then print(unpack(arg)) end end function key_sorted_pairs(t) local sorted = {} for k,_ in pairs(t) do table.insert(sorted, k) end table.sort(sorted) return coroutine.wrap( function() for _...
local M = {} local utils = require("rust-tools.utils.utils") function M.open_external_docs() utils.request( 0, "experimental/externalDocs", vim.lsp.util.make_position_params(), function(_, url) if url then vim.fn["netrw#BrowseX"](url, 0) end end ) end return M
if SERVER then AddCSLuaFile() end local GAMETYPE = {} GAMETYPE.Name = "Half-Life 2: Episode 1" GAMETYPE.BaseGameType = "hl2" GAMETYPE.MapScript = {} GAMETYPE.MapList = { "ep1_citadel_00", "ep1_citadel_01", "ep1_citadel_02", "ep1_citadel_02b", "ep1_citadel_03", "ep1_citadel_04", "ep1_c1...
--------------------------------------------------------------------------- --- Watch widget. -- Here is an example of simple temperature widget which will update each 15 -- seconds implemented in two different ways. -- The first, simpler one, will just display the return command output -- (so output is stripped by she...
-- Copyright 2021 SmartThings -- -- 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 ...
require("busted.runner")() local PrivateKey = require("norn.privatekey") local PublicKey = require("norn.publickey") local Wallet = require("norn.wallet") describe("wallet", function () it("should be created empty", function () local wallet = Wallet.create() assert.equals(wallet.balance, 0) assert.is_not_nil(w...
function UIItem:onDragEnter(mousePos) if self:isVirtual() then return false end local item = self:getItem() if not item then return false end self:setBorderWidth(1) self.currentDragThing = item g_mouse.pushCursor('target') return true end function UIItem:onDragLeave(droppedWidget, mousePo...
--[[ _________ _______ ___ _______ ___ __ ___ ________ _______ ________ ___ ________ |\___ ___\\ ___ \ |\ \ |\ ___ \ |\ \|\ \ |\ \|\ ___ \|\ ___ \ |\ ____\|\ \|\ ____\ \|___ \ \_\ \ __/|\ \ \ \ \ __/|\ \ \/ /|\ \ \ \ \\ \ \ \ __/|\ \ \___|\ \ \...
--[[ Lua Cold Observables MIT License Copyright (c) 2019 Alexis Munsayac 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 limi...
workspace "LilEngie2" configurations {"Debug", "Release", "EditorGameDebug", "EditorGameRelease"} architecture "x86_64" startproject "LilEddie" project "LilEngie" configmap { ["EditorGameDebug"] = "Debug", ["EditorGameRelease"] = "Release" } location "%{prj.name}" kind "StaticLib" language ...
--[[---------------------------------------------------------------------------- Information: With this App standalone running you won't see anything. If you want more or less cameras connected duplicate this app or remove some. ------------------------------------------------------------------------------]] --St...
------------------------------------------------------------------------------- -- This file is part of the "Tyro" -- -- @license The MIT License (MIT) Included in this distribution -- @author Zaher Dirkey <zaherdirkey at yahoo dot com> ---------------------------------------------------------------------------...
require("moonsc").import_tags() -- Test that default initial state is first in document order. -- If we enter s0 first we succeed, if s1, failure. return _scxml{ _state{id='s0', _transition{target='pass'}}, _state{id='s1', _transition{target='fail'}}, _final{id='pass'}, _final{id='fail'}, }
-- @Author: hxsf -- @Date: 2016-05-05 21:49:36 -- @Last Modified by: hxsf -- @Last Modified time: 2016-05-05 22:01:54 require("prototypes.entities") require("prototypes.items") require("prototypes.recipes") require("prototypes.technologies") require("prototypes.category")
-- MSVC for GLM defines { "_ENABLE_EXTENDED_ALIGNED_STORAGE" } if os.istarget('windows') then flags { "LinkTimeOptimization" } buildoptions '/fp:fast' end
local moon = require("moon") moon.start( function() moon.async( function() local receiverid = moon.co_new_service( "lua", { name = "call_example_receiver", file = "call_example_receiver.lua" ...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- -- Kod odpowiadający za odejmowanie paliwa oraz dodawanie paliwa -- Wszelkie inne rzeczy są w systemie pojazdów // Split local time=getTickCount() local isBike={[509]=true,[4...
return { [10001]="Login", Login=10001, [31002]="MatchAckP", MatchAckP=31002, [21001]="MatchR", MatchR=21001, [11002]="MatchAckCP", MatchAckCP=11002, [31001]="MatchP", MatchP=31001, [11001]="Match", Match=11001, [1001]="MatchPlayer", MatchPlayer=1001, [30001]="ErrorR", ErrorR=30001, [20001]="LoginR", L...
WARP_POINT = { warp_tile_pt_1 = {point="warp_tile_pt_2", dir="up", cont=true}, warp_tile_pt_2 = {point="warp_tile_pt_1", dir="down", cont=true}, warp_tile_pt_3 = {point="warp_tile_pt_3", dir="down", cont=true}, warp_tile_pt_4 = {point="warp_tile_pt_5", dir="left", cont=true}, warp_tile_pt_5 = {point="warp_til...
--[[ Name: init.lua From roblox-trello v2 Description: Fetches and groups class constructors for Trello. Copyright (c) 2019 Luis, David Duque Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
local path = (...):match('(.-)[^%./]+$') return { name = 'Font', description = 'Defines the shape of characters that can be drawn onto the screen.', constructors = { 'getFont', 'newFont', 'setNewFont', 'newImageFont', }, supertypes = { 'Object', }, fu...
local awful = require("awful") --EDITOR = os.getenv("EDITOR") or "vi" KEY = { CONTROL = "Control", LEFT = "Left", RETURN = "Return", RIGHT = "Right", SHIFT = "Shift", MOD = "Mod4" } SCREEN_COUNT = screen.count() TAG_COUNT = 9 TERMINAL = "xterm" global_keys = {} local layouts = { awful.layout.suit.max } ...
solution "sodna" configurations { "Debug", "Release" } project "sodna" kind "SharedLib" language "C" links { "m", "SDL2", } files { "src/sodna_sdl2.c", "src/sodna_util.c", } includedirs { "include/" } configuration { "windows" ...
return {'talmoed','talmoedisch','talmoedist','tal','talaan','talen','talencursus','taleninstituut','talenkenner','talenkennis','talenknobbel','talenlaboratorium','talenonderwijs','talenpracticum','talenschool','talent','talentenbank','talentenjacht','talentenjager','talentloos','talentontwikkeling','talentrijk','talent...
#!/usr/bin/env lua -- MoonFLTK example: preferences.lua -- -- Derived from the FLTK test/preferences.cxx example (http://www.fltk.org) -- -- NOTE: The Fl_Preferences class is not used in MoonFLTK, because Lua itself -- is already a flexible configuration language. fl = require("moonfltk") filename = "./myprefe...
-- https://stackoverflow.com/questions/4525261/getting-relative-paths-in-vim local function filepath () path = vim.fn.substitute(vim.fn.expand('%:p'), vim.fn.expand('%:p:h:h:h'), '..', ' ') return path end return filepath
-- @Date : 2016-06-12 14:17:08 -- @Author : MiaoLian (mlian@ulucu.com) -- @Version : 1.0 -- @Description : local template = require "sim_ulucu_sys_lib.resty.template" local error = error local pairs = pairs local setmetatable = setmetatable local ngx_var = ngx.var local View = {} function View:ne...
---------------------------------------------------------- -- Summary: Player class. -- -- Description: Tables and functions for the player. -- -- @author Tony Godfrey (tonygod@sharkappsllc.com) -- @copyright 2015-2016 shark apps, LLC -- @license all rights reserved. ----------------------------------------...
--[[ Bomb Game Framework v1.0 by: standardcombo Starting point for a first-person, DE-style game where one team plants the bomb and the other team defends or diffuses the bomb. Includes many components such as basic inventory, shop, ADS weapons and even persistent storage of money earned. To use, start a blank proje...
local serverCommandHooks = {} serverCommandHooks.commands = {} serverCommandHooks.aliases = {} serverCommandHooks.pid = -1 function serverCommandHooks.registerCommand(cmd, callback) cmd = string.lower(cmd) serverCommandHooks.commands[cmd] = callback end function serverCommandHooks.registerAlias(alias, cmd) ...
require('constants') require('move') require('racemaster') local turtle_ids_prop = "turtle_ids" local function position_and_hostility_ok(turtle_id) -- Check 1 - is the turtle even still alive? if creature_exists(turtle_id) == false then return false end -- Check 2 - is the turtle in roughly t...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
return { Name = "gethelp"; Description = "Get help."; Args = {}; }
----------------------------------- -- Ability: Futae -- Grants a bonus to your next elemental ninjutsu by expending two ninja tools. -- Obtained: Ninja Level 77 -- Recast Time: 3:00 -- Duration: 1:00 ----------------------------------- require("scripts/globals/status") ----------------------------------- function onA...
function CreatePlayer(source, permission_level, money, bank, identifier, license, group, roles, inventory, job, jgrade, gang, fgrade, loadout, name, coords, status) local self = {} self.source = source self.permission_level = permission_level self.money = money self.bank = bank self.identifier = id...
Card_0_0 = "Bridge Hit" Card_0_1 = "Cargo Bay Hit" Card_0_3 = "Direct Hit" Card_0_4 = "Engine Room Hit" Card_0_5 = "Engines Hit" Card_0_6 = "Sickbay Hit" Card_0_7 = "Weapon Systems Hit" Card_0_45 = "Ace In The Hole" Card_0_48 = "Never Say Die" Card_0_54 = "Berlin" Card_0_55 = "London" Card_0_56 = "Moscow" Card_0_57 = "...
setfenv(1, require "sysapi-ns") ffi.cdef [[ typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation, SystemProcessorInformation, SystemPerformanceInformation, SystemTimeOfDayInformation, SystemPathInformation, SystemProcessInformation, SystemCallCountInformation, SystemDeviceI...
local config = require 'lir.bookmark.config' local M = {} function M.setup(prefs) -- Set preferences config.set_default_values(prefs) end return M
local file = require 'ext.file' local json = require 'dkjson' local hygStars = assert(load('return '..file['simbad-data.lua']))() local hygForOID = {} for _,hygStar in pairs(hygStars) do if hygStar.simbadOIDRef then hygForOID[hygStar.simbadOIDRef] = hygStar end end local exoplanets = json.decode(file['../exoplane...
local List = require 'pandoc.List' function Header(el) local level = el.level local identifier = el.attr.identifier local caption_text = el.attributes["caption"] local content = el.content local header_text if level == 1 then size = "xl" elseif level == 2 then size = "l" elseif level == 3 then...
if Teleportation == nil then Teleportation = {} end if Teleportation.config == nil then Teleportation.config = {} end --[[Defines what should be shown in pager. • "true" for pages (e.g. "2/4"); • "false" for beacons count (e.g. "11-20/37", if page_size is 10). Default is "true". ]] --Telepor...
--- include-files.lua – filter to include Markdown files --- --- Copyright: © 2019–2020 Albert Krewinkel --- Copyright: © 2020 Michael Reed --- License: MIT – see LICENSE file for details --- --- Created by Albert Krewinkel. Slightly modified by Michael Reed for use in --- generating the EPUB for "Programming La...
local function a(b)if b>=1000*1000 then return math.floor(b/(100*1000))/10 .."MB"elseif b>=1000 then return math.floor(b/100)/10 .."KB"else return b.."B"end end;local c={{"Drive","Size","Used","Avail"}}local function d(e)local f=0;local g=fs.getDrive(e)local function h(i)if fs.getDrive(i)==g then if fs.isDir(i)then if ...
local LiteralString local lpeg if game then local pluginModel = script.Parent.Parent.Parent.Parent LiteralString = require(pluginModel.com.blacksheepherd.compile.LiteralString) lpeg = require(pluginModel.lulpeg.lulpeg) else LiteralString = require("com.blacksheepherd.compile.LiteralString") lpeg = require("lp...
do print("scope") end
local AddonName, AddonTable = ... AddonTable.trade = { -- Crafting General 180055, 180057, 180058, 180059, 180060, 173381, 183942, 173382, -- Soul Cyphering 174942, -- 183701, }
#!/usr/bin/env lua -- luainspect.command - LuaInspect command-line interface. -- This file can be invoked from the command line package.path = package.path .. ';metalualib/?.lua' package.path = package.path .. ';lib/?.lua' local LA = require "luainspect.ast" local LI = require "luainspect.init" local function load...
includeFile("custom_content/screenplay_mobs/generals_bunker/serverobjects.lua")
-- HEAD -- description = [[ This is a simple script example that determines if a port is open. ]] author = "Kimberly Dills" -- RULE -- portrule = function(host, port) return port.protocol == "tcp" and port.state == "open" end -- ACTION -- action = function(host, port) return "This port i...