content
stringlengths
5
1.05M
local pb = require 'pb' require('Net/Tcp/TcpHelper') require 'Config/NetConfig' LoginModule = {} LoginModule.serverIp = "127.0.0.1" LoginModule.port = 8888 --这是进入初始化登录场景进行调用 function LoginModule:InitNet() --function Callback(isOk) -- if isOk then -- print("连接服务器成功(*^▽^*)") -- --这个是测试...
require "prefabutil" local function CheckTemp(inst) if not inst:HasTag("burnt") then if not inst.task then inst.task = inst:DoPeriodicTask(1, CheckTemp) end local temp = GetSeasonManager() and GetSeasonManager():GetCurrentTemperature() or 30 local high_temp = TUNING.OVERHEAT_TEMP local low_temp = 0...
pg = pg or {} pg.activity_event_blackwhite = { { name = "第一张图", random = 0, id = 1, num = 3, condition = "三星通关SP1后解锁", story = "AIJINGHUA1", unlock = { 0, 1220001 }, theme = { 6, 9 }, map = { { 0, 0, 1 }, { 0, 1, 1 }, { 0, 2, 1 }, ...
print(rawequal(1, 1)) --> =true print(rawequal(1, 2)) --> =false local t = {} print(rawequal(t, t)) --> =true print(rawequal("abc", "abc")) --> =true print(rawequal(1.0, 1)) --> =true print(rawequal(nil, nil)) --> =true print(pcall(rawequal)) --> ~^false\t print(pcall(rawequal, 1)) --> ~^false\t
add_rules("mode.release", "mode.debug") add_requires("cargo::base64 0.13.0") add_requires("cargo::flate2 1.0.17", {configs = {features = "zlib"}}) target("test") set_kind("binary") add_files("src/main.rs") add_packages("cargo::base64", "cargo::flate2")
local function has_words_before() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end local function has_space_before() local col = vim.fn.col(".") - 1 return col == 0 or vim.fn.getline("."):sub(col...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
local mod = getfenv(1) assert(mod) --module(mod._NAME..".ANZU_THE_RAVEN_GOD",package.seeall) local self = getfenv(1) WorldDBQuery("DELETE FROM ai_agents WHERE entry = 23035;") function OnSpawn(unit) local claw = unit:GetLocalGameObject(185554) if(claw) then claw:RemoveFromWorld() end unit:MonsterYell("No! How c...
include('shared.lua') function ENT:Draw() self:DrawModel() local pos = self:GetPos() local ang = self:GetAngles() cam.Start3D2D(pos + Vector(0, 0, 80), ang + Angle(0, 90, 90), .50) draw.SimpleText("Продавец оружия", 'L_WSF1' ,0,0 ,Color(255,255,255) ,1 , 1 ) cam.End3D2D() end -- surface.CreateFont...
local game = require 'game' return{ name = 'lasercell', type = 'projectile', width = 17, height = 5, frameWidth = 17, frameHeight = 5, solid = true, lift = game.gravity, playerCanPickUp = false, enemyCanPickUp = false, canPlayerStore = true, usedAsAmmo = true, throw_sound = 'alien_laser', ve...
local QuadTree = require "quad_tree" local Collisions = {} local Collisions_mt = {} Collisions_mt.__index = Collisions function Collisions.new(x, y, w, h) return setmetatable( { x = x, y = y, w = w, h = h, entities = {}, staticColliders = {}, quadtree = ...
local COLOR = Color3.new(0, 1, 0) local InsertionSort = {} function InsertionSort.Do(accessor) local marker = 1 for index = 2, accessor.length do for checkSorted = marker, 1, -1 do local us, them = accessor:Transaction({ accessor:CreateIndex(index), accessor:CreateIndex(checkSorted) }) ...
-- basic vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.softtabstop = 2 vim.opt.expandtab = true vim.opt.ignorecase = true vim.opt.incsearch = true vim.opt.smartcase = true -- vim.opt.foldmethod = "expr" -- vim.opt.foldexpr = "nvim_treesitter#foldexpr()" vim.opt.foldmethod = "indent" vim.opt.foldlevel = 2 vim.op...
-- -- Defines a few helper functions -- local scripts = {} -- Splits a string into words. function scripts.split(str) local arr = {} for i in string.gmatch(str, "%S+") do arr[#arr + 1] = i end return arr end -- Returns true if the sender of the update is a human. function scripts.onlyHuman(_, ...
-- -- Documentation tooling for package designers. -- local theme = { command = "#1d4851", -- oil blue parameter = "#3f5218", -- some sort of dark green setting = "#42280e", -- some kind of dark brown bracketed = "#656565", -- some grey package = "#172557", -- saturated space blue } local colorWrapper = fun...
local mod = DBM:NewMod(1905, "DBM-Party-Legion", 12, 900) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17077 $"):sub(12, -3)) mod:SetCreatureID(117193) mod:SetEncounterID(2055) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 235751", "SPELL_CAST_SUCCESS...
local helpers = require "spec.helpers" local utils = require "kong.tools.utils" local cjson = require "cjson.safe" local pl_tablex = require "pl.tablex" local _VERSION_TABLE = require "kong.meta" ._VERSION_TABLE local MAJOR = _VERSION_TABLE.major -- make minor version always larger-equal than 3 so test cases are happy ...
return { mod_description = { en = "All Hats description" }, }
require "tool.pathfinder" function initmap (mapname) --timeCoef=1.5 map=nil map=love.filesystem.load(contentFile("map/"..mapname))() -- needed for pathfinding ( height and width ) local gid=tiolved.gid(map,"map/") tileset=tiolved.tileset(gid,map) toMap,toRender=tiolved.usefulfunc(map,tileset) local toremove={...
-- Base interface of UI controller -- All interface functions are OPTIONAL local speed = 1 function init(controlRef, componentRef) DV.Debug("init") parametersChanged(controlRef, componentRef); end function release(controlRef, componentRef) DV.Debug("release") controlRef.angle = 0 end function par...
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Color, Util = Aurora.Color, Aurora.Util do --[[ FrameXML\RecruitAFriendFrame.lua ]] Hook.Recru...
HeavyMachineGun.kReloadLength = 5.2 -- 3.5 HeavyMachineGun.kBaseReloadMultipier = HeavyMachineGun.kReloadAnimationLength / HeavyMachineGun.kReloadLength
--MIT License -- --Copyright (c) 2019 @ym2601 (https://github.com/sanwabear) -- --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 --...
--Lets you make reactions that require water or magma under the workshop. Reactions must start with LUA_HOOK_USEWATER or LUA_HOOK_USEMAGMA. local eventful = require 'plugins.eventful' local utils = require 'utils' local debug = false local function starts(String, Start) return string.sub(String, 1, string.len(...
function Gambler_On_Gossip(unit, event, player) if (player:IsPlayer() == true) then unit:GossipCreateMenu(1, player, 0) unit:GossipMenuAddItem(0, "If you give me 5 coins, I will give you a 25% chance to win 25 coins. Interested?", 1, 0) unit:GossipSendMenu(player) else unit:GossipCreateMenu(1, player, 0) unit:GossipSen...
----------------------------------------- -- ID: 4162 -- Item: Silencing Potion -- Item Effect: This potion induces silence. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") function onItemCheck(target) return 0 end function onItemUse(target) if (not t...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local SetCentralOverlay = require(Modules.NotLApp.Actions.SetCentralOverlay) return function() return function(store) store:dispatch(SetCentralOverlay()) end end
starttime=os.clock() kk={['']=true,[' ']=true,['/']=true,['\n']=true,['+']=true,['-']=true,['*']=true,['(']=true,[')']=true,[',']=true,['>']=true,['=']=true,['\r']=true} function string.gsub2(str,s1,s2) _,n=string.gsub(str,s1,"") if i1==0 then return str end str=" "..str.." " for i=1...
ItemClasses["crate_weekly1"] = { crateItems = { "boots_working1", -- 1 "gloves1", -- 2 "tshirt_ls_red", -- 3 "shirt_top_white", -- 4 "shirt_top_grey", -- 5 "pants_cargo2", -- 6 "pants_cargo3", -- 7 "pants_combat5"...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012 Kenny Shields -- --]]------------------------------------------------ -- tooltip clas local newobject = loveframes.NewObject("tooltip", "loveframes_object_tooltip", true) --[[---------------...
local voice_lines = { ["alexa"] = "voice_lines/alexa.wav", ["five kills"] = "voice_lines/all5.wav", ["ayyware"] = "voice_lines/ayyware.wav", ["bixby"] = "voice_lines/bixby.wav", ["cant hit me?"] = "voice_lines/canthit.wav", ["cortana"] = "voice_lines/cortana.wav", ["dead people can't ...
hook.Add("RPGM.RegisterCommands", "RPGM.ActionCommands", function() RPGM.RegisterCommand("me", {"action", "act"}, { RPGM.Classes.TextArgument("Message", false, nil, false, true) }, function(ply, data) RPGM.TalkToRange(ply, data[1], RPGM.Config.ActionRange, nil, nil, "**", true) RPGM.Tal...
function get() if not app.Shop.Enabled then http:redirect("/") return end if not session:isAdmin() then http:redirect("/") return end local data = {} data.validationError = session:getFlash("validationError") data.current = os.date("%Y-%m-%d") http:ren...
local LEntity = require("data.battle.LEntity").create() local LSpell = class("LSpell", LEntity) function LSpell:ctor() LEntity.ctor(self) self._type = enum.battle.entity.spell self._effectRange = nil --技能影响范围 end function LSpell:init(id, side, pos) LEntity.ctor(self, id, side, pos) -- self._flyCd = g_battle:con...
-- Advent of Code 2018. Day 7, first part. -- Luis Delgado. Data_File="Data.txt"; local File = io.open (Data_File,"r"); require "Functions" Mem = {}; --[[ Mem holds an array of tables. Each table is an array itself: string ID string Requirement 1 string Requirement 2 string Requirement 3 ... ]]-- local ...
if not modules then modules = { } end modules ['mlib-lua'] = { version = 1.001, comment = "companion to mlib-ctx.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } -- This is very prelim...
------------------------------------------------------------------------------- -- call.lua ------------------------------------------------------------------------------- local string_format = string.format local actor = tengine.actor local ERROR_MSG = tengine.ERROR_MSG local p = tengine.p local _M = {} function...
-- Functions that deal with metatables. if nil ~= require then require "fritomod/currying"; end; Metatables=Metatables or {}; -- Ensures a target is either already a table or a nil value. -- -- returns -- target or a new table -- throws -- if target is non-nil and not a table function Metatables._AssertTable(targ...
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
local getComponentName = require "getComponentName" local ReactFiberComponentTreeHook = require "ReactFiberComponentTreeHook" local getStackAddendumByWorkInProgressFiber = ReactFiberComponentTreeHook.getStackAddendumByWorkInProgressFiber local ReactTypeOfMode = require "ReactTypeOfMode" local StrictMode = ReactTypeOfMo...
Description="Replace ANSI Escape character by readable symbols" Categories = {"format", "html" } -- optional parameter: syntax description function syntaxUpdate(desc) if (HL_OUTPUT ~= HL_FORMAT_HTML and HL_OUTPUT ~= HL_FORMAT_XHTML) then return end function Decorate(token) if token == "\27" then ...
loadfile = function() end local GG_Name = "com.jzgt" -- change to your gg package! local GG_V = gg.PACKAGE local GG_A = GG_V:find(GG_Name) if GG_A == 1 then else gg.alert("❎ Error! Please use GG Mod JZ!", "Copy Download Link") gg.copyText("https://t.me/Jzmenu/7") You_Got_Error_There_No_Anti_Os.exit_And_No_Function() e...
require('bufferline').setup { options = { numbers = "both", -- numbers = { "none", "subscript" }, -- buffer_id at index 1, ordinal at index 2 -- mappings = false, -- NOTE: this plugin is designed with this icon in mind, -- and so changing this is NOT recommended, this is intended -- as an esca...
-- Todo: Find a better solution to implement this local oldOnResearchComplete = Armory.OnResearchComplete function Armory:OnResearchComplete(researchId) oldOnResearchComplete(self, researchId) if researchId == kTechId.AdvancedArmoryUpgrade then local supplyDiff = LookupTechData(kTechId.AdvancedArmory,...
ENT.Base = "dronesrewrite_base" ENT.Type = "anim" ENT.PrintName = "Stormtrooper" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "Drones Rewrite" ENT.UNIT = "STR" ENT.HUD_hudName = "White Box" ENT.OverlayName = "Sci Fi" ENT.Weight = 400 ENT.Model = "models/dronesrewrite/stormtrooper/stormtrooper.mdl" ...
return require('lib.oop.generated.ubersplat')
----------------------------------------------------- NAME = "English" LANGUAGE = { toggleAdvESP = "Toggle Advanced Admin ESP" }
demo = demo or {}; function demo.cairo() require "luacxx.search.GIRepository"; require "cairo"; print(cairo); end;
local UEnums = {} UEnums.ESlateVisibility = { Visible = 0, --Default widget visibility - visible and can interact with the cursor Collapsed = 1, --Not visible and takes up no space in the layout; can never be clicked on because it takes up no space. Hidden = 2, ...
local BallParticle = require "entities.ballparticle" local BackGround = require "entities.background" local Cannon = require "entities.cannon" local Bucket = require "entities.bucket" local Ball = require "entities.ball" local Peg = require "entities.peg" local Hud = require "entities.hud" local background local blueB...
local System = System local SystemNumerics = System.Numerics local sqrt = math.sqrt local abs = math.abs local tan = math.tan local cos = math.cos local sin = math.sin local IComparable = System.IComparable local IComparable_1 = System.IComparable_1 local IEquatable_1 = System.IEquatable_1 local new = function (cls,...
-- example HTTP POST script which demonstrates setting the -- HTTP method, body, and adding a header wrk.method = "POST" wrk.body = [[ { "A": 12345678901, "B": 23456789.012, "C": "a piece of string", "D": { "X": 34567890123, "Y": 45678901.234, "Z": [56789012345, 67890123456, 78901234567] }, "E": 1...
------------------------------------------------------------------- --// PROJECT: Union of Clarity and Diversity --// RESOURCE: UCDaccounts --// DEVELOPER(S): Lewis Watson (Noki) --// DATE: 13.12.2014 --// PURPOSE: Handling player logins. --// FILE: \UCDaccounts\login\server.lua [server] -------------------------------...
local gifts = { e2 = { { year = 2015, turn = 959, item = 'snowglobe', msg='santa_f' }, { year = 2009, turn = 624, item = 'xmastree' }, { year = 2006, turn = 468, key = 'xm06', item = 'snowman' }, { year = 2005, turn = 416, key = 'xm05', item = 'stardust' }, { year = 2004, tur...
local initialState = { value='', cursor=1 } local withCursorStyle = withStyle({ backgroundColor="white", color="black" }) local InputText = function(setText) setText = setText or NEVER local onClick = Subject.create() local onClickOutside = Subject.create() local selected = merge( onClick:mapTo(true), ...
local Class = require("shadowrealm/core/middleclass") local StringBuilder = Class("StringBuilder") function StringBuilder:initialize() self.buffer = {} end function StringBuilder:append(str) self.buffer[#self.buffer + 1] = str end function StringBuilder:appendLine(str) if str then self:appen...
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)...
vim.g.signify_sign_add = '' vim.g.signify_sign_delete = '' vim.g.signify_sign_delete_first_line = '' vim.g.signify_sign_change = '' vim.g.signify_sign_show_count = 0 vim.g.signify_sign_show_text = 1
--[[ Copyright 2015 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...
-- license:BSD-3-Clause -- copyright-holders:MAMEdev Team --------------------------------------------------------------------------- -- -- emu.lua -- -- Rules for building emu cores -- --------------------------------------------------------------------------- project ("emu") uuid ("e6fa15e4-a354-4526-acef-13c8e...
resource.AddFile("sound/kiss_my_ass.wav"); AddCSLuaFile() ENT.Base = "base_nextbot" ENT.Spawnable = true local FuckYouSound = Sound("kiss_my_ass.wav") function ENT:Initialize() self:SetModel( "models/Humans/Group01/male_02.mdl" ) self:SetCollisionGroup(COLLISION_GROUP_WORLD) self.LoseTargetDist = 2000 -- ...
----------------------------------- -- Area: Bastok Markets -- NPC: Gulldago -- Type: Tutorial NPC -- !pos -364.121 -11.034 -167.456 235 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs") require("scripts/globals/status") require("scripts/globals/keyitems") require("scripts/glob...
pfUI:RegisterModule("bags", "vanilla:tbc", function () local rawborder, default_border = GetBorderSize("bags") local knownInventorySpellTextures = { Spell_Holy_RemoveCurse = {frame="disenchant"}, Spell_Nature_MoonKey = {frame="picklock"}, } local scanner = libtipscan:GetScanner("openable") local open...
local AddonName, AddonTable = ... AddonTable.alchemy = { -- Recipe's 142119, -- Recipe: Potion of Prolonged Power (Rank 1) 142121, -- Recipe: Potion of Prolonged Power (Rank 3) }
--[[ * ******************************************* * * Developed by: -Rex- * * Last modified: 26/01/2018 * * Description: * * ******************************************* * ]]-- local database = dbConnect( "sqlite", "dbData_byRex.db" ) function create_table( cmd_string ) dbFree( dbQuery( database...
-- -- headguard for server during lua load -- -- not sure if it does anything -- if not isServer() and not isCoopHost() then -- return -- end -- ------------------------------------------ -- local BZM_Commands = require("BZM_Commands") -- local BZM_Utils = require("BZM_Utils") -- local BZM_Enums = require("BZM_Enu...
-- factorio stdlib local Event = require("__stdlib__/stdlib/event/event") local Table = require("__stdlib__/stdlib/utils/table") -- our lua local Build = require("__A11y__/logic/modules/build") local Commands = require("__A11y__/logic/modules/commands") local Craft = require("__A11y__/logic/modules/craft") local Dump ...
/*--------------------------------------------------------------------------- Tomas ---------------------------------------------------------------------------*/ include("shared.lua") surface.CreateFont( "SmallInfoFont", { font = "Arial", extended = true, size = 12, weight = 800, blursize = 0, scanlines = 0, a...
local helpers = {} return helpers;
local absSuper = Api._internal.GetAbstractHook() local RequireHooks = Api.class("RequireHooks", absSuper) function RequireHooks:initialize() absSuper.initialize(self, Api._internal.RequireKey) end function RequireHooks:Inject() Log.Debug("RequireHooks inject") self._oldRequire = _G.require _G.req...
--[[ Copyright (C) 2018 "IoT.bzh" Author Romain Forlot <romain.forlot@iot.bzh> 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 ...
for i,v in ipairs({ {8071,1618.5996,522.5,3.2,0,0,0}, {4892,1687.5996,478.5,4.6,0,0,92}, {3069,1646.9004,585.90039,9.2,344.993,0,180.742}, {3069,1647,574,7.4,324.998,0,180.742}, {3069,1602.7002,585.40039,9.2,344.993,0,179.995}, {3069,1602.7002,573.5,7.4,324.998,0,179.995}, {1408,1586,576.299...
-- From Dota 2 Spell Library https://github.com/Pizzalol/SpellLibrary --[[Jinada Author: Pizzalol Date: 1.1.2015.]] function Jinada(keys) local ability = keys.ability local level = ability:GetLevel() - 1 local cooldown = ability:GetCooldown(level) local caster = keys.caster local modifierNam...
tb = Procedural.BoxGenerator():buildTriangleBuffer() Procedural.CalculateNormalsModifier():setInputTriangleBuffer(tb):setComputeMode(Procedural.CalculateNormalsModifier_NCM_VERTEX):modify() --Procedural.WeldVerticesModifier():setInputTriangleBuffer(tb):modify() tests:addTriangleBuffer(tb)
require "snakecomp" require "food" math.randomseed( os.time() ) function love.load() snake = SnakeComp:new(nil, 250, 250) child1 = SnakeComp:new(nil, 250, 250) child2 = SnakeComp:new(nil, 250, 250) snake:makeChild() snake:makeChild() snake:makeChild() snake:makeChild() local x = math...
local pack_dir = vim.fn.expand("~/example-packages") vim.opt.packpath:prepend(pack_dir) local manager_dir = pack_dir .. "/pack/optpack/opt/optpack.nvim" local initializing = vim.fn.isdirectory(manager_dir) ~= 1 if initializing then vim.cmd([[!git clone https://github.com/notomo/optpack.nvim ]] .. manager_dir) end lo...
Config = {} Config.Locations = { ["main"] = { label = "Weazle News HQ", coords = vector4(-597.89, -929.95, 24.0, 271.5), }, ["inside"] = { label = "Weazle News HQ Inside", coords = vector4(-77.46, -833.77, 243.38, 67.5), }, ["outside"] = { label = "Weazle New...
#!/usr/bin/env gt --[[ Copyright (c) 2014 Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appea...
local timer = require("timer") local event = require("core").Emitter local http_request = require("coro-http").request local json_decode = require("json").decode local zlibDecompress = require("miniz").inflate local byteArray = require("bArray") local connection = require("connection") local encode = require("encode")...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local common = ReplicatedStorage.common local lib = ReplicatedStorage.lib local Items = require(common.Items) local Sprites = require(common.Sprites) local Selectors = requ...
local openssl_bignum = require "resty.openssl.bn" local openssl_rand = require "resty.openssl.rand" local openssl_pkey = require "resty.openssl.pkey" local x509 = require "resty.openssl.x509" local x509_extension = require "resty.openssl.x509.extension" local x509_name = require "resty.openssl.x509.name" -- taken from...
band_kloo_horn_outfit = { { {objectTemplate = "object/tangible/instrument/kloo_horn.iff", customizationVariables = {} } } } --animate with themepark_music_3 addOutfitGroup("band_kloo_horn_outfit", band_kloo_horn_outfit)
return {'aad','aads'}
require "common" local size=STATE.size local max_size=math.min(size[1],size[2])/2 img_buf=img_buf or make_image_buffer(size[1],size[2]) visits=visits or make_flt_buffer(size[1],size[2]) function resize( w,h ) img_buf=make_image_buffer(size[1],size[2]) visits=make_flt_buffer(size[1],size[2]) end local max_size=mat...
object_tangible_terminal_terminal_travel_instant_snowspeeder = object_tangible_terminal_shared_terminal_travel_instant_snowspeeder:new { } ObjectTemplates:addTemplate(object_tangible_terminal_terminal_travel_instant_snowspeeder, "object/tangible/terminal/terminal_travel_instant_snowspeeder.iff")
-- -- @copyright (c) 2016 Upstart Illustration LLC. All rights reserved. -- local Product = Class() function Product.new(self) local sku local title local description local price function self.init(_sku, _title, _description, _price) sku = _sku title = _title description =...
u_execScript("common.lua") u_execScript("commonpatterns.lua") u_execScript("utils.lua") u_execScript("alternativepatterns.lua") u_execScript("nextpatterns.lua") --------------- -- CONSTANTS -- --------------- globalHueModifier = 0.2 -- Constant used to shift the color offset to work with the style's hue. local sync =...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. foraged_bait_worm = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/fishing/bait/bait_worm.iff", craftingValues = { {"quantity",1,6}, }, customizationStringNames = {}, customizationValues =...
--------------------------------------------------------------------------------------------- -- Description: -- Behavior of SDL during start SDL in case when LocalPT(database) has the value of "preloaded_pt" field (Boolean) is "true" -- 1. Used preconditions: -- Delete files and policy table from previous ignition cyc...
s = 'AasdfA' print('%') print(s:gsub('A', '%')) print(s:gsub('A', '%%'))
----------------------------------------------------- ITEM.name = "Explosive Grenade" ITEM.model = "models/Items/grenadeAmmo.mdl" ITEM.desc = "An explosive grenade capable of dealing massive damage." ITEM.throwent = "nut_explosivegrenade" ITEM.throwforce = 1500 ITEM.price = 100 ITEM.flag = "V"
local treesitterBoolean = require("../../treesitter-boolean") local ts_utils = require("nvim-treesitter.ts_utils") local setup_file = function(lines, extension) vim.api.nvim_command(":set noswapfile") vim.api.nvim_command(":e! testfile." .. extension) for _, line in ipairs(lines) do vim.api.nvim_command(":no...
local M = {} local buf_item = { buf_id = 0, buf_name = "", } function buf_item:tips() return self.buf_id .. ": " end function buf_item:searched_str() return self.buf_name end function buf_item:do_item() return true, function() vim.api.nvim_set_current_buf(self.buf_id) end end function buf_item:new(buf, nam...
require "lib.classes.class" -------------------------------------------------------------------------------------------------------- -- class: NullState -- param: player:Player -> the player object of the overworld -- A Null state on which the player can do nothing local NullState = class(function(self, player) se...
function init() --Power self.powerModifier = config.getParameter("powerModifier", 0) effect.addStatModifierGroup({{stat = "powerMultiplier", effectiveMultiplier = self.powerModifier}}) end function update(dt) end function uninit() end
-- Advent of Code 2018. Day 5, first part. -- Luis Delgado. require "Process" Data_File="Data.txt"; local File = io.open (Data_File,"r"); String = File:read() StringSize = String:len(); local Sz = StringSize -1; Mem = {}; for i = 0,Sz do table.insert(Mem, string.byte(String,i+1)); end print("Processing. It can t...
----------------------------------- -- Area: Metalworks -- NPC: Celebratory Chest -- Type: Merchant NPC -- !pos 88.029 -20.170 -11.086 237 ----------------------------------- local ID = require("scripts/zones/Metalworks/IDs") require("scripts/globals/shop") ----------------------------------- function onTrade(player,...
local meta = FindMetaTable("Entity") function meta:GetAmmoAmount() return self:GetNWInt("aw_ammo_amount", 0) end function meta:SetAmmoAmount(amount) return self:SetNWInt("aw_ammo_amount", amount or 0) end function meta:GetAWTeam() if CLIENT then return self:GetAWTeamRaw() or 0 end return self.aw_team end funct...
data:extend({ { type = "technology", name = "space-mining-theory", icon_size = 128, order = "y-a", icon = "__expanded-rocket-payloads__/graphic/space-mining-theory-128.png", prerequisites = {"extremely-advanced-rocket-payloads"}, unit = { count =...
require("common/commonScene"); require("hall/diamondShop/diamondShopController"); require("hall/diamondShop/diamondShopScene"); local diamondShopLayout = require(ViewPath.."hall/diamondShop/diamondShopLayout"); require("hall/diamondShop/data/diamondShopConstants"); DiamondShopState = class(CommonState); Diamo...