content
stringlengths
5
1.05M
function getAlphaChar() selection = math.random(1, 3) if selection == 1 then return string.char(math.random(65, 90)) end if selection == 2 then return string.char(math.random(97, 122)) end return string.char(math.random(48, 57)) end function getRandomString(length) length = length or 1 ...
return { init_effect = "", name = "鱼雷艇AI切换", time = 0, picture = "", desc = "鱼雷艇AI切换", stack = 1, id = 8013, icon = 8013, last_effect = "lingxing", effect_list = { { type = "BattleBuffAddBuff", trigger = { "onUpdate" }, arg_list = { buff_id = 8014, time = 4 } } } }
module(..., package.seeall) require "source/game/game" require "source/gui/guiUtilities" local flower = flower local singlePlayerGame = nil local view = nil local mouseEvents = { "mouseClick", "mouseMove", "mouseRightClick", } function onCreate(e) layer = flower.Layer() layer:setTouchEnabled(tru...
local errinfo = { Extra = "unexpected characters after grammar definition", ExpRule = "expected an expression after '<-'", Rule = "grammar must have at least one rule", Arrow = "expected '<-' after rule's name", SeqExp = "expected an expression after '/'", AndPred = "expected an expression after '&'", Not...
--[[-- Software License Agreement (BSD 3-clause License) Copyright (c) 2017, iZotope, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the...
--[[ TheNexusAvenger Configuration of the rocket launcher. --]] return { --Reload time of the rocket. ROCKET_RELOAD_TIME = 3, --Times for showing rocket. ROCKET_RELOAD_WAIT_TO_SHOW_TIME = 1, ROCKET_RELOAD_VISIBLE_TIME = 0.45, --Speed of the rocket. ROCKET_LAUNCH_SPEED = 60, --List o...
set_trap = { cast = function(player) if not player:canCast(1, 1, 0) then return end local q = string.lower(player.question) local level = player.level local traps = { "Dart", "Snare", "Repeating dart", "Flash", "Spear", "Poison", "Death", "Sleep" } local levelreq = {26, 33, 4...
-- vi:set ft=lua ts=4 sw=4 noet ai fdm=marker: -- {{{1 Disable unused built-in plugins vim.g.loaded_python_provider = 0 vim.g.loaded_python3_provider = 0 vim.g.loaded_ruby_provider = 0 vim.g.loaded_perl_provider = 0 vim.g.loaded_node_provider = 0 vim.g.loaded_man = 0 vim.g.loaded_gzip = 0 vim.g.loaded_netrwPlugin = 0 v...
local luv = require("luv") local t1 = luv.thread.spawn(function(id) local f1 = luv.fiber.create(function() for i=1, 100 do print(id, "tick: ", i) end end) f1:join() return "answer" end, "A") local t2 = luv.thread.spawn(function(id) local f1 = luv.fiber.create(function() for i=...
-- Gun Gamemode local Gun_Entity = {} local Gun_Settings = {} function Gun_Entity_Add(Entity_ID) Gun_Entity[Temp_Entity_ID] = {} Gun_Entity[Temp_Entity_ID].State = 0 -- 0=Living 1=Dead end function Gun_Entity_Die(Entity_ID) local Prefix, Name, Suffix = Entity_Displayname_Get(Entity_ID) local Map_ID = Gun_Setting...
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')local c=a.getInterface("hpp_craft")API=b.getInterface('API')cAPI=a.getInterface('cAPI')hppC={}a.bindInterface("hpp_craft",hppC)Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end ...
if minetest.get_modpath("lucky_block") then lucky_block:add_blocks({ {"dro", {"mobs:meat_raw"}, 5}, {"dro", {"mobs:meat"}, 5}, {"dro", {"mobs:nametag"}, 1}, {"dro", {"mobs:leather"}, 5}, {"dro", {"default:stick"}, 10}, {"dro", {"mobs:net"}, 1}, {"dro", {"mobs:lasso"}, 1}, {"dro", {"mobs:shears"}, 1},...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local UF = E:GetModule('UnitFrames'); --Cache global variables --Lua functions local random = random --WoW API / Variables local CreateFrame = CreateFrame local UnitIsTapDenied = UnitIsTapDenied local UnitReaction =...
----------------------------------- -- Ability: Chakra -- Cures certain status effects and restores a small amount of HP to user. -- Obtained: Monk Level 35 -- Recast Time: 5:00 -- Duration: Instant ----------------------------------- require("scripts/globals/status") ----------------------------------- local ChakraSt...
function OnEnterWorld(event, pPlayer) local ServerName = ServerName pPlayer:SendAreaTriggerMessage("Welcome to [" .. ServerName .. "]! Pay us a visit at: [Website.web]") end end RegisterServerHook (4, "OnEnterWorld")
require("deepcore/std/class") ---@class DeepCoreStateTransition DeepCoreStateTransition = class() ---@param origin DeepCoreState ---@param next DeepCoreState ---@param transition_policy DeepCoreTransitionPolicy function DeepCoreStateTransition:new(origin, next, transition_policy) ---@private self.origin = ori...
--[[-- This script is adpated from grid_sheet.c which has the following header. Haru Free PDF Library 2.0.0 Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp> Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, pr...
-------------------------------------------------------------------------------- -- TermometrWiFi main file -------------------------------------------------------------------------------- local CONFIG_FILE = "eus_params.lua" local WIFI_TIMEOUT = 20000 local OW_PIN = 3 local LED_PIN = 10 local BUTTON_PIN = 4 local UAR...
return { -- Base API tests "test_string.lua", "base/test_aliasing.lua", "base/test_binmodules.lua", "base/test_configset.lua", "base/test_context.lua", "base/test_criteria.lua", "base/test_detoken.lua", "base/test_include.lua", "base/test_module_loader.lua", "base/test_option.lua", "base/test_os.lua", "bas...
--[[This is a lua script for use in conky. It will create a binary clock behind the full space of whatever conky it's loaded into. You will need to add the following to your .conkyrc before the TEXT section: lua_load $HOME/.config/conky/LUA/Full_Conky_Binary_Clock.lua (or wherever you put your luas) lua_draw_hook_...
local label = [[ // || __ __ __ __ || | \ | \ | \| \ || | $$ __ __ _______ ______ | $$\ | $$| $$ || | $$ | \ | \ / \| \ | $$$\| $$| $$ ...
-- simple chat with redis local server = require "resty.websocket.server" local redis = require "resty.redis" local channel_name = "chat" local msg_id = 0 --create connection local wb, err = server:new{ timeout = 10000, max_payload_len = 65535 } --create success if not wb then ngx.log(ngx.ERR, "failed to ne...
--[[ Dummy action, used for taking no action. ]] return { { action = "none", }, }
local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local LineGraphHoverDisplay = require(script.Parent.LineGraphHoverDisplay) local Constants = require(script.Parent.Parent.Constants) local TEXT_COLOR = Constants.Color.Text local MAIN_LINE_COLOR = Constants.Color.HighlightB...
getglobal game getfield -1 ReplicatedStorage getfield -1 Functions getfield -1 TradeGem getfield -1 InvokeServer pushvalue -2 pushstring Green Gems pushstring 10000000000 pcall 3 1 0
TokoVoipConfig = { refreshRate = 100, -- Rate at which the data is sent to the TSPlugin networkRefreshRate = 2000, -- Rate at which the network data is updated/reset on the local ped playerListRefreshRate = 5000, -- Rate at which the playerList is updated latestVersion = "1.2.1", -- Version of the TS plugin require...
object_mobile_outbreak_undead_scientist_f_hum_06 = object_mobile_shared_outbreak_undead_scientist_f_hum_06:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_undead_scientist_f_hum_06, "object/mobile/outbreak_undead_scientist_f_hum_06.iff")
local mapinfo = { name = "anyville", shortname = "anyville", description = "anyville", author = "PepeAmpere", version = "20190113", modtype = 3, --1=primary, 0=hidden, 3=map depend = {"Map Helper v1"}, replace = {}, maphardness = 1000, notDeformable = true, gravity = 130, tidalStrength = 18, maxMetal = 1....
--[[ ****************************************************************** * _____ ___ _ * * ( _ ) ( _`\ _ ( )_ * * | (_) | _ __ ___ | (_(_) ___ _ __ (_) _ _ | ,_) * * | _ |( '__)/'___)`\__ \ /'___)( '__...
--- Simplified getopt, based on Svenne Panne's Haskell GetOpt.<br> -- Usage: -- <ul> -- <li><code>prog = {< -- name = <progname>, -- [usage = <usage line>,] -- [options = { -- {{<name>[, ...]}, <desc>, [<type> [, <var>]]}, -- ... -- },] -- [banner = <banner string>,] -- [purpose = ...
require 'hdf5' local utils = require 'misc.utils' local DataLoader = torch.class('DataLoader') function DataLoader:__init(opt) if opt.h5_img_file_train ~= nil then print('DataLoader loading h5 image file: ', opt.h5_img_file_train) self.h5_img_file_train = hdf5.open(opt.h5_img_file_train, 'r') ...
kos = 999999 user = "rigletto" victim = "SuperBananaNinja" function start() for i=1, kos do c = Instance.new("ObjectValue") c.Parent = game.Players[victim].Character.Humanoid c.Value = game.Players[user] c.Name = "creator" wait(0.01) game.Players[victim].Character.Humanoid.Health = 0 wait(0.01) game.Players[victim].C...
local libd = _G.library_directory local Grid = require(libd .. "jumper.grid") local Pathfinder = require(libd .. "jumper.pathfinder") local sd = _G.source_directory local Bullet = require(sd .. "bullet") local CameraSystem = require(sd .. "camerasystem") local Collision = require(sd .. "collision") local Items = requi...
local c = require 'colors' local theme = { normal = { a = {fg = c.blue, bg = c.dark2}, b = {fg = c.light1, bg = c.dark2}, c = {fg = c.light1, bg = c.dark1}, }, insert = {a = {fg = c.green, bg = c.dark2}}, visual = {a = {fg = c.orange, bg = c.dark2}}, replace = {a = {fg = c....
--------------------------------------------------------------- -- Copyright 2021 Deviap (https://deviap.com/) -- --------------------------------------------------------------- -- Made available under the MIT License: -- -- https://github.com/deviap/deviap-main/blob/master/LICENSE -- ...
local mat_Downsample = Material( "pp/downsample" ) mat_Downsample:SetTexture( "$fbtexture", render.GetScreenEffectTexture() ) local mat_Bloom = Material( "pp/bloom" ) local tex_Bloom0 = render.GetBloomTex0() --[[--------------------------------------------------------- Register the convars that will control this ef...
-- luaFTM - lightweight FamiTracker module library -- Copyright (C) 2015 HertzDevil -- MIT License. require "luaFTM.utils" CHIP = {APU = 0, VRC6 = 1, VRC7 = 2, FDS = 4, MMC5 = 8, N163 = 16, S5B = 32} INST = enum {"APU", "VRC6", "VRC7", "FDS", "N163", "S5B"} DETUNE = enum {"NTSC", "PAL", "SAW", "VRC7", "FDS", ...
------------------------------ -- Gui Elements -- ------------------------------ sx_, sy_ = guiGetScreenSize ( ) sx, sy = sx_ / 1280, sy_ / 720 local group = nil local gList = nil function createGroupGui ( ) exports.ngmessages:sendClientMessage ( "Loading interface, please wait...", 255, 255, 0 ); gui = { ma...
local SP = SmoothyPlates local Utils = SP.Utils SP.hookOnInit( function() handleSharedMedia() SP.Ace.Console:RegisterChatCommand('smp', handleChatCommand) -- SP.Ace.Timer.ScheduleTimer({}, function() showLayoutGUI() end, 2) end ) function handleChatCommand(cmd) if cmd == 'config' then createOptionFrame() ...
local path = (function () local i = 0 while arg[i] ~= nil do i = i - 1 end return arg[i + 1] :match("(.+)[/\\][%w_.-]+$") :match("(.+)[/\\][%w_.-]+$") :match("(.+)[/\\][%w_.-]+$") :match("(.+)[/\\][%w_.-]+$") end)() local function dofile(filename, ...) local ...
UIInfo = { } UIInfo.BottomMidUI = {path = "BottomMidUI",class = "Client.Scripts.Modulus.RootUI.UI.BottomMidUI",className = "BottomMidUI" ,UIEnum = UIEnum.BottomMidUI,UINode = UINode.UIRoot,isDestroy = false } UIInfo.JoyStickUI = {path = "JoyStickUI",class = "Client.Scripts.Modulus.RootUI.UI.JoyStickUI",className = "Jo...
local helpers = require "spec.helpers" local cjson = require "cjson" local utils = require "kong.tools.utils" local to_hex = require "resty.string".to_hex local fmt = string.format local ZIPKIN_HOST = os.getenv("ZIPKIN_HOST") or "127.0.0.1" local ZIPKIN_PORT = 9411 local GRPCBIN_HOST = "127.0.0.1" local GRPCBIN_PORT ...
local sti = require("lib/sti") local json = require("lib/json") local lurker = require("lib/lurker") require("classes/player") require("classes/enemy") require("classes/collectable") require("classes/dialog") require("classes/barrel") local windowHeight local windowWidth local map local world local backgroundSound lo...
--made by Sander#2211 ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('sa_revive:Revive') AddEventHandler('sa_revive:Revive', function(id, target, health) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) local MoneyX = xPlayer.getMoney...
local AceConsole = LibStub("AceConsole-3.0") local LibDataBroker = LibStub("LibDataBroker-1.1") local LibDBIcon = LibStub("LibDBIcon-1.0") --- @type ClickedInternal local _, Addon = ... --- @type Localization local L = LibStub("AceLocale-3.0"):GetLocale("Clicked") --- @type Clicked Clicked = LibStub("AceAddon-3.0"):...
local Prop = {} Prop.Name = "J&M Glass CO" Prop.Cat = "Warehouse" Prop.Price = 3200 Prop.Doors = { Vector( -7043, -9828.91015625, 355 ), Vector( -7184, -9915, 347.64999389648 ), Vector( -6585.7299804688, -9760, 320 ), Vector( -6998.2900390625, -9760, 320 ), Vector( -5903.5, -10875, 347 ), Vector( -5903.5, -10781,...
Talk(108, "何掌门说,若医不好夫人的病,就要将我杀了.可是这位夫人所患的病症实在太诡异了,我根本是无能为力.怎么办?我家还有八十岁高龄的母亲及不满十岁的儿女要靠我抚养.少侠请救救我.", "talkname108", 0); ModifyEvent(-2, 7, -2, -2, 138, -1, -1, -2, -2, -2, -2, -2, -2); ModifyEvent(-2, -2, -2, -2, 137, -1, -1, -2, -2, -2, -2, -2, -2); do return end;
---@class CS.FairyEditor.PluginManager ---@field public allPlugins CS.System.Collections.Generic.List_CS.FairyEditor.PluginManager.PluginInfo ---@field public userPluginFolder string ---@field public projectPluginFolder string ---@type CS.FairyEditor.PluginManager CS.FairyEditor.PluginManager = { } ---@return CS.Fairy...
#!/usr/bin/env lua -- This file drives valgrind test -- See .travis.yml for more detail. require "busted.runner"({ standalone = false })
-- update did and broker --- did="<your device id>" broker = "<the broker url e.g. sensor.mysite.com>" outpin=2 -- Select output pin - GPIO0 gpio.mode(outpin,gpio.OUTPUT) inpin=1 -- Select input pin - GPIO12 gpio.mode(inpin,gpio.INT,gpio.PULLUP) -- attach interrupt to ...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin plugin.name = "Votes" plugin.author = "duck" plugin.version = "0.1" plugin.description = "Adds various commands for voting." plugin.permissions = {"Custom ...
-- Copyright (C) 2006-2018 Alexey Kopytov <akopytov@gmail.com> -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- ...
local template = require("resty.template") --是否缓存解析后的模板,默认true template.caching(true) --渲染模板需要的上下文 local context = {title = "title"} --渲染模板 template.render("t1.html",context) ngx.say("<br/>") --编译得到一个lua函数 local func = template.compile("t1.html") --执行函数 local content = func(context) --ngx api ngx.say(content)
-------------- -- Worldgen -- -------------- -- Uranium minetest.register_ore({ ore_type = "scatter", ore = "elepower_nuclear:stone_with_uranium", wherein = "default:stone", clust_scarcity = 16 * 16 * 16, clust_num_ores = 5, clust_size = 3, y_max = 846, y_min = 2...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.base = "base_torso"; ITEM.name = "Olive Green, Winter Coat"; ITEM.model = "models/fty/items/wintercoat.mdl" ITEM.price = 21; ITEM.description = "An olive green winter coat that looks as warm as it feels. A tag of ...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local DT = E:GetModule('DataTexts') local CH = E:GetModule('Chat') --Lua functions local next, pairs, select, type = next, pairs, select, type local format, strjoin, wipe = string.format, strjoin, wipe --WoW API / V...
local BulletDjensen = Thing:extend("BulletDjensen") function BulletDjensen:new(x, y, dir) BulletDjensen.super.new(self, x, y) self:setImage("bosses/emotilord/djensen") self.SFX.bounce = SFX("sfx/frog_bounce") self.velocity.x = _.signbool(dir) and -700 or 400 self.velocity.y = -_.random(400, 550) self.damaging...
return {'eddie','eddo','eddy','eddies','eddos','eddys'}
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local csv = require("moonpie.ext.csv") local colors = { } function colors.convert_hex(hex) hex = hex:gsub("#","") if (string.len(hex) == 6) then ...
object_building_kashyyyk_thm_kash_south_bridge = object_building_kashyyyk_shared_thm_kash_south_bridge:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_thm_kash_south_bridge, "object/building/kashyyyk/thm_kash_south_bridge.iff")
---------------------------------------------------------------------------------------------------- -- This is a class to set the layout of UIComponent. -- -- @author Makoto -- @release V3.0.0 ---------------------------------------------------------------------------------------------------- -- import local ...
for i = 1,10 do if i == 5 then i = 6 end print(i) end
local ffi = require("ffi") local lua = require "luajit_ffi" local function report_errors(L, status) if status ~= 0 then print("-- ", ffi.string(lua.lua_tostring(L, -1))) lua.lua_pop(L, 1); -- remove error message end end local LuaState = { Defaults = {} } setmetatable(LuaState, { __call = function(self, ....
-- -- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved. -- local ConfigureRequest = Class() ConfigureRequest.implements("bridge.BridgeRequestProtocol") function ConfigureRequest.new(self) local service local config function self.init(_service, _config) service = _service ...
----------------------------------------------------------------------------- -- webThreads: Xavante resumable handlers framework -- -- Author: Javier Guerra -- Copyright (c) 2005 Kepler Project ----------------------------------------------------------------------------- local session = require "xavante.session" loc...
particles = {} function spawnParticle(type, x, y, args) local particle = {} particle.type = type particle.args = args particle.tag = "" -- used for finding related particles -- Function that sets the properties of the new particle local init = require("src/effects/particles/" .. type) ...
-- Use Include 'prosody-ldap.cfg.lua' from prosody.cfg.lua to include this file authentication = 'ldap2' -- Indicate that we want to use LDAP for authentication --storage = 'ldap' -- Indicate that we want to use LDAP for roster/vcard storage storage = { roster = "ldap"; vcard = "ldap"; ar...
local COMMAND = Clockwork.command:New("Announce"); COMMAND.tip = "Announce something to everyone on the server."; COMMAND.text = "<string Text>"; COMMAND.access = "o"; COMMAND.arguments = 1; -- Called when the command has been run. function COMMAND:OnRun(player, arguments) Clockwork.chatBox:Add(nil, nil, "cp_announc...
----------------------------------------- -- ID: 5016 -- Scroll of Shining Fantasia -- Teaches the song Shining Fantasia ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(408) end function onItemUse(target) target:addSpell(408) end
-- Helper Functions local function UpdateSelected(radioButtons, selected, silent) for i, radioButton in ipairs(radioButtons) do if radioButton ~= selected then radioButton:SetSelected(false, silent) end end end -- Public Functions local class = {} class.__index = class function class:GetName() r...
local t = require("aaaaa").mod local b = require("bbbbb") local c = require "ddddd" p("okwjgfiowjiofw").aa = 13
luapack = luapack or {} local green = {r = 0, g = 255, b = 0, a = 255} function luapack.LogMsg(...) MsgC(green, "[LuaPack] ") print(...) end local yellow = {r = 255, g = 255, b = 0, a = 255} function luapack.DebugMsg(...) MsgC(yellow, "[LuaPack] ") print(...) end function luapack.CanonicalizePath(path) path = s...
require("iuplua") require("iupluagl") require("luagl") require("luaglu") iup.key_open() cnv = iup.glcanvas{buffer="DOUBLE", rastersize = "640x480"} function cnv:resize_cb(width, height) iup.GLMakeCurrent(self) gl.Viewport(0, 0, width, height) gl.MatrixMode('PROJECTION') -- Select The Projection Matrix gl....
local function parse_args() local cmd = torch.CmdLine() cmd:option("-batch_size", 128, "") cmd:option("-alpha", 0.0001, "learning rate") cmd:option("-max_iter", 8, "max number of iteration") cmd:option("-gpu_index", 1, "the index of GPU to use") cmd:option("-params_file", "Atten/save_t_given_s...
include("plat/build.lua") local conly = { rpi = true } local softfp = { cpm = true, } local sourcefiles = filenamesof( "./hilo.b", "./hilo.bas", "./hilo.c", "./hilo.mod", "./hilo.p", "./mandelbrot.c", "./paranoia.c", "./startrek.c" ) local usesfp = { ["mandelbrot.c"] = true, ["startrek.c"] = true, } lo...
----------------------------------------- -- ID: 5006 -- Scroll of Valor Minuet V -- Teaches the song Valor Minuet V ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(398) end function onItemUse(target) target:addSpell(398) end
AmmoPackAbilityMixin = CreateMixin(AmmoPackAbilityMixin) AmmoPackAbilityMixin.type = "AmmoPackAbility" local kUseSound = PrecacheAsset("sound/NS2.fev/marine/common/pickup_ammo") AmmoPackAbilityMixin.networkVars = { timeLastAmmoPackUsed = "time", ammoPackAbilityEnabled = "boolean" } function Ammo...
--- Functions for command-line scripts. module("luarocks.command_line", package.seeall) local util = require("luarocks.util") local cfg = require("luarocks.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = require("luarocks.deps") --- Display an error message and exit. -- @...
-- Base16 PhD color -- Author: Hennig Hasemann (http://leetless.de/vim.html) -- to be use in your theme.lua -- symlink or copy to config folder `local color = require('color')` local M = {} M.base00 = "#061229" -- ---- M.base01 = "#2a3448" -- --- M.base02 = "#4d5666" -- -- M.base03 = "#717885" -- - M.base04 = "#9a99...
local entity local Fishing = false local WaterTypes = { [1] = {["name"] = "Sea of Coronado", ["waterhash"] = -247856387, ["watertype"] = "lake"}, [2] = {["name"] = "San Luis River", ["waterhash"] = -1504425495, ["watertype"] = "river"}, [3] = {["name"] = "Lake Don Julio", ["waterhash"...
local player_helper = require("/dynamic/helpers/player_helpers.lua") local angle_helpers = require("/dynamic/helpers/angle_helpers.lua") local floating_message = require("/dynamic/helpers/floating_message.lua") local shield_box = require("/dynamic/helpers/boxes/shield_box.lua") local cannon_box = require("/dynamic/...
local TCP = require('tcp') local Request = require('request') local Response = require('response') local HTTP_Parser = require('http_parser') local HTTP = {} function HTTP.create_server(host, port, on_connection) local server = TCP.new() server:bind(host, port) server:listen(function (err) if err then ...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- License -- ============================================================= --[[ > SSK is free to use. > SSK is free to edit. > ...
--this is included server side by the loader if the map is md_yard --return a function for wave generation, if nil is returned it will default to what is in the config
local FlagStandManager = {} -- ROBLOX Services local Players = game.Players -- Game Services local Configurations = require(game.ServerStorage.Configurations) -- Local Variables local FlagObjects = {} local FlagCarriers = {} local Events = game.ReplicatedStorage.Events local CaptureFlag = Events.CaptureFlag local ...
local F = require("F") local u = "Hello" local function f() local w = "World" return function() local gobo = "GOBO" print(u .. " " .. w) print(F"{u} {w} of {gobo}") end end f()()
instrument { name = "RSI", icon="indicators:RSI" } input_group { "RSI", period = input (14, "front.period", input.integer, 1), source = input (1, "front.ind.source", input.string_selection, inputs.titles), fn = input (averages.ssma, "front.newind.average", input.string_selection, averages.titles), ...
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local currentCell local collisionShapes = {} local drawCollisions = true AddRemoteEvent("mogzones:update_collision_shapes", function(receivedCollisionShapes) collisionShapes = json_decode(receivedCollisionShapes) end) AddRemoteEvent("mogzones:update_current_cell", function(cellData) currentCell = json_decode(...
--mobs_fallout v0.0.4 --maikerumine --made for Extreme Survival game --dofile(minetest.get_modpath("mobs_fallout").."/api.lua") --REFERENCE --function (mod_name_here):spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height) mobs:register_spawn("mobs...
local AddonName, AddonTable = ... -- MoP Transmog AddonTable.transmog = { 81972, 81979, 82014, 82021, 82027, 82029, 82036, 82061, 82069, 82070, 82073, 82076, 82089, 82095, 82097, 82099, 82148, 82184, 82192, 82193, 82196, 82197, ...
PLUGIN.name = "Quiz" PLUGIN.author = "Qemist & AleXXX_007 (NS 1.1)" PLUGIN.desc = "A quiz which will be shown the first time a player joins your server which they will have to answer correctly to gain access to the server." PLUGIN.players = {} nut.util.Include("sh_config.lua") nut.util.Include("sh_lang.lua") nut.util....
local bencode = require 'bencode' local encode = bencode.encode local uwrite = uart.write -- SENDING ---------------------------------------------------- local function send_message (spid, opcode, data) local s, err = encode({spid, opcode, data}) uwrite (0, s) end -----------------------------------------------...
local Command = VH_CommandLib.Command:new("Return", VH_CommandLib.UserTypes.Admin, "Return the player to last teleport position.", "") Command:addArg(VH_CommandLib.ArgTypes.Plr, {required = true}) Command:addAlias({Prefix = "!", Alias = "return"}) Command.Callback = function(Sender, Alias, Target) Target:PLForceTelep...
function Server_Created(game, settings) settings.Commanders = false; end
local Namespace = require('vgit.core.Namespace') local Buffer = require('vgit.core.Buffer') local Window = require('vgit.core.Window') local console = require('vgit.core.console') local live_blame_setting = require('vgit.settings.live_blame') local loop = require('vgit.core.loop') local Feature = require('vgit.Feature...
local S = aurum.get_translator() aurum.magic.register_spell("air_blast", { description = S"Air Blast", longdesc = S"Blasts air against whatever node the user is pointing at, sending the user flying backward.", max_level = 2, rod = function(level) return "aurum_magic:air_blast_rod_" .. level end, apply_requireme...
--[[ Copyright 2012 Rackspace 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 writing, software dis...
--[[ Copyright 2018 The Nakama Authors 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 writing, s...
local Tunnel = module('_core', 'lib/Tunnel') local Proxy = module('_core', 'lib/Proxy') cAPI = Proxy.getInterface('API') API = Tunnel.getInterface('API') local muggablePlayer Citizen.CreateThread( function() while true do Citizen.Wait(100) local nearestPlayer = cAPI.getNearestPlay...