content
stringlengths
5
1.05M
local skynet = require "skynet" local netpack = require "skynet.netpack" local socketdriver = require "skynet.socketdriver" local syslog = require "syslog" local gateserver = {} local socket local queue local maxclient local nclient = 0 local CMD = setmetatable ({}, { __gc = function () netpack.clear (queue) end }) ...
return { ---New a ``Name`` characteristic. ---@param iid integer Instance ID. ---@param name string Service name. ---@return HAPCharacteristic characteristic new = function (iid, name) local hap = require("hap") return { format = "String", iid = iid, ...
GUIEditor = { tab = {}, staticimage = {}, edit = {}, window = {}, label = {}, tabpanel = {}, checkbox = {}, button = {}, scrollpane = {}, scrollbar = {}, combobox = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScree...
local ga = gajosframework ga.MapPointView = classExtends(View, function(user) self.user = user self.see = false function self:update(img, x, y, rotate) local playerX, playerY = user.x, user.y local dist = misc.point_distance(playerX, playerY, x, y) local angle = misc.point_directio...
-------------------------------------------------------------------------------- local bind2key do local key_names = {} for i = KEY_FIRST, KEY_LAST do key_names[input.GetKeyName(i) or "none"] = i end local bind_cache = {} function bind2key( binding, ignore_cache ) if bind_cache[binding] a...
a = 0; b = 0; function f(...) orig = {...} -- f uses defer, boilerplate: local __defers={} -- __recoverVal will be nil if no panic, -- or if panic happened and -- then was recovered. local __recoverVal local recover = function() local cp = __re...
scriptPath = debug.getinfo(1, "S").short_src:match("(.*/)"); dofile(scriptPath.."core/config.lua"); dofile(scriptPath.."core/Player.lua"); dofile(scriptPath.."core/functions.lua"); dofile(scriptPath.."core/core.lua");
-- -- Copyright (C) 2013 GREE, Inc. -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including comme...
Locales['en'] = { ['used_beer'] = 'Du brugte 1x ~y~øl~s~', }
-- This module writes no global values, not even the module table declare {sheetData = false} sheetData = {} sheetData.frames = { { x = 2, y = 155, width = 219, height = 155, sourceX = 0, sourceY = 4, sourceWidth = 227, sourceHeight = 161, }, { x = 430, y = 155, width...
setDefaultTab("Tools") local reUseToggle = macro(1000, "Click ReUse", "`", function() end) local excluded = {268, 237, 238, 23373, 266, 236, 239, 7643, 23375, 7642, 23374, 5908, 5942, storage.shovel, storage.rope, storage.machete} onUseWith(function(pos, itemId, target, subType) if reUseToggle.isOn() and not table...
local ltask = require "ltask" local exclusive = require "ltask.exclusive" local MESSAGE_RESPONSE <const> = 2 local function send_blocked_message(blocked) for i = 1, #blocked, 2 do local session = blocked[i] local address = blocked[i+1] ltask.post_message(address, session, MESSAGE_RESPONSE) end end ltask.fork...
--コンタクト・ソウル function c35255457.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c35255457.condition) e1:SetTarget(c35255457.target) e1:SetOperation(c35255457.activate) c:RegisterEff...
local zcl_clusters = require "st.zigbee.zcl.clusters" local capabilities = require "st.capabilities" local device_management = require "st.zigbee.device_management" local zigbee_utils = require "zigbee_utils" local WindowCovering = zcl_clusters.WindowCovering local Groups = zcl_clusters.Groups local windowShade_defaul...
function GM:StackerGameStart(player_indices) hook.Call("StackerUIScreenOpenOrder", self) PrintTable(player_indices, 1) end
return { init_effect = "", name = "无敌3秒", time = 3, picture = "", desc = "无敌3秒", stack = 1, id = 8506, icon = 8506, last_effect = "Shield", effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { group = 8506, attr = "isInvincible", nu...
function util.initiative_pie(initiative, d, gap) if not initiative.issue.closed or not initiative.admitted then return end if initiative.issue.voter_count == 0 or initiative.positive_votes == nil or initiative.negative_votes == nil then return end local first_preference_votes = initiative.first_...
ENT.Base = "base_entity" ENT.Type = "anim" ENT.PrintName = "CTFFlag" ENT.Author = "JRascall" ENT.Contact = "Via Steam" ENT.Purpose = "Flag for CTF Gamemode" ENT.Spawnable = false ENT.AdminSpawnable = false
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)...
--@name PNG Library Example 2 --@author Vurv --@client --@include pnglib.txt if player() ~= owner() then return end local createPNG = require("pnglib.txt") local function canRun() return quotaTotalAverage() < quotaMax()*0.4 end local main_routine = coroutine.create(function() render.createRenderTarget("rt")...
local skynet = require "local_skynet" function get_user_agent( pid ) local iAgentCnt = skynet.getenv("AGENT_CNT") local n = pid % iAgentCnt if n == 0 then n = iAgentCnt end n = math.floor(n) return "AGENT" .. n end function init_agent_services() local iAgentCnt = skynet.getenv("AGENT_CNT") for i=1,iAgentCnt...
local httpService = game:GetService("HttpService") -- Requires HTTPService but whatever I'm not coding around it local studioservice = game:GetService("StudioService") local compressQuality = 0 local nonpc = {"\0", "\a", "\b", "\t", "\n", "\v", "\f", "\r"} local basedictcompress = {} local basedictdecompress = {} for...
-- Default keybindings for launching apps in Hyper Mode -- -- To launch _your_ most commonly-used apps via Hyper Mode, create a copy of -- this file, save it as `hyper-apps.lua`, and edit the table below to configure -- your preferred shortcuts. return { { 's', 'Spotify' }, { 'g', 'Google Chrome' }, { 'u', 'uChat...
Integer = {} Integer.MIN_VALUE = 0x80000000 Integer.MAX_VALUE = 0x7fffffff
local fluid_fuel_category = { type = "fuel-category", name = "Diesel-Locomotive-fluid" } data:extend({fluid_fuel_category})
--- The "in_setup_phase" argument is a boolean true if we are still -- setting up the game local GameContext = require('classes/game_context') GameContext:add_serialize_hook('in_setup_phase') GameContext:add_deserialize_hook('in_setup_phase')
local mqtt = require("mqtt") local client = mqtt.client{ id = "flespi-examples-mqtt-client-lua", uri = "mqtt.flespi.io", -- see https://flespi.com/kb/tokens-access-keys-to-flespi-platform to read about flespi tokens username = "FlespiToken "..(os.getenv("FlespiToken") or ""), clean = true, secure = true, versio...
local original, math = math, { e = 2.718281828459045, round = function(n, precision) precision = 10^(precision or 0) return math.floor(n * precision + 0.5)/precision end } for k, v in pairs(original) do math[k] = math[k] or v end return math
-- -- Created by IntelliJ IDEA. -- User: spacewave -- Date: 08.03.2021 -- Time: 16:28 -- To change this template use File | Settings | File Templates. -- LoveSound = { id = 0, volume = 0, isLooping = false } function LoveSound:create(o) o = o or {} setmetatable(o, self) self.__index = self ...
local pdk = require("apioak.pdk") local role = require("apioak.db.role") local _M = {} local table_name = "oak_users" _M.table_name = table_name function _M.all(is_enable) local sql if is_enable then sql = pdk.string.format("SELECT id, name, email FROM %s WHERE is_enable = 1", table_name) else ...
return { PlaceObj("ModItemOptionNumber", { "name", "TextScale", "DisplayName", table.concat(T(1000145, "Text") .. " " .. T(1000081, "Scale")), "Help", T(302535920011478, "How big the text size is."), "DefaultValue", 15, "MinValue", 1, "MaxValue", 100, --~ "StepSize", 100, }), }
object_mobile_space_comm_rod_protector_03 = object_mobile_shared_space_comm_rod_protector_03:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_rod_protector_03, "object/mobile/space_comm_rod_protector_03.iff")
local Prop = {} Prop.Name = "Bazaar Market 5" Prop.Cat = "Stores" Prop.Price = 250 Prop.Doors = { Vector( -11885, -8688.5, 347 ), Vector( -11827, -8455.5, 347 ), } GM.Property:Register( Prop )
local M = {} local util = require "navigator.util" local nvim_0_6 = util.nvim_0_6() local gutil = require "guihua.util" local lsp = require "vim.lsp" local api = vim.api local log = require"navigator.util".log local lerr = require"navigator.util".error local trace = require"navigator.util".trace local symbol_kind = r...
#!/usr/bin/env tarantool -- https://github.com/tarantool/graphql/issues/237 local fio = require('fio') -- require in-repo version of graphql/ sources despite current working directory package.path = fio.abspath(debug.getinfo(1).source:match("@?(.*/)") :gsub('/./', '/'):gsub('/+$', '')) .. '/../../?.lua' .. ';' ....
if not modules then modules = { } end modules ['typo-pag'] = { version = 1.001, comment = "companion to typo-pag.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } builders ...
return require('lib.oop.generated.agent')
local ffi = require( "ffi" ) local sqrt, random, floor, band, min, max = math.sqrt, math.random, math.floor, bit.band, math.min, math.max local function v2normself(v) local oos = 1 / sqrt( v[0]*v[0] + v[1]*v[1] ) v[0], v[1] = v[0]*oos, v[1]*oos end local function v3normself(v) local oos = 1 / sqrt( v[0]*v[0...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_D = require(script:GetCustomProperty("APIDamage")) local API_DS = require(script:GetCustomProperty("APIDifficultySystem")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local RANGE = 0.0 local COOLDOWN = 11.0 local ...
local PLUGIN = PLUGIN PLUGIN.name = "Crosshair" PLUGIN.author = "Lechu2375" PLUGIN.description = "A Crosshair." if (CLIENT) then local aimVector, punchAngle, ft, screen, scaleFraction, distance local filter = {} local classes = { ["ix_item"] = true, ["func_button"] = true, ["func_door"] = true, ["prop_d...
local baseimm = 25 Creature { resref = 'pl_cordruid_001', effects = { Concealment(PerPlayer(40, 5)), DamageResistance(DAMAGE_INDEX_SLASHING, 5), DamageResistance(DAMAGE_INDEX_BLUDGEONING, 5), DamageResistance(DAMAGE_INDEX_PIERCING, 5), DamageImmunity(DAMAGE_INDEX_SLASHING, baseimm), Dama...
slot0 = class("ShopSkinCard") slot1 = pg.ship_data_group slot2 = pg.shop_template slot3 = pg.skin_page_template slot4 = pg.ship_skin_template slot0.Ctor = function (slot0, slot1, slot2) slot0.view = slot2 slot0._go = slot1 slot0._tf = tf(slot1) slot0._content = slot0._tf:Find("ship/content") slot0._mask = slot0._...
normalrule { name = "tokenfile_g", ins = { "./make.tokfile", "./tokenname.c" }, outleaves = { "tokenfile.g" }, commands = { "sh %{ins[1]} < %{ins[2]} > %{outs}" } } llgen { name = "llgen", srcs = { -- order here is important "+tokenfile_g", "./*.g", } } normalrule { name = "parameters_h", ins =...
return function() return { gravity_wells = { GravityWell:new(-1000, 0, 1000, 10 ^ 17), Planet:new(2000, 0, 60, 10 ^ 16, {150, 150, 150}), }, target = Planet:new(400, 0, 30, 10 ^ 14, {255, 100, 100}), start = { direction = math.pi / 2, planet = Planet:new(3000, 0, 60, 10 ^ 14, {...
local _M = { _VERSION = "1.0.0.1", _DESCRIPTION = "serverd for persistent connection ..." } local tostring = tostring local ngx_worker = ngx.worker local NGX_OK = ngx.OK local ngx_req = ngx.req local ngx_ctx = ngx.ctx -- Localize local cwd = (...):gsub("%.[^%.]+$", "") .. "." -- function _M.serve(ssmgr_obj...
local config = { [12501] = Position(32336, 31813, 6), -- to the room [12502] = Position(32337, 31815, 7) -- outside the room } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local targetPosition = config[item.actionid] if not targetPosition then return true end player:teleportTo(targ...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] "timeout" countdown start -- [HMI API] SystemRequest request/response -- -- Description: --PoliciesManager must start timeout taken from "timeout_after_x_seconds" field of LocalP...
--[[ File l3build-variables.lua Copyright (C) 2018-2020 The LaTeX Project It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this license or (at your option) any later version. The latest version of this license is in the file http://www....
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISClimbOverFence : ISBaseTimedAction ISClimbOverFence = ISBaseTimedAction:derive(...
--[[ Vector math is used in Teardown scripts to represent 3D positions, directions, rotations and transforms. The base types are vectors, quaternions and transforms. Vectors and quaternions are indexed tables with three and four components. Transforms are tables consisting of one vector (pos) and one quaternion (rot) ]...
object_tangible_quest_rebel_rtp_c3po_contact_list = object_tangible_quest_rebel_shared_rtp_c3po_contact_list:new { } ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_c3po_contact_list, "object/tangible/quest/rebel/rtp_c3po_contact_list.iff")
-- -- Creates new AndroidManifest.xml based on incoming manifest template and build.properties file -- local json = require "json" ------------------------------------------------------------------------------- -- Helper functions ------------------------------------------------------------------------------- func...
dofile_once("[POLYTOOLS_PATH]disco_util/disco_util.lua") local base64 = dofile_once("[POLYTOOLS_PATH]base64.lua") polytools = {} local function polymorph_fixes(target) if not target or not target:alive() then print_error("Attempted to polymorph an entity that doesn't exist") return false end ...
function HandleSpawnCommand(Split, Player) local Response local MoveToSpawn = function(OtherPlayer) local World = OtherPlayer:GetWorld() local SpawnX = World:GetSpawnX() local SpawnY = World:GetSpawnY() local SpawnZ = World:GetSpawnZ() OtherPlayer:TeleportToCoords(SpawnX, SpawnY, SpawnZ) if Split[2] th...
log = require 'log' fs = require 'bee.filesystem' local subprocess = require 'bee.subprocess' sys = {} local uni = require 'ffi.unicode' local function ydwePath(support_dev) local ydwe = fs.dll_path():parent_path():parent_path() if support_dev then local ydwedev = ydwe:parent_path():parent...
fx_version 'cerulean' games {'gta5'} description 'NPC-Territories' version '1.0.0' client_scripts { 'client/cl_*.lua', } server_scripts { 'server/sv_*.lua' }
--[[ -- LM's trial and error theme --]] local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local gears = require("gears") local lain = require("lai...
#!/usr/bin/dbus-run-session lua5.3 -- package.path = "/path/to/lua-cqueues-pushy/?.lua;"..package.path package.path = "/opt/rame/rameplayer-backend/?.lua;"..package.path local posix = require 'posix' local socket = require 'socket' local plutils = require 'pl.utils' local cqueues = require 'cqueues' local httpd = req...
object_tangible_saga_system_rewards_planet_hologram_talus = object_tangible_saga_system_rewards_shared_planet_hologram_talus:new { } ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_planet_hologram_talus, "object/tangible/saga_system/rewards/planet_hologram_talus.iff")
layout={ main={ LinearLayout, orientation="vertical", }, dlg={ LinearLayout, orientation="vertical", {TextView, id="label", }, {EditText, id="fld", layout_width="fill", }, {Button, text="确定", onClick="ok", }, }, ck={ LinearLayout; ...
ITEM.name = "MRE (Ukrainian)" ITEM.description = "A Ukrainian pack of rations" ITEM.longdesc = "This Ukrainian combat ration is based on a previous Russian version, and comprises commercially available cans and dried food items packed together in a sectioned box (resembling a takeout tray) made of very thin green plast...
local TSMCT_AddonName, TSMCT = ... -- create coreframe and register events local frame = CreateFrame('Frame') frame:RegisterEvent('AUCTION_ITEM_LIST_UPDATE') frame:RegisterEvent('PLAYER_ENTERING_WORLD') frame:RegisterEvent('ADDON_LOADED') frame:SetScript( 'OnEvent', function(self, event, ...) if event ...
-- NetHack 3.7 yendor.des $NHDT-Date: 1432512783 2015/05/25 00:13:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.10 $ -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1992 by M. Stephenson and Izchak Miller -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style="maze...
-- -- zca.lua -- kmeans-kernels -- -- Created by Andrey Kolishchak on 12/19/15. -- function zca(x, epsilon, params) local x_flat = x:view(x:size(1), x:size(2), -1) if params == nil then params = {} for i=1,x_flat:size(2) do local data = x_flat[{{},i,{}}] local sigma = data:t() * ...
-- mesecons/documentation.lua -----Load documentation via doc_helper------------------------ local MP = minetest.get_modpath(minetest.get_current_modname()) local docpath = MP .. DIR_DELIM .. "doc" doc.add_category("mesecons", { name = "_Mesecons_", description = "Mesecons", build_formspec = doc.entry_builders.text...
------------------------------------------------------------------------------ -- Normalizer class ------------------------------------------------------------------------------ local ctrl = { nick = "normalizer", parent = iup.WIDGET, subdir = "elem", creation = "-", callback = {} } -- mimics the iup.BOX.s...
--[[ Name: client.wx.lua Purpose: Client for wxSocket (ported wx samples) Author: Andre Arpin Modified by: Created: 27-10-2010 Copyright: (c) 2010 Andre Arpin Licence: wxWindows licence --]] -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit package.cpath ...
-- // FileName: ChatBar.lua -- // Written by: Xsitsu -- // Description: Manages text typing and typing state. local module = {} local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local TextService = game:GetService("...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by 干冲. --- DateTime: 2018/4/18 17:39 --- 模块相对路径 ModulePath = { LuaAPP = "LuaApp", Define = "Define/Define", PlayerSetting = "Define/PlayerSetting", GlobalDefine = "Define/GlobalDefine", StateStepDefine = "Define/StateStepDefine",...
include('shared.lua') function ENT:Draw() self.BaseClass.Draw(self) Wire_DrawTracerBeam( self, 1 ) end
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end if player:getStorageValue(Storage.WrathoftheEmperor.Questline) < 31 then player:teleportTo(fromPosition) return true end if player:getStorageValue(Storage.WrathoftheEmperor.Ques...
local capabilities = require "st.capabilities" local constants = require "st.zigbee.constants" local defaults = require "st.zigbee.defaults" local utils = require "st.utils" local json = require "dkjson" local log = require "log" local zcl_clusters = require "st.zigbee.zcl.clusters" local device_management = require "s...
function onEvent() noteTweenX('play3', 8, 500, 2, 'quartInOut') noteTweenX('play4', 7, 300, 2, 'quartInOut') noteTweenX('play5', 6, 800, 2, 'quartInOut') noteTweenX('play6', 5, 700, 2, 'quartInOut') noteTweenX('play7', 4, 600, 2, 'quartInOut') noteTweenX('play8', 3, 100, 2, 'quartInOut') noteTweenX('play9', 2, 2...
#!/usr/bin/env luajit -- direct lua implementation of a minimal raw fb client local S = require"syscall" local ffi = require"ffi" local WIDTH = 800 local HEIGHT = 600 local BPP = 4 local MMM_PID = 0x18 local MMM_TITLE = 0xb0 local MMM_WIDTH = 0x5...
villageQuharekPhase4ConvoTemplate = ConvoTemplate:new { initialScreen = "intro", templateType = "Lua", luaClassHandler = "conv_handler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/quharek_phase_4:s_c3af3465", -- Hi. How go things? stopConversation = "false", options = { ...
local common = require "core.common" local style = {} style.padding = { x = common.round(14 * SCALE), y = common.round(7 * SCALE) } style.divider_size = common.round(1 * SCALE) style.scrollbar_size = common.round(4 * SCALE) style.caret_width = common.round(2 * SCALE) style.tab_width = common.round(170 * SCALE) style....
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString("ACF_RefillEffect") util.AddNetworkString("ACF_StopRefillEffect") util.AddNetworkString("ACF_RequestAmmoData") -- Local Vars ----------------------------------- local CheckLegal = ACF_CheckLegal local ClassLink = ...
local fs = require "nixio.fs" m = Map("nfs", translate("NFS Manage")) -- NFS Share -- s = m:section(TypedSection, "share", translate("Shared Directories")) s.anonymous = true s.addremove = true s.template = "cbi/tblsection" en = s:option(Flag, "enabled", translate("Enable")) en.rmempty = false en.default = "1" ph1 ...
if mcbPacker then --mcbPacker.ignore mcbPacker.require("s5CommunityLib/fixes/TriggerFix") mcbPacker.require("s5CommunityLib/comfort/other/FrameworkWrapperLight") mcbPacker.require("s5CommunityLib/tables/ArmorClasses") mcbPacker.require("s5CommunityLib/comfort/entity/EntityIdChangedHelper") end --mcbPacker.ignore if no...
-- Script for checking pending entries and claiming them local rcall = redis.call local stream = KEYS[1] local group = KEYS[2] local consumer = KEYS[3] -- name of the consumer that will reclaim pending messages local minidle = tonumber(KEYS[4]) -- min-idle-time, in milliseconds local count = tonumber(KEYS[5]) -- max en...
-- Basic visp builtin operatives spec. describe("#builtins #operatives", function() local inst setup(function() local visp = require("src.visp") inst = visp.new() end) describe("oper", function() it("simple arg-val pair", function() local oper = inst:run("(oper (a) a)") assert.same("function", type(op...
if JudgeAttack(0, 90, 1000) == true then goto label0 end; Talk(0, "我看这块巨石门大有问题,后面肯定藏有宝物.", "talkname0", 1); do return end; ::label0:: if HaveItem(106) == true then goto label1 end; Talk(0, "我看这块巨石门大有问题,后面肯定藏有宝物.", "talkname0", 1); do return end; if HaveItem(109) == true then goto lab...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
require "luacom" lib = luacomE.NewLibrary { name = "SmallFurryCreatures", uuid = "22582D65-4EE0-11d1-8791-0060B07BFA18", version = "1.0" } lib:AddImport("stdole32.tlb") int = lib:AddInterface{ name = "ISFC", uuid = "22582D66-4EE0-11d1-8791-0060B07BFA18", } int:AddMethod{ type = "boolean", name = "Requ...
nevermore_second_attack = class({}) LinkLuaModifier("modifier_nevermore_second_attack_recast", "abilities/heroes/nevermore/nevermore_second_attack/modifier_nevermore_second_attack_recast", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_nevermore_second_attack_recasts_counter", "abilities/heroes/nevermore/nevermore...
local ADDON_NAME = 'Farming Party' local ADDON_VERSION = '2.13.0' local LAM2 = LibAddonMenu2 FarmingPartySettings = ZO_Object:Subclass() local qualityChoiceValues = { ITEM_QUALITY_TRASH, ITEM_QUALITY_NORMAL, ITEM_QUALITY_MAGIC, ITEM_QUALITY_ARCANE, ITEM_QUALITY_ARTIFACT, ITEM_QUALITY_LEGENDARY } Farming...
-- dfstatus config -- the dfstatus script can be found in hack/scripts/gui/ --[[ The following variables can be set to true/false to enable/disable categories (all true by default) * drink * wood * fuel * prepared_meals * tanned_hides * cloth * metals Example: drink = false fuel = true To add metals: * metal 'IRON' *...
--[[ A light weight implementation allowing creation of so called "prototypes" which can be used to easily create "objects" with certain methods. The value passed in to this function is mutated, so it is not recommended to store a separate reference to this value. @example local MyProto = prototype {doStu...
hs.window.animationDuration = .2 units = { right30 = { x = 0.70, y = 0.00, w = 0.30, h = 1.00 }, right70 = { x = 0.30, y = 0.00, w = 0.70, h = 1.00 }, left70 = { x = 0.00, y = 0.00, w = 0.70, h = 1.00 }, left30 = { x = 0.00, y = 0.00, w = 0.30, h = 1.00 }, top50 = { x = 0.00,...
-- !! for a simple camera just use "love.graphics.translate(-player.x, -player.y)" -- Camera.lua -- https://love2d.org/forums/viewtopic.php?f=4&t=9281 -- -- Other Camera Tutorials -- https://love2d.org/wiki/Tutorial:Cameras -- viewport and boundaries are expressed as left, top, width and height local viewport = { ...
local function create(list) local set = {} for _, item in ipairs(list) do set[item] = true end return set end local function copy(set) local setCopy = {} for key, value in pairs(set) do setCopy[key] = value end return setCopy end local function iterator(set) return ...
local Log = require "log.logger" local Env = require "env" local server_mgr = require "server.server_mgr" local cerberus = require "cerberus" require "bridge_svr.net_event_handler" require "bridge_svr.msg_handler" require "bridge_svr.rpc_handler" cerberus.start(function() Log.info("bridge_svr main_entry") server_mg...
package.path = "./?.lua;./?/init.lua" require 'names' print("This is a script to process names for the name list.") print("copy and paste the names here, then type \"exit\"") rawNames = '' while true do local input = io.read() if input == "exit" then break end rawNames = rawNames..'\n'..input end nameHash = {} new...
-- require 'lua-nucleo' local https = require'ssl.https' local encode = require'multipart-post'.encode local json = require'cjson' local utf8 = require'lua-utf8' local type, table_concat, table_insert, pairs, tostring, setmetatable = type, table.concat, table.insert, pairs, tostring, setmetatable ----------------...
--~ Copyright Ⓒ 2015 Victor Baybekov package.path = package.path .. ";" .. ".\\?.lua;" .. ".\\?.luac" package.cpath = package.cpath .. ";" .. '.\\clibs\\?.dll' local qsfunctions = {} function qsfunctions.dispatch_and_process(msg) if qsfunctions[msg.cmd] then -- dispatch a command simply by a table lookup...
local myname, ns = ... local f = CreateFrame("frame") f:SetScript("OnEvent", function(self, event, ...) if ns[event] then return ns[event](ns, event, ...) end end) function ns:RegisterEvent(...) for i=1,select("#", ...) do f:RegisterEvent((select(i, ...))) end end function ns:UnregisterEvent(...) for i=1,select("#...
package("spirv-tools") set_homepage("https://github.com/KhronosGroup/SPIRV-Tools/") set_description("SPIR-V Tools") set_license("Apache-2.0") add_urls("https://github.com/KhronosGroup/SPIRV-Tools/archive/v$(version).tar.gz") add_versions("2020.5", "947ee994ba416380bd7ccc1c6377ac28a4802a55ca81ccc06...
------------------------------------------------------------------------ ----- Original script by novaprim3. Modified by douglasg14b ----- ------------------------------------------------------------------------ local state = { config = { mass = tonumber(ScenarioInfo.Options.VampirePercentage), ...
DefineClass.XVignetteOverlay = { __parents = { "XDialog" }, Id = "idVignetteOverlay", FocusOnOpen = "", } function XVignetteOverlay:Init() XImage:new({ Id = "idBottomLeft", Image = "UI/Onscreen/onscreen_gradient.tga", HAlign = "left", VAlign = "bottom", }, self) XImage:new({ Id = "idBottomRight", Ima...
----------------------------------- -- -- Zone: Open_sea_route_to_Al_Zahbi (46) -- ----------------------------------- local ID = require("scripts/zones/Open_sea_route_to_Al_Zahbi/IDs") ----------------------------------- function onInitialize(zone) end; function onZoneIn(player,prevZone) local cs = -1; if (p...