content
stringlengths
5
1.05M
local GoogleAPI = require( 'lib/googleapi' ) local GoogleDrive = class( 'GoogleDrive', GoogleAPI ) GoogleDrive.static.refresh_token = '[]' GoogleDrive.static.resources_folderid = '[]' --GoogleDrive.static.cache_seconds = 86400 GoogleDrive.static.cache_seconds = 3600 function GoogleDrive.static:list( query, options ...
----------------------------------------- -- Spell: Invisible -- Lessens chance of being detected by sight. -- Duration is random number between 30 seconds and 5 minutes. ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/settings") require...
local typed = toast.typed -- Prevents exiting program _G._TEST = true describe('typed', function() describe('.isArray', function() it('should return false on dicts', function() assert.False(typed.isArray {hi = true}) end) it('should return true on arrays', function() assert(typ...
local g_Root = getRootElement() -- Checkpoints CLASS Checkpoints = {} addEvent("race_onPlayerReachCp", true) function Checkpoints:load() local room = self.game.room local list = getRoomMapElements(room, "checkpoint") self.list = {} if(not list or #list == 0) then return end local idToCp = {} fo...
local skynet = require "skynet" require "skynet.manager" local httpsc = require "httpsc" local internal = require "http.internal" local dns = require "dns" local retry_time = 20 -- 超时重试次数 local retry_time_base = 5 -- 多久(单位0.1秒)重试一次 local timeout = 15 -- 连接超时(单位1秒) local timeout_connect = 3 -- 创建连接超时(单位1...
--[[ --=====================================================================================================-- Script Name: Target Shooting [GAME], for SAPP (PC & CE) Description: Spawn cyborgs at designation x,y,z coordinates (see objects table below) Copyright (c) 2016-2018, Jericho Crosby <jericho.crosby227@gmail.c...
local Class = require "libs.class" local HC = require "libs.HC" local Base = require "nivel.Base" local Entity= require "entidades.Entity" local circlelaser= require "entidades.circlelaser" local astronauta = require "entidades.astronauta" local base = Class{ __includes = Entity } function base:init(x,y) self.type="...
return Def.ActorFrame{ Def.Quad{ Name="Horizontal"; InitCommand=function(self) self:xy(160,-2):zoomto(290,23):halign(0.5) end; SetCommand=function(self) self:diffuseramp(); self:effectcolor1(color("#4444444a")); self:effectcolor2(color("#4444444a")); end; BeginCommand=function(self) self:q...
project "Jansson" SetupNativeDependencyProject() local version = "2.0-fork" local repo = "https://github.com/tritao/jansson.git" local license = "MIT" kind "StaticLib" files { "src/*.c" } includedirs { "include" }
----------------------------------------- -- ID: 5052 -- Scroll of Light Carol -- Teaches the song Light Carol ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(444) end function onItemUse(target) target:addSpell(444) end
function makeShot() local shot = {} shot.x = playerX shot.y = playerY shot.angle = playerPos - math.pi shot.speed = 196 shot.vx, shot.vy = vec2rotate(shot.speed, 0, shot.angle) shot.insideCircle = false --powerups --how large the area of destroyed blocks is (0 = only the hit block is destroyed) shot.area = 0 ...
local object = require 'object' local timer = require 'timer' local input = require 'input' local graphics = require 'graphics' local color = require 'color' local rectangle = require 'rectangle' local gamemode = require 'gamemode.gamemode' local component = require 'component' local annoying_text = object(component....
--[[ Copyright (c) 2017, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
local List = script.Parent local Llama = List.Parent local t = require(Llama.t) local validate = t.tuple(t.table, t.integer) local function set(list, index, value) assert(validate(list, index)) local len = #list if index < 0 then index = len + index end assert(index > 0 and index <= len + 1, string.format...
-- ptDanzeff LuaNewkey v0.01 (20060522) by LilCthulhu -- http://www.palmtime.com/ - lilcthulhu@palmtime.com -- Please read readme.txt and license.txt -- ptDanzeff LuaOSK: Include ptDanzeff LuaOSK. dofile(".\\danzeff\\danzeff.lua") -- ptDanzeff LuaOSK requires that screen variable is set to screen -- screen = screen ...
local Embeds = require("embeds") local name = "clientinfo" -- Name of the command. local permissions = { bot_owner = true, -- Whether only the bot owner can use this command. manage_server = false, -- Whether you must have `Manage Server` to use this command. moderator = false, -- Whether you must be manu...
local gun1 = scene:getInstances("gun1")[1]; local gun2 = scene:getInstances("gun2")[1]; local gun3 = scene:getInstances("gun3")[1]; local gun4 = scene:getInstances("gun4")[1]; local gun5 = scene:getInstances("gun5")[1]; local gun6 = scene:getInstances("gun6")[1]; local gun7 = scene:getInstances("gun7")[1]; local gun8 =...
-- Fetch stats function getPlayerStats(plr) if (client and plr) then if (not exports.UCDaccounts:isPlayerLoggedIn(plr)) then exports.UCDdx:new(client, "This player is not logged in - you can't view their stats", 255, 0, 0) return end -- Check for antispam local group, rank = exports.UCDgroups:getPlayerGr...
local component = require("component") local computer = require("computer") local fs = require("filesystem") local shell = require("shell") local text = require("text") local args, options = shell.parse(...) local function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mu...
function _init(args) if #args >= 2 then sys.env(args[1], args[2]) end if #args >= 1 then if sys.env(args[1]) then print(args[1] .. " = " .. sys.env(args[1])) else print(args[1] .. " has no value!") end else list = sys.listenv() table.sort(list) for i, entry in pairs(list)...
local DeepL = { new = function(self, API_KEY, o) o = o or {} o.API_KEY = API_KEY setmetatable(o, self) self.__index = self return o end, API_KEY = "YOU_FORGOT_TO_SPECIFY_A_KEY", SupportedLangs = { -- deepl = gmod ["bg"] = "bg", -- bulgarian ["cs"] = "cs", -- czech ["da"] = "d...
object_tangible_collection_rare_rifle_ak_prime = object_tangible_collection_shared_rare_rifle_ak_prime:new { } ObjectTemplates:addTemplate(object_tangible_collection_rare_rifle_ak_prime, "object/tangible/collection/rare_rifle_ak_prime.iff")
Fuse = require("Shadertoys/Fuse") local fuses = { list = nil } -- function Fuses:new() -- local o = {} -- setmetatable(o, self) -- self.__index = self -- return o -- end function fuses.get_fuse(category,fusename) for i, f in ipairs(fuses.list) do if f.file_category == category and f.file_fusename == ...
object_tangible_furniture_decorative_frn_hologram_data_disk_s01 = object_tangible_furniture_decorative_shared_frn_hologram_data_disk_s01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_frn_hologram_data_disk_s01, "object/tangible/furniture/decorative/frn_hologram_data_disk_s01.iff")
-- $Name:Навчання$ instead_version "1.6.0" require "dash" -- '--' replace :) require "para" -- be more "Russian" require "quotes" game.act = 'Не виходить.'; game.inv = "Гм.. Не те.."; game.use = 'Не спрацює...'; game.pic = 'instead.png'; set_music('instead.ogg'); main = room { nam = 'Навчання', act = function()...
game = {} function game.init() --level = Level("levels/lobby.lvl") level = Level() player = Player() camera = TargetCamera(player) InitColors() moved = false end function game.update(dt) player:update(dt) camera:update(dt) end function game.draw() --background:draw() -- should this go in...
--[[ ===== ChatCommand ===== Makes it easier to create commands from anywhere in your code. Does not break when using script_reload Usage: -Create a function MyFunction(keys) OR function SomeClass:SomeFunction(keys) keys are those delivered from the 'player_chat' event -Use ChatCommand:LinkDevCo...
local config = require("libtls.config") local client = require('net.tls.stream.unix').client local cfg = config.new() cfg:insecure_noverifycert() cfg:insecure_noverifyname() local function printf(fmt, ...) print(fmt:format(...)) end local pathname = 'stream-unix.sock' printf('create client: %q', pathname) local ...
-- @Author : Linsir (root@linsir.org) -- @Link : http://linsir.org local ngx = require('ngx') local bit = require "bit" local cjson = require "cjson" local http = require "resty.http" local setmetatable = setmetatable local byte = string.byte local match = string.match local lshift = bit.lshift --[[ The 17mo...
local TextDocumentEditStatusEnum = require( 'code_action_menu.enumerations.text_document_edit_status_enum' ) local function get_line_count_of_text(text) vim.validate({ ['text to get line count for'] = { text, 'string' } }) local new_line_count = select(2, text:gsub('\n', '\n')) local line_count = new_line_cou...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
local anumber, bnumber = 111, 23.45 local astring, bstring = "abc", "def" local anumstr, bnumstr = tostring(anumber), tostring(bnumber) local aboolean, bboolean = false, true local afunction, bfunction = function() end, function() end local athread, bthead = coroutine.create(afunction), coroutine.create(bfunction) loca...
local mysql = exports.mrp_mysql function padTable( t, size ) for i = 1, size do if not t[i] then t[i] = "" end end end addCommandHandler( "look", function( thePlayer, commandName, targetPlayer ) if not targetPlayer then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID]", thePlaye...
-- APM (Application Package Manager) local fs = require("filesystem") local theOS = "Fuchas" if _OSVERSION and _OSVERSION:sub(1, 6) == "OpenOS" then theOS = "OpenOS" end local shared = (theOS == "OpenOS" and "/usr") or require("users").getSharedUserPath() local userPath = (theOS == "OpenOS" and "/usr/local") or requi...
local streamUtils = {} -- module code function streamUtils.makeStream(attributes) local softSmokeName = attributes.softSmokeName or "smoke-fast"--or makeSmokeSoft(attributes) local name = attributes.name .. "-stream-rampant-arsenal" data:extend( { { type = "stream", ...
workspace "noose" architecture "x64" startproject "noose" configurations { "Debug", "Release" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "noose" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bi...
circuit_connector_definitions["nixie"] = circuit_connector_definitions.create ( universal_connector_template, { --{ variation = 26, main_offset = util.by_pixel(4.5, 7.5), shadow_offset = util.by_pixel(3.5, 7.5), show_shadow = true }, { variation = 26, main_offset = util.by_pixel(2.5, 18.0), shadow_offset = ...
local pdf = require("justenoughlibtexpdf") SILE.tateFramePrototype = SILE.framePrototype { moveX = function(self, amount) self.state.cursorY = self.state.cursorY + amount if type(amount) == "table" then SU.error("Table passed to moveX", 1) end end, moveY = function(self, amount) self.state.cursorX = se...
-- this should be copied in ns-3-dce-git/"files-N" -- set this in __N__HERE__ label below -- This will be done by the installation script. local N = assert(tonumber(__N__HERE__), 'must set N value before running') local seed = tonumber(__SEED__HERE__) or N local n = N + 1 --[[ if not ( n==1 or n==2 or n==3 or...
uespLog.BASESKILL_RANKDATA = { [38932] = { 38932, 41924, 41925, 41926 }, [38931] = { 38931, 41933, 41936, 41937 }, [38949] = { 38949, 41900, 41901, 41902 }, [38956] = { 38956, 41879, 41880, 41881 }, [38963] = { 38963, 41813, 41814, 41815 }, [38965] = { 38965, 41822, 41823, 41824 }, [58864] = { 58864, 58870, 5887...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Siege of Boralus Trash", 1822) if not mod then return end mod.displayName = CL.trash mod:RegisterEnableMob( 138465, -- Ashvane Cannoneer 128969, -- Ashvane Commander 135263, --...
-- NOTICE: -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTOR...
local M = {} local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) function M.mappings(bufnr) local key_map = vim.api.nvim_buf_set_keymap local opts = { noremap = true, silent = true } key_map(bufnr, 'n', 'ga','<cmd>lua vim.lsp.buf.code_action()<CR>', opts) key_map(bufnr, 'n', 'gd', '<cmd...
local E, C, L = select(2, ...):unpack() if not C.blizzard.custom_position then return end ---------------------------------------------------------------------------------------- -- Based on oMirrorBars(by Haste) ---------------------------------------------------------------------------------------- local bar_borde...
local cjson_safe = require 'cjson.safe' local hglib = require 'hglib' local client = hglib.Client.open() client:runcommand({'clone', '-U', 'https://bitbucket.org/av6/lua-hglib', '/tmp/testrepo'}) local code, o, e, d = client:runcommand({'log', '-l', '5', '-T', 'json', '-R', '/tmp/testrepo'}) client:close() if code =...
local o = WardrobeHelper if o.customCategories == nil then o.customCategories = {} end local c = o.customCategories --------------------------------------------------------------- -- Tier 4 - Normal --------------------------------------------------------------- c["Tier 4"] = {} c["Tier 4"]["#allSources"] = true c["...
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)...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local Clause = require("LuaORM/Query/Clause") --- -- Base class for clauses that contain a Condition and allow chaining of Condition methods. -- -- @type ConditionClause -- local ConditionClause = {} --- -- The condit...
local opt = vim.opt opt.colorcolumn = { 80, 120 } opt.completeopt = { 'menu', 'menuone', 'noselect' } opt.cursorline = true opt.cursorlineopt = { 'number' } opt.guicursor:append({ 'a:blinkwait1000', 'a:blinkon1000', 'a:blinkoff1000' }) opt.ignorecase = true opt.inccommand = 'nosplit' opt.pumheight = 20 opt.list = true...
local BasePlugin = require "kong.plugins.base_plugin" local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)") local plugin = BasePlugin:extend() local responses = require "kong.tools.responses" local utils = require "kong.tools.utils" local meta = require "kong.meta" local http = require "resty.http" local c...
local module = {} local items = {} function module.fetch() return items end function module.new(client: string, action: string, attachment) table.insert(items, { Client = client, Action = action, Attachments = attachment, Timestamp = os.time() }) end return setmetatable({}, { __index = module, __metatab...
local Job = require("plenary.job") local utils = require("cmp_git.utils") local sort = require("cmp_git.sort") local GitLab = { cache = { issues = {}, mentions = {}, merge_requests = {}, }, config = {}, } GitLab.new = function(overrides) local self = setmetatable({}, { ...
local included = pcall(debug.getlocal, 5, 1) local b64 = require("base64") local fast = require("tests.base64_fast").fast local T = require("u-test") local rfc4647_plain = function() T.equal(b64.encode(""), "") T.equal(b64.encode("f"), "Zg==") T.equal(b64.encode("fo"), "Zm8=") T.equal(b64.encode("foo"), "Zm9v") T....
local switch = require(script.Parent.Switch) return function() local copy = script.Frame:Clone() switch({ Name = "Auto FOV: ", Setting = "Shared.Settings.AutoFov", EventToFire = script.Parent.Parent.Parent.Events.ChangeAutoFov, }).Parent = copy.AutoFov switch({ Name = "Smooth focus: ", Setting = "Sha...
---@class lstg.mbg.Line local M = class('lstg.mbg.Line') function M:ctor(start, end_) local Pointf = require('game.mbg.PointF') self.Start = Pointf(start.X, start.Y) self.End = Pointf(end_.X, end_.Y) end return M
--- @ignore CLGAMEMODEMENU.base = "base_gamemodemenu" CLGAMEMODEMENU.icon = Material("vgui/ttt/vskin/helpscreen/bindings") CLGAMEMODEMENU.title = "menu_bindings_title" CLGAMEMODEMENU.description = "menu_bindings_description" CLGAMEMODEMENU.priority = 98
shear_mite_broodling = Creature:new { objectName = "@mob/creature_names:shear_mite_broodling", socialGroup = "shear_mite", faction = "", level = 8, chanceHit = 0.27, damageMin = 70, damageMax = 75, baseXp = 235, baseHAM = 405, baseHAMmax = 495, armor = 0, resists = {0,0,110,0,0,0,0,-1,-1}, meatType = "meat...
local M = {} -- assumption: a vector 2 is a table with x and y ids -- e.g. v = { x = 1; y = 2 } function M.equal(vA, vB) return vA.x == vB.x and vA.y == vB.y end function M.add(vA, vB) return { x = vA.x + vB.x; y = vA.y + vB.y } end function M.minus(vA, vB) return { x = vA.x - vB.x; y = vA.y - vB....
----------------------------------------------------- include('shared.lua') /*--------------------------------------------------------- Initialize ---------------------------------------------------------*/ function ENT:Initialize() self.timer = CurTime() + 3 end /*-------------------------------------...
vim.g.closer_no_mappings = 1 vim.g.endwise_no_mappings = 1 local check_back_space = function() local col = vim.fn.col '.' - 1 return col == 0 or vim.fn.getline('.'):sub(col, col):match '%s' ~= nil end local t = require('utils').t local cmp = require'cmp' cmp.setup({ snippet = { expand = function(args) ...
--- Screen interaction and observation helpers -- @module screen.lua screen = { before_action_funcs = set(), after_action_funcs = set(), before_check_funcs = set(), after_check_funcs = set(), before_tap_funcs = set(), after_tap_funcs = set(), nth_check_funcs = dict() } -- TODO: mock and test with all Aut...
object_tangible_collection_reward_frn_mutant_acklay_trophy = object_tangible_collection_reward_shared_frn_mutant_acklay_trophy:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_frn_mutant_acklay_trophy, "object/tangible/collection/reward/frn_mutant_acklay_trophy.iff")
chestfunctions = require("scenarios/chestfunctions") local function OnCreate(inst, scenariorunner) local items = { { item = "slurtleslime", count = math.random(5, 12), }, { item = "slurtle_shellpieces", count = math.random(3, 8), }, { item = "lightbulb", count = math.random(4, 9) },...
local parent, ns = ... local oUF = ns.oUF local Update = function(self, event, unit) if(unit ~= self.unit) then return end local threat = self.Threat if(threat.PreUpdate) then threat:PreUpdate(unit) end unit = unit or self.unit local status = UnitThreatSituation(unit) if(status and status > 0) then local r,...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA include("sh_init.lua") include("cl_draw.lua") include("vgui/menu.lua") include("vgui/panels.lua") include("vgui/item.lua") include("vgui/preview.lua") include("vgui/customizer.lua") include("vgui/givepoints.l...
definerule("yacc", { srcs = { type="targets" }, commands = { type="strings", default={ "yacc -t -b %{dir}/y -d %{ins}" } }, }, function (e) return normalrule { name = e.name, cwd = e.cwd, ins = e.srcs, outleaves = { "y.tab.c", "y.tab.h" }, label = e.label, commands = e.commands...
local Object = require "lib.classic" local anim8 = require "lib.anim8" -- it's a sprite, local Sprite = Object:extend() function Sprite:new(image, x, y, offset_x, offset_y, flip_offset_x, flip_offset_y) self.image = love.graphics.newImage(image) -- disable aliasing self.image:setFilter("nearest", "nearest...
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[4.5]image processing[parent:] --- ---@class ImageProc ImageProc = {} --- ---[4.5]find contour --- --- @param arg0 ByteArray#bytearray --- @param arg1 int --- @param arg2 int --- @param arg3 int --- @param arg4 int --- @param arg5 ...
pg = pg or {} pg.commander_skill_template = { [10011] = { desc_world = "所在舰队中有三艘驱逐时,依据指挥喵战术属性,提高所在舰队中先锋舰队的雷击属性(效果中)", name = "31节的正义", next_id = 10012, exp = 1, prev_id = 0, desc = "所在舰队中有三艘驱逐时,地图移动力+1", id = 10011, icon = "1001", lv = 1, effect_tactic = { 100111 }, effect_tactic_world = { ...
--***************************************************************************** --* (c) 2005-2017 Copyright, Real-Time Innovations, All rights reserved. * --* * --* Permission to modify and use for internal purposes granted. ...
----------------------------------- -- Area: West Sarutabaruta -- NPC: Cavernous Maw -- Teleports Players to West Sarutabaruta [S] -- !pos -2.229 0.001 -162.715 115 ----------------------------------- require("scripts/globals/maws") ----------------------------------- function onTrade(player, npc, trade) end functio...
local nnoremap = require("utils").nnoremap local view = require("nvim-tree.view") _G.NvimTreeConfig = {} vim.g.nvim_tree_follow = 1 vim.g.nvim_tree_icons = { default = "", symlink = "", git = { unstaged = "●", staged = "✓", unmerged = "", renamed = "➜", untracked = "★", deleted = ""...
-- Layout Engine local utils = require 'see.utils' local layout = {} function layout.layout(items, entries_per_row, slack, total_width, sep, indent, ordered) if not sep then sep = '' end if not indent then indent = '' end if not total_width then total_width = 80 end if not slack then slack = ...
--[[ Created by @labolado on 28-04-17. Javascript port of : https://github.com/sakri/MarchingSquaresJS/blob/master/MarchingSquaresOpt.js returns an Array of x and y positions defining the perimeter of a blob of non-transparent pixels on a canvas ]] local function bitOr(a,b) local p,c=1,0 while a+b>0 ...
sum = 0 for i = 1, 999 do if i%3==0 or i%5==0 then sum = sum + i end end print(sum)
--[[ Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1673039990 Profile Page: https://steamcommunity.com/id/Piengineer12 GitHub Page: https://github.com/Piengineer12/public-addons/tree/master/isawc Donate: https://ko-fi.com/piengineer12 Links above are confirmed working as of 2022-04-16. All dates ...
require "Global.controls" require "lib.classes.class" require "Global.LOVEWrapper.LOVEWrapper" local Ctrl = require "Global.ctrl.ctrl" -------------------------------------------------------------------------------------------------------- -- class: CutscenesCtrl -- param: view:View -> the view of the menu app -- para...
ITEM.name = "M4A1" ITEM.description = "The M4A1 carbine is a fully automatic variant of the basic M4 carbine intended for special operations use. The M4A1 was introduced in May 1991, and was in service in 1994. The M4A1 has a 'S-1-F' (safe/semi-automatic/fully automatic) trigger group, while the M4 has a 'S-1-3' (safe/...
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Marc...
-- NetHack 3.6 Valkyrie.des $NHDT-Date: 1553807172 2019/03/28 21:06:12 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.15 $ -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1991-2 by M. Stephenson -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style = "so...
BluesDecals = {} --[[------------------------------------------------------------------------- This part will cache, load or save materials from the web ---------------------------------------------------------------------------]] BluesDecals.ImageLoader = {} BluesDecals.ImageLoader.CachedMaterials = {} BluesDecals.UI...
-- mud toolchain -- actions function mud_amalgamate(modules) for _, m in ipairs(modules) do local dir = os.getcwd() os.chdir(m.root) os.execute(path.join(MUD_DIR, "3rdparty/amalgamate/amalgamate.py") .. " -c " .. m.path .. "/Refl/amalgam.h.json" .. " -s " .. MUD_SRC_DIR) os.execute(...
local string = require"luv.string" local io, ipairs, tostring, pairs, table, tonumber = io, ipairs, tostring, pairs, table, tonumber local unpack, type, rawget, select = unpack, type, rawget, select local os, require = os, require local Object, auth, models, html = require"luv.oop".Object, require"luv.contrib.auth", re...
--[[ © 2021 Tony Ferguson, do not share, re-distribute or modify without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ ) ]] util.AddNetworkString( "dHeists.OpenZoneCreator" ) util.AddNetworkString( "dHeists.CloseZoneCreator" ) util.AddNetworkString( "dHeists.CreateZone" )...
AddCSLuaFile() DEFINE_BASECLASS( "player_default" ) local PLAYER = {} function PLAYER:SetModel() end function PLAYER:Loadout() end --Double jump script originally created by Willox (unlicensed) modified by me local plyMeta = FindMetaTable("Player") AccessorFunc(plyMeta, "gwDoubleJump", "DoubleJumped", FORCE_BOOL) ...
NamesLayer = Layer:extend() function NamesLayer:new() self.focus_field = "taker" self.taker_name = "" self.giver_name = "" local row_h = constants.unit_menu_height_per_item local field_col_x = 0 local field_col_w = 640 - 15 local value_col_x = 640 + 15 local taker_row_y = 253 local...
local require = require local cjson = require("cjson.safe") local config = require("gw.core.config") local zt = require("gw.plugins.zt") local shenshu = require("gw.plugins.shenshu") local _M = {} -- local plugins = { zt } local plugins = { shenshu } local function plugin_init_worker() for _, item in ipairs(plugi...
function GAMEMODE:TracePlayer(playerTable, filter) filter = filter or 0 local startTime = SysTime() if not (self:IsGameInProgress()) then return end -- Fetch the player table if we haven't been provided one. if type(playerTable) == "Player" then playerTable = playerTable:GetAUPlayerTable() end -- B...
TEFileIO = {} local FileIO_mt = Class(TEFileIO) function TEFileIO.new(custom_mt) local self = setmetatable({}, custom_mt or FileIO_mt) self.rootFolder = getUserProfileAppPath() .. "twitchEvents/" createFolder(self.rootFolder) self.connectorFolder = self.rootFolder .. "connector/" createFolder(self...
DEBUG = true local game = require "src/game" game:start()
if item_magic_scepter == nil then item_magic_scepter = class({}) end LinkLuaModifier("modifier_item_magic_scepter", "items/item_magic_scepter.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_magic_scepter_active", "items/item_magic_scepter.lua", LUA_MODIFIER_MOTION_NONE) function item_magic_scepter:...
-- WARNING WARNING WARNING -- This file will be overwritten in mod zipfiles, edit bzlib/data-util.lua -- WARNING WARNING WARNING local me = require("me") local util = {} util.me = me util.get_setting = util.me.get_setting util.titanium_plate = "" util.titanium_processing = "" if mods["FactorioExtended-Plus-Core"] t...
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE. local buffer = buffer -- Multiple Selection and Virtual Space buffer.multiple_selection = true buffer.additional_selection_typing = true --buffer.multi_paste = buffer.MULTIPASTE_EACH --buffer.virtual_space_options = buffer.VS_RECTANGULARSELECTION ...
-- handler get request for /:user/posts/*id function handler.get() -- set data for *id.html end -- handler any request for /:user/posts/*id function handler.any() end
------------------------------------------------------------------------------- -- chat.lua ------------------------------------------------------------------------------- local string_format = string.format local actor = tengine.actor local ERROR_MSG = tengine.ERROR_MSG local p = tengine.p local player = require(...
local function gen_mbutton_menu() local res = {}; for i=1,7 do table.insert(res, { name = tostring(i), kind = "action", description = "Simulate clicking button " .. tostring(i), label = MOUSE_LABELLUT[i] and MOUSE_LABELLUT[i] or tostring(i), handler = function() mouse_button_input(i, true); m...
biogenicScientistHumanConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "BiogenicScientistHumanConvoHandler", screens = {} } thanks_so_much = ConvoScreen:new { id = "thanks_so_much", leftDialog = "@conversation/biogenic_scientist_human:s_ba27cb12", -- Oh, thank you s...
local gMe = getLocalPlayer(); local gRoot = getRootElement(); local gResRoot = getResourceRootElement( getThisResource () ); local period = math.random( 250, 750 ); local basex = 835.384765625 local basey = -2032.1591796875 local basez = 1.356987953186 local starCorona = nil addEventHandler( 'onClientReso...
--[[ THIS FILE IS AUTO-GENERATED. ALL CHANGES ARE OVERWRITTEN ]]-- --[[ MIT License Copyright (c) 2019 Michael Wiesendanger 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 r...
GUI = {} GUI.handlers = {} GUI.isReady = false GUI.Init = function() GUI.browser = createBrowser(screenX, screenY, true, true) addEventHandler("onClientClick", root, function(button, state) if state == "down" then injectBrowserMouseDown(GUI.browser, button) else injectBrowserMouseUp(GUI.browser, ...