content
stringlengths
5
1.05M
function love.conf(t) t.window.title = "Shaders 101" end
local Plugin = script.Parent.Parent.Parent.Parent local RoduxHooks = require(Plugin.Packages.RoduxHooks) local Roact = require(Plugin.Packages.Roact) local Hooks = require(Plugin.Packages.Hooks) local Actions = require(Plugin.Actions) local Checkbox = require(Plugin.Components.Checkbox) local Layout = require(Plugin...
lume = require "libs.lume" oldprint = print print = DEBUG and lume.trace or function () end assert = lume.assert Object = require "libs.classic" tick = require "libs.tick" coil = require "libs.coil" -- My own :) buddies = require "libs.buddies" local libs = {} function libs.update(dt) tick.update(dt) coil.update(...
local shell = { list = {} } function shell:new(object) object = object or {} setmetatable(object, self) self.__index = self return object end function shell:sort(gap) local list = self.list while gap > 0 do for i = gap + 1, #list, 1 do local v = list[i] loca...
local json local fs = require('fs') local joinPath = require('path').join local readFileSync,scanDirSync = fs.readFileSync,fs.scandirSync local Spyfall = { name = "Spyfall", Locations = {}, lobbies = {}, PlayerList = {}, lobbiesCreated = 0, MaxRandomNumber = 1000, RepeatChance = 200, LocationCount = 0, seede...
-- A library to compute Gear Points for items as described in -- http://code.google.com/p/epgp/wiki/GearPoints local MAJOR_VERSION = "LibGearPoints-1.0" local MINOR_VERSION = tonumber(("$Revision: 1023 $"):match("%d+")) or 0 local lib, oldMinor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) if not lib then return...
----------------------------------- -- -- Zone: Northern_San_dOria (231) -- ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/...
local lib = _3DreamEngine local function removePostfix(t) local v = t:match("(.*)%.[^.]+") return v or t end local convertOldLight = function(x, y, z, r, g, b, brightness) return vec3(x or 0, y or 0, z or 0), vec3(r or 1, g or 1, b or 1), brightness or 1 end function lib:newLight(typ, pos, color, brightness, old,...
local GameTooltipHyperLink_obj = GameTooltipHyperLink; local SetHyperLink_orig=GameTooltipHyperLink_obj["SetHyperLink"]; function GameTooltipHyperLink:SetHyperLink(link) if (string.sub(self:GetName(), 1,11) == "GameTooltip") then for _,side in pairs({ "Left", "Right" }) do local j = 1; while true do loca...
E2Helper.Descriptions["createPortalPair(vava)"] = "Creates a link pair of portals and returns them in an entity array.\nIf one of the portals are deleted, its counterpart is also deleted." E2Helper.Descriptions["createPortal(va)"] = "Creates and returns an unlinked portal." E2Helper.Descriptions["getPortalExit(e:)"] = ...
wait(1) local hue = 0 local increment = 0.04 local rainbow = script.Parent local ob = script.Parent.Parent while true do wait(3) if rainbow.Value then repeat hue = hue + increment if hue > 1 then hue = 0 end ob.TextColor3 = Color3.fromHSV(hue, 0.35, 1) wait() until rainbow.Value == false ...
return { name="poker", type="empty", x=0, y=0, {name="back", type="sprite", x=0, y=0, width=142, height=185, image="image/poker/back_big.png"}, {name="face", type="sprite", x=0, y=0, width=142, height=185, image="image/poker/face_big.png", {name="joker", type="sprite", x=0, y=0, width=142, height=185, image="image...
insulate("Comms", function() require "init" require "spec.mocks" require "spec.asserts" local station = SpaceStation() local player = PlayerSpaceship() describe(":newReply()", function() it("can create a reply", function() local reply = Comms:newReply("Foobar", function() ...
-- AFK Detector script -- Made by Dr.CrazY function outputMessage(text) outputChatBox("#FF0000*#FFFFFF "..text, getRootElement(), 255, 255, 255, true) end function onKickedHandler (maxafk) outputMessage("Player "..getPlayerName(source).."#FFFFFF has been kicked for being AFK #939EAB["..maxafk.."/"..maxafk.."]") ...
vengefulspirit_command_aura_lua = class({}) LinkLuaModifier( "modifier_vengefulspirit_command_aura_lua", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_vengefulspirit_command_aura_effect_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function v...
local notify = require "nvim-lsp-installer.notify" local dispatcher = require "nvim-lsp-installer.dispatcher" local status_win = require "nvim-lsp-installer.ui.status-win" local servers = require "nvim-lsp-installer.servers" local M = {} function M.display() status_win().open() end function M.install(server_name...
local wibox = require('wibox') local gears = require('gears') local clickable_container = require('widget.clickable-container') local dpi = require('beautiful').xresources.apply_dpi local icons = require('themes.icons') --- Widget for dracula icon used in all title bars -- Icon widget local widget_icon = wibox.widget...
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.tcpconns", package.seeall) function item() return luci.i18n.translate("TCP Connections") end function rrdargs( graph, plugin, plugin_instance, dt...
local List = require 'list' local window = require 'window' local fonts = require 'fonts' local gamestate = require 'vendor/gamestate' local window = require 'window' local camera = require 'camera' local Debugger = { on=false, bbox=false } Debugger.__index = Debugger Debugger.sampleRate = 0.05 Debugger.lastSample = ...
female_roba = Creature:new { objectName = "@mob/creature_names:roba_female", socialGroup = "roba", faction = "", level = 16, chanceHit = 0.31, damageMin = 170, damageMax = 180, baseXp = 960, baseHAM = 2900, baseHAMmax = 3500, armor = 0, resists = {5,5,5,140,-1,-1,-1,-1,-1}, meatType = "meat_carnivore", me...
pg = pg or {} pg.enemy_data_statistics_9 = { [230] = { cannon = 0, name = "长门", type = 5, speed_growth = 0, battle_unit_type = 49, air = 0, air_growth = 0, durability = 99999, friendly_cld = 0, armor = 0, id = 230, bubble_fx = "", dodge_growth = 0, icon = "changmen", star = 0, torpedo =...
--variables local lasttime = 0 local cooldown = 0 local bulletSpeed = 1600 local bullets = {} local playerBossCol = false local projectileCount = 3 local spread = 7 weaponType = "gun" --all collision code local function onCollision (event) if ( event.phase == "began" ) then if (event.object1.myName == "player") ...
return { [1] = { ["id"] = "110000"; ["name"] = "北京"; ["children"] = { [1] = { ["id"] = "110101"; ["name"] = "东城区"; }; [2] = { ["id"] = "110102"; ["name"] = "西城区"; }; [3] = { ["id"] = "110105"; ["name"] = "朝阳区"; }; [4] = { ["id"] = "110106"; ...
local evo = {} function evo:draw() self.canvas:clear() lg.push() lg.setCanvas(self.canvas) love.graphics.setShader( outline ) -- self.anim:draw(math.floor(self.x), math.floor(self.y), 0, .5, .5, self.frSz / 2, self.frSz - 80) lg.origin() self.anim:draw(0, 0, 0, 1, 1) love.graphics.setShader() lg.setC...
--[[ Netherstorm -- Pentatharon.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 -- BlackHer0, S...
local http_client = require("rubberduck.http_client") local github_repositories = {} local configuration = { base_url = "https://api.github.com/search/repositories", default_params = { } } local function parse_result(result) if type(result) ~= "table" then return {} end if type(result.body) ~= "table" then ret...
--[[ luna class library https://github.com/BradSharp/luna MIT License Copyright (c) 2016 Brad Sharp ]] if not (setfenv or getfenv) then local envs = setmetatable({}, {__mode = "k"}) -- Annoying work around local getinfo = debug.getinfo local getupvalue = debug.getupvalue local upvaluejoin = debug.upvaluejoin ...
--- Global Synchronized Identifier generator. -- Its main advantages are simplicity and ability to revert its inner state. -- @classmod l2df.manager.gsid -- @author Abelidze -- @copyright Atom-TM 2020 local core = l2df or require((...):match('(.-)manager.+$') or '' .. 'core') assert(type(core) == 'table' and core.vers...
UndoStack = {} UndoStack.__index = UndoStack function UndoStack.create() local stack = {} setmetatable(stack, UndoStack) stack.items = {} stack.undoneItems = {} return stack end function UndoStack:pushItem(item) table.insert(self.items, item) end function UndoStack:pushRedoItem(item) table.insert(sel...
return function() local params = { command = '_typescript.organizeImports', arguments = { vim.api.nvim_buf_get_name(0) }, title = '' } vim.lsp.buf.execute_command(params) end
local path = (...):gsub("%.init$", "") .. "." return { tile = require(path .. "tile"), maleHuman = require(path .. "maleHuman"), femaleHuman = require(path .. "femaleHuman"), door = require(path .. "door") }
-- this runs once at the beginning function initLuau (files) for file,k in string.gmatch(files, "([^;]*)") do local f = assert(loadfile(file)) f () initMod () end return 0 end -- this runs every tick function runLuau (files) for file,k in string.gmatch(files, "([^;]*)") do local ...
--- --- xclass --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- ---Extends [Class] function so that you can use ClassName(...) to create an instance of lstg object. ---Example: `classname = xclass(object)` ---@param base table ---@param define table ---@return object function xclass(base, define) loca...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
a=game.Players.LocalPlayer.Chance while true do wait() a.Value=a.Value+100 end
hook.Add( "PopulateWeapons", "AddWeaponContent", function( pnlContent, tree, node ) -- Loop through the weapons and add them to the menu local Weapons = list.Get( "Weapon" ) local Categorised = {} -- Build into categories for k, weapon in pairs( Weapons ) do if ( !weapon.Spawnable ) then conti...
-- SilentsReplacement -- PhysicsThreshold -- September 08, 2021 --[[ PhysicsThreshold.ComputeMaxVerticalSpeed(playerProfile : PlayerProfile, verticalSpeed : number) --> nil [] PhysicsThreshold.ComputeMaxHorizontalSpeed(playerProfile : PlayerProfile, horizontalSpeed : number) --> nil [] ]] local PhysicsThreshold = {...
local base_manager = { _database = nil, _bases = {}, }; local core = require("util/core"); local FactionBase = require("gamemodes/freeroam/class_base"); function base_manager:GetBaseList() self:Dump(); return self._bases; end function base_manager:FixFactionSpawns( faction_id ) local only_base = nil; for i...
--[[ desc:成扑隐射 auth:Carol Luo ]] local kz111 = {[1]=3} local kz222 = {[2]=3} local kz333 = {[3]=3} local kz444 = {[4]=3} local kz555 = {[5]=3} local kz666 = {[6]=3} local kz777 = {[7]=3} local kz888 = {[8]=3} local kz999 = {[9]=3} local sz123 = {[1]=1,[2]=1,[3]=1} local sz234 = {[2]=1,[3]=1,[4]=1} local sz34...
-- Mimics a FIFO queue, OOP style local class = require 'class' local fifo = class() fifo._queue = {} -- Pushes a value at the tail of the heap function fifo:push(value) table.insert(self._queue, value) end -- Remove and return the value at the head of the heap function fifo:pop() local head = self._queue[1] ta...
-- -- Copyright 2012 Rackspace -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
return { code = 'SUIT_STATE_ERROR', key = "SUIT_STATE_ERROR", }
-- Copyright 2022 philh30 -- -- 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 writ...
-- register aliases for retro compat minetest.register_alias("ks_flora:maple_planks", "ks_flora:holly_planks") minetest.register_alias("ks_flora:maple_living_branch", "ks_flora:holly_living_log") minetest.register_alias("ks_flora:maple_living_log", "ks_flora:holly_living_log") minetest.register_alias("ks_flora:maple_lo...
RMenu.Add('Ltd', 'Principal', RageUI.CreateMenu("", "Article disponible", nil, nil, "root_cause", "Banner"), true) RMenu:Get('Ltd', 'Principal'):DisplayGlare(false); RMenu:Get('Ltd', 'Principal').Closable = false; RMenu.Add('Weapon', 'Principal', RageUI.CreateMenu("", "Article disponible", nil, nil, "root_cause", "Ban...
require 'torch'; -- returns size of string array function size_of(T) local count = 0 for _ in pairs(T) do count = count + 1 end return count end -- returns the mean and std dev of each channel (3x1 tensor for each) function get_data_stats( data ) mean = {} -- store the mean, to normalize the test set in the...
local cpath = select(1, ...) or "" -- callee path local function nTimes(n, f, x) for i = 0, n - 1 do x = f(x) end return x end -- calls n times f(x) local function rmlast(str) return str:sub(1, -2):match(".+[%./]") or "" end -- removes last dir / file from the callee path local cdpath = rmlast(cpath) -- callee dir path...
local mod = get_mod("InventoryFavorites") local pl = require'pl.import_into'() -- luacheck: globals Favorite_keymaps Colors table UITooltipPasses UIPasses -- luacheck: globals UIFrameSettings Managers ItemGridUI Localize UIUtils -- luacheck: globals BackendInterfaceCommon ItemMasterList UISettings -- luacheck: global...
------------------------------------------------------------------------------------------------------------ if(ffi == nil) then ffi = require( "ffi" ) end ------------------------------------------------------------------------------------------------------------ sdl = require( "ffi/sdl" ) sdl_image = require("ffi/...
require 'torch' -- get max value in a table -- t: table -- fn: function to compare two elements in the table function max(t, fn) if #t == 0 then return nil, nil end local value = t[1] for i = 2, #t do if fn(value, t[i]) then value = t[i] end end return value end -- get ...
os.loadAPI("ws/Peripherals.lua"); local Peripherals = _G["Peripherals.lua"] --TODO: Move this to a better place if not os.getComputerLabel() then os.setComputerLabel("Unnamed"..os.getComputerID()) end local LEVEL_TRACE = 1 local LEVEL_DEBUG = 2 local LEVEL_INFO = 3 local LEVEL_WARN = 4 local LEVEL_ERROR = 5 local L...
#!/usr/bin/env lua local VERSION = '@LUAVM_VERSION@' local function run(luafile) local chunk = loadfile(luafile) local g = {} setfenv(chunk, g) return g, chunk() end local function loadvars(luadir) local _, site_config = run(luadir..'/lua/luarocks/site_config.lua') local g, _ = run(luadir..'/config.lua')...
TextInput = {} TextInput.__index = TextInput local INVALID_BOX_NOT_FOCUSED_OR_HOVER_FILL_COLOUR = { r = 1, g = 0.85, b = 0.95, a = 1 } local BOX_NOT_FOCUSED_OR_HOVER_FILL_COLOUR = { r = 0.9, g = 0.95, b = 1, a = 1 } local INVALID_BOX_FOCUSED_OR_HOVER_FILL_COLOUR = { r = 1, g = 0.95, b = 0.95, a = 1 } local BOX_FOCUSED...
Citizen.CreateThread(function() while true do RemoveWeaponDrops() Citizen.Wait(1000) end end) function RemoveWeaponDrops() local pickupList = {`PICKUP_AMMO_BULLET_MP`,`PICKUP_AMMO_FIREWORK`,`PICKUP_AMMO_FLAREGUN`,`PICKUP_AMMO_GRENADELAUNCHER`,`PICKUP_AMMO_GRENADELAUNCHER_MP`,`PICKUP_AMMO_HOMINGLAUNCHER`,`PI...
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end player:setStorageValue(Storage.QueenOfBansheesQuest.LastSeal, 1) player:teleportTo(Position(32269, 31853, 15)) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true en...
function bringDonorAnnouncement(plr, amount, de) triggerClientEvent(root, "AURanndonor.drawDonorDx", root, plr, tostring(amount), de) --local _, speech, URL = convertTextToSpeech(de, getPlayerFromName("[AUR]Curt"), "en") end function doTestDonation (plr) if (getTeamName(getPlayerTeam(plr)) == "Staff") then brin...
-- Minetest 0.5 mod: bones -- See README.txt for licensing and other information. --REVISED 20151117 by maikerumine for adding bones to inventory after punch bones = {} local share_bones_time = (tonumber(minetest.setting_get("share_bones_time")) or 1800) bones.bones_formspec = "size[14,9]".. default.gui_bg.. defa...
local Stream = require("stream") local mt = {} function mt:__tostring() return string.format([=[ ID: %i CLASS NAME: %s COUNT: %i FORMAT: %s REFERENTS: [ %s ]]=], self.id, self.name, self.count, self.format == 0 and "NORMAL" or "SERVICE", table.concat(self.referents, ", ")) end local chunk...
local CalcEquipAdd = {} function CalcEquipAdd.calc(level) return 0.01 * level end function CalcEquipAdd.calcChance(level) if level > 60 then level = 60 end local min = 1 local max = 60 local ret = 1 - (level - min) / (max - min) * (1 - 0.2) return ret end function CalcEquipAdd.calcCost(leve...
----------------------------------------------------------------------------------------------- -- Client Lua Script for ChatFontSize ----------------------------------------------------------------------------------------------- require "Window" require "ChatSystemLib" ---------------------------------------------...
require "uri-test" local URI = require "uri" local Util = require "uri._util" local testcase = TestCase("Test uri.urn.isbn") local have_isbn_module = Util.attempt_require("isbn") function testcase:test_isbn () -- Example from RFC 2288 local u = URI:new("URN:ISBN:0-395-36341-1") is(have_isbn_module and "ur...
local redis = require "resty.redis" return { fields = { session_key = { type = "string", default="SESSION" }, redis_session_prefix = { type = "string", default = "" }, redis_host = { type = "string" }, redis_port = { type = "number", default = 6379 }, redis_password = { type...
local ffi = require( "ffi" ) local glfw = require( "ffi/glfw" ) local moo = require( "lib/moo" ) local int1, int2 = ffi.new( "int" ), ffi.new( "int" ) local notify = moo.notify local function update(self) if self.window == nil then self:init() end assert(self.window) if glfw.glfwGetWindowParam(se...
credits = {} function credits:enter(previous) self.slide = 1 self.timer=0 output:play_playlist("credits") end function credits:draw() setColor(255,255,255,255) local width, height = love.graphics:getWidth(),love.graphics:getHeight() setColor(255,255,255,255) love.graphics.setFont(fonts.graveFontBig) ...
--Cache messages to be sent. local characters = dofile(path.."settings/characters.lua") local SC = "" local CharsCheck = "" for i=1,#characters do SC = SC..characters[i].."#" --CharsCheck = CharsCheck.."0#" end local music = dofile(path.."settings/music.lua") local musiccount = 0 local SM = "" SM = SM .. music[1].."...
local cli = require("neogit.lib.git.cli") local util = require("neogit.lib.util") return { list = function(options) local output = cli.run("log --oneline " .. options) local output_len = #output local commits = {} for i=1,output_len do local matches = vim.fn.matchlist(output[i], "^\\([| \\*]*\...
------------------------------------ -- Beastmen Treasure side quests -- https://ffxiclopedia.fandom.com/wiki/Beastmen_Treasure ------------------------------------ require('scripts/globals/keyitems') require('scripts/globals/quests') require('scripts/globals/status') require('scripts/globals/weather') require('scripts...
--[[ tonum - a slightly better tonumber 002 ]] local function tonum(v) if type(v)=="boolean" then return v and 1 or 0 end return tonumber(v) end --[[ Bounds checking 003 ]] -- replace the placeholders MIN_X, MAX_X, etc... local function inbounds(x,y) return x>=MIN_X ...
--- --- Created by Ray1184. --- DateTime: 04/07/2021 17:04 --- --- Abstract 2D item on screen. --- dependencies = { 'libs/utils/MathUtils.lua', 'libs/utils/Utils.lua' } area_2d = {} TYPE_CIRCLE = 0 TYPE_POLYGON = 1 function area_2d:new(type, data, x, y) local this = { type = type, ...
local shared = require("migrations.shared") function create_all(stackable_items, stage_prefix, create_function) for mod,items in pairs(stackable_items) do if mods[mod] then for _,item in pairs(items) do if item.tech then create_function(item.item, item.icon, item.tech) else ...
local serialize = require("serialize") local filesystem = require("filesystem") local requireUtils = require("require_utils") local utils = {} utils.serialize = serialize.serialize utils.unserialize = serialize.unserialize function utils.stripByteOrderMark(s) if s:byte(1) == 0xef and s:byte(2) == 0xbb and s:byte...
function Initialize(a_Plugin) a_Plugin:SetName(g_PluginInfo.Name) a_Plugin:SetVersion(g_PluginInfo.Version) cPluginManager:AddHook(cPluginManager.HOOK_WORLD_TICK, TickCatastrophes) -- Load all the known catastrophes into g_Catastrophes. LoadCatastrophes() -- Load the configuration InitializeConfigurat...
Global( "PlayerAFK", {} ) function PlayerAFK:Init(anID) self.playerID = anID self.unitParams = {} self.isAfk = false self.lastAfk = -1 self.eventFunc = self:GetEventFunc() self.base = copyTable(PlayerBase) self.base:Init() self:RegisterEvent(anID) end function PlayerAFK:ClearLastValues() self.lastAfk ...
----------------------------------- -- Area: Zhayolm Remnants -- NM: Battleclad Chariot ----------------------------------- require("scripts/globals/titles") ----------------------------------- function onMobDeath(mob, player, isKiller) player:addTitle(tpz.title.STAR_CHARIOTEER) end
fx_version 'bodacious' games { 'gta5' } ui_page 'html/index.html' client_scripts { 'client/storage.lua', 'client/main.lua' } files { 'html/index.html', 'html/style.css', 'html/main.js' }
---===================================== ---th style boss ---===================================== ---------------------------------------- ---boss base ---@class boss @东方风boss boss = Class(enemybase) function boss:init(x, y, name, cards, bg, diff) enemybase.init(self,999999999) self.x = x self.y = y...
#!/usr/bin/env lua package.path = '../src/?.lua;' .. package.path local split = require 'split' local spliter = split.spliterator local each = split.each local t = require 'tapered' local str, expected, actual t.same(spliter, each, "spliterator should be an alias for each.") str = 'a,foo,bar,bizz,buzz,,b' expected =...
--[[ Do MD5 sumcheck of Arduino bootloader .hex file Nick Gammon 5 May 2012 Amended 10 October 2014, to get PROGMEM line right for IDE 1.5.8 To use: 1. Download MUSHclient from: http://www.gammon.com.au/downloads/dlmushclient.htm MUSHclient is free and open source. Source code at: https://github...
local PANEL = {} local function TextSize(font, text) surface.SetFont(font) return surface.GetTextSize(text) end function PANEL:Init() local Frame = self self:SetTitle( "" ) self:SetVisible(true) self:SetDraggable(false) self:SetBackgroundBlur(true) self:ShowCloseButton(false) self.Font = "ZEDFont40...
local Spell = { } Spell.LearnTime = 900 Spell.Description = [[ Rips your target's body with demonic harpoons. 100% brutal. ]] Spell.FlyEffect = "hpw_dragoner_main" Spell.ApplyDelay = 0.6 Spell.AccuracyDecreaseVal = 0.4 Spell.Category = HpwRewrite.CategoryNames.Special Spell.SpriteColor = Color(155, 255, 155) Spell....
-- Copyright (C) 2018-2020 DBotThePony -- 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 use, copy, modify, merge, publis...
------------------------------------------------ ----[ COMMANDS ]------------------------ ------------------------------------------------ local Commands = SS.Commands:New("Commands") // Commands command function Commands.Command(Player, Args) local Panel = SS.Panel:New(Player, "Commands") for K, V in pairs(SS.C...
local ThreatLib = LibStub and LibStub("ThreatClassic-1.0", true) if not ThreatLib then return end if select(2, _G.UnitClass("player")) ~= "SHAMAN" then return end local _G = _G local ipairs = _G.ipairs local select = _G.select local GetTalentInfo = _G.GetTalentInfo local Shaman = ThreatLib:GetOrCreateModule("Player"...
engine = {} local engine_mt = {__index = engine} function engine.new(...) local ret = setmetatable({}, engine_mt) ret:init(...) return ret end function engine:init() self.sprites = {} self.controls = {} end function engine:add_control(control) table.insert(self.controls, control) if control.add then ...
local ABGS = require(script:GetCustomProperty("APIBasicGameState")) local ROOT = script:GetCustomProperty("Tags"):WaitForObject() local isEnabled = ROOT:GetCustomProperty("ENABLED") if not isEnabled then return end local AMMOUNT = script:GetCustomProperty("AMMOUNT"):WaitForObject() local UIPanel = script:GetCustomP...
local BasePlugin = require("orange.plugins.base_handler") local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require("orange.utils.handle") local utils = require("orange.utils.utils") local fu...
-- ViewmodelPage.lua -- ArsonistD -- Started : 12/09/2021 -- Last Edit : 12/09/2021 local framework = require(script.Parent.Parent.Parent.ArsonsPluginFramework) local Roact = require(script.Parent.Parent.Parent.Packages.Roact) ViewmodelPage = Roact.Component:extend( "ViewmodelPage" ) function ViewmodelPage:init(...
local sound = require 'vendor/TEsound' local Timer = require('vendor/timer') local tween = require 'vendor/tween' local character = require 'character' local Gamestate = require 'vendor/gamestate' local utils = require 'utils' local anim8 = require 'vendor/anim8' local Dialog = require 'dialog' local Quest = require 'q...
-- Copyright (C) 2016 Pau Carré Cardona - All Rights Reserved -- You may use, distribute and modify this code under the -- terms of the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt). local search_commons = {} function search_commons.sortCmpTable(a, b) return a[2] > b[2] end function search_c...
dwarf_bantha = Creature:new { objectName = "@mob/creature_names:dwarf_bantha", socialGroup = "bantha", faction = "", level = 11, chanceHit = 0.29, damageMin = 90, damageMax = 110, baseXp = 356, baseHAM = 1200, baseHAMmax = 1400, armor = 0, resists = {0,0,0,115,0,0,0,-1,-1}, meatType = "meat_herbivore", me...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("params_pass_array_struct") TestParamsPassArrayStruct = {} function TestParamsPassArrayStruct:test_params_pass_array_struct() local r = ParamsPassArrayStruct:from_file("src/position_to_end.b...
function a() end <caret>
return function(mt) mt.__index = mt local M = {} function M.new(...) local obj = setmetatable({}, mt) if obj.ctor then obj:ctor(...) end return obj end return M end
local playsession = { {"Felgon", {71906}}, {"Houdi", {71893}}, {"LetsAgree", {1791}}, {"ratboyboxshall", {4261}}, {"Phil87", {17915}} } return playsession
local fs = require('efmls-configs.fs') local formatter = 'dotnet' local command = string.format('%s format ${ROOT}', fs.executable(formatter)) return { formatCommand = command, formatStdin = false, }
UIMenuProgressItem = setmetatable({}, UIMenuProgressItem) UIMenuProgressItem.__index = UIMenuProgressItem UIMenuProgressItem.__call = function() return "UIMenuItem", "UIMenuProgressItem" end ---New ---@param Text string ---@param Items table ---@param Index number ---@param Description string ---@param Counter boolean...
--清除掉目标身上所有的 buff, target参数指定消除哪个目标身上的 buff,clear_type 指定消除哪些类型的 buff,见:SceneConst.ClearBuffType 枚举,有三种:所有,坏的和好的 buff. local Ac = require "Action" local FightHelper = require("game.scene.FightHelper") local SceneConst = require "game.scene.SceneConst" local BuffActions = require("game.scene.fight.BuffActions") --对于造成临...
local module = ... local function set(name, value) if not value then return end local fn = name .. '.lua' local f = file.open(fn, "w") f.writeline("local " .. name .. " = " .. value) f.writeline("return " .. name) f.close() node.compile(fn) file.remove(fn) print("Heap: ", node.heap(), "Wrote: ", fn) ...
setfenv(1, require "sysapi-ns") local bor, lshift = bit.bor, bit.lshift -- Language Identifier Constants and Strings -- https://docs.microsoft.com/en-us/windows/win32/intl/language-identifier-constants-and-strings LANG_ENGLISH = 0x09 SUBLANG_ENGLISH_US = 0x01 -- #define MAKELANGID(p, s) ((((WORD )(s)) << 10) | (WORD...
local class = require 'middleclass' local data = class('db.prometheus.data') function data:initialize() self._list = {} end function data:add_metric(metric) table.insert(self._list, metric) end function data:encode(auto_clean) local data = {} for _, v in ipairs(self._list) do local lines = v:encode(auto_clean...