content
stringlengths
5
1.05M
-- Path of Building -- -- Module: Calc Tools -- Various functions used by the calculation modules -- local pairs = pairs local t_insert = table.insert local t_remove = table.remove local m_floor = math.floor local m_min = math.min local m_max = math.max calcLib = { } -- Calculate and combine INC/MORE modifiers for th...
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore local DT = E:GetModule('DataTexts') -- LibMapData-1.0 for zone sizes local rc = LibStub("LibRangeCheck-2.0") local displayString = '' local lastPanel local int = 1 local curMin, curMax local updateTarget...
local materialIcon = Material("vgui/ttt/vskin/helpscreen/legacy") -- THIS IS A HACKY WORKAROUND TO KEEP SUPPORT FOR OLD TTT ADDONS -- The problem that is solved here is, that children get removed -- once their parent is removed. This happens on two occasions: -- 1. once the DTab is removed because the children are mov...
--[[ Netherstorm -- Conjurer Luminrath.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- Black...
--- 存盘管理器 --@script gg.base.savemgr --@author sundream --@release 2018/12/25 10:30:00 --@usage -- 纳入管理的对象必须实现以下函数: -- obj:savetodatabase() -- obj.savename = 存盘对象标示名字,方便人类理解 -- obj.savetick = 存盘间隔(不指定则为默认存盘间隔300s) -- 切记对象销毁后调用savemgr.closesave关闭存盘 -- 一般而言:对于需要纳入管理器的对象,再加入管理器时调用savemgr.autosave,从管理器 -- 删除时调用savemgr.close...
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not...
stateHelper = require("stateHelper") local BaseWorld = class("BaseWorld") function BaseWorld:__init(test) self.data = { general = { currentMpNum = 0, currentDynamicRecordNum = 0 }, journal = {}, factionRanks = {}, factionExpulsion = {}, f...
local Class = require("lib.class") local Vector = require("lib.vector") local Flux = require("lib.flux") local MiddleBeat = Class("MiddleBeat") function MiddleBeat:initialize(t) t = t or {} self.baseSize = t.size or Vector(360, 360) self.pos = t.pos or Vector(320, 320) self.size = self.baseSize:clon...
-- works for if/then block: 1 if foo > bar then a = a + 1 end a = 0 -- works for if/then block: 2 if foo > bar then a = a + 1 end a = 0 -- works for if/then block: 3 if foo > bar then a = a + 1 end a = 0 -- works for if/then block: 4 if foo > bar then a = a + 1 end a = 0 -- works for if/th...
package("pybind11") set_homepage("https://github.com/pybind/pybind11") set_description("Seamless operability between C++11 and Python.") add_urls("https://github.com/pybind/pybind11/archive/$(version).zip", "https://github.com/pybind/pybind11.git") add_versions("v2.5.0", "1859f121837f6c41...
-- multiple most recently used list -- fixed size, discard oldest -- stores multiple values for each key but honours recent list per individual entry -- copyright 2016 Samuel Baird MIT Licence -- API -- put key, value -> discarded value if applicable by order (not key) -- pull key -> [values] and remove from cache -- ...
-- code inserted in init_worker_by_lua configuration block
local conference_duration_component = module:get_option_string("conference_duration_component", "conferenceduration."..module.host); module:add_identity("component", "conference_duration", conference_duration_component);
--[[ Copyright (C) 2019 Google LLC 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 tha...
require("telescope").load_extension("git_worktree") -- Worktree List: Nnoremap ('<Leader>gwl', [[:lua require('telescope').extensions.git_worktree.git_worktrees()<CR>]]) -- <Enter> - switches to that worktree -- <c-d> - deletes that worktree -- <c-D> - force deletes that worktree -- Worktree Creation: Nnoremap ('<Lea...
print("Load child module") exports.name = "Child" exports.parent = require('./parent') print("Loaded child module")
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
local addon_name, addon_data = ... local maxWidth = 150 local height = 150 local ChatMonitorFrame local KEYWORDS = {} function OnLoad() local frame, events = CreateFrame("Frame"), {}; -- On addon loaded function events:ADDON_LOADED(name) if name == addon_name then ChatMonitorFrame = Cre...
-- cos of the standard parallel at 50 degrees 28' clat0 = 2/pi max_fov = 360 max_vfov = 180 onload = "f_contain" function lens_forward(x,y,z) local lat,lon = ray_to_latlon(x,y,z) local clat = cos(lat) local temp = clat*cos(lon*0.5) local D = acos(temp) local C = 1 - temp*temp temp = D/sqrt(C) l...
---@class CS.UnityEngine.CustomRenderTextureUpdateZone : CS.System.ValueType ---@field public updateZoneCenter CS.UnityEngine.Vector3 ---@field public updateZoneSize CS.UnityEngine.Vector3 ---@field public rotation number ---@field public passIndex number ---@field public needSwap boolean ---@type CS.UnityEngine.Custo...
-- Copyright (c) 2019 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ --[[ === l5.netif - Network interfaces How to configure and get information about network interfaces. --- Notes: - see man netdevices (7) ]] local l5 = require "l5" local sock = r...
#! /usr/bin/env lua local oldprint = print _G.print = function (...) oldprint (...) io.stdout:flush () end local Arguments = require "argparse" local Config = require "ardoises.config" local Http = require "ardoises.jsonhttp.socket-redis" local Json = require "rapidjson" local Keys = require 'ar...
project "Bullet_UnitTests" language "C++" kind "ConsoleApp" files { "../Bullet_UnitTests/*.h", "../Bullet_UnitTests/*.cpp"} configuration { "Debug", "windows" } includedirs { "../../../include", "../../../../3rdParty/OpenSceneGraph-3.0.1/include", "../../../../3rdParty/osgWorks...
--[[World of Warcraft Vendor Script]]-- local GlyphenVendorID = 46002 local GlyphenLoop = { [1] = {43395,43396,43397,43398,43399,43400,43412,43413,43414,43415,43416,43417,43418,43419,43420,43421,43422,43423,43424,43425,43426,43427,43428,43429,43430, 43431,43432,45790,45792,45793,45794,45795,457...
-- Path compatibility for loading modules print("Fixing up PATH and CPATH. If you have issues with your modules, then you probably need to update these for your system") package.path = "./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/in...
local rules = require "scripts.rules" local animations = require "character.animations" local Witch = require "character.character" local WitchOfTheWoods = Witch:new() function WitchOfTheWoods:new(o, control) o = o or Witch:new(o, control) setmetatable(o, self) self.__index = self return o end function Witc...
return {'pigment','pigmentatie','pigmentvlek','pigskin','pigmentpapier','pigmans','pigge','pigmenten','pigmentvlekken','pigmentvlekjes'}
require 'load_data' require 'fprop' -- This function trains a neural network language model. function train(epochs) --[[% Inputs: % epochs: Number of epochs to run. % Output: % model: A struct containing the learned weights and biases and vocabulary. ]]-- start_time = os.clock(); -- SET HYPERPARAMETERS HERE. bat...
wrk.method = "POST" wrk.body = "{\"product\":\"latte\", \"name\":\"joe\"}" wrk.headers["Content-Type"] = "application/json"
local function scoped_vars(scopes) return function (vars) for _, s in ipairs(scopes) do for k, v in pairs(vars) do s[k] = v end end end end local function scoped_opts(scopes) return function (options) for _, s in ipairs(scopes) do for k, v in pairs(options) do s[k] = v end end end end ...
-- See LICENSE for terms if not g_AvailableDlc.shepard then print("All Animals As Pets needs DLC Installed: Project Laika!") return end --~ Lama Petgraze --~ Penguin Petidle --~ for _=1, 50 do --~ SpawnAnimal(s) --~ end local roaming_pets = { Tortoise = { display_name = T(768070368933,"Tortoise"), ambient =...
local gpick = require('gpick') local color = require('gpick/color') local helpers = require('helpers') local _ = gpick._ local round = helpers.round local componentToText = function(componentType, color) if componentType == 'rgb' then return {round(color:red() * 255) .. '', round(color:green() * 255) .. '', round(co...
local getLineOfSightPoints = require('light.get_line_of_sight_points').fast local hits = {} local MAX_VERTS = 1000 -- This will crash with different dungeon generation for i=1,MAX_VERTS do hits[i] = {0, 0} end local mesh = g.newMesh(MAX_VERTS, 'fan', 'stream') local function buildLightOverlay(x, y, filter) local nu...
add_requires("libsdl", "libsdl_ttf") target("libsdl_fontcache") set_kind("static") add_files("*.c") add_packages("libsdl", "libsdl_ttf") add_headerfiles("*.h") add_installfiles("LICENSE")
--[[ TheNexusAvenger Interface representing an action. --]] local NexusGit = require(script.Parent.Parent):GetContext(script) local NexusInterface = NexusGit:GetResource("NexusPluginFramework.NexusInstance.NexusInterface") local IAction = NexusInterface:Extend() IAction:SetClassName("IAction") --[[ Returns the en...
function HandleRequest_ChestShop( Request ) local Content = "" return Content end
local log_levels = { "error", "warning", "info", "debug" } local function valid_log_level(flag, s) for _,level in pairs(log_levels) do if s == level then return s end end error("Invalid log level: '%s'" % s) end flags.register("log-level", "v") { help = "Degree of verbosity in logging (error, warning, inf...
local plugin_name = 'pg.wal' local every = 60 local function get_sql() local filename = "" if get_pg_is_in_recovery() then -- slave if get_pg_server_version() >= 10 then filename = "wal_replica_10.sql" else filename = "wal_replica_9.sql" end else -- master if get_pg_serv...
local Iterator = {} Iterator.__index = Iterator function Iterator:__call() return self:after() end function Iterator:foreach(callback) for value in self.after, self do callback(value) end end function Iterator:fold(initial, accumulator) local accumulation = initial for value in self.after, self...
local awards = {FullComboW3 = 2, SingleDigitW3 = 2, OneW3 = 2, FullComboW2 = 3, SingleDigitW2 = 3, OneW2 = 3, FullComboW1 = 4,} local function GetSongDirs() local songs = SONGMAN:GetAllSongs() local list = {} for item in ivalues(songs) do list[item:GetSongDir()]={title = item:GetMainTitle(), song ...
require "src/core/arrays" local graph = require "src/core/graph" local stack = require "src/core/stack" local tree = {} tree.__index = tree function tree.new() local self = setmetatable({}, tree) self.graph = graph:new() self.root = self.graph:add_vertex({}) return self end function tree.add(self, ...
-- Constants local segmentColors = { branch = { fill = colorGreen, text = colorBlack }, clean = { fill = colorGreen, text = colorWhite }, dirty = { fill = colorRed, text = colorWhite } } --- copied from clink.lua -- Resolves clos...
bracketl = "{" bracketr = "}" compare = {">", "<", "≥", "≤"} operation = {"+", "-"} stampa = 3 ind = math.random(2) sign = operation[ind] ind2 = math.random(2) sign2 = operation[ind2] index = math.random(4) relat = compare[index] term1 = math.random(69) + 11; term2 = math.random(90 - term1) + 10; value = term1 + ...
local cluster_reactor = assert(yatm.cluster.reactor) local function control_rod_refresh_infotext(pos, node) local meta = minetest.get_meta(pos) local infotext = cluster_reactor:get_node_infotext(pos) meta:set_string("infotext", infotext) end local control_rod_open_reactor_device = { kind = "control_rod"...
require("sysfunc") local CallOperator = RS.CallOperator local isDegree = function(a) return a._postfix == "D" end return { IsDegree = isDegree, _postfix = "D", _metatable = { __add = function(a,b) return CallOperator(a,b, "add") end, __sub = function(a,b) return CallOperator(a,b, "sub") end, __mul =...
local UI = require("rb.ui") return function(appObj) local focusedWindow = appObj:focusedWindow() local focusedWindowTitle = (focusedWindow and focusedWindow:title()) or "" if string.match(focusedWindowTitle, "Bookmarks") then UI.getUIElement(appObj, {{"AXWindow", 1}, {"AXSplitGroup", 1}, {"AXTabGroup", 1}, {"AXGr...
--ドレミコード・フォーマル --Scripted by mallu11 function c100416026.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,100416026+EFFECT_COUNT_CODE_OATH) e1:SetCondition(c100416026.condition) e1:SetTarget(c100416026.target) ...
-- Callback function for USB device events function usbDeviceCallback(data) print("usbDeviceCallback: "..hs.inspect(data)) if (data["productName"] == "Wireless Controller" and data["vendorName"] == "Sony Computer Entertainment") then event = data["eventType"] if (event == "added") then ...
-- See LICENSE for terms -- shortcut keys without a menu item (maybe Menus isn't the best folder for this) local Translate = ChoGGi.ComFuncs.Translate local Strings = ChoGGi.Strings local Actions = ChoGGi.Temp.Actions local c = #Actions c = c + 1 Actions[c] = {ActionName = Strings[302535920000734--[[Clear Log]]], A...
PackageItemType = { Image = 0, MovieClip = 1, Sound = 2, Component = 3, Atlas = 4, Font = 5, Swf = 6, Misc = 7, Unknown = 8 } ObjectType = { Image = 0, MovieClip = 1, Swf = 2, Graph = 3, Loader = 4, Group = 5, Text = 6, RichText = 7, InputText = 8, Component = 9, List = 10, ...
--- The search library _G.search = {} --- Adds a search result provider. For examples, see gamemodes/sandbox/gamemode/cl_search_models.lua --- @param provider function @Provider function --- @param id string @If provided, ensures that only one provider exists with the given ID at a time. function search.AddProvider...
--[[------------------------------------------------------------------ Half-Life 1.5: Weapon Edition theme ]]-------------------------------------------------------------------- local BUCKET, IFACE, AMMO = 'hud_bucket', 'hud_interface', 'hud_ammo' local WEAPON1, WEAPON2, WEAPON3, WEAPON4 = 'hud_weapons1', 'hud_weapo...
local text return { onLoad = function(self, timer) text = { x = 20, y = -50, rot = 0, color = {255,255,255,0} } timer.script(function(wait) self.message = "The eye is THE best part of the fish!" wait(5) self.message = "Go for it!" timer.tween(5, text, {x = 30, y = -60, rot = .1}, 'in-out-quad', fu...
--[[ @package GeanyPluginsLua @filename advanced-new-file/advanced-new-file.lua @version 2.4 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 09.03.2021 20:23:46 -04 ]]-- --- Global variables in this file local current_path = geany.dirname(geany.fileinfo().path) local ds =...
return {--[[ #PVF_File ]] ["[player number]"]={2,8}, ["[pvp start area]"]={0,0,0,0,0,0,0,0,0,0,0,0}, ["[dungeon]"]={10001,}, ["[type]"]="[normal]", ["[greed]"]="BB BB", ["[tile]"]={ "Tile/ForestOver.til", "Tile/ForestOver.til", "Tile/ForestOver.til", "Tile/ForestOver.til", "Tile/ForestOver.til", ...
-- brama na zewnatrz local brama={} addEventHandler("onResourceStart", resourceRoot, function() brama.o=getElementByID("brama_drag") end) brama.animacja=false brama.zamknieta=true brama.otworz=function() if (brama.animacja or not brama.zamknieta) then return false end brama.animacja=true --{988,-58.4,2...
DG = {} Tunnel.bindInterface("es_safezone",DG) Proxy.addInterface("es_safezone",DG) vRP = Proxy.getInterface("ESX") DGserver = Tunnel.getInterface("es_safezone","es_safezone") inSafeZone = false safeZone = nil safeZones = { -- {x, y, z, arie} ["spital"] = {366.35552978516,-593.0092163086,28.69900894165, 30}, ["spi...
local dofile, tostring, assert, type, os = dofile, tostring, assert, type, os local require, ipairs, error, debug, io = require, ipairs, error, debug, io local string = require"luv.string" local Object = require"luv.oop".Object local fs = require"luv.fs" module(...) local property = Object.property local I18n = Obje...
crucibleList = ISPanel:derive("crucibleList") function crucibleList:initialise() ISPanel.initialise(self) end function crucibleList:createChildren() self:addScrollBars(self.horizontal) self:setScrollWithParent(false) self:setScrollChildren(true) end function crucibleList:prerender() self:setStencilRect(0,0,self...
-- | isalnum | -- %W = non-alphanumeric character return function(text) return text:find("%W") == nil end
pushenv("RTM","A") pushenv("R","B")
local a = vim.api -- (row, col) -- 0-based nvim.get_cur_pos = function(buf) local b = buf or 0 local pos = a.nvim_win_get_cursor(b) return {pos[1] - 1, pos[2]} end nvim.buf_id = function() return a.nvim_get_current_buf() end -- [start(row, col), end(row, col)) -- 0-based index nvim.get_lines = function(buf, sta...
for index, player in pairs(game.players) do if player.connected then player.print("INFO: The Electric Van works now without other mods. Have fun! =)") end end
local caps = require('st.capabilities') local utils = require('st.utils') local log = require('log') local goveeapi = require('goveeapi') local command_handler = {} ------------------ -- Refresh command function command_handler.refresh(_, device) local success, data = goveeapi.get_device_state(device) if success...
-- made by Morten and CapsAdmin local webaudio = pac.webaudio or {} webaudio.preinit = false webaudio.debug = 0 webaudio.initialized = false webaudio.rate = 0 webaudio.SpeedOfSound = 6 webaudio.js_queue = {} webaudio.streams = {} local function dprint(str) if webaudio.debug == 0 then return end if webaudi...
--[[ TheNexusAvenger Class representing a view for the actions. --]] local NexusGit = require(script.Parent.Parent.Parent.Parent):GetContext(script) local NexusWrappedInstance = NexusGit:GetResource("NexusPluginFramework.Base.NexusWrappedInstance") local GetVersionRequest = NexusGit:GetResource("NexusGitRequest.GetRe...
local UIBloxRoot = script.Parent.Parent local Cryo = require(UIBloxRoot.Parent.Cryo) local StateTable = {} StateTable.__index = StateTable local function validateStateTableItem(item, qualifier) local type = typeof(item) local isValid = type == "string" or type == "userdata" assert(isValid, string.format("%s '%s' ...
local skynet = require "skynet" require "skynet.manager" local httpc = require "http.httpc" local cjson = require "cjson" local function request(host, url, msg) local content = cjson.encode(msg) local header = {} local respheader = {} local status, body = httpc.request("post", host, url, resphe...
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the license found in the -- LICENSE file in the root directory of this source tree. -- --[[ -- -- A "master" script that can launch a given script. -- --]] if #arg > 0 then if arg[1] == '--help' or arg[1]...
local AvailableExtras = {['VehicleExtras'] = {}, ['TrailerExtras'] = {}} local Items = {['Vehicle'] = {}, ['Trailer'] = {}} local Menupool = MenuPool.New() local MainMenu = UIMenu.New('Vehicle Extras', '~b~Enable/Disable vehicle extras') local TrailerMenu, MenuExists, Vehicle, TrailerHandle, GotTrailer, DeletingMenu Me...
local shell = require("shell") local args, ops = shell.parse(...) if #args < 1 then for k, v in pairs(os.getenvs()) do print(k .. "=" .. v) end else local pos = string.find(args[1], '=') if pos then local name = args[1]:sub(1,pos-1) local val = args[1]:sub(pos+1) print("Set " .. name .. " to " .. val) os...
if SERVER then AddCSLuaFile() util.AddNetworkString("LambdaWaterBullet") end local DbgPrint = GetLogging("Bullets") if CLIENT then local BULLET_STEP_SIZE = 2500 local BULLET_STEP_DISTANCE = 15 function GM:CreateWaterBulletParticles(bullet, newPos, distance) local ply = LocalPlayer() ...
object_tangible_collection_rare_pistol_silencer = object_tangible_collection_shared_rare_pistol_silencer:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_pistol_silencer, "object/tangible/collection/rare_pistol_silencer.iff")
local aName, aTable = ...; local require = ExiWoW.require aTable.underwear = function(self) local Underwear = require("Underwear"); local Event = require("Event"); local Effect = require("Effect"); local Condition = require("Condition"); local Database = require("Database"); local RPText = require("RPText"); ...
animationguiline = class("animationguiline") animationlist = {} local toenter = {} --TRIGGERS: table.insert(toenter, {name = "mapload", t = { t="trigger", nicename="on map load", entries={ } } }) table.insert(toenter, {name = "animationtrigger", t = { t="trigger", nicename="an...
object_tangible_component_structure_shared_heavy_harvesting_mechanism_advanced = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/structure/shared_heavy_harvesting_mechanism_advanced.iff" } ObjectTemplates:addClientTemplate(object_tangible_component_structure_shared_heavy_harvest...
-- rFilter_Zork: cooldown -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... ----------------------------- -- Cooldown Config ----------------------------- if L.C.playerName == "Zörk" then rFilter:CreateCooldown(1160,36,{"CENTER"},"[spec:3,combat]show;hide",{0...
msg = {"дуж а", "дуж b", "дуж c", "т/н"} check = {"т", "н"}
--[[ MIT License Copyright (c) 2018 JWRR.COM git clone https://github.com/jwrr/lued.git 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 righ...
F1Npc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.lastClick = npc.ID player.dialogType = 0 local opts = {} local string = "Hello " .. player.name .. "! H...
-- compares two string version numbers, like those given by on_configuration_changed -- returns <0 if oldVersion is older and >0 if newVersion is older, 0 if they're equal function version_compare(oldVersion, newVersion) local old, new = {major,minor,patch}, {major,minor,patch} _,_,old.major,old.minor,old...
-------------------------------------------------------------------------------- -- Tweenable properties of ViewObjects -------------------------------------------------------------------------------- Tweenables = {} Tweenables._map = { X = 'x', Y = 'y', WIDTH = 'width', HEIGHT = 'height', SCA...
--Cloud2Sunny Icon Base local buf buf = string.char(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00) buf = buf .. string.char(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00) buf = buf .. string.char(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,...
local EventManager = require 'utils.EventManager'; local UserDefault = require "utils.UserDefault" local timeModule = require "module.Time" local notificationCenter = nil; local notificationIndex = {}; local function Get() if notificationCenter == nil then notificationCenter = UnityEngine.GameObject.FindW...
--set default variables fax_retry_sleep = 10; fax_retry_limit = 3; -- show all channel variables --dat = env:serialize() --freeswitch.consoleLog("INFO","info:\n" .. dat .. "\n") -- example channel variables relating to fax --variable_fax_success: 0 --variable_fax_result_code: 49 --variable_fax_resu...
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)...
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- function onInit() synchToCount(); synchTokenView(); end function synchTokenView() for k, v in pairs(maplinklist.getWindows()) do v.token.setPrototype(token.getPrototype()); end end function...
RegisterServerEvent('npc:infinity:player:ready') AddEventHandler('npc:infinity:player:ready', function() local ting = GetEntityCoords(GetPlayerPed(source)) TriggerClientEvent('npc:infinity:player:coords', -1, ting) end) Citizen.CreateThread(function() while true do Citizen.Wait(30000) ...
-- See LICENSE for terms local UpdateOptions local options local mod_AlienAnomaly local mod_HideSigns local mod_ShowConstruct -- fired when settings are changed/init local function ModOptions() mod_AlienAnomaly = options:GetProperty("AlienAnomaly") mod_HideSigns = options:GetProperty("HideSigns") mod_ShowConstruct...
--[[ MIT License Copyright (c) 2019 Mitchell Davis <coding.jackalope@gmail.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 us...
require("hooks.camera")
LevelUpMenuState = Class{__includes = BaseState} function LevelUpMenuState:init(battleState, pokemon, onClose) self.battleState = battleState self.closed = false self.pokemon = pokemon self.onClose = onClose gSounds['levelup']:play() self.previousHP = self.pokemon.HP self.previousAttack = ...
local Game = require 'game' require 'gamestates.intro' require 'gamestates.play' require 'gamestates.win' local media = require 'media' local game function love.load() media.load() media.music:play() game = Game:new() game:gotoState('Intro') end function love.update(dt) game:update(dt) end function lo...
--[[ -- Skipper Interface 1.0.0 ------- By Trezdog44 ------- Inspired By TIME ------------------------ "skipper_intf.lua" > Put this VLC Interface Lua script file in \lua\intf\ folder -------------------------------------------- *** Requires "super-skipper.lua" > Put the VLC Extension Lua script file in \lua\exte...
---@meta --=== debug === ---@class debug debug = {} ---Returns a sorted array of the strings returned from\ ---the `lua_getstrings` function. ---@param type string|'"RAM"'|'"ROM"' ---@return table function debug.getstrings(type) end
local status_ok, lightspeed = pcall(require, "lightspeed") if not status_ok then return end lightspeed.setup({ ignore_case = false, exit_after_idle_msecs = { unlabeled = 1000, labeled = nil }, --- s/x --- jump_to_unique_chars = { safety_timeout = 400 }, match_only_the_start_of_same_char_seqs = true, force_beaco...
---获取变量是不是 nil 或空字符串 ---@param value any ---@return boolean function IsNilOrEmpty(value) return value == nil or value == '' end ---检查Table是否设置了某个键值 ---@param hashtable any Table ---@param key string 键值 ---@return boolean function IsSet(hashtable, key) local t = type(hashtable) return (t == "table" or t == "userd...
--MoveCurve --M_DEM_21101/curve_HitBeatBack curve_HitBeatBack return { filePath = "M_DEM_21101/curve_HitBeatBack", startTime = Fixed64(1048576) --[[1]], startRealTime = Fixed64(22719) --[[0.02166667]], endTime = Fixed64(8178893) --[[7.8]], endRealTime = Fixed64(177210) --[[0.169]], curve = { [1] = { time = ...
local image = ThemePrefs.Get("VisualTheme") local game = GAMESTATE:GetCurrentGame():GetName() if game ~= "dance" and game ~= "pump" then game = "techno" end local t = Def.ActorFrame{ InitCommand=function(self) self:y( image == "Hearts" and _screen.cy or _screen.cy+10 ) end, LoadActor(THEME:GetPathG("...
--[[ Description: Responsible for basic client-server communication Author: Sceleratis Date: 12/11/2021 --]] local Package, Utilities, Service, Root local GettingEvent = false local PlayerData = {} local Sessions = {} local Methods = {} --- Remote (server-to-client) commands. --- These should be executed using ...