content
stringlengths
5
1.05M
local ObjectManager = require("managers.object.object_manager") local CRYSTAL_OBJECT = "object/tangible/loot/quest/force_sensitive/force_crystal.iff" villageElderConvoHandler = conv_handler:new {} function villageElderConvoHandler:runScreenHandlers(pConvTemplate, pPlayer, pNpc, selectedOption, pConvScreen) local sc...
local L = LibStub("AceLocale-3.0"):NewLocale("ClassicCastbars", "zhCN") if not L then return end --[[ Want to help translate ClassicCastbars? https://www.curseforge.com/wow/addons/classiccastbars/localization ** THE REST OF THIS FILE IS AUTOMATICALLY GENERATED ** ]] --@localization(locale="zhCN", format=...
local class = require 'EasyLD.lib.middleclass' local Music = class('Music') function Music:initialize(name) end return Music
LOCALE = { formats = { currency = { symbol = "р.", name = "Рубль", short_name = "RR", decimal_symbol = ",", thousand_separator = ".", fract_digits = 2, positive_symbol = "", negative_symbol = "-", ...
Config = {} Config.DrawDistance = 100.0 Config.EnablePlayerManagement = true Config.EnableSocietyOwnedVehicles = false Config.EnableVaultManagement = true Config.EnableHelicopters = false Config.EnableMoneyWash = true Config.MaxInService ...
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2008. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Network-ready Proximity Trigger -- ----------------------------...
return Def.Quad { InitCommand = function(self) self:xy(0, 0):halign(0):valign(0):zoomto(SCREEN_WIDTH, 30):diffuse(color("#00000099")):fadebottom(0.8) end }
expose("", function() setup(function() local function has_suffix(state, arguments) if #arguments ~= 2 or type(arguments[1]) ~= "string" or type(arguments[2]) ~= "string" then return false end return arguments[2]:sub(-string.len(arguments[1])) == arguments...
-- Speeds up the game function QuickBots() Bot.MaxSpeed = 9 Bot.MaxForce = 30 Bot.SwapSpeed = -1 Items.RespawnTime = -1 end QuickBots()
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 64221 } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNi...
MOD_NAME = "Reactors" REACTOR_ENTITY_NAME = "nuclear-reactor" INTERFACE_ENTITY_NAME = "reactor-interface" BOILER_ENTITY_NAME = "reactor-boiler" TOWER_ENTITY_NAME = "cooling-tower" STEAM_ENTITY_NAME = "cooling-tower-steam" SIGNAL_CORE_TEMP = {type="virtual", name="signal-reactor-core-temp"} SIGNAL_FLUID_TEMP ...
-- mining_sand.lua v2.0 -- by Cegaiel -- -- Works the sand mine, but requires a little thought and input from you ;) -- You must click on all Quintuple colors FIRST, all Quadruple colors NEXT, all Triple colors NEXT, all Paired colors NEXT, then ALL Single colored stones LAST. -- -- Credits to Tallow for his Simon macr...
slot2 = "MJCardBigCcsPane" MJCardBigCcsPane = class(slot1) MJCardBigCcsPane.onCreationComplete = function (slot0) slot4 = MJCardCcsPane ClassUtil.extends(slot2, slot0) slot3 = slot0 MJCardCcsPane.onCreationComplete(slot2) slot0._smallStr = "" end return
function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_HEAD).uid) then return false end doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) return true end
local a=require("cc.expect")require(settings.get("ghu.base").."core/apis/ghu")local b=require("am.log")local c=require("am.pathfind")local d=require("am.event")local e=require("am.helpers")local f=require("am.core")local g={}local h={["minecraft:coal"]=true,["minecraft:coal_block"]=true,["minecraft:charcoal"]=true,["qu...
-------------------------------------------------------------------------------------------------------------------------------- --[[ Copyright © Inertia Lighting ]]-- --------------------------------------------------------------...
local default = { GUILD_ONLY = 'This command must be ran in a guild!', NSFW_ONLY = 'This command must be ran in a NSFW channel!', OWNER_ONLY = 'This command must be ran by an owner of the bot!', } ---@param cmd Command ---@param err string return function(cmd, err, customMsg) if default[err] then ret...
project "googlemock" staticruntime "on" kind "StaticLib" language "C++" cppdialect "c++17" targetdir "%{_WORKING_DIR}/builds/%{cfg.shortname}/" objdir "%{_WORKING_DIR}/obj/%{prj.name}_%{cfg.shortname}/" files { "src/**.h", "src/**.cc", "include/**.h" } includedirs { ".", "include/", "../googletes...
object_ship_nova_orion_patrol_light_tier3 = object_ship_shared_nova_orion_patrol_light_tier3:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_patrol_light_tier3, "object/ship/nova_orion_patrol_light_tier3.iff")
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local process = require "nvim-lsp-installer.process" local platform = require "nvim-lsp-installer.platform" local std = require "nvim-lsp-installer.core.managers.std" local github_client = require "nvim-lsp-installer.core....
Config = {} Config.Animations = { { name = 'festives', label = 'Festives', items = { {label = "Fumer une cigarette", type = "scenario", data = {anim = "WORLD_HUMAN_SMOKING"}}, {label = "Jouer de la musique", type = "scenario", data = {anim = "WORLD_HUMAN_MUSICIAN"}}, {label = "Dj", type = "ani...
--[[ 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...
demo = demo or {}; function demo.gtk_gstreamer() require "luacxx.gir" require "Gst" print(Gst.version()); end;
---@meta ---@class resty.websocket.server : resty.websocket local server = { _VERSION = "0.09" } ---Performs the websocket handshake process on the server side and returns a WebSocket server object. --- ---In case of error, it returns nil and a string describing the error. ---@param opts? resty.w...
local t = Def.ActorFrame{} -- always add StepArtist and PaneDisplay actors for both players, even if only one is joined right now -- if the other player suddenly latejoins, we can't dynamically add more actors to the screen -- we can only unhide hidden actors that were there all along for player in ivalues( PlayerNumb...
local a if x then a = b or c + d -- testset redirected by else (with MMBIN*) else print("else") end
function kilomili(number) if string.len(number) < 5 then number = commas(number) elseif string.len(number) > 4 and string.len(number) < 7 then number = string.format("%.2f",(number / 10^3)) .. "k" elseif string.len(number) > 6 and string.len(number) < 10 then number = string.format("%.2f",(number / 10...
local gameNpcs = {characters = {}, robbing = {}, orders = {canOrder = {}, orderList = {}, activeOrders = {}, trashImages = {}}} system.looping(function() updateDialogs(4) end, 10)
local awful = require('awful') local gears = require('gears') local modKey = require('config.keys.mod').ModKey return gears.table.join()
local p = game.Players.LocalPlayer local m = game.Players.LocalPlayer local char = p.Character local mouse = p:GetMouse() local larm = char["Left Arm"] local rarm = char["Right Arm"] local lleg = char["Left Leg"] local rleg = char["Right Leg"] local hed = char.Head local torso = char.Torso local cam = game.Workspace.Cu...
local util = AdvancedFilters.util local function CraftedFilter(isCrafted) return function(slot, slotIndex) if util.prepareSlot ~= nil then if slotIndex ~= nil and type(slot) ~= "table" then slot = util.prepareSlot(slot, slotIndex) end end local itemLink = GetItemLink(slot.bagId, slo...
-- ilua.lua -- A more friendly Lua interactive prompt -- doesn't need '=', and will try to print out tables recursively. -- On Unix, will use readline.so if available. -- Steve Donovan, 2007 -- local usage = [[ilua -lLtTvsq (lua files) -l load a library -L load a library and bring into global namespace -t <...
function onCreate() -- sprites that only load if Low Quality is turned off if not lowQuality then makeLuaSprite('sky', 'sky', 20, 60); setLuaSpriteScrollFactor('sky', 0.9, 0.9); makeLuaSprite('BackGround', 'BackGround', -20, 60); setLuaSpriteScrollFactor('BackGround', 0.9, 0.9); makeLuaSprite('Fore...
local E = unpack(select(2, ...)); -- Import: Engine local T = E:NewModule("Trackset", "AceEvent-3.0") local TrackSetPath = "Interface\\AddOns\\VeKtor\\tracksets\\"; function T:GetTrackSetPath() return TrackSetPath end function T:Register() T:RegisterMessage("V_INIT", "Initialize", TrackSetPath) T:RegisterMessage...
local GameLogic = {} --************** 扑克类型 ******************-- --混合牌型 GameLogic.OX_VALUEO = 0 --三条牌型 GameLogic.OX_THREE_SAME = 102 --四条牌型 GameLogic.OX_FOUR_SAME = 103 --天王牌型 GameLogic.OX_FOURKING = 104 --天王牌型 GameLogic.OX_FIVEKING = 105 --最大手牌数目 GameLogic.MAX_CARDCOUNT = 5 --牌库数目 GameLogic.FULL_...
-- Copyright (C) Izio, Inc - All Rights Reserved -- Unauthorized copying of this file, via any medium is strictly prohibited -- Proprietary and confidential -- Written by Romain Billot <romainbillot3009@gmail.com>, Jully 2017 local userRank = nil local userJob = nil local isInService = false local isDragged = false lo...
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpot (US, Thrall) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Chat Tabs", "...
--[[ example = { name = "", -- only for informations purposes, used in messages properties = {} -- from get_properties() } ]] local player_clipboard = {} -- this way a reconnection resets the player model, and avoids to store in the player metadata local player_initial_properties = {} minetest.register_on_leav...
--!strict -- Iteration-based RNG system. -- Good for games with random rolls. Mostly used this to fix an exploit where people were using a RNG roll token, looking at the rewards they could pick from, and rejoining if they didn't like it to get fresh RNG. -- Tracking iteration # in their save data and using this yields...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. local Tabs = require('lualine.component'):new() local highlight = require 'lualine.highlight' local default_options = { max_length = 0, mode = 0, tabs_color = { active = nil, inactive = nil, }, } local function get_h...
-- -- Created by IntelliJ IDEA. -- User: Apisathan -- Date: 11-01-2019 -- Time: 20:22 -- Github: https://github.com/Apisathan/FiveM-Scripts -- RegisterNetEvent('vrp-chat:notify') AddEventHandler('vrp-chat:notify', function(message) PlaySound(-1, "Menu_Accept", "Phone_SoundSet_Default", 0, 0, 1) TriggerEvent('c...
require "spirograph" pncl("#A0A0A0") -- +-------------------------- radius of equator circle -- | +--------------------- radius of the bicycle wheel circle -- | | +---------------- (optional) position of the drawing point -- | | | +------------ (optional) resolution of the graph -- | ...
minetest.register_privilege("mapserver_hide_player", { description = "Player is hidden from the map", give_to_singleplayer = false })
do -- ACF global vars ACF.AmmoTypes = ACF.AmmoTypes or {} ACF.AmmoCrates = ACF.AmmoCrates or {} ACF.FuelTanks = ACF.FuelTanks or {} ACF.MenuFunc = ACF.MenuFunc or {} ACF.AmmoBlacklist = ACF.AmmoBlacklist or {} ACF.Repositories = ACF.Repositories or {} -- Misc ACF.Year = 1945 ACF.IllegalDisa...
--- === hs.window.switcher === --- --- Window-based cmd-tab replacement --- --- Usage: --- ``` --- -- set up your windowfilter --- switcher = hs.window.switcher.new() -- default windowfilter: only visible windows, all Spaces --- switcher_space = hs.window.switcher.new(hs.window.filter.new():setCurrentSpace(true):setDef...
----------------------------------------- -- ID: 5830 -- Item: Lucid Elixir I -- Item Effect: Restores 50% of HP and MP ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/msg") function onItemCheck(target) if target:getMaxHP() == target:getHP() and target:getMaxM...
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.ffi.cdef[[ typedef enum ePedSt...
--New object_tangible_dungeon_mustafar_valley_battlefield_shared_must_bandit_fence_16m = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/dungeon/mustafar/valley_battlefield/shared_must_bandit_fence_16m.iff" } ObjectTemplates:addClientTemplate(object_tangible_dungeon_mustafar_valley_battlef...
local llex = require "llex" local base_char = 128; local keywords = { "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while" } function uglify_file(infile_fn, outfile_fn) local in...
local nnoremap = vim.keymap.nnoremap vim.g["test#java#runner"] = "gradletest" vim.g["test#javascript#runner"] = "jest" vim.g["test#strategy"] = "neovim" vim.g["test#javascript#jest#options"] = { all = "--silent" } local last_test_cwd = "" local does_file_require_changing_cwd = function() local ft = vim.bo.filetype...
class("SelectTecTargetCatchupCommand", pm.SimpleCommand).execute = function (slot0, slot1) pg.ConnectionMgr.GetInstance():Send(63011, { version = slot1:getBody().tecID, target = slot1.getBody().charID }, 63012, function (slot0) if slot0.result == 0 then slot2 = slot0.tecID slot3 = getProxy(TechnologyProxy...
CWIDTH = 32 love.conf = function(t) t.title = "The Lonely Captain" t.version = "0.10.2" t.window.width = 400 + 2 * CWIDTH t.window.height = 400 + 2 * CWIDTH t.window.resizable = false --t.console = true t.window.vsync = false end
local stormlib = require 'ffi.stormlib' local w3x2lni = require 'compiler.w3x2lni.init' local ev = require 'ev' local map_packer = require 'w3x2lni.map_packer' local mapdump = require 'mapdump' local process = require 'process' local mt = {} mt.__index = mt function mt:process_create(command_line, current_dir) if s...
--[[---------------------------------------------------------------------------- Application Name: CombineFilters3D Summary: Combining Median and Gauss filter on a 3D image How to Run: Starting this sample is possible either by running the app (F5) or debugging (F7+F10). Setting breakpoint on the first...
-- BlueGradient by ForeverHD local selectedColor = Color3.fromRGB(0, 170, 255) local selectedColorDarker = Color3.fromRGB(0, 120, 180) local neutralColor = Color3.fromRGB(255, 255, 255) return { -- Settings which describe how an item behaves or transitions between states action = {}, -- Settings ...
#!/usr/bin/env sysbench -- Copyright (C) 2020-2022 Dmitrii Maximenko <d.s.maximenko@gmail.com> -- Use of this source code is governed by an MIT-style -- license that can be found in the LICENSE file or at -- https://opensource.org/licenses/MIT -- ---------------------------------------------------------------------- ...
--- The simple config module provides an ability to generate config (cfg) for --- tarantool_graphql using tarantool meta-information. --- --- Explanation: --- --- To make use of it you must specify tarantool tuples' format during space --- creation passing or after it using space_object:format(). Spaces with no --- for...
local Frame = script.Parent local lockHomeButton = Frame.LockScreenHome local HomeScreen = Frame.Home local mainHomeButton = Frame.HomeButton lockHomeButton.MouseButton1Click:Connect(function() HomeScreen.Visible = true local homeapp = Frame.HomeScreenApps:GetChildren() for _, v in pairs (homeapp)do v.Visible ...
local vector = require "vector" local buttons_with_url = {} function buttons_with_url.new_button( o ) return( { position = o.position or vector( 300, 300 ), width = o.width or 100, height = o.height or 50, text = o.text or "hello", url = o.url or nil, image = o.image or nil, ...
local reader = require 'see.reader' local function undump(str_or_function) local str = str_or_function local status if type(str_or_function) == 'function' then status, str = pcall(string.dump, str_or_function) if not status then return '(?)', str end end assert(type(str) =...
local string_find, string_split, tostring, type = string.find, string.split, tostring, type Context = {} Context.__index = Context function Context:clear_cache() self.cache = {} end function Context:push(view) return self:new(view, self) end function Context:lookup(name) local value = sel...
--[[ Knit.CreateService(service): Service Knit.AddServices(folder): Service[] Knit.AddServicesDeep(folder): Service[] Knit.Start(): Promise<void> Knit.OnStart(): Promise<void> --]] local KnitServer = { Services = {}; Util = script.Parent.Util; Version = script.Parent.Version.Value; } local knitRepServiceFol...
--- -- @module Container -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Item = require( 'src.items.Item' ) -- ------------------------------------------------ -- Module -- ------------------------------------------------ local Con...
-- Provides an OOP approach to conditions and actions. -- A Predicate manages two separate lists: conditions and actions. -- The state of each condition is monitored, and if the predicate -- determines that its conditions cumulatively evaluate to true, then -- every action is fired. If the conditions change such that ...
-- Running tests and/or examples. local lfs = require "lfs" local directories = {} local luacov = false for _, argument in ipairs(arg) do if argument == "--help" then print("Usage: lua run.lua [--luacov] [<dir>]...") os.exit(0) elseif argument == "--luacov" then luacov = true else ...
local posis = { {'Volcanic', {x=223, y=405, z=7}}, --nome de cada clan e a pos aonde o player desse clan tem q tar... {'Seavell', {x=223, y=407, z=7}}, {'Orebound', {x=223, y=409, z=7}}, {'Wingeon', {x=225, y=410, z=7}}, {'Malefic', {x=227, y=409, z=7}}, {'Gardestrike', {x=227, y=407, z=7}}, {'...
Image { id = "comproot", --- fillMode = Image.FillMode.PreserveAspectFit, width = function() return height * implicitWidth / implicitHeight end, height = function() return (grid.height - grid.spacing * (model.columns - 1)) / model.columns end, source = "images/Minesweeper/back.png", containsMouse = funct...
pico-8 cartridge // http://www.pico-8.com version 18 __lua__ --system function getmovement() local movement = {} movement.__index = movement local system_type = "movement" setmetatable(movement, { __index = system, -- this is what makes the inheritance work __call = function (cls, ...)...
local inf = math.huge local byte, char, sub = string.byte, string.char, string.sub local setmetatable = setmetatable local _ENV = nil local hextbl = { 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, inf, inf, inf, inf, inf, inf, inf, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf,...
-- // repeat wait() until game:IsLoaded() -- // Services local Workspace = game:GetService("Workspace") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local Teams = game:GetService("Teams") -- // Vars local LocalPlayer = Players.LocalPlayer local PlayerGu...
-- -- vs2013_vcxitems.lua -- Generate a Visual Studio 201x C/C++ shared items project. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake p.vstudio.vc2013 = {} local vstudio = p.vstudio local project = p.project local config = p.config local fileconfig = p.fileconfig local tree = p.tre...
--[[ Copyright © 2022 VanderCat THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM...
require("model2"); -- Import model2 machine globals function Init() Patch_Master(); end function Patch_Master() -- A1 - jump to out patched init Romset_PatchDWord(0, 0xC64F4, 0x09031B0C); -- CALL 0x000F8000 -- A2 - set g2 Romset_PatchDWord(0, 0xF8000, 0x5C901E01); -- MOV g2,0x1 -- A2 - write to memory Romset...
local testutil = dofile("/var/payo-tests/testutil.lua") local util = testutil.load("popm-lib/popm") local tutil = testutil.load("payo-lib/tableutil") local ser = require("serialization").serialize local fs = require("filesystem") local config = require("payo-lib/config") local mktmp = loadfile(shell.resolve('mktmp','...
auto_ssl = (require "resty.auto-ssl").new() local redis = require "ceryx.redis" local routes = require "ceryx.routes" -- Define a function to determine which SNI domains to automatically handle -- and register new certificates for. Defaults to not allowing any domains, -- so this must be configured. auto_ssl:set( ...
sound.Add( { name = "csgo_knife.Deploy", channel = CHAN_WEAPON, volume = 0.4, level = 65, sound = "csgo_knife/knife_deploy1.wav" } ) sound.Add( { name = "csgo_knife.Hit", channel = CHAN_WEAPON, volume = 1.0, level = 65, sound = { "csgo_knife/knife_hit1.wav", "csgo_knife/knife_hit2.wav", "csgo_knife/knife_hit...
local ts = require("nvim-treesitter.configs") local M = {} function M.setup() ts.setup { ensure_installed = "maintained", highlight = { enable = true, disable = {"lua"}, use_languagetree = true } } end return M
import('GlobalVars') creditsRolling = true totalTime = 0.0 initialDist = -200 separationDist = 9 speed = 33 simpleCreditSizeBase = 20 simpleCreditSizeScale = 8 titleCreditSizeBase = 20 titleCreditSizeScale = 6 credits = {} creditSizes = {} creditFonts = {} rowDist = {} function init () if sound.current_music() ...
-- Copyright (C) 2017,2018 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-ubench. -- -- dromozoa-ubench 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 3 of the Lice...
local bump = { _VERSION = 'bump v3.1.7', _URL = 'https://github.com/kikito/bump.lua', _DESCRIPTION = 'A collision detection library for Lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2014 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of...
local api = vim.api local is_windows = vim.loop.os_uname().sysname == "Windows" local path_sep = is_windows and '\\' or '/' local libs = {} local server_filetype_map = require('lspsaga').config_values.server_filetype_map function libs.get_home_dir() return os.getenv("HOME") end -- check index in table function libs...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local string_rep = string.rep; local type = type; local tostring = tostring; local t_insert = table.insert...
local posix = require 'posix' local util = { path = {}; } local _path = util.path local ltp = require 'ltp.template' function util.lrender(tmpl, ctx) local str = assert(ltp.compile_template_as_function(tmpl, '<?', '?>')) -- print('tmpl', str) local fn = assert(loadstring(str))() local ret = {} ...
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.0 -- Date: 31.10.2010 --------------------------------------------------------------------- ------------------------------------ -- Commands -------------------------...
local mod = DBM:NewMod(2098, "DBM-Party-BfA", 9, 1001) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 18026 $"):sub(12, -3)) mod:SetCreatureID(127484) mod:SetEncounterID(2102) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 257777 257827", "SPELL_AURA_R...
--[[ Lord of the Wastes NOTES: - NOTES HERE ADDITIONAL REQUIREMENTS TO DO THIS MISSION: - Have completed the fourth LOTW mission. ROUGH OUTLINE - Go to the location, fight Swenks. Easy enough! DANGER LEVEL 5 - Swenks + 7 buddies 5 - Every 25%, Swenks goes immu...
if GameConst.DebugMode then local _, LuaDebuggee = pcall(require, 'LuaDebuggee') if LuaDebuggee and LuaDebuggee.StartDebug then LuaDebuggee.StartDebug('127.0.0.1', 9826) else print('Please read the FAQ.pdf') end end local Util = Framework.Utility.Util; --工具方法 local LuaHelper = Framework.Utility.LuaHelper; ...
EditorVehicleOperator = EditorVehicleOperator or class(MissionScriptEditor) function EditorVehicleOperator:create_element() self.super.create_element(self) self._element.class = "ElementVehicleOperator" self._element.values.operation = "none" self._element.values.damage = "0" self._element.values.elements = {} end...
--[[ module: ProbStrategy author: DylanYang time: 2021-02-23 18:06:22 idea: advance: ]] local Hands = require("patterns.behavioral.strategy.Hands") local _M = Class("ProbStrategy") local public = _M.public _M.preValue = 1 _M.curValue = 1 _M.history = { { 1, 1, 1, }, { 1, 1, 1, }, {...
function love.conf(t) -- setting msaa is important to get antialiased -- results for the mesh renderer. you should not -- set this if you only use gpux renderers. t.window.msaa = 2 end
object_intangible_pet_beast_master_bm_eopie = object_intangible_pet_beast_master_shared_bm_eopie:new { } ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_eopie, "object/intangible/pet/beast_master/bm_eopie.iff")
local mime = require("acid.mime") function test.by_fn(t) local cases = { { '', 'application/octet-stream' }, { '123', 'application/octet-stream' }, { '.123', 'application/vnd.lotus-1-2-3' }, { 'file.123', 'application/vnd.lotus-1-2-3' }, { 'file.123.not_exist_suffix_aa', 'ap...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ironbound Gate ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) local X = player:getXPos() local Z = player:getZPos() if (X > -43 and X < -37) and (Z < -53 and Z > -59) then...
require "utils" unit = require "unit_test" test_case = unit.test_case test_assert = unit.test_assert test_case( "TimeManager", function() local timeManager = kf.TimeManager() local currentTime = kf.getTick() local timeInactive = timeManager:appendTime() local timeInactive2 = timeManager:appendTime() print...
commandArray = {} if (devicechanged['Contact_Porte'] == 'Open') then if (otherdevices['Porte'] == 'Off') then commandArray['Porte']='On' else commandArray['Porte']='Off' end commandArray['Contact_Porte']='On' end return commandArray
object_tangible_loot_npc_loot_preserved_bugs_generic = object_tangible_loot_npc_loot_shared_preserved_bugs_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_preserved_bugs_generic, "object/tangible/loot/npc/loot/preserved_bugs_generic.iff")
--[[ TODO: move all monster spawning from wave controller into this that makes it simpler to spawn additional monster spawners (e.g., from spawn_on_death buffs) with effects/duration ]] local MonsterSpawner = class() function MonsterSpawner:restore() self._is_restore = true end function MonsterSp...
----------------------------------- -- Area: Sauromugue Champaign -- Mob: Hill Lizard ----------------------------------- local ID = require("scripts/zones/Sauromugue_Champaign/IDs") require("scripts/globals/regimes") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.regime.checkR...
group("third_party") project("cxxopts") uuid("8b68cbe8-2da4-4f28-be14-9352eafa3168") if os.istarget("android") then -- ndk-build only supports StaticLib and SharedLib. kind("StaticLib") else kind("Utility") end language("C++") files({ "cxxopts/include/cxxopts.hpp", }) warnings("Off")
--- Helpers generate test text for a variety of situations. -- @module LipsumUtils local require = require(script.Parent.loader).load(script) local RandomUtils = require("RandomUtils") local String = require("String") local LipsumUtils = {} local WORDS = { "lorem", "ipsum", "dolor", "sit", "amet", "consectetuer", ...