content
stringlengths
5
1.05M
---[[ inputs Object = require "Libraries/classic/classic" require "Modules/valueSquare" local id, x, y, textureHeight, textureWidth, scale, terrainPoints = ... --]] local function addVertices(vertices) for k,v in ipairs(vertices) do ---[[ output local vertixTable = { v[1], v[2], v[1]/textureWidth/2, v[2]/t...
-------------------------------------------------------------------------------- -- form.lua, v0.6: generates html for forms -- This file is a part of Sailor project -- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org ------------------------------------------------------...
local utils = require("utils") local fileLocations = require("file_locations") local tasks = require("utils.tasks") local filesystem = require("utils.filesystem") local config = require("utils.config") local threadHandler = require("utils.threads") local binaryReader = require("utils.binary_reader") local runtimeAtlas ...
function love.conf(w) w.title = "Hungry Shark" w.window.width = 1440 w.window.height = 870 w.window.resizable = false -- En dessous, la version de löve sur lequel le jeu a été codé w.version = 11.3 -- En dessous, anti aliasing w.window.msaa = 8 -- En dessous, le numéro du moniteur su...
local composer = require( "composer" ) local scene = composer.newScene() local mte = MTE local Screen = Screen local json = require ("json") local myData = require ("IsometricComposer.mydata") system.activate("multitouch") --------------------------------------------------------------------------------- -- All code ou...
local _, nCore = ... function nCore:Durability() if not nCoreDB.Durability then return end local select = select local unpack = unpack local modf = math.modf local format = string.format local gradientColor = { 1, 0, 0, 1, 1, 0, 0, 1, 0 } local slotInfo = { ...
--Item tools by IllidanS4 local item = {} local unit = require("unit") local memory = require("memory") local err = require("errors") function item.create(type, ...) return unit.create(type, ...) end function item.gold(amount, ...) local itm = item.create("Gold", ...) if not itm then return end local data = u...
require "newtokenizer" require "lib.iter" require "lib.dump" require "lib.stringext" require "errfmt" require "common" global = {} dent = " " source = fetch(...) assert(source, "a source file must be specified") tokens = tokenize(source) assert(tokens, "tokenization failure") function indent() local d = 0 re...
print("Structures RAN") local STRUCTURE = {}; STRUCTURE.ID = "base_structure"; STRUCTURE.Name = "Base"; STRUCTURE.Description = "Base Territorial Structure"; STRUCTURE.Model = "models/parthenon/parthenon.mdl"; STRUCTURE.Capital = true STRUCTURE.Health = 1000 STRUCTURE.RequiresWorkers = false STRUCTU...
------------------------ -- Constant definitions. -- @other constants --- Some pre-defined folder locations. FOLDER = { ASSETS = "game/assets/", -- default asset folder location PARTICLESYSTEMS = "game/assets/particlesystems/", -- default particle system asset folder location } --- Mouse input constants. -- @see In...
local curl = require "cURL" -- Documentation does not restrict using the same mime with different easy handle. -- In fact it does not mention this case at all. But in my experiments it works. local easy = curl.easy() -- Create new mime object. local mime = easy:mime() -- Add part. Source of data is file on disk. -- ...
--[[ 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 that it will be useful, ...
-- {{{ Grab environment local setmetatable = setmetatable local helpers = require("vicious.helpers") local tonumber = tonumber -- }}} -- fanspeed: provides speed level of main fan -- -- expects one (1) full sysctl string to entry -- e.g.: "dev.acpi_ibm.0.fan_speed" local fanspeed_freebsd = {} local function worke...
-- -- Author: huger -- Date: 2018-01-16 16:23:06 -- local LoginController = class("LoginController") function LoginScene:ctor(scene) self.scene = scene self.init() end function LoginController:init() end return LoginController
--[[ TheNexusAvenger Sends messages in bulk through 1 topic to prevent too many topics being used. --]] local BulkMessagingService = {} BulkMessagingService.__index = BulkMessagingService local HttpService = game:GetService("HttpService") --[[ Creates a bulk messaging service. --]] function BulkMessagingService.n...
DevVincinator=Instance.new("ScreenGui")Frame=Instance.new("Frame")TextLabel=Instance.new("TextLabel")F1=Instance.new("Frame")Frame_2=Instance.new("Frame")TextLabel1=Instance.new("TextLabel")CTRLDel=Instance.new("TextButton")Noclip=Instance.new("TextButton")SpawnElse=Instance.new("TextButton")F2=Instance.new("Frame")Fra...
return {'vezel','vezelachtig','vezelen','vezelfabriek','vezelgewas','vezelig','vezeligheid','vezelplaat','vezelplant','vezelproductie','vezelrijk','vezelstof','vezeltje','vezelvlies','vezen','vezelgroep','vezelmarkt','vezelvlas','vezelgehalte','vezelachtige','vezelachtiger','vezelactiviteiten','vezelde','vezelfabrieken...
require("unitopia.main.playback") Audio = require("unitopia.audiosystem")() AreaHandler = require("unitopia.areahandler") ConfigurationManager = require("unitopia.configurationmanager")() PluginManager = require("unitopia.pluginmanager")() PPI = require("ppi") Path = require("pl.path") CONFIG_FILE_NAME = "settings.dat...
local null_ls = require("null-ls") local ts_utils = require("nvim-lsp-ts-utils") local import_all = require("nvim-lsp-ts-utils.import-all") local api = vim.api local lsp = vim.lsp local base_path = "test/files/" local edit_test_file = function(name) vim.cmd("e " .. base_path .. name) end local get_buf_content ...
local parent, ns = ... local Compat = ns.Compat local RGBPercToHex = Compat.RGBPercToHex local tLength = Compat.tLength local pairs = pairs local RAID_CLASS_COLORS = CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS local classColorsTable local classInfoTable -- the functions below are for internal usage only local function...
local function addLeaderboardItems(leaderboardKey, items) assert(typeof(items) == 'table') return { type = script.Name, leaderboardKey = leaderboardKey, items = items, } end return addLeaderboardItems
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Mike Pall local function kfrequency(seq, freq, k, frame) local sub = string.sub local k1 = k - 1 for i = frame, string.len(seq) - k1, k do local c = sub(seq, i, i + k1) freq[c] = freq[c] +...
minetest.register_chatcommand("fly", { description = "Gives A User Access To Flight", func = function(name, param) local privs = minetest.get_player_privs(name) privs.fly = true minetest.set_player_privs(name, privs) minetest.chat_send_all(minetest.colorize("#FF00E0", name.." now has fly!...
registerNpc(72, { walk_speed = 140, run_speed = 700, scale = 88, r_weapon = 1011, l_weapon = 0, level = 13, hp = 25, attack = 64, hit = 71, def = 47, res = 26, avoid ...
-- ===================================================================================== -- Name: helpers.lua -- Author: Gurpreet Singh -- Url: https://github.com/ffs97/config-awesome/helpers.lua -- License: The MIT License (MIT) -- -- Custom helper functions for awesomewm -- =============...
local md5 = crypto.md5("abc") log.info("md5 result",md5) assert(md5:upper() == "900150983CD24FB0D6963F7D28E17F72","md5 error") local sha1 = crypto.sha1("abc") log.info("sha1 result",sha1) assert(sha1:upper() == "A9993E364706816ABA3E25717850C26C9CD0D89D","sha1 error") local sha256 = crypto.sha256("abc") log.info("sha2...
local M = {} function M.save_and_exec() if vim.bo.filetype == "vim" then vim.cmd([[ silent! write source % ]]) elseif vim.bo.filetype == "lua" then vim.cmd([[ silent! write luafile % ]]) end end function M.highlight(...) -- https://github...
local Map = require "maps.map" local MountainPass = Map:new() function MountainPass:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function MountainPass:create() Map.create(self) end function MountainPass:enter() Map.enter(self) if self.data.boulde...
local path = minetest.get_modpath("mobs_animal") -- Animals dofile(path .. "/chicken.lua") -- JKmurray dofile(path .. "/cow.lua") -- KrupnoPavel dofile(path .. "/sheep.lua") -- PilzAdam dofile(path .. "/bunny.lua") -- ExeterDad dofile(path .. "/kitten.lua") -- Jordach/BFD dofile(path .. "/dog.lua") -- KrupnoPavel do...
object_tangible_wearables_armor_armor_base_clone_trooper = object_tangible_wearables_armor_shared_armor_base_clone_trooper:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_armor_base_clone_trooper, "object/tangible/wearables/armor/armor_base_clone_trooper.iff")
-- -- $Id$ -- module( "resmng" ) svnnum("$Id$") propLanguage = { [LG_VERSION_UPDATE] = { ID = LG_VERSION_UPDATE, EN = "Update", CN = "你的游戏版本有更新, 更新包大小为 %s/MB 当前处于 %s, 点击确定进行更新", KR = "",}, [LG_VERSION_DOWNLOAD] = { ID = LG_VERSION_DOWNLOAD, EN = "Downloading", CN = "正在下载", KR = "",}, [LG_VERSION_DEMPORESS] = { ID...
local WIDGET, VERSION = 'ScrollFrame', 1 local GUI = LibStub('NetEaseGUI-2.0') local ScrollFrame = GUI:NewClass(WIDGET, 'ScrollFrame', VERSION) if not ScrollFrame then return end local function ScrollBarOnShow(self) local parent = self:GetParent() local child = parent:GetScrollChild() if not child th...
local isCop = false local isDoc = false local isMedic = false local isTher = false local isMech = false local isPDM = false local asSteamIdKeys = false local cidDoctorsCopAccess = { 1 } function DrawText3DTest(x,y,z, text) local onScreen,_x,_y=World3dToScreen2d(x,y,z) SetTextScale(0.35, 0.35) Set...
-- Event notes hooks function onEvent(name, value1, value2) if name == 'yourefucked' then playSound('5uatyisangry', 0.5); makeAnimatedLuaSprite('5uatyisangry', '5UATY/5uatyisangry', 180, 1500); --5uatyisangry, addAnimationByPrefix('5uatyisangry', 'idle', '5uatyisangry', 12, true); setProperty('5uatyisang...
local json = require("cjson") local ltn12 = require("ltn12") local format_price, extend do local _obj_0 = require("payments.paypal.helpers") format_price, extend = _obj_0.format_price, _obj_0.extend end local encode_query_string encode_query_string = require("lapis.util").encode_query_string local concat concat = t...
------------------------------------------------------------------------------------- --=---=-=====-=---=-=---=--====------=====-===-====--=====-=====-====---===--====---- --=---=-=-----==--=-=---=-=----------=------=--=---=-=-------=---=---=-=---=-=---=--- --=---=-===---=-=-=-=---=--===-------===----=--====--===---...
-- local onShip local function getData(k) return root.itemConfig({name = "stardustlib:datastore", count = 1, parameters = { dataRequest = { [k] = true } } }).parameters.dataReturn[k] end local function setData(k, v) root.itemConfig({name = "stardustlib:datastore", count = 1, parameters = { dataInsert = { [k] = v ...
local initialize_IncreasingThreat = SmugglersMarket.initialize function SmugglersMarket.initialize() initialize_IncreasingThreat() if onServer() then local station = Entity() station:addScriptOnce("merchants/informant.lua") station:addScriptOnce("merchants/briber.lua") end end
--[[ ------------ ]]-- --[[ EXP History GUI ]]-- --[[ ------------ ]]-- ------------ ---GUI function EchoExperience:EH_Setup() EchoExperience.debugMsg2( "EH_Setup: called" ) EchoExperience.view.eh = {} EchoExperience.view.eh.frame = EOL_EXPHISTORY_Frame EchoExperience.view.eh.list = EOL_EXPHISTOR...
return { id = 82, furnitures_4 = { { id = 82101, parent = 0, y = 9, dir = 1, x = 0, child = {} }, { id = 82101, parent = 0, y = 1, dir = 1, x = 9, child = {} }, { id = 82101, parent = 0, y = 0, dir = 1, x = 16, child = {} }, { id = 82105, paren...
#!/usr/bin/env luajit require"ccrypt" local text=io.read("*a") print(text:utf8reverse())
--[[-- @package Geany plugins lua @filename nest-comment/configure.lua @version 3.0 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 03.08.2020 14:00:48 ]] local ds = geany.dirsep local config_dir = geany.appinfo().scriptdir .. ds .. 'support' .. ds .. 'nest-comment' .. ds...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: camera_shake.lua -- brief: Camera shakes -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL, ...
--[[ Author: Noya Date: 14.1.2015. If cast on an ally it will heal, if cast on an enemy it will do damage ]] function DeathCoil( event ) -- Variables local caster = event.caster local target = event.target local ability = event.ability local damage = ability:GetLevelSpecialValueFor( "target_damage" , ability:Ge...
require('lualine').setup { options = { theme = 'iceberg_dark', section_separators = '', component_separators = '', icons_enabled = 0 } }
local null_ls_status_ok, null_ls = pcall(require, "null-ls") if not null_ls_status_ok then return end -- Required packages: -- yay prettier_d_slim -- yay eslint_d -- yay actionlint -- yay shellcheck -- yay shfmt -- yay lua-format -- yay yamllint null_ls.setup({ debug = true, sources = { null_ls.builtins.forma...
require("map") -- we need map.lua and everything in it, so this line makes that happen! require("levels") -- we also need to know about the levels we've written. They're in levels.lua require("SpecialTiles") function onScreen () if player.x > 1 and player.x + player.width + 1 < getPixelWidth() and player.y+pla...
object_tangible_quest_som_smoking_marker_01 = object_tangible_quest_shared_som_smoking_marker_01:new { } ObjectTemplates:addTemplate(object_tangible_quest_som_smoking_marker_01, "object/tangible/quest/som_smoking_marker_01.iff")
local Barrier = {} function Barrier.new(left, top, width, height) local barrier = {} barrier.x = left barrier.y = top barrier.w = width barrier.h = height barrier.vx = -200 barrier.vy = 0 barrier.color = {0, 0, 255} barrier.is_ground = true barrier.is_barrier = true ba...
local scene = sl.Scene.empty(sl.device) assert(scene) assert(scene:device() == sl.device) local node = scene:createNode() assert(node) scene:removeNode(node) node = scene:createNode() scene:removeNodeById(node:id()) scene:visit(function(cmp) end) scene:visitByTags(0, function(cmp) end) scene:update() scene:render...
local AddonName, HubData = ...; local LocalVars = TidyPlatesHubDefaults -- Widget Helpers local WidgetLib = TidyPlatesWidgets local CreateThreatLineWidget = WidgetLib.CreateThreatLineWidget local CreateAuraWidget = WidgetLib.CreateAuraWidget local CreateClassWidget = WidgetLib.CreateClassWidget local CreateRang...
----------------------------------- -- Attachment: Inhibitor II ----------------------------------- require("scripts/globals/automaton") require("scripts/globals/status") ----------------------------------- function onEquip(pet) updateModPerformance(pet, tpz.mod.STORETP, 'inhibitor_ii_mod', 10) pet:addMod(tpz....
--[[ TASK_Genericを使用してLuaでタスクを記述する例 ]] tblCHAR2 = {} countCHAR2 = 0 _BossHP = 530000 _Money = 0 function initChar2(key, index, x, y, asset) local tbl = {} -- add execute & die method pGenTask = TASK_Generic("execute_char2", "die_char2", key) -- set Char status tbl.x = x tbl.y = y tbl.atk = index ^ 2...
require "State" require "scripts/button.lua" returnbutton = class(Button) function returnbutton:Init() self.super.entity = self.entity --configure the box location local msg = "" if State.name() ~= "gGame" then self.entity:box():set(32, 625, 250, 50) msg = "Save & Quit" else msg = "Return" end self.supe...
require('engine.common') local PlayerHud = GameObject:derive("playerhud") function PlayerHud:_init(player) GameObject._init(self) self.player = player end -- TODO pretty this display up function PlayerHud:draw(game) love.graphics.setColor(255, 255, 255, 255) love.graphics.print("Spitball Machines: " .. #sel...
--===========================================================================-- -- -- -- System.Recycle -- -- -- ...
-- global Standing local _={} _.name="Standing" -- from,to:entity -- returns -10 to 10 _.get=function(from, to) if to.entity=="Pantera" then return -10 end return 0 end return _
local ffi=require('ffi') ffi.cdef[[ typedef uint16_t uint16; typedef uint8_t uint8; typedef uint32_t uint32; typedef struct __attribute__ ((__packed__)) { char sig[22]; uint8 terminator; uint8 major; uint8 minor; uint32 sampleRate; uint32 total; uint8 compression; uint8 flag...
return {'laadbak','laadboom','laadbrief','laadbrug','laadcapaciteit','laaddeur','laadhoofd','laadkist','laadklep','laadkraan','laadperron','laadplaats','laadpoort','laadruim','laadruimte','laadschop','laadspanning','laadstation','laadstok','laadstroom','laadvermogen','laadvloer','laadvolume','laaf','laag','laagbetaald'...
return function(import) local Promise = import 'Class/Promise' local assetService = import 'AssetService' return { createPlaceInPlayerInventory = Promise.promisify(function(...) return assetService:CreatePlaceInPlayerInventoryAsync(...) end), createPlace = Promise.prom...
Lang['fr'] = { ['OpenShop'] = 'Appuyez sur [~ e ~ SPACE ~ q ~] pour ouvrir le menu de la boutique', ['MenuTitle'] = 'Magasin général', ['Category'] = 'Catégorie', ['Buy'] = 'Acheter des articles', ['Sell'] = 'Vendre des objets', ['Food'] = 'Nourriture', ['Meds'] = 'Médical', ['Misc'] = 'Divers', ['Foo...
--[[ 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...
return [=====[ ${execi 1 playerctl metadata xesam:artist | sed 's/-/—/'} ${font Quicksand:size=20}${execi 1 playerctl metadata xesam:title | sed 's/-/—/'}${font} #${alignr}${execi 1 playerctl status} ]=====]
--[[ TheNexusAvenger Represents an event connection. --]] local CLASS_NAME = "NexusConnection" local NexusObjectFolder = script.Parent.Parent local NexusObject = require(NexusObjectFolder:WaitForChild("NexusObject")) local NexusConnection = NexusObject:Extend() NexusConnection:SetClassName(CLASS_NAME) --[[ Crea...
--[[ Disables camera shake on weapon attacks This mod was ported from v1 workshop mod "No Wobble" to QoL Original Author: SkacikPL ]] -- local mod_name = "NoWobble" local mod = { } mod.update = function() if Managers.state.network ~= nil and Unit.alive(Managers.player:local_player().player_unit) then local firs...
if not Client then return end local blockableProps = debug.getupvaluex(MapParticlesOption_IsPropnameBlockable, "blockableProps") blockableProps["ns2_biodamnnn"] = set { "models/marine/dropship/dropship.model", "models/props/biodome/biobome_outdoor_rock_01.model", "models/props/biodome/biobome_outdoor_rock_...
--[[ PublishToInstagram.lua Add selected photos to LR/Instagram service Later modify to create a separate collection set and collection --]] require 'PluginInit' local LrFunctionContext = import 'LrFunctionContext' local LrBinding = import 'LrBinding' local LrDialogs = import 'LrDialogs' local LrView = im...
local Path = require('plenary.path') require('possession').setup { session_dir = (Path:new(vim.fn.stdpath('data')) / 'possession'):absolute(), silent = false, load_silent = true, debug = false, commands = { save = 'PossessionSave', load = 'PossessionLoad', delete = 'Possessio...
local function deploy_copy(cat9, root, job) -- combinations going in -- -- src: userdata | table -- dst: userdata | table -- -- once committed - this is not directly cancellable (currently) without -- explicitly closing the job src/dst inputs -- if type(job.src) == "userdata" and type(job.dst) == "userdata" then loc...
--[[ Copyright (c) 2020 jakub-vesely This software is published under MIT license. Full text of the licence is available at https://opensource.org/licenses/MIT --]] local mpu9250 = { measured_actions = {} } function mpu9250.get_temperature() return cl_mpu9250_get_temperature(); end function mpu9250.get_accel...
local obj = {} obj.__index = obj obj.name = "Resize" function obj:enlarge(window, screen) if (window.x - 10) >= screen.x then window.x = window.x - 10 end if (window.y - 10) >= screen.y then window.y = window.y - 10 end window.w = window.w + 20 window.h = window.h + 20 return window end functi...
local basic_serializer = require "kong.plugins.log-serializers.basic" local log = require "kong.plugins.apig-monitoring.log" local BasePlugin = require "kong.plugins.base_plugin" local ngx = ngx local initialized = false local requested = false local MonitoringPlugin = BasePlugin:extend() MonitoringPlugin.PRIORITY ...
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 10, "version_minor", 3, }), }, "title", "Reorder Queued Research (Obsolete)", "id", "ChoGGi_ReorderQueuedResearch", "steam_id", "2449037850", "pops_any_uu...
require "keycodes" local parachute_id = "GADGET_PARACHUTE" -- org author chileno function ApplyForceToEntity(ped_id, x, y) entity.APPLY_FORCE_TO_ENTITY(ped_id, 1, 0, x,y ,0,0,0,0,1,1,1,0,1) end function OnScriptTick() if gui.KeyPressed(KEY_H) then local hash = gameplay.GET_HASH_KEY(parachute_id) weapon.G...
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. 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 applica...
return {'tovenaar','tovenaarsleerling','tovenaarster','tovenares','tovenarij','toveraar','toverachtig','toverbal','toverbeeld','toverbeker','toverboek','tovercirkel','toverdoos','toverdrank','toveren','toveres','toverfee','toverfiguur','toverfluit','toverformule','toverformulier','tovergodin','toverheks','toverij','tov...
local old_addweapmods_init = GageAssignmentTweakData.init function GageAssignmentTweakData:init(tweak_data) old_addweapmods_init(self, tweak_data) self.assignments = {green_mantis = {}} self.assignments.green_mantis.unit = Idstring("units/pd2_dlc_gage_jobs/pickups/gen_pku_gage_green/gen_pku_gage_green") self.a...
-- Name: Nightbuddy -- Description: Minimalist Collection of Dark Colorschemes Written in Lua -- Author: DilanGMB <Dilan.baron79@gmail.com> -- Website: https://github.com/DilanGMB/nightbuddy local Color = require('colorbuddy.color').Color --------------------- -- LIGHT COLORS -- ----------------...
node = require("nodes/node") ball = require("nodes/ball") ground = require("nodes/ground") powerupManager = require("nodes/powerupmanager") solidGround = require("nodes/powerups/solidground") clouds = require("nodes/clouds") gameState = require("data/gamestate") gameData = require("data/gamedata") display = require("da...
-- get_ip.lua -- affiche l'adresse IP -- zf180718.1103 wifi.sta.connect() tmr.alarm(0, 1000, tmr.ALARM_AUTO , function() if wifi.sta.getip() == nil then print("Connecting to AP...") else print("Connected! IP: ",wifi.sta.getip()) tmr.stop(0) end end)
slot0 = class("InstagramLayer", import("...base.BaseUI")) slot0.getUIName = function (slot0) return "InstagramUI" end slot0.SetProxy = function (slot0, slot1) slot0.proxy = slot1 slot0.instagramVOById = slot1:GetData() slot0.messages = slot1:GetMessages() end slot0.UpdateSelectedInstagram = function (slot0, slot...
local FireParticles = class("FireParticles", Particles) local PI = 3.14159 FireParticles.static.puffimg = love.graphics.newImage("assets/particles/fire.png") function FireParticles:initialize(x, y, w, h, lifetime, scale) Particles.initialize(self, x, y, w, h, lifetime)--camera.view_x({x = x, y = y}), camera.view_y...
local domains = { -- domains that exist locally only { fake = 'mdc.gov' }, { fake = 'bankofsa.sa', fn = function() triggerServerEvent("computers:onlineBanking", localPlayer) end }, { fake = 'ippc.sa' }, { fake = 'faa.gov', fn = function() triggerEvent("faa:maingui", localPlayer) end }, { fake = 'investplace.net',...
local guide = require 'parser.guide' local vm = require 'vm.vm' local files = require 'files' local util = require 'utility' local config = require 'config' local function getGlobalsOfFile(uri) local cache = files.getCache(uri) if cache.globals then return cache.globals end local g...
-- TestConfigTree Tests (without using Testing Framework) return {function() -- wrap the function in a table to avoid detection by the TestRunnerPlugin local progress = "startup" spawn(function() if not progress then print("TestConfigTree tests successful") elseif progress ~= -1 then error("TestConfigTree tests g...
data:extend({ { type = "item-group", name = "cwb-behind-the-scene", icon = "__core__/graphics/questionmark.png", icon_size = 64, order = "y" }, { type = "item-subgroup", name = "cwb-behind-the-scene", group = "cwb-behind-the-scene", ord...
local Types = require'losc.types' describe('string', function() local value = 'hello' local expected_bytes = {104, 101, 108, 108, 111, 0, 0, 0} local data describe('pack', function() setup(function() data = Types.pack.s(value) end) it('returns the correct byte representation', function() ...
RunAwayState = State:new() function RunAwayState:needToRun(game_context, bot_context) -- must be in battle if not game_context.battle.is_in_battle then return false end -- run away with low hp characters for character_index = 0,2 do local character = game_context.characters[character_index] if...
module(..., package.seeall) local http = require 'lglib.http' local ENCODING_MATCH = '^%s-([%w/%-]+);*(.*)$' local URL_ENCODED_FORM = 'application/x-www-form-urlencoded' local MULTIPART_ENCODED_FORM = 'multipart/form-data' --- parse http headers, transform it to lua table -- @param head: original HTTP header st...
local _M = { _VERSION = '0.01' } local ip_parser = require "apps.lib.ip_parser" _M.get = function() local ip2long = ip_parser:get_ip2long() return ip2long end return _M
require("Foundation") Object:typeMapping("ios", "LSCHTTPTask", "HTTPTask"); Object:typeMapping("ios", "LSCHTTPFile", "HTTPFile"); Object:typeMapping("android", "cn.vimfung.luascriptcore.modules.network.HTTPTask", "HTTPTask"); Object:typeMapping("android", "cn.vimfung.luascriptcore.modules.network.HTTPFile", "HTTPFile...
local ui = require "tek.ui" local DrawHook = require "tek.ui.class.drawhook" local assert = assert local floor = math.floor local max = math.max local min = math.min local type = type local RippleHook = DrawHook.module("tek.ui.class.ripple", "tek.ui.class.drawhook") RippleHook._VERSION = "RippleHook 5.1" function R...
object_tangible_item_beast_converted_vesp_decoration = object_tangible_item_beast_shared_converted_vesp_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_vesp_decoration, "object/tangible/item/beast/converted_vesp_decoration.iff")
local M = {} function M:init() self.token_tbl = {} end function M:get(account) local t = self.token_tbl[account] if not t then return nil end if os.now() - t.time > 3600 then return nil end return t.token end function M:gen(account) local t = { token = math.r...
local payChannelIcons_pin_map = require("qnFiles/qnPlist/hall/payChannelIcons_pin"); local shortCutRecharge_pin_map = require("qnFiles/qnPlist/hall/shortCutRecharge_pin"); local rechargeModeItem= { name="rechargeModeItem",type=0,typeName="View",time=0,report=0,x=0,y=0,width=289,height=147,visible=1,fillParentWidth=0,f...
object_tangible_storyteller_prop_pr_ch9_landspeeder_xp34 = object_tangible_storyteller_prop_shared_pr_ch9_landspeeder_xp34:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_landspeeder_xp34, "object/tangible/storyteller/prop/pr_ch9_landspeeder_xp34.iff")
Class = require("pl.class") Script = require("speedwalking.script") Types = require("pl.types") Class.Avalon_Ashar_Tor_Aussen(Script) function Avalon_Ashar_Tor_Aussen:setup() self.change_count = 0 world.AddTriggerEx("avalon_ashar_tor_aussen_neu", "Du versuchst in die Stadt zu gel...
local style = require "core.style" local common = require "core.common" style.background = {common.color "#272822"} style.background2 = {common.color "#22231C"} style.background3 = {common.color "#22231C"} style.text = {common.color "#9ea191"} style.caret = {common.color "#F8F8F0"} style.accent = {common.color "#...
Object = require "classic" require "paddle" require "pong" function love.load() player = Paddle(25,550,15,100,'up','down') enemy = Paddle(525,550,15,100,'w','s') pong = Pong() player:setSpeed(200) enemy:setSpeed(200) pong:setSpeed(200) font = love.graphics.newFont("Zilap Sleep Demo.ttf", 60) end function love....
--[[ Variables ]] inTheShop = false local lastSelectedVehicleEntity local vehiclesTable = {} local shopWorker = false --[[ Functions ]] local function getVehiclesTable(shop) local _vehicles = RPC.execute("caue-carshop:getVehicles", shop) local categorys = {} for i, v in ipairs(_vehicles) do...