content stringlengths 5 1.05M |
|---|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "Infopanel Sections",
id = "sectionWaterGrid",
PlaceObj('XTemplateTemplate', {
'__context', function (parent, context)
return context:IsKindOfClasses("WaterProducer", "WaterStorage") and context.water and context.wat... |
modifier_lich_frost_armor_lua = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_lich_frost_armor_lua:IsHidden()
return true
end
function modifier_lich_frost_armor_lua:IsDebuff()
return false
end
function modifier_lich_frost_armor_lua:I... |
-----------------------------------------------
-- SoraMame libraly of BMP for W4.00.03
-- Copyright (c) 2018, Saya
-- Original by max1220/lua-bitmap, Copyright (c) 2017 Max
-- 2019/03/21 rev.0.08 for Part load and udside down
-----------------------------------------------
local BMP = {}
function BMP:readWord(data, o... |
return {'wopke','wopereis','woppenkamp','wopkes'} |
return{
name = "alcohol",
description = "Alcohol",
type = "consumable",
MAX_ITEMS = 10,
info = "please drink responsibly",
width = 24,
consumable = {alcohol = true},
} |
return {
mod_description = {
en = "MaxProperties description"
},
} |
local ObjectManager = require("managers.object.object_manager")
local QuestManager = require("managers.quest.quest_manager")
VillageJediManagerCommon = ScreenPlay:new {
forceSensitiveBranches = {
"force_sensitive_combat_prowess_ranged_accuracy",
"force_sensitive_combat_prowess_ranged_speed",
"force_sensitive_co... |
--- Useful little helpers for things
-- @module howl.lib.utils
local assert = require "howl.lib.assert"
local matches = {
["^"] = "%^",
["$"] = "%$",
["("] = "%(",
[")"] = "%)",
["%"] = "%%",
["."] = "%.",
["["] = "%[",
["]"] = "%]",
["*"] = "%*",
["+"] = "%+",
["-"] = "%-",
["?"] = "%?",
["\0"] = "%z",
... |
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:86c25f97e1ada0886d2ce27489541abc:31d42bfebf626147dd01adbc2a1a2d08:cf8ab4992190eb44f97f06311ef326d7$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... |
modifier_lich_chain_frost_lua_thinker = class({})
local tempTable = require( "util/tempTable" )
--------------------------------------------------------------------------------
-- Classifications
function modifier_lich_chain_frost_lua_thinker:IsHidden()
return false
end
function modifier_lich_chain_frost_lua_thinker... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 64,
height = 64,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "ground",
firstgid = 1,
filename = "../../../../tools/tiled/dont_starve/ground.tsx",
tilewidth = 64,
... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
group = "Infopanel Sections",
id = "sectionWarning",
PlaceObj('XTemplateTemplate', {
'__context_of_kind', "InfopanelObj",
'__template', "InfopanelSection",
'OnContextUpdate', function (self, context, ...)
self:SetVisi... |
function getIdentity(source)
local identifier = GetPlayerIdentifiers(source)[1]
local result =
MySQL.Sync.fetchAll("SELECT * FROM users WHERE identifier = @identifier", {["@identifier"] = identifier})
if result[1] ~= nil then
local identity = result[1]
return {
identif... |
-- Some glue to make STI and checkpoint.lua stick together
-- Overall not very nice code
checkpointInit = {}
-- Create checkpoint objects from Tiled stuff
function checkpointInit.initLayer(map, layer, _, player)
local objects = map.layers[layer].objects
local checkpointList = {}
for _, object in pai... |
project "Valiance"
kind "StaticLib"
language "C++"
cppdialect "C++17"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"src/*.h",
"src/*/**.h",
"src/*/**.cpp",
"ven... |
--let the hijacking begin
--credit to EPOE for most of the redirects
--https://github.com/Metastruct/EPOE/
function ToStringTableInfo(t)
local num=0
local nonnum=0
local tables
local meta=getmetatable(t)
local str=tostring(t)
str=str:gsub("table: ","table:( ")
for k,v in pairs(t) do
local ktype=ty... |
-- Use this to test sequential loop on https://www.lua.org/cgi-bin/demo
sequence = {
PreMacro = {
"Pre1",
"Pre2",
},
"main1",
"main2",
"main3",
"main4",
"main5",
"main6",
PostMacro = {
"Post1",
"Pos2",
},
looplimit = 2,
}
local step = 1
local loopstart = 3
l... |
local Clockwork = Clockwork;
local COMMAND = Clockwork.command:New("CharSetHealth");
COMMAND.tip = "Sets a character's health.";
COMMAND.text = "<string Name> [int Amount]";
COMMAND.access = "o";
COMMAND.arguments = 1;
COMMAND.optionalArguments = 1;
-- Called when the command has been run.
function COMMAND:OnRun(pla... |
local treesitter_ok, treesitter = pcall(require, "nvim-treesitter.configs")
if not treesitter_ok then
return
end
treesitter.setup({
ensure_installed = "maintained",
sync_install = false,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
|
local util = {}
util.SMALL_RUIN_HALF_SIZE = 8 / 2
util.MEDIUM_RUIN_HALF_SIZE = 16 / 2
util.LARGE_RUIN_HALF_SIZE = 32 / 2
local function clear_area(half_size, center, surface)
local area = {{center.x-half_size, center.y-half_size}, {center.x+half_size, center.y+half_size}}
--exclude tiles that we shouldn't spaw... |
require "Framework/Array"
require "Framework/Color"
require "Framework/String"
local Color = EsoAddonFramework_Framework_Color
local String = EsoAddonFramework_Framework_String
EsoAddonFramework_Framework_Console = { } -- Console mock
-- EndsWith
do
local str = "Abcdef"
local endsWith = String.EndsWith(str, ... |
--[[
Name: LibQuixote-2.0
Revision: $Revision: 73 $
Author(s): David Lynch (kemayo@gmail.com)
Website: http://www.wowace.com/wiki/LibQuixote-2.0
Documentation: http://www.wowace.com/wiki/LibQuixote-2.0
SVN: http://svn.wowace.com/wowace/trunk/LibQuixote-2.0/
Description: Abstracts out questlog handling.
License: LGPL v2... |
return Command 'chucknorris'
:setCategory 'Fun'
:setDesc 'Returns a random Chuck Norris joke.'
:run(function(msg, args, util)
util.request {
url = 'https://api.chucknorris.io/jokes/random';
}:next(function(res)
res = res[1]
local embed = util.Embed()
... |
local x = x or a == b
x = true
local y = x or a ~= b
y = true
local z = a == b or c == d
z = true
|
function run()
local windex = focused_window_index()
if #arguments > 0 then
local index = tonumber(arguments[1])
if index > webview_count(windex) then
return false
end
focus_webview(windex, tonumber(arguments[1]))
end
return true
end
-- Display titles for buffers
function complete_command... |
local battle_config = require "config/battle";
local playerModule = require "module.playerModule"
local BuffSystem = require "battlefield2.system.Buff"
local Role = require "battlefield2.system.Role"
local EventManager = require "utils.EventManager"
local eventManager = EventManager.getInstance()
local t... |
local Clockwork = Clockwork;
local COMMAND = Clockwork.command:New("PlyFreeze");
COMMAND.tip = "Freezes or unfreezes a player.";
COMMAND.text = "<string Name>";
COMMAND.access = "o";
COMMAND.arguments = 1;
-- Called when the command has been run.
function COMMAND:OnRun(player, arguments)
local target = Clockwork.pl... |
local ModeSelectScene = Scene:extend()
ModeSelectScene.title = "Game Start"
current_mode = 1
current_ruleset = 1
MAX_MODES = 19
game_modes = {
require 'tetris.modes.marathon_2020',
require 'tetris.modes.survival_2020',
require 'tetris.modes.strategy',
require 'tetris.modes.interval_training',
require 'tetris.m... |
local benches = { }
function startBenchMark()
local benchID = #benches + 1
benches[ benchID ] = getTickCount()
return benchID
end
function endBenchMark( benchID )
if (benches[ benchID] ) then
return getTickCount() - benches[ benchID]
end
return -1
end
function split(str, pat)
local t = {} -- NOTE: use {... |
module(..., package.seeall)
--wali = require "WALI/WALI"
mach_lib = require "WALI/mach_lib"
mach_data = require "WALI/mach_data"
mach_config = require "WALI/mach_config"
--ti_lib = require "WALI/TI_lib"
__mach_features_enabled__ = {}
__mach_enabled_mods_msg_box_displayed__ = false
local scripting = require "Episod... |
-- Load and set namespace
local _, core = ...
-- Handler for console slash commands
function core:Console(arg)
-- Print help
if arg == "help" then
s = [[
Console commands:
/duty - Open GUI (Key Bindings > Other > Duty)
/duty options - Show interface options
/duty defaults - Reset Duty to default settings]]
cor... |
TestBot = Bot.New("Test Bot",{"TestBot","TestBot2","TestBot3"}) --the first argument is what name to use when displaying informationg through the console, the second argument is a table of nicks to use for connections
TestBot:Connect("IRC.CHANGETHISSERVER.NET", 6667, {{channel = "#somechannel"}, {channel = "#somepassw... |
return {'sedan','sedatie','sedatief','sedativum','sedentair','seder','sedert','sedertdien','sediment','sedimentair','sedimentatie','sedimentgesteente','seductie','sedekah','sedenteren','sederen','sedimentaanvoer','sedimenttransport','seda','sedney','sedee','sedoc','sedativa','sedentaire','sedimentaire','sedimenten','se... |
object_mobile_outbreak_undead_scientist_m_hum_03 = object_mobile_shared_outbreak_undead_scientist_m_hum_03:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_undead_scientist_m_hum_03, "object/mobile/outbreak_undead_scientist_m_hum_03.iff")
|
faction_agent_permitted_subtypes_tables = {
SCHEMA = {"agent", "faction", "subtype"},
KEY = {"faction", "LIST"},
DATA = {
{"colonel", "wh2_dlc09_rogue_black_creek_raiders", "wh2_main_def_dreadlord"},
{"general", "wh2_dlc09_rogue_black_creek_raiders", "wh2_dlc14_def_high_beastmaster"},
{"general", "wh2_dlc09_ro... |
object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_yot_beans = object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_shared_yot_beans:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_dantooine_yot_... |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass
----------------------------------------
function LocalEmpire()
local pl = LocalPlayer()
if(IsValid(pl)) then
return pl:GetEmpire()
end
return false
end
local assert ... |
slot0 = class("EquipUpgradeMediator", import("..base.ContextMediator"))
slot0.EQUIPMENT_UPGRDE = "EquipUpgradeMediator:EQUIPMENT_UPGRDE"
slot0.REPLACE_EQUIP = "EquipUpgradeMediator:REPLACE_EQUIP"
slot0.ON_ITEM = "EquipUpgradeMediator:ON_ITEM"
slot0.register = function (slot0)
slot0.bagProxy = getProxy(BagProxy)
slo... |
--吞式者的异化
local m=14000329
local cm=_G["c"..m]
cm.named_with_Aotual=1
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(... |
--[[
© 2018 Thriving Ventures AB do not share, re-distribute or modify
without permission of its author (gustaf@thrivingventures.com).
]]
local category = {}
category.name = "Lists"
category.material = "serverguard/menuicons/icon_banlist.png"
category.permissions = {"Ban", "Unban", "Set Rank", "Edit Ranks", "Manag... |
local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("Gear_Mount", "enUS", true)
if not L then return end
L["GP_FLAVOR"] = "Equip a 'Gear' profile if you use your mount."
L["GP_O_SETTINGS"] = "Mount"
L["GP_O_SETTING_1"] = "Don't use LAS from Mount Profile" |
local tclass= {}
local setmetatable=setmetatable
local getmetatable=getmetatable
local assert = assert
local rawequal=rawequal
local type=type
local mt = {}
local function get(func, t, k)
if type(func)=="table" then
return func[k]
elseif type(func)=="function" then
return func(t, k)
else
... |
wait(0.2)
local p = 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 hum = char.Humanoid
local cam = game.Workspace.C... |
local z,x,y,tryme
-- test 1
do
local z = function(a)
return a+1
end
local x = function(f)
local j = 5
j = f(j)
return j
end
local y = x(z)
assert(x(z) == 6 and y == 6)
end
print("Test 1 OK")
-- test 2
do
local x = function ()
local i, j:integer
j=0
for i=1,10 do
j = j+1
... |
require 'nn'
require 'fixes'
local Dynamic, parent = torch.class('nn.Dynamic', 'nn.Container')
-- must registrate parametric modules in ...
function Dynamic:__init(...)
parent.__init(self)
self.modules = {...}
self.moduleIndexes = {}
for i, v in ipairs(self.modules) do
self.moduleIndexes[v] =... |
ITEM.name = "M590"
ITEM.description = "The Mossberg 590 is a variant of the Mossberg 500 series, specifically made to be easier to field strip for cleaning, as well as being simpler to repair internal damage. Fires 12 Gauge shells."
ITEM.model = "models/weapons/ethereal/w_m590.mdl"
ITEM.class = "cw_kk_ins2_m590"
ITEM.w... |
local default_environment
default_environment = require("lapis.cmd.util").default_environment
local popper
local push
push = function(name_or_env, overrides)
assert(name_or_env, "missing name or env for push")
local config_module = require("lapis.config")
local old_getter = config_module.get
local env
if type... |
cprogram {
name = "cv",
srcs = { "./*.c" },
deps = {
"h+emheaders",
"modules/src/object+lib",
}
}
|
TFA.INS2 = TFA.INS2 or {}
local defaultScope = "ins2_si_mx4" --default scope if it has it
local ForceAttachment = { --overwrites above
["tfa_ins2_svu"] = "ins2_si_mosin",
["tfa_ins2_svd"] = "ins2_si_mosin"
}
local attachmentCorrectionsPre = {}
local attachmentCorrections = {
["ins2_si_eotech"] = {
["VElements"] = ... |
local M = {}
function M.apply(colors)
local formats = require('lighthaus.formats')
local set_highlight = require('lighthaus.utils').set_highlight
set_highlight('texCmd', colors.cyan2)
set_highlight('texCmdAuthor', colors.fg_alt, formats.bold)
set_highlight('texCmdClass', colors.hl_yellow)
set_highlight('t... |
-----------------------------------------
-- ID: 4940
-- Scroll of Raiton: Ichi
-- Teaches the ninjutsu Raiton: Ichi
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(332)
end
function onItemUse(target)
target:addSpell(332)
end |
require 'common'
local guild_hut = {}
local MapStrings = {}
--------------------------------------------------
-- Map Callbacks
--------------------------------------------------
function guild_hut.Init(map)
DEBUG.EnableDbgCoro() --Enable debugging this coroutine
PrintInfo("=>> Init_guild_hut")
MapStrings = COMM... |
require("scripts/utils/copy")
local function getRandom(minr, maxr)
local scale = maxr - minr
return math.random() * scale + minr
end
local function milliSec(self)
local ms = (os.clock() - self.start) * 1000.0
-- self.start = os.clock()
return ms
end
Gcairo.style.image_color = {r=0.3, g=0.3, b=... |
local metadata =
{
plugin =
{
format = 'staticLibrary',
-- This is the name without the 'lib' prefix.
-- In this case, the static library is called: libSTATIC_LIB_NAME.a
staticLibs = { 'native-popup-safariView', },
frameworks = {},
frameworksOptional = { "SafariServices" },
},
}
return metadata
|
require "ratchet"
require "ratchet.http.client"
require "ratchet.http.server"
debugging = false
-- {{{ debug_print()
local function debug_print(t, data)
if t == "send" or t == "recv" then
print(t .. ": [" .. data .. "]")
else
print(t)
end
end
-- }}}
-- {{{ server_handle_command()
function... |
local modname = "poop_mod"
local modpath = minetest.get_modpath(modname)
local mg_name = minetest.get_mapgen_setting("mg_name")
local S = minetest.get_translator(minetest.get_current_modname())
-- the item config
minetest.register_node("poop_mod:poop",{
description = S("Poop"),
drawtype = "mesh",
mesh... |
local API_SE = require(script:GetCustomProperty("APIStatusEffects"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local data = {}
data.name = script:GetCustomProperty("Name")
data.targets = false
data.canMove = true
data.icon = script:GetCustomProperty("Icon")
data.range = script:GetCustomPro... |
local sockets = script:GetChildren()
local propHumanGal = script:GetCustomProperty("HumanGal"):WaitForObject()
for idx, child in pairs(sockets) do -- for all the socket folders under the script node...
propHumanGal:AttachCoreObject(child, child.name)
end
|
--[[
file:zjh_player.lua
desc:炸金花
auth:Carol Luo
]]
local class = require("class")
local pokerPlayer = require("poker.player")
---@class zjhPlayer:pokerPlayer
local player = class(pokerPlayer)
local this = player
---构造
function player:ctor()
end
---重启
function player:dataReboot()
end
return player |
ITEM.name = "Dragunov SVD"
ITEM.description= "A sharpshooter rifle based on the AK. Fires 7.62x54mm."
ITEM.longdesc = "The SVD is a marksman's rifle designed to fill the gap between assault and sniper rifle for infantry squads. It was designed from the AK rifle. \nThe SVD is able to deliver accurate shots in rapid succ... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "ISUI/ISCollapsableWindow"
---@class DailyValuesDebug : ISCollapsableWindow
DailyVal... |
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========--
--
-- Purpose: Panel class
--
--==========================================================================--
require( "common.color" )
require( "engine.shared.tween" )
class( "gui.panel" )
local panel = gui.panel
function panel.drawMask(... |
package.path = "../?.lua;"..package.path
local ffi = require("ffi")
local bit = require("bit")
local zydis = require("lj2zydis.zydis")
print("Version: ",bit.tohex(zydis.ZydisGetVersion())) |
--[[local initial_recipes=
{"wooden-chest",
"iron-chest",
"transport-belt",
"burner-inserter",
"inserter",
"small-electric-pole",
"pipe",
"pipe-to-ground",
"stone-brick",
"repair-pack",
"boiler",
"steam-engine",
"burner-mining-drill",
"electric-mining-drill",
"offshore-pump",
"stone-furnace",
"lab",
"iron-plate",
"co... |
multi = {}
multi.Version="4.0.1"
multi.__index = multi
multi.Mainloop={}
multi.Tasks={}
multi.Tasks2={}
multi.Garbage={}
multi.Children={}
multi.Paused={}
multi.MasterId=0
multi.Active=true
multi.Id=-1
multi.Type="mainint"
multi.Rest=0
multi._type=type
--[[function type(v)
local t={}
if multi._type(v)=="table" then
... |
-- Makes the game immediately save the state.
--[====[
quicksave
=========
If called in dwarf mode, makes DF immediately saves the game by setting a flag
normally used in seasonal auto-save.
]====]
local gui = require("gui")
--luacheck: defclass={run:bool}
QuicksaveOverlay = defclass(QuicksaveOverlay, gui.Screen)
... |
--[[
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 Charlie C.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software... |
function update()
self.production.button_held = game.the_one_button.held(self.ship.player)
end
|
--[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['InkedSV'];... |
if GetLocale() ~= "ruRU" then return end
local o = WardrobeHelper
if o.strings == nil then o.strings = {} end
local s = o.strings
s["Page N"] = "Стр. %i"
s["Refresh Instance"] = "Обновить"
s["Refresh Items"] = "Обновить вещи"
s["Current Instance"] = "Текущ. подземелье"
s["Click Refresh Info"] = "Нажмите кнопку %s для... |
--Formatting title, subtile, and artist
function TextBannerPostSet(self,param)
local Title=self:GetChild("Title")
local Subtitle=self:GetChild("Subtitle")
local Artist=self:GetChild("Artist")
Title:maxwidth(250)
Subtitle:maxwidth(230)
Artist:maxwidth(240)
if Subtitle:GetText() == "" and Artist:GetText() == ""... |
--------------------------------
-- CONTROL 0.6
--------------------------------
---------
-- 0.2
---------
-- fixed score display errrors
-- added missing resurrection effects
-- moved hogs off control points if thats where they started
-- added sanity limit for the above
-- added tint tags to display clan score on e... |
local Prop = {}
Prop.Name = "City Storage"
Prop.Cat = "Stores"
Prop.Price = 250
Prop.Doors = {
Vector( -7263, 939, 347 ),
Vector( -7439.96875, 1187.96875, 327.5 ),
}
GM.Property:Register( Prop ) |
local COMMAND = Clockwork.command:New("SendLetter")
COMMAND.tip = "Sends the letter you made."
COMMAND.text = "<string Name>"
COMMAND.arguments = 1;
function COMMAND:OnRun(player, arguments)
local target = Clockwork.player:FindByID(arguments[1]);
if (target) then
if (text[player]) then
local unread = 0;
loc... |
---------------------------------------------------------------------
-- getWeapons v1.3 - code library
--[[-----------------------------------------------------------------
provides functions for finding a pawn's equipped weapons
during missions.
requires modApiExt loaded to function.
]]
local mod = mod_loader.m... |
-- main tab
UI.Label("Vithrax CFG v1.2 \n \n Scripting Service: \n Vithrax#5814")
UI.Separator()
|
-- [[ # Initial device send script # ]] --
-- 88b d88 88888888ba
-- 888b d888 88 "8b
-- 88`8b d8'88 88 ,8P
-- 88 `8b d8' 88 88aaaaaa8P'
-- 88 `8b d8' 88 88""""""8b,
-- 88 `8b d8' 88 88 `8b
-- 88 `888' 88 88 a8P
-- ... |
assert(bit.OR(0xF, 0xF) == 0xF)
assert(bit.OR(0x2, 0x1) == 0x3)
assert(bit.OR(0x0, 0x0) == 0x0)
|
LoveUI.require("LoveUIObject.lua")
LoveUI.Point=LoveUI.Object:new();
function LoveUI.Point:init(x, y)
self.x=x;
self.y=y;
return self;
end
LoveUI.Point:setmetamethod("__add", function (aPoint, bPoint)
return LoveUI.Point:new(aPoint.x+bPoint.x, aPoint.y+bPoint.y);
end)
LoveUI.Point:setmetamethod("__sub", function... |
-----------------------------------
-- Area: Sealion's Den
-- NPC: Iron Gate
-- !pos 612 132 774 32
-----------------------------------
require("scripts/globals/teleports")
require("scripts/globals/missions")
require("scripts/globals/titles")
require("scripts/globals/bcnm")
-----------------------------------
functio... |
BigWigs:AddColors("Krystallus", {
[50810] = "orange",
})
BigWigs:AddColors("Maiden of Grief", {
[59726] = {"blue","orange","red"},
[59772] = "blue",
})
BigWigs:AddColors("Tribunal of Ages", {
[59866] = "blue",
[59868] = {"blue","orange"},
["timers"] = "yellow",
})
BigWigs:AddColors("Sjonnir The Ironshaper", {... |
-- example script that demonstrates use of setup() to pass
-- data to and from the threads
--
-- is there a way to fetch the connection argument to the commandline in here?
local counter = 1
local threads = {}
function setup(thread)
thread:set("id", counter)
table.insert(threads, thread)
counter = counter + ... |
--
-- Compare and del if equals
--
local key = KEYS[1]
local expected = ARGV[1]
local current = redis.call('GET', key)
if current == expected then
redis.call('DEL', key)
return true
else
return false
end
|
-- Nothing here anymore
|
--========================================
-- lua functions for generating speech for status events
-- functions available from the game:
-- getFamily(shipName) - return the DisplayFamily for shipName (displayFamily defined in data\scripts\FamilyList.lua) in uppercase
-- playSpeechActor(speechName) - speec... |
LinkLuaModifier("modifier_stille_cast", "heroes/hero_kim/kim_stille", LUA_MODIFIER_MOTION_NONE)
kim_stille = class({})
--thanks dota imba for the tutorial luv u mwah hehe xd
function kim_stille:GetAbilityTextureName()
return "kim_stille"
end
function kim_stille:OnSpellStart()
local caster = self:GetCaster()
cas... |
parseManager:define{
print=function(self,...)
print(...)
end,
error=function(self,msg)
self:pushError(msg,"\2")
end,
QUIT=function()
os.exit()
end,
JUMP=function(self,block)
if self.chunks[block] then
self.chunks[block].pos=1
self.currentChunk=self.chunks[block]
else
self:pushError("Attempt to... |
local util = require("tests.test_util")
describe("treesitter python", function()
it("parses all symbols correctly", function()
util.test_file_symbols("treesitter", "./tests/treesitter/python_test.py", {
{
kind = "Function",
name = "fn_1",
level = 0,
lnum = 1,
col = 0... |
Global("g_myAvatarID", nil)
local m_players = {}
local function CreatePlayerSubInfo(anID, aSubClass)
local playerSubClassInfo = copyTable(aSubClass)
playerSubClassInfo:Init(anID)
return playerSubClassInfo
end
local function FabricMakePlayerInfoForGroupBuff(anID, aListeners, aNeedSpells)
if not isExist(anID) then... |
local pairwise_utils = require 'pairwise_transform_utils'
local gm = require 'graphicsmagick'
local iproc = require 'iproc'
local pairwise_transform = {}
function pairwise_transform.jpeg_(src, quality, size, offset, n, options)
local unstable_region_offset = 8
local y = pairwise_utils.preprocess(src, size, optio... |
--[[
* ReaScript Name: CC to Program Change - Channel 3
* Description: Converts CC value (based on action binding) to Program Change (bank 32) on channel 3.
If MIDI editor is open and step input enabled, will insert Program Change event at cursor.
Best used for articulation switchi... |
local LuaRegistry = {}
local remove = os.remove
local function shellExecute(cmd)
local outfile, errfile = os.tmpname(), os.tmpname()
remove(outfile)
remove(errfile)
outfile = os.getenv("TEMP") .. outfile
errfile = os.getenv("TEMP") .. errfile
cmd = cmd .. ' >"' .. outfile.. '" 2>"' .. errfile... |
return {
textNode = 1,
insertNode = 2,
functionNode = 3,
snippetNode = 4,
choiceNode = 5,
dynamicNode = 6,
snippet = 7,
names = {
"textNode",
"insertNode",
"functionNode",
"snippetNode",
"choiceNode",
"dynamicNode",
"snippet",
},
}
|
function OnPlayerAttack(player)
-- PvP (experimental)
--[[
if (player and player:GetBoolean("pvp") == true) then
local x = player:GetX()
local y = player:GetY()
local id = player:GetID()
for i=1,KAG.GetPlayersCount() do
local p = KAG.GetPlayerByIndex(i)
if (p:GetID() ~= id and p:GetBoolean("pvp") == tr... |
local function prequire(...)
local status, lib = pcall(require, ...)
if (status) then return lib end
return nil
end
local luasnip = prequire('luasnip')
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_back_space = function()
local col = vim.fn.col('.') ... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... |
--[[
author: jacklarnes
email: christucket@gmail.com
reddit: /u/jacklarnes
]]
function rage_start( keys )
local caster = keys.caster
caster:Purge(false, true, false, true, false)
end |
local TextPanel = class('TextPanel', Widget)
local function center_text(text, w, h)
local text = text or " "
local new_text = ""
local w, h = w or 1, h or 1
local lines = 0
--print(text)
for line in text:gmatch('[^\r\n]+') do
lines = lines + 1
local left = (w - #line) / 2
new_text = new_text ... |
TXRZ6GJ = {}
TXRZ6GJ.TXrz6GjTMQeKltEBSjcLqQc = {
'pk',
'haha',
'lol',
'xddd',
'chocolate',
'panickey',
'jolmany',
'killmenu'
}
TXRZ6GJ.Xc36ZwqaESDSNeVouPgdl0C = {
'WEAPON_GRENADELAUNCHER',
'WEAPON_RPG',
'WEAPON_STINGER',
'WEAPON_MINIGUN',
'WEAPON_GRENADE',
'WEAPON_STICKYBOMB',
'WEAPON_... |
--
-- ClassMods Options - indicator panel
--
local L = LibStub("AceLocale-3.0"):GetLocale("ClassMods")
function ClassMods.Options:CreateIndicators()
local DB = _G.ClassMods.Options.DB
-- Have to be sure someone does not try to create an indicator by the same name as a hard-coded key. Probably will never happen, bu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.