content
stringlengths
5
1.05M
--[[ module: CompositeEntity author: DylanYang time: 2021-02-24 21:35:14 idea: Compared to 'CoarseGrainedObject', it is only one more level and can contain other content. advance: ]] local CoarseGrainedObject = require("patterns.j2ee.compositeEntity.CoarseGrainedObject") local _M = Class("Compos...
local washopen = { [1] = {ID=1,Level=0,equipPart=2,number=0}, [2] = {ID=2,Level=0,equipPart=3,number=0}, [3] = {ID=3,Level=0,equipPart=4,number=0}, [4] = {ID=4,Level=0,equipPart=5,number=0}, [5] = {ID=5,Level=0,equipPart=6,number=0}, [6] = {ID=6,Level=5,equipPart=2,number=0}, [7] = {ID=7,Level=5,equipPart=3,number=0}, ...
function onCreate() makeLuaSprite('BG', 'gold_spookyhouse', -300, -0) addLuaSprite('BG', false) end
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un...
print("CalmAI Loaded. AI is now Relaxed! Coded by NickThe0ne")
--translated by Nick#6127 from GFL Teams on Discord return { ["CONGRATS_COMMAND"] = "Giver dig konfetti og festlige lyde; dog kun for dig.", ["CONGRATS_GLOBAL"] = "Tillyke, du slog rekorden for højeste runde på serveren!", ["CONGRATS_MAP"] = "Tillyke, du slog rekorden for højeste runde i denne bane! Prøv at se om ...
print("Loading ReportScreen.lua from Better Report Screen version "..GlobalParameters.BRS_VERSION_MAJOR.."."..GlobalParameters.BRS_VERSION_MINOR); -- =========================================================================== -- ReportScreen -- All the data -- Copyright 2016-2018, Firaxis Games -- ===============...
local stringx = require('pl.stringx') local cmd = torch.CmdLine() cmd:option("-batch_size",128,"batch size") cmd:option("-dimension",512,"vector dimensionality") cmd:option("-dropout",0.2,"dropout rate") cmd:option("-train_file","../data/t_given_s_train.txt","") cmd:option("-dev_file","../data/t_given_s_dev.txt","") cm...
local st = require "util.stanza"; module:depends("http"); local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_remove = table.remove; local add_task = require "util.timer".add_task; local jid_bare = require "util.jid".bare; local function get_room_from_jid() end; local is_component = module...
-->8 -- scumm-8 core engine -- ############################ -- you should not need to -- modify anything below here -- ############################ function shake(bc) bd,be=bc,bc and 1 or be end function bf(bg) local bh="lookat" if has_flag(bg.classes,"class_talkable") then bh="talkto" elseif has_flag(bg.classe...
local ffi = require("ffi") local socket = {} local e = {} local errno = {} do local C if ffi.os == "Windows" then C = assert(ffi.load("ws2_32")) else C = ffi.C end local M = {} local function generic_function(C_name, cdef, alias, size_error_handling) ffi.cdef(cdef) ...
local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' configs.terraformls = { default_config = { cmd = {"terraform-lsp"}; filetypes = {"terraform"}; root_dir = util.root_pattern(".terraform", ".git"); }; docs = { package_json = "https://raw.githubusercontent.com/hashicor...
-- This script parses the request body and assembles a $body_cache_key -- variable containing the SOAP request body parameters. local pp = require'pp' local expat = require'expat' local pp_format = pp.format local ngx_req = ngx.req local ngx_log = ngx.log local ngx_DEBUG = ngx.DEBUG local ngx_NOTICE = ngx.NOT...
if (true) then return end local irisPairs = { 1020, 1021, } local vaultDoor = 1029 hook.Add("InitPostEntity", "mapmodded", function() for k, v in ipairs(ents.GetAll()) do local hammerID = v:GetMapID() if (table.hasValue(irisPairs, hammerID)) then -- for shortage of the time ...
-- Internal register local _class={} function class(base) local class_type={} class_type.__type = 'class' class_type.ctor = false local vtbl = {} _class[class_type] = vtbl setmetatable(class_type,{__newindex = vtbl, __index = vtbl}) if base then setmetatable(vtbl,{__ind...
--Minetest --Copyright (C) 2016 T4im -- --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.1 of the License, or --(at your option) any later version. -- --This program is di...
local addonName, addon = ... local module = addon:CreateModule("Unit Frames") module.defaultSettings = { x = 350, y = 100, scale = 1, frameSpacing = 20, statusTextScale = 1, classColors = true, hideNames = false, } module.optionsTable = { scale = { order = 1, type = "range", name = "Sca...
local ADDON, Addon = ... local Util = Addon.Util local function eventHandlerWhisper(self, event, msg, from) Addon:AddAllItems(msg, from, from) end local function eventHandlerBNChat(self, event, msg, sender, languageName, channelName, playerName2, specialFlags, zoneChannelID, channelIndex, channelBaseName, unused, ...
require'visimp'{ defaults = { foldmethod = 'marker' }, diagnostics = {}, gitsigns = {}, latex = { tectonic = true }, languages = { 'bash', 'c', 'latex', 'python' }, lspsignature = {}, outline = {}, snippet = {}, theme = {'haishanh/night-owl.vim', 'night-owl', 'dark'} } ...
local versionNumber = "1.2" function widget:GetInfo() return { name = "Ghost Site", desc = "[v" .. string.format("%s", versionNumber ) .. "] Displays ghosted buildings in progress and features", author = "very_bad_soldier", date = "April 7, 2009", license = "GNU GPL v2", layer...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] local UpdateManager = class('UpdateManager') local utils = require('utils.utils') function UpdateManager:ctor(...) end function UpdateManager:startCheckUpdate(callback) local this = self print('storagePath: ', cc.FileUtils:getInstance():getWritablePath() ) local am = c...
pagenumber = 0 local file = io.open(tex.jobname..".fht", "r") io.input(file) local pages_ftn_ht = {} local has_pages_ftn_ht = false for line in file:lines() do local line_arr = {} for i in string.gmatch(line, "%S+") do table.insert(line_arr, tonumber(i)) end table.insert(pages_ftn_ht, line_arr) ha...
local Registry = {} local self = Registry Registry.new_objects = {} Registry.last_objects = {} function Registry.initialize(preload) if not self.preload then self.base_scripts = {} local chapter = Kristal.getModOption("chapter") or 2 Game.chapter = chapter for _,path in ipairs(Util...
somatorio=function(month) local result = 0 for val = 1,month do if month <= month then local p = 1 month = month - 1 p = p + month result = result + p end end return result end wesley_safadao=function(birthday) if type(birthday)=="string" then local day,month,year = birthday:match('(%d*)/(%d+)/*(...
LinkLuaModifier('modifier_abaddon_borrowed_time_lua_active', 'heroes/abaddon/borrowed_time', LUA_MODIFIER_MOTION_NONE) ability_borrowed_time = class({}) function ability_borrowed_time:OnSpellStart() self:GetCaster():AddNewModifier(self:GetCaster(), self, 'modifier_abaddon_borrowed_time_lua_active', { dura...
object_tangible_holiday_love_day_rewards_11_shared_love_day_2011_painting = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/holiday/love_day/rewards_11/shared_love_day_2011_painting.iff" } ObjectTemplates:addClientTemplate(object_tangible_holiday_love_day_rewards_11_shared_love_day_2011...
-------------------------------------- -- LootManager -------------------------------------- -- Datastructure used by master looter to manage loot items and to determine winners -------------------------------------- -- DEFINITION + CONSTRUCTOR -------------------------------------- LootManager = { master_looter = nil...
require("helper") sta = {} local sta_tmr local change = true function sta.setTimer(input_tmr) sta_tmr = input_tmr end function sta.setChange(val) change = val end function sta.setup() if change then wifi.sta.config(helper.getConfig().sta) change = false elseif wifi.sta.getip() ~= ...
object_ship_twing = object_ship_shared_twing:new { } ObjectTemplates:addTemplate(object_ship_twing, "object/ship/twing.iff")
-- Deal50: A game inspired by the TV show -- Developed by Joaquin -- Final project for GD50 2020 Banker = Class{} function Banker:init(def) -- Grab cases self.cases = def.cases or {} -- Grab number of cases to open self.casesToOpen = def.casesToOpen or 6 -- Count the number of unopened cases and...
local PANEL = {} AccessorFunc( PANEL, "m_pMenu", "Menu" ) AccessorFunc( PANEL, "m_bChecked", "Checked" ) AccessorFunc( PANEL, "m_bCheckable", "IsCheckable" ) function PANEL:Init() self:SetContentAlignment( 4 ) self:SetTextInset( 30, 0 ) -- Room for icon on left self:SetTextColor( Color( 10, 10, 10 )...
-- Save Player Data to Saved Variables --Solvent Proficiency, Metalworking, Tailoring, (Aspect Improvement, Potency Improvement), Recipe Quality, Recipe Improvement, Woodworking local matchNameList1 = {GetString(ESOA_FULL_SUB_SOLV), GetString(ESOA_FULL_SUB_METAL), GetString(ESOA_FULL_SUB_TAIL), GetString(ESOA_FULL_...
require "torch" if #arg < 1 then print[[ Expects at least one package to require. Use -lclassic to monitor classic classes instead. (see github.com/deepmind/classic)") Usage: th [-lclassic] generate.lua output_mode package1 [package2 [package3 ...] ] where output_mode is htmld3force, htmld3tree. See e.g. htmld3tr...
if (redis.call('exists', KEYS[1]) == 1) then local stock = tonumber(redis.call('get', KEYS[1])); if (stock > 0) then redis.call('incrby', KEYS[1], -1); return stock; end; return 0; end;
require("true-zen").setup { ui = { top = { showtabline = 0, }, left = { number = true, }, }, modes = { ataraxis = { left_padding = 3, right_padding = 3, top_padding = 1, bottom_padding = 0, auto_padding = false, }, }, }
-- -- trigger_mesecons -- -- A simple Minetest mod that allows the trigger mod to power mesecons machines. -- -- Most mesecons machines do not require this, they can be used directly with -- triggers. -- -- MIT License -- -- Copyright © 2017 by luk3yx -- -- Permission is hereby granted, free of charge, to any person...
Impound = {} --[[ Functions: Impound ]]-- function Impound:Update() if not self:CanImpound() then if self.target then self.target:StopImpound() end return end for entity, marked in pairs(Marking.objects) do local coords = GetEntityCoords(entity) local siteId, site = self:GetSite(coords) if siteId ~...
fx_version 'bodacious' game 'gta5' author 'The Owls - Nosmakos' description 'Discord Management (Hooking Logs)' version '1.0.0' server_script 'server.lua'
local _R = debug.getregistry() function RPGM.Classes.BuyableItemBase(tbl, name, category, command, model, order, extra, functions, price, max, teamsAllowed) tbl = RPGM.Classes.ItemBase( tbl or setmetatable({}, _R["RPGMBuyableItemBase"]), name, category, command, model, order, extra, functions ...
require 'class' api = require('api') -- https://bitbucket.org/AndyZe/pid/src/31105f05b463573c020800d2cef81307d9a98579/src/controller.cpp?at=master&fileviewer=file-view-default local LowPassFilter = class(function(self, sample_rate, cutoff_frequency) if(sample_rate == nil) then sample_rate = 1 end ...
--------------------------------------------------------------------- -- PostgreSQL specific tests and configurations. -- $Id: postgres.lua,v 1.2 2006/01/25 19:15:21 tomas Exp $ --------------------------------------------------------------------- table.insert (CUR_METHODS, "numrows") table.insert (EXTENSIONS, numrows...
---@class GenericInMethod<T> ---@field a T local GenericInMethod = {} ---@param arg T function GenericInMethod:colonMethod(arg) ---@type T local thing thing = self.a end ---@param arg T function GenericInMethod.dotMethod(arg) ---@type T local thing thing = self.a end ---@param arg T Generic...
function get() local data = {} data.house = db:singleQuery([[ SELECT c.name AS bidname, b.bid, b.bid_end, b.last_bid, a.name AS ownername, b.name, b.rent, b.size, b.beds, b.town_id, b.id FROM houses b LEFT JOIN players a ON a.id = b.owner LEFT JOIN players c ON c.id = b.highest_bidder WHERE b....
local M = {} local memory = _G.memory local luap = require 'luap' local config = require 'config' local draw = require 'draw' local smw = require 'game.smw' local u8 = memory.readbyte local s16 = memory.readsword local OPTIONS = config.OPTIONS local screen_coordinates = smw.screen_coordinates local WRAM = smw.WRAM l...
-- We are using PCH, so you must disable PCH on the protobuf files, and enable generation on stdafx.cpp -- note[0] -- It appears that by messing with the output directories, VS doesn't start the binary in the right place -- when debugging. If you simply double click the Driver.exe, for example, it will find the plug...
--The MIT License (MIT) -- --Copyright (c) 2016 Jaap Braam -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the rights --to use, copy, modi...
if mcbPacker then --mcbPacker.ignore mcbPacker.require("s5CommunityLib/comfort/table/KeyOf") end --mcbPacker.ignore ObserverInfo = {ObservedPlayers = {}, ObservedResearch = {}, ObservedUpgrade = {}, ShowLines = {}} function ObserverInfo.InitIfLocalSpecForAllPlayers(guipath) if GUI.GetPlayerID()==17 then ...
local json = require 'cjson' json.decode_array_with_array_mt(true) local jsonschema = require 'resty.ljsonschema' describe("[string coercion]", function() describe("number:", function() local schema = { type = "number", minimum = 1.1, maximum = 3, exclusiveMinimum = true, } ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
local dict = require"socket.dict" print(dict.get("dict://localhost/d:teste")) for i,v in pairs(dict.get("dict://localhost/d:teste")) do print(v) end
-- notify.lua -- Desktop notifications for mpv. -- Just put this file into your ~/.mpv/lua folder and mpv will find it. -- -- Copyright (c) 2014 Roland Hieber -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to de...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") -- -- One-liner description of a type. Docstrings = class.class(KaitaiStruct) function Docstrings:_init(io, parent, ro...
local Angle = require('neural.angle') local GPS = require('gps') local Mobs = require('neural.mobs') local ni = require('neural.interface') local Point = require('point') local Util = require('util') local os = _G.os local RADIUS = 13 local ROTATION = math.pi / 16 local uid = ni.getID and ni.getID() o...
--[[ Event Handler Creates and passes events to objects that have registred. ]] local lib local table_copy local event_handler local event_prop_meta local handler_compare = function(first, second) return first[3] < second[3] end event_handler = { auto_hook = {}, event = {}, events = {}, event_create = function...
local staticRuntime = ... return { include = function() includedirs "../vendor/minhook/include/" end, run = function() language "C" kind "StaticLib" if staticRuntime then staticruntime "On" end local minhook_dir = "../vendor/minhook/src/" files_project(minhook_dir) { "buf...
require("settings") require("keymapps") require("plugins") require("lsp-config")
-- This test file expects to be ran from 'run.lua' in the root Penlight directory. local dir = require( "pl.dir" ) local file = require( "pl.file" ) local path = require( "pl.path" ) local asserteq = require( "pl.test" ).asserteq asserteq(dir.fnmatch("foobar", "foo*bar"), true) asserteq(dir.fnmatch("afoobar", "foo*ba...
local resourcesPrefix = ARGV[1] local collectionsPrefix = ARGV[2] local deltaResourcesPrefix = ARGV[3] local deltaEtagsPrefix = ARGV[4] local expirableSet = ARGV[5] local minscore = tonumber(ARGV[6]) local maxscore = tonumber(ARGV[7]) local confirmCollectionDelete = ARGV[8] local deleteRecursive = ARGV[9] loca...
print("HR Events") local isBNW = (GameInfoTypes.UNITCOMBAT_SUBMARINE ~= nil); local isEEraExt = (GameInfoTypes.UNIT_EE_CUIRASSIER ~= nil); function JFD_IsUsingPietyPrestige() local pietyPrestigeModID = "eea66053-7579-481a-bb8d-2f3959b59974" local isUsingPiety = false for _, mod in pair...
-- QWERTYSHR local assert = require "lib.assert" local inspect = require "lib.inspect" local layout = require "lib.layout" local shr = require "layouts.jp109.SHR" return layout.new { name = "QWERTYSHR", build = function (model, keytable, options) local K = model:map_to_key() local C = model:map_to_char() ...
RegisterClientScript() local vec2meta = RegisterMetatable("vec2") vec2meta.__index = vec2meta function vec2meta:Distance(vec) return (self - vec):Length() end function vec2meta:DistanceTest(vec, distance) return self:SquaredDistance(vec) < distance*distance end function vec2meta:GetNormalized() local length = se...
pg = pg or {} pg.equip_data_by_quality = { { gear_score_addition = 5, equip_quality = 1, gear_score = 30, destory_resource_ratio = 1 }, { gear_score_addition = 8, equip_quality = 2, gear_score = 50, destory_resource_ratio = 2 }, { gear_score_addition = 10, equip_quality = 3, gear_score = 80, ...
-------------------------------- -- @module ClippingNode -- @extend Node -- @parent_module cc -------------------------------- -- Inverted. If this is set to true,<br> -- the stencil is inverted, so the content is drawn where the stencil is NOT drawn.<br> -- This default to false. -- @function [parent=#ClippingNode]...
local UpvalueHacker = require("tools/upvaluehacker") local AddPrefabPostInit = AddPrefabPostInit GLOBAL.setfenv(1, GLOBAL) AddPrefabPostInit("pigking", function(inst) if not TheWorld.ismastersim then return end inst:DoTaskInTime(0, function(inst) -- Compatible with Mio the Nightmare Eater local on_trad...
function widget:GetInfo() return { name = "CaretakerRefresher", desc = "Refreshes caretaker jobs prioritizing repair and reclaim. Version v0.3", author = "zenfur, terve886", date = "2019", license = "MIT", layer = 11, enabled = true } end options_path = '...
-- List of locks LOCKS_ARRAY = { "NONE", "PIGGIFTS", "TREES", "SPIDERDENS", "ROCKS", "FARM", "MEAT", "BEEHIVE", "KILLERBEES", "PIGKING", "MONSTERS_DEFEATED", "HARD_MONSTERS_DEFEATED", "SPIDERS_DEFEATED", "BASIC_COMBAT", "ADVANCED_COMBAT", "ONLYTIER1", "TIER1", "TIER2", "TIER3", "TIER4", "TIER5",...
local dropList = {} RegisterNetEvent("b03461cc:pd-inventory:remove") AddEventHandler("b03461cc:pd-inventory:remove",function(zone, id) if dropList[zone][tostring(id)] then dropList[zone][tostring(id)] = nil end end) RegisterNetEvent("b03461cc:pd-inventory:createForAll") AddEventHandler("b03461cc:pd-inventory:crea...
-- Tests that work in E3. With game config of E3. -- Tests are under scripts/test/e3 and all files must be in scripts/test/e3/init.lua path = 'scripts' if config.install then path = config.install .. '/' .. path package.path = package.path .. ';' .. config.install .. '/lunit/?.lua' --needed to find lunit ...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "DebugUIs/DebugMenu/Base/ISDebugSubPanelBase"; ---@class ISStatsAndBody : ISDebugSubPa...
char = game.Players.acb227.Character function spark() Hit = char.Head.CFrame pcall(function() workspace.Guideline:remove() end) local P = Instance.new("Part") P.Name = "Guideline" local Place0 = workspace.Visualist.Head.CFrame P.formFactor = 0 P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude) P.CFram...
-- Make sure Graphite is in our path -- Only these examples need to do this if (not __GRAPHITE_IN_PATH) then __GRAPHITE_IN_PATH = true package.path = package.path .. ";../?/init.lua" end --[[ Graphite: Simple OOP Graphite provides an expressive OOP implementation. For inheritance, see easy-oop-inhertiance ]] lo...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local CDb = require "include.db" local config = require "game.config" local timetool = require "include.timetool" local rankMgr = require "manager.rankMgr" local roleMgr = require "manager.roleMgr" ...
EditorConsole = EditorConsole or class(EditorPart) function EditorConsole:init(parent, menu) self._parent = parent self._options_menu = menu:Menu({ name = "console_options", background_color = BeardLibEditor.Options:GetValue("BackgroundColor"), auto_height = true, offset = 0, ...
local class = require "xgame.class" local assert = assert local next = next local pairs = pairs local tostring = tostring local ANONYMOUS = {} local hashlist = {} local Dispatcher = class("Dispatcher") function Dispatcher:ctor() self._listeners = {} end function Dispatcher:addListener(event, listener, owner, p...
--[[ ____________________________________________________________________________________________________________________________________________________________________________ @CloneTrooper1019, 2014-,2015 <3 (Some code provided by Mark Langen, also known as ...
iterate = dofile('utils.lua').iterate test_run = require('test_run').new() test_run:cmd("push filter '(error: .builtin/.*[.]lua):[0-9]+' to '\\1'") # Tree single-part unique space = box.schema.space.create('tweedledum') idx1 = space:create_index('primary', { type = 'tree', parts = {1, 'string'}, unique = true}) -- Ha...
local cjson = require "cjson" local fernet = require "resty.fernet" local function readfile(path) local file = io.open(path, "rb") if not file then return nil end local content = file:read("*a") file:close() return content end local function parse_time(ts) local pattern = "(%d+)-(%d+)-(%d+)T(%d+):(%d+):...
--[=[ MIT License Copyright (c) 2016 Johannes Westhuis, Alexander Schulz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
--------------------------------------------------------------- -- Widget tracking --------------------------------------------------------------- -- Used to track and bind interface widgets to the controller. -- Necessary since widgets might be created at a later time. local widgetTrackers, IsFrameWidget = {}, C_Widg...
--性能测试 --https://github.com/lulersoft/ME local testui2={} local this local gameObject local transform local colors={Color.red, Color.yellow, Color.blue, Color.white, Color.black, Color.cyan} function testui2.Start() this=testui2.this gameObject=testui2.gameObject transform=testui2.transform this.usingUpdate=fa...
function start (song) strumLine1Visible = false end
local login_fillInfo= { name="login_fillInfo",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shiled",type=1,typeName="Image",time=89955743,report=0,x=335,y=205,width=64,height=64,visible=1,fillParentWidth=1,fillPar...
--[[********************************** * * Multi Theft Auto - Admin Panel * * client\main\admin_server.lua * * Original File by lil_Toady * **************************************]] aServerTab = { Weathers = {}, WeatherMax = 255, glitches = { QuickReload = 'Quick Reload', FastMove = 'Fa...
local replicated = game:GetService("ReplicatedStorage").CameraSystem --// Buttons script.Parent.Buttons.Blackout.MouseButton1Click:Connect(function() if (replicated.Shared.BlackoutEnabled.Value == true and replicated.Shared.BlackoutColor.Value ~= Color3.fromRGB(0,0,0)) or replicated.Shared.BlackoutEnabled.Value == f...
---------------------------------------------------------------------------------------------------- -- localized English (main) strings -- --get the AddOn engine local AddOnName = ...; --force localization to Spanish (only for testing) --_G.GAME_LOCALE = "esES" --prepare locale local L = LibStub("AceLocale-3.0"):Ne...
local block={} local function Block(id,meta) if meta == nil then meta=0 end return meta * 0x1000 + id end local function unBlock(value) return value % 0x1000, math.floor(value / 0x1000) end block.AIR =Block(0) block.STONE =Block(1) block.GRASS =Block(2) block...
-- -- centrifuge c1 c2 c3 -- module type s4 s5 s6 -- crafting_speed 58.8 87.6 123.6 -- energy_source.emissions_per_minute 47.55 53.8 ...
texts = nil errored = false checkedAll = false data = nil modslist = {} index = 1 timer = nil versionIndex = {} function init() local passed, err = pcall(function() data = root.assetJson("/zb/updateInfoWindow/data.config") modslist = status.statusProperty("zb_updatewindow_pending", {}) or {} widget.setButto...
--- A clickable button. -- @classmod Button -- @usage -- Create an empty button that prints when it is clicked -- local button = Button(0, 0, 100, 100) -- button.onClick = function(component, button) -- print("Clicked with mouse button " .. button) -- end Button = class(Component) --- The color of the outer border of...
wait(0.016666666666667) Effects = {} local Player = game.Players.localPlayer local Character = Player.Character local Humanoid = Character.Humanoid local mouse = Player:GetMouse() local m = Instance.new("Model", Character) m.Name = "WeaponModel" local LeftArm = Character["Left Arm"] local RightArm = Character["Right A...
local stabilize = require "stabilize" stabilize.setup { force = true, -- stabilize window even when current cursor position will be hidden behind new window forcemark = nil, -- set context mark to register on force event which can be jumped to with '<forcemark> ignore = { -- do not manage windows matching these ...
-- Helper module for testing intel_mp driver receive module(..., package.seeall) local intel = require("apps.intel_mp.intel_mp") local basic = require("apps.basic.basic_apps") local ffi = require("ffi") local C = ffi.C function test(pciaddr, qno, vmdq, poolno, macaddr, vlan) local c = config.new() if vmdq then...
local config = require('__shared/config') require('parachute-events') local isChecking = false local sinceLastCheck = 0 function startChecking() isChecking = true end function stopChecking() isChecking = false end Events:Subscribe('LocalPlayer:FreefallBegin', startChecking) Events:Subscribe('LocalPlayer:Parachu...
local mod = get_mod("rwaon_talents") ------------------------------------------------------------------------------ --[[mod:add_talent("dr_ironbreaker", 2, 3, "rwaon_bardin_ironbreaker_movespeed_on_charged_attacks", { num_ranks = 1, description_values = { { value_type = "percent", ...
AddCSLuaFile() SWEP.Base = "weapon_prop_powerup_base" SWEP.Name = "Stack" SWEP.PrintName = "Stack" SWEP.AbilityUsableBeforeHuntersReleaed = true SWEP.AbilityDescription = "Stack the Prop you're hold on top of you for better hiding." function SWEP:Ability() if CLIENT then return end local ply = self:GetOwner(...
local SP_URL = 'https://localhost' return { key_attribute_name = "EmailAddress", redirect = { url_after_login = "/", url_after_logout = "/" }, request = { idp_dest_url = "https://idp.ssocircle.com:443/sso/SSORedirect/metaAlias/publicidp", sp_entity_id = SP_URL .. '/sso',...
-- Lua调用C++ local mod = require('mylua') print(mod.add(1, 2)) local obj = mod.Object() obj:setName('paoqi') obj:setSum(648) content = string.format('Name: %s, Sum: %d', obj:getName(), obj:getSum()) print(content)
death_watch_bloodguard = Creature:new { objectName = "@mob/creature_names:mand_bunker_dthwatch_red", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "death_watch", faction = "", level = 121, chanceHit = 4, damageMin = 745, damageMax = 1200, baseXp = 11390, baseHAM = 50000, baseHAMmax = 50...
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local command = require "core.command" local common = require "core.common" local console = require "plugins.console" local keymap = require "core.keymap" -- This plugin requires the console plugin to work. It can be found...
require "ffi".cdef [[ typedef uint16_t LuaGBAddress; // graphics/palette typedef uint8_t LuaGBPaletteColor[4]; typedef struct _LuaGBPalette { LuaGBPaletteColor dmg_colors[4]; LuaGBPaletteColor bg[4], obj0[4], obj1[4]; LuaGBPaletteColor color_bg[8][4]; uint8_t color_bg_raw[64], color_obj_raw[64]; u...