content
stringlengths
5
1.05M
--Script Name : jlp_Select track in Write mode.lua --Author : Jean Loup Pecquais --Description : Select track in Write mode --v1.0.0 local libPath = reaper.GetExtState("Reaper Evolution", "libPath") if not libPath or libPath == "" then reaper.MB("Reaper Evolution library is not found. Please refer to user guide", ...
local _M = {} _M.MYSQL =10 _M.REDIS =20 _M.HTTP_REQUEST_PARAM_INVALID =100 function _M.new(error_code,error_msg) { return {error_code=error_code , error_msg=error_msg} } _M.mysql = _M.new(_M.MYSQL) _M.redis = _M.new(_M.REDIS) return _M
portalent = class("portalent") function portalent:init(x, y, i, r) self.cox = x self.coy = y self.x = x self.y = y self.dir = "up" self.portal = i self.id = 1 self.power = false --Input list self.input1state = "off" self.r = {unpack(r)} table.remove(self.r, 1) table.remove(self.r, 1) --DIRECTION if #...
AddCSLuaFile() AddCSLuaFile('pon/pon.lua') local string, net, table, assert, math, player, pairs, select = string, net, table, assert, math, player, pairs, select local pon = assert(include('pon/pon.lua'), [[Unable to include "pon/pon.lua"]]) local NIL, cvMaxbytes = 'NULL', CreateConVar('netstream_maxbytes', 32768, {F...
local array = include( "modules/array" ) local util = include( "modules/util" ) local cdefs = include( "client_defs" ) local simdefs = include( "sim/simdefs" ) local simquery = include( "sim/simquery" ) local level = include( "sim/level" ) local unitdefs = include("sim/unitdefs") local serverdefs = include( "modules/se...
-- This file includes the network strings. util.AddNetworkString( "job_exam_ui" ) util.AddNetworkString( "job_exam_submit_exam" ) -- End network strings --
local fs = require("fs") local utils = require("utils") local registry = require("registry") local sqlite3status, sqlite3 = pcall(require, "lsqlite3") if not sqlite3status then sqlite3status, sqlite3 = pcall(require, "lsqlite3complete") end if not sqlite3status then sqlite3status, sqlite3 = pcall(require, "lsql...
object_tangible_tcg_series7_painting_commando = object_tangible_tcg_series7_shared_painting_commando:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_painting_commando, "object/tangible/tcg/series7/painting_commando.iff")
Locales['en'] = { -- Inventory ['inventory'] = 'Inventario %s / %s', ['use'] = 'Usar', ['give'] = 'Dar', ['remove'] = 'Tirar', ['return'] = 'Volver', ['give_to'] = 'Dar a', ['amount'] = 'Cantidad', ['giveammo'] = 'Dar municion', ['amountammo'] = 'Cantidad de municion', ['noammo'] = 'No tienes sufi...
local R = require "rigel" local RM = require "generators.modules" local types = require("types") local harness = require "generators.harness" local sift = require "sift_core" local C = require "generators.examplescommon" local G = require "generators.core" local W = 16 local H = 16 local T = 8 -- # of tiles in X and...
Config = {} Config.Locale = 'es' Config.Price = 250 Config.DrawDistance = 100.0 Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0} Config.MarkerColor = {r = 102, g = 102, b = 204} Config.MarkerType = 1 Config.Shops = { vector3(72.3, -1399.1, 28.4), vector3(-703.8, -152.3, 36.4), vector3(-167.9, -299.0, 38.7), ...
--[[ @ lurpc - Simple and light rpc framework. @ @ Author luhengsi @ Mail luhengsi@163.com @ Date 2018-05-11 @ @ please check Licence.txt file for licence and legal issues. ]] rpc = rpc or {}; return rpc;
local WoWMap = _G.WoWMap --[[ To add you own map icons call: WoWMap.RegisterPOIs(poi_struct) The struct has the following format poi_struct= { name= "my name", -- name in menu category = "menu_entry", -- (or nil) basetip = "text", -- tool tip (or nil) --[=[ ...
local bvec = Vector(0, 0, 0) local uAng = Angle(90, 0, 0) function EFFECT:Init(data) self.Position = bvec self.WeaponEnt = data:GetEntity() if not IsValid(self.WeaponEnt) then return end self.WeaponEntOG = self.WeaponEnt self.Attachment = data:GetAttachment() self.Dir = data:GetNormal() local owent = self.Weapo...
--[[ Scrolldown Module ]]-- local _, BCM = ... BCM.modules[#BCM.modules+1] = function() if bcmDB.BCM_ScrollDown or bcmDB.BCM_ButtonHide or not GetCVarBool("chatMouseScroll") then return end local clickFunc = function(frame) frame:GetParent():ScrollToBottom() frame:Hide() end local scrollFu...
return PlaceObj("ModDef", { "title", "Fix Colonist Daily Interest Loop", "id", "ChoGGi_FixColonistDailyInterestLoop", "steam_id", "2441207618", "pops_any_uuid", "0f0cca27-231c-4ab1-b5e7-6d698f0dcfa6", "lua_revision", 1007000, -- Picard "version", 3, "version_major", 0, "version_minor", 3, "image", "Preview.jpg...
package("drogon") set_homepage("https://github.com/an-tao/drogon/") set_description("Drogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows") set_license("MIT") add_urls("https://github.com/an-tao/drogon/archive/refs/tags/$(version).tar.gz", "https://g...
return { AnimationId = "rbxassetid://-", Available = true, ImageIcon = "rbxassetid://-", IsActiveSkill = true, PercentagePerLevel = { 22, 22.4, 22.8, 23.2, 23.6, 24, 24.4, 24.8, 25.2, 25.6, 26, 26.4, 26.8, 27.2, 27.6, 28, 28.4, 28.8, 29.2, 29.6, 30, ...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- razor_plasma_field...
-- See LICENSE for terms return { PlaceObj("ModItemOptionNumber", { "name", "DailySanityLoss", "DisplayName", T(302535920011783, "Daily Sanity Loss"), "Help", T(302535920011790, "How many sanity is lost each day after landing on Mars (cannibals only...)."), "DefaultValue", 4, "MinValue", 0, "MaxV...
RefOut=CS.RefOut local rf=RefOut() --[[ ref参数 会以多返回值的形式返回给lua 如果函数存在返回值 那么第一个值就是该返回值 之后的返回值,就是ref的结果 从左到右一一对应 ref参数 需要传入一个默认值 占位置,int类型可以都传0 a相当于是函数的返回值 b第一个ref c第二个ref ]] local a,b,c=rf:RefFun(1,0,0,4) print(a) print(b) print(c) --[[ out参数 会以多返回值的形式返回给lua 如果函数存在返回值 那么第一个值就是该函数的返回值 之后的返回值 就是out的结果 从左到右一一对应...
local env=env local parser=env.class(env.lexer) local table,math,pairs,type,print,ipairs,io=table,math,pairs,type,print,ipairs,io local qb_exp='%u%u%u+$[%u%d]+' local xml2lua = require("xml2lua") local handler = require("xmlhandler.tree") function parser:ctor() self.name='10053' end local function get_dop(line,de...
ESX = nil local hasStarted, startedHacking, cancontinue = false, false, false local CurrentCoords, started = nil, nil local phoneModel = Config.PhoneModel local taken = 0 local PlayerPed = PlayerPedId() DeleteObject(prop) Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObj...
local gamepad = require 'love-gamepad.gamepad' local data = require 'love-gamepad.data' local gamepads = {} local joypads = {} local registered_keys = {} local active_pads = {} local function remove_val(tbl, val) for i=1, #tbl do if tbl[i] == val then table.remove(tbl, i) return true end end end function...
class("LikeShipCommand", pm.SimpleCommand).execute = function (slot0, slot1) pg.ConnectionMgr.GetInstance():Send(17107, { ship_group_id = slot1:getBody() }, 17108, function (slot0) if slot0.result == 0 then if getProxy(CollectionProxy):getShipGroup(slot0) then slot2.iheart = true slot2.hearts = slot2.h...
-- naiveadd local res = KEYS[1] for i=1,#ARGV do redis.call('LPUSH', res, ARGV[i]) end
rect = class() rect.init = function(self, x, y, w, h) self.x = x or 0 self.y = y or 0 w = w or 32 self.w = w/2 h = h or w self.h = h/2 end rect.left = { get = function(self) return self.x - self.w end, set = function(self, val) self.x = val + self.w end } rect.right = { get = function(self) return s...
object_tangible_smuggler_contraband_contraband_4 = object_tangible_smuggler_contraband_shared_contraband_4:new { } ObjectTemplates:addTemplate(object_tangible_smuggler_contraband_contraband_4, "object/tangible/smuggler/contraband/contraband_4.iff")
---------------------------------------------------------------------------------------------------- -- Code for imports, the initial load, and the `draw` loop ---------------------------------------------------------------------------------------------------- require "globals" require "ui" require "shoot" requir...
local ObjectManager = require("managers.object.object_manager") tutorialNervousGuyConvoHandler = conv_handler:new {} function tutorialNervousGuyConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate) local convoTemplate = LuaConversationTemplate(pConvTemplate) return convoTemplate:getScreen("intro" .. getRandom...
local _zoom = SL_WideScale(0.435, 0.525) local _game = GAMESTATE:GetCurrentGame():GetName() local layouts = { dance = { false, true, false, true, false, true, false, true, false }, pump = { true, false, true, false, true, false, true, false, true }, techno = { true, true, true, true, false, tr...
local DataBuffer = torch.class('agent.DataBuffer') function DataBuffer:__init(buf_len, dims, sample_len) self.buf_len = buf_len or 1000000 self.dims = dims or torch.LongTensor{40,40} self.sample_len = sample_len or 10 self.buf_s = torch.ByteTensor(self.buf_len, self.dims[1], self.dims[2]) self.bu...
local fn = vim.fn local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) end return require('packer').startup(function(use)...
local tp = "odd" local mirrorMaster = function (_, existing, new) -- Frames in one master can't "see" frames in another, so we have to get creative -- XXX This knows altogether too much about the implementation of masters if not SILE.scratch.masters[new] then SILE.scratch.masters[new] = {frames={}} end if not ...
---@type table UIMenuItem = setmetatable({}, UIMenuItem) ---@type table UIMenuItem.__index = UIMenuItem ---@type table ---@return string UIMenuItem.__call = function() return "UIMenuItem", "UIMenuItem" end ---New ---@param Text string ---@param Description string ---@return table ---@public function UIMenuItem.N...
function Romulo_Backward_Lunge(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(30815, Unit:GetRandomPlayer()) end function Romulo_Deadly_Swathe(Unit, event, miscUnit, misc) Unit:FullCastSpell(30817) end function Romulo_Daring(Unit, event, miscUnit, misc) Unit:FullCastSpell(30841) end function Romulo_Poiso...
function onEvent(name, value1, value2) if name == 'bg on off' then state = tonumber(value1); if state == 0 then setProperty('plasticShit.visible', true) end if state == 1 then setProperty('plasticShit.visible', false) end end end
memory.usememorydomain("Combined WRAM") local t1 = {[1]=0x03A5B6,[2]=0x03A61E,[3]=0x03A686,[4]=0x03A6EE,[5]=0x03A756,[6]=0x03A7BE,[7]=0x03A826} --stick positions function move(d,a) if (d == true) then local p = memory.readbyte(0x03A54E) -- your position gui.drawText(3,3,"a: "..a.."p:"..p,'RED') if (a == 4) and...
a = "hello" .. "world" t.n = t.n + 1 a, b = 10, 2*x
--[[ Name: "sv_auto.lua". Product: "nexus". --]] local MOUNT = MOUNT; NEXUS:IncludePrefixed("sh_auto.lua"); -- A function to load the cash. function MOUNT:LoadCash() local cash = NEXUS:RestoreSchemaData( "mounts/cash/"..game.GetMap() ); for k, v in pairs(cash) do local entity = nexus.entity.CreateCash( {key = ...
load(atleast("b","1.5"))
--Template for addition of new protocol 'travel_estimate' --[[ Necessary changes to other files: -- - packet.lua: if the header has a length member, adapt packetSetLength; -- if the packet has a checksum, adapt createStack (loop at end of function) and packetCalculateChecksums -- - proto/proto.lua: add PROTO.lua...
local Players = game:GetService("Players") local Client = Players.LocalPlayer local Mouse = Client:GetMouse() local module = {} function module.processClick(Mouse, Button) local Data = Mouse.X >= Button.AbsolutePosition.X and Mouse.X <= Button.AbsolutePosition.X+Button.AbsoluteSize.X and Mouse.Y >= Button.AbsolutePos...
local skynet = require "skynet" local socket = require "skynet.socket" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local urllib = require "http.url" local bewater = require "bw.bewater" local conf = require "conf" local whitelis...
AddCSLuaFile("shared.lua") include('shared.lua') /*----------------------------------------------- *** Copyright (c) 2012-2019 by DrVrej, All rights reserved. *** No parts of this code or any of its contents may be reproduced, copied, modified or adapted, without the prior written consent of the author, unless other...
function isLeapYear(year) return year%4==0 and (year%100~=0 or year%400==0) end
local M = {} local rcom = require('utils/researchCommunication') local _log = log local function log(level, msg) _log(level, 'gameEngineCode', msg) end local function handleFoo(skt, msg) log("I", "Hello " .. msg['someName'] .. '!\n') rcom.sendACK(skt, 'FooAck') return true end local function handleGet...
--[[ CLASS SAMPLE SCREEN This is a sample screen. In order to make a new gamestate, or screen, you should copy and paste this code into a new Lua module so you can write the logic for a new gamestate. Be sure to add the gamestate to the ScreenManager! ]]-- local screen = {} function screen:Load(ScreenManager) -- p...
Class = require 'hump.class' require 'entities/physicsentity' -- rad per second local ROTATION_SPEED = math.pi / 2 local HIT_SOUND = love.audio.newSource("resources/audio/PowerUp.wav", "static") PowerUp = Class{ __includes = PhysicsEntity, init = function(self, x, y, level, lifetime, radius) PhysicsE...
--secrecyData.lua --隐私策略和服务协议数据管理 require("core/object"); SecrecyData = class(); SecrecyData.cleanup = function() SecrecyData.releaseInstance(); kSecrecyData = SecrecyData.getInstance(); end SecrecyData.getInstance = function() if not SecrecyData.s_instance then SecrecyData.s_insta...
--// logic local Events = {} Events.Connections = {} --// services local Services = setmetatable({}, {__index = function(cache, serviceName) cache[serviceName] = game:GetService(serviceName) return cache[serviceName] end}) --// functions function Events.WatchData(act,dataFile,valueFile,extraFile) if act == '...
local pipes = require("pipes") print("PID PARENT NAME") for _, thread in pairs(pipes.getThreadInfo()) do print(thread.pid, " ", tostring(thread.parent), " ", thread.name) end
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] --Funciones PSP dofile("plugins/plugins_psp.lua") if #pluginsP > 0 then table....
---@class CS.FairyGUI.Utils.ZipReader ---@field public entryCount number ---@type CS.FairyGUI.Utils.ZipReader CS.FairyGUI.Utils.ZipReader = { } ---@return CS.FairyGUI.Utils.ZipReader ---@param data Byte[] function CS.FairyGUI.Utils.ZipReader.New(data) end ---@return boolean ---@param entry CS.FairyGUI.Utils.ZipReader....
-- -- Author: huger -- Date: 2018-01-17 11:30:37 -- local TabBarController = class("TabBarController") function TabBarController:ctor(scene) self.basescene = scene self.baselayer = nil self.views = nil self.selectedView = nil self.selectedIndex = 1 self.currentIndex = 1 self.tabbarItem = {} self.indexs = 4 s...
--[[ minimal clock for conky based upon similar android clock widget written by easysid Tuesday, 03 February 2015 16:20 IST ]]-- require 'cairo' clock_table = { -- clock style options use12hourformat = false, -- 12 hr format. Set to false for 24 hrs showday = true, -- show the day of the week draw_...
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["characters"]="абвгдежзийклмнопрстуфхцчшщыьэюя", ["data"]="ас-бест бездн биз-нес-мен буй-нак-ске вбли-зи взба-ла-муть-ся вздрем-нешь во-до-сли-вом волж-ске воп-лем вопль вост-ра во-ткать во-ткем во-ткешь во-тку во-ткут впол...
local helpers = require "spec.helpers" local cjson = require "cjson" -- We already test the functionality of page() when filtering by tag in -- spec/02-integration/03-db/07-tags_spec.lua. -- This test we test on the correctness of the admin API response so that -- we can ensure the the right function (page()) is execu...
--NO U ENT.Type = "anim" DEFINE_BASECLASS( "lunasflightschool_basescript" ) ENT.PrintName = "TIE Fighter" ENT.Author = "Digger" ENT.Information = "" ENT.Category = "[LFS]" ENT.Spawnable = true ENT.AdminSpawnable = false ENT.MDL = "models/DiggerThings/TieFighter/tief.mdl" ENT.GibModels = { "models/Digg...
local PANEL = {}; local highestAlpha = 230; local lowestAlpha = 170; local unOccupied = surface.GetTextureID("PERP2/inventory/inv_empty"); function PANEL:Init ( ) self:SetVisible(true); self.NextChangeVisi = CurTime(); self.ourAlpha = 230; end function PANEL:PerformLayout ( ) end function PANEL:FunWithAlpha...
local types = {} types.od = require('onedark.types.od') return types
export type Array<Value> = {Value} export type Dictionary<Value> = {[string]: Value} export type Map<Index, Value> = {[Index]: Value} export type float = number export type int = number export type int64 = number export type NonNil = any export type Comparable = any export type ComparisonFunction<T> = (T, T) -> boole...
local _M = { _VERSION = '0.01', } local len = string.len local format = string.format local pairs = pairs local type = type local error = error local tostring = tostring local next = next local lower = string.lower local insert = table.insert local concat = table.concat local setmetatable = setmetatable local re_mat...
function EFFECT:Init(data) self.Origin = data:GetOrigin() self.Hitpos = data:GetStart() self.Normal = ( self.Hitpos - self.Origin ):GetNormal() self.LifeTime = RealTime() + 1.5 self.Entity:SetModel( "models/jaanus/monoshield.mdl" ) self.Entity:SetPos( self.Origin ) local ang = self.Normal:Angle()...
client_script 'carwash_client.lua' server_script 'carwash_server.lua'
local isRadarVisible = false local screenSize = Vector2(guiGetScreenSize()) local globalScale = 1 if screenSize.x < 1600 then globalScale = 1 * (screenSize.x - 800) / 800 * 0.3 + 0.7 end local viewportWidth = 256 * globalScale local viewportHeight = 256 * globalScale local viewportX = screenSize.x - viewportWid...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
local util = require 'util.util' local fileutil = require 'util.fileutil' local tableutil = require 'util.tableutil' local json = require 'rapidjson' local GO_ON = true local STOP = false local watchlogfile = { task = nil , parseRule = nil , tunningConfig = nil , ---- CONSTANTS ---- CH...
local skynet = require "skynet" local c = require "skynet.c" local snax_interface = require "snax.interface" local profile = require "profile" local snax = require "snax" local func = snax_interface(tostring(...), _ENV) local mode local thread_id local message_queue = {} local init = false local profile_table = {} lo...
local utils = require "kong.tools.utils" describe("Utils", function() describe("strings", function() local first = utils.random_string() assert.truthy(first) assert.falsy(first:find("-")) local second = utils.random_string() assert.falsy(first == second) end) describe("tables", function() ...
--[[ © CloudSixteen.com http://crowlite.com/license --]] CROW_LANGUAGE = {__index = CROW_LANGUAGE};
local lsp = require('languages.lsp') local M = {} M.efm = { { formatCommand = 'latexindent.pl -y="defaultIndent:\' \'"', formatStdin = true, }, } M.all_format = { efm = 'LatexIndent', texlab = 'TexLab' } M.default_format = 'efm' M.lsp = { capabilities = lsp.capabilities, on_attach =...
local LoveMachine = { running = true, locale = 'en_US', currentScene = nil, settings = {} } function LoveMachine._bindToLOVE() love.keypressed = function(...) LoveMachine.keypressed(...) end love.keyreleased = function(...) LoveMachine.keyreleased(...) end -- TODO: Does this always make sen...
local guide = require 'parser.guide' local type = type _ENV = nil local pushError, Root, Compile, CompileBlock, Cache, Block, GoToTag local vmMap = { ['nil'] = function (obj) Root[#Root+1] = obj return #Root end, ['boolean'] = function (obj) Root[#Root+1] = obj return #Roo...
local i = [[ASCII: · · · · · · · · · · · · · · · · · · · 1 · · · · · · 1 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 3 · 1 · · · · · · 1 · 4 · · · · · · · · · · · · · · · · · · · · · · A · · A · · · · · · · · · 1 · · · · · · 1 · · · · · · · · · · C D · ...
local Gui = require("api.Gui") local Chara = require("api.Chara") local Item = require("api.Item") local common = require("mod.elona.data.dialog.common") local Sidequest = require("mod.elona_sys.sidequest.api.Sidequest") data:add { _type = "elona_sys.dialog", _id = "xabi", nodes = { __start = function(...
local cj = require "cjson" local dt = require "date_time" local l = require "lpeg" local table = require "table" local math = require "math" local environment = read_config("environment") local node = read_config("node") local cluster = read_config("cluster") -- how many metrics to load into a single influ...
-- 限制接口总并发数/请求数 local limit_count = require "resty.limit.count" -- 这里我们使用AB测试,-n访问10000次, -c并发1200个 -- ab -n 10000 -c 1200 http://121.42.155.213/ ,第一次测试数据:1000个请求会有差不多8801请求失败,符合以下配置说明 -- 限制 一分钟内只能调用 1200 次 接口(允许在时间段开始的时候一次性放过1200个请求) local lim, err = limit_count.new("my_limit_count_store", 1200, 60) if not lim then ...
local Point = class.new(); Pathfinding.Point = Point; function Point:constructor(x, y, connections) self.x = x; self.y = y; self.connections = connections or {}; self.gCost = 0; self.hCost = 0; self.parent = nil; end function Point:connectTo(otherPoint) if( not self:isConnectedTo(otherPoint) ) the...
-- Copyright(c) Cragon. All rights reserved. --------------------------------------- -- 配置,开发者选项 ConfigDevelopSettings = { ShowDevelopSettings = false; -- 是否显示开发者选项 ClientShowFPS = false; -- 客户端显示FPS信息 false 不显示 true 显示 FPSLimit = 60-- 限帧 } function ConfigDevelopSettings:Load() local player_prefs = CS...
object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_barabel = object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_shared_barabel:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_barabel,...
local AddonName, AddonTable = ... AddonTable.eye = { -- Malygos (10/25 Normal) 43952, -- Reins of the Azure Drake [Mount] 43953, -- Reins of the Blue Drake [Mount] -- Malygos (10 Normal) 40497, -- Black Ice 40489, -- Greatstaff of the Nexus 40491, -- Hailstorm 40488, -- Ice Spire Scept...
script.on_event({defines.events.on_entity_damaged}, function(event) if event.cause ~= nil then local victim = event.entity local culprit = event.cause local isVehicle = nil if culprit.type == "car" then isVehicle = true end if culprit.type == "a...
includes("tbox") -- enable hash, charset, utf8 modules for _, name in ipairs({ "hash", "charset", "force-utf8" }) do option(name) set_default(true) after_check(function (option) option:enable(true) end) option_end() end -- disable demo option("demo") set_default(false) ...
-- The MIT License (MIT) -- -- Copyright (c) 2013-2014 Jeremy Othieno. -- -- 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...
bot = bot or {} bot.cmds = bot.cmds or {} bot.aliases = bot.aliases or {} bot.reaction_hooks = {} include("./lib/async.lua") include("./lib/hooks.lua") json = include("./lib/json.lua") Lru = include("./lib/lru.lua") include("./lib/pagination.lua") RingBuffer = include("./lib/ring_buffer.lua") include("./lib/string.lua...
hardware,main=system.configurator({ mode="fun64", -- select the standard 320x240 screen using the swanky32 palette. update=function() update() end, -- called repeatedly to update+draw }) -- updates are run at 60fps update=function() system.components.text.text_print("Hello World!",5,2,31,0) -- (text,x,y,color,bac...
--shameless copy-pasta of SkyLight's micro_collectable_food which was a copy-pasta of SkyLight's micro_item_armorkit.lua which was a copy-pasta of Parakeet's micro_item_medkit.lua --gottem --Visual Representation for the Visual Impaired: --Visual A.I.D.S. xDDD --[[ _ _ ( \ /...
local files = require 'files' local guide = require 'core.guide' local lang = require 'language' return function (uri, callback) local ast = files.getAst(uri) if not ast then return end local lines = files.getLines(uri) local text = files.getText(uri) guide.eachSourceType(ast.ast, '...
local fs = require("filesystem") local objects = require("lua-objects.lua_objects") local newClass = objects.newClass local Logger = newClass(nil, {name="Logger"}) Logger.lineFormat = "[#{date:%Y-%m-%d %H:%M:%S}] [#{level}] " .. "#{stack:namewhat} #{stack:source}::#{stack:name}:" .. ...
--- HELPERS --- local cmd = vim.cmd local opt = vim.opt --- VIM ONLY COMMANDS --- cmd "filetype plugin on" cmd('let &titleold="' .. TERMINAL .. '"') cmd "set inccommand=split" cmd "set iskeyword+=-" if O.line_wrap_cursor_movement then cmd "set whichwrap+=<,>,[,],h,l" end if O.transparent_window then cmd "a...
function DecToHex(IN) local B,K,OUT,I,D=16,"0123456789ABCDEF","",0 while IN>0 do I=I+1 IN,D=math.floor(IN/B),math.fmod(IN,B)+1 OUT=string.sub(K,D,D)..OUT end return OUT end
local render = { bg = nil, bullets_atlas = nil, characters_atlas = nil, bullets = nil, characters = nil, speech_buble = nil, main_font = nil, text = nil, text_x = 0, text_y = 0 } function render.load(self) self.bg = love.graphics.newImage("art/bg.jpg") self.bullets_atlas = love.graphics.newImage("art/bull...
local poggers = false local swaying = false local move = false local funnyEffect = false local swayingForce = 1; local waitForBeat = false local waitForTween = false local background = nil local white = nil function start (song) background = makeSprite('Space','space', true) white = makeSprite('White','white', tru...
local Cron = require('Cron') local GameLocale = require('GameLocale') local RipperDoc = {} local isGameplay = false local isVendorMenu = false local isRipperDeck = false local ripperDocList = {} local ripperDocEntity local ripperDocEntityId local ripperDocVendorId local ripperDocController local dropAction = 'activat...
local utils = {} function utils.clamp(x, min, max) return math.max(min, math.min(x, max)) end function utils.sign(x) return x < 0 and -1 or 1 end function utils.split(str, sep) sep = sep or "," local words = str:gmatch("([^" .. sep .. "]+)") return words end function utils.lerp(v1, v2, delta) return v1 ...
skreeg_warrior_elite = Creature:new { objectName = "@mob/creature_names:skreeg_warrior_elite", socialGroup = "skreeg", faction = "", level = 30, chanceHit = 0.39, damageMin = 290, damageMax = 300, baseXp = 3005, baseHAM = 8400, baseHAMmax = 10200, armor = 0, resists = {-1,175,20,-1,200,-1,-1,-1,-1}, meatTy...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [GeneralResultCodes]DISALLOWED: RPC is omitted in the PolicyTable "default" group(s) assigned to the application -- -- Description: -- SDL must return DISALLOWED resultCode and success = "false" to t...
function EFFECT:Init(effdata) self.KillTime = CurTime() + 0.75 self.emitter = ParticleEmitter(effdata:GetOrigin(),false) if IsValid(self.emitter) then local particle = self.emitter:Add("effects/rotgb_crit",effdata:GetOrigin()) if particle then particle:SetAirResistance(0) particle:SetBounce(0.5) particl...
require "TEcore" TE = TEcore; quads = {} function begin() transform = TE.TETransform() transform.position.x = 150 transform.rotation = 0 blubby = TE.TESprite() blubby:init(transform, "res/textures/T_Tree.png") textos = TE.TEText() local textT = TE.TETransform() textT.scale.x = 2.0 t...