content
stringlengths
5
1.05M
local FX = { { name = "sanity_raise", bank = "blocker_sanity_fx", build = "blocker_sanity_fx", anim = "raise", tintalpha = 0.5, }, { name = "sanity_lower", bank = "blocker_sanity_fx", build = "blocker_sanity_fx", anim = "lower", tintalpha = 0.5, },...
cc = cc or {} ---MenuItemToggle object ---@class MenuItemToggle : MenuItem local MenuItemToggle = {} cc.MenuItemToggle = MenuItemToggle -------------------------------- --- Sets the array that contains the subitems. ---@param items array_table ---@return MenuItemToggle function MenuItemToggle:setSubItems(items) end -...
QuestieLocale.locale['koKR'] = { -- Config Windows ['OPTIONS_TAB'] = "Options", ['QUESTIE_HEADER'] = "Questie Options", ['ENABLE_QUESTIE'] = "Enable Questie", ['ENABLE_QUESTIE_DESC'] = "Enable or disable addon functionality.", ['ENABLE_ICON'] = "Enable Questie Minimap Icon", ['ENABLE_ICON_DE...
local _, XB = ... local C_Timer = C_Timer XB.Protected = {} local unlockers = {} local L = (function(key) return XB.Locale:TA('Any',key) end) function XB.Protected:AddUnlocker(name, test, functions, extended, om) table.insert(unlockers, { name = name, test = test, functions = fun...
local E=string.byte;local r=string.char;local n=string.sub;local a=table.concat;local V=math.ldexp;local X=getfenv or function()return _ENV end;local U=setmetatable;local D=select;local f=unpack;local B=tonumber;local function c(f)local l,e,d="","",{}local F=256;local A={}for o=0,F-1 do A[o]=r(o)end;local o=1;local fun...
print("-- "..os.date()) hs.logger = require("hs.logger") -- require("hs.crash").crashLogToNSLog = true hs.logger.historySize(200) inspect = require("hs.inspect") -- _xtras = require("hs._asm.extras") inspect1 = function(what) return inspect(what, {depth=1}) end inspect2 = function(what) return inspect(what, {depth=2...
TOOL.Category = "ASSmod" TOOL.Name = "#Tool_ass_owner_name" TOOL.Command = nil TOOL.ConfigName = "" // Add Default Language translation (saves adding it to the txt files) if ( CLIENT ) then language.Add( "Tool_ass_owner_name", "Set Owner" ) language.Add( "Tool_ass_owner_desc", "Set's the owner of an item for AS...
local t = require(script.Parent.Parent.lib.t) local changeBrightnessCheck = t.tuple(t.Color3, t.integer) local function changeBrightness(color, percent) assert(changeBrightnessCheck(color, percent)) local h, s, v = Color3.toHSV(color) return Color3.fromHSV(h, s, math.clamp(v+(v*percent/100), 0, 1)) end return...
PROPERTY = {}; PROPERTY.ID = 39; PROPERTY.Name = "Suburbs House #1"; PROPERTY.Category = "House"; PROPERTY.Description = "A moderately sized house in the suburbs."; PROPERTY.Image = "ev3x_subs1"; PROPERTY.Cost = 3500; PROPERTY.Doors = { {Vector(2589.96875, 11877.1875, 111.09375), '*18'}, {Vector(258...
function Client_PresentSettingsUI(rootParent) local horz = UI.CreateHorizontalLayoutGroup(rootParent); if(Mod.Settings.MaxAttacks ~= 0)then UI.CreateLabel(horz).SetText(Mod.Settings.MaxAttacks .. ' Attacks Multiattack'); UI.CreateButton(horz).SetText('?').SetColor('#4FC5FF').SetOnClick(function() UI.Alert('This ...
data:extend({ { type = "recipe", name = "satellite-thruster", category = "satellite-crafting", energy_required = 100, enabled = "false", ingredients = { {"low-density-structure", 50}, {"rocket-fuel", 200}, {"engi...
local class = require 'ext.class' local table = require 'ext.table' local EinsteinFiniteDifferenceSolver = require 'hydro.solver.einstein-fd' local BSSNOKFiniteDifferenceSolver = class(EinsteinFiniteDifferenceSolver) BSSNOKFiniteDifferenceSolver.name = 'BSSNOK_FiniteDifference' -- split into bssnok-fd-num and bssnok...
require("class") require("world") require("spatialgrid") require("emitter") require("particles/hydrogen") require("particles/oxygen") require("particles/lava") require("particles/block") require("particles/plant") require("particles/smoke") -- A ParticleFactory is merely a simple container with a name and the generato...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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 http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
-- Size of a region, in chunks (default is 56 to be a multiple of RSO's value) RegionSize = 56 -- Search radius for finding neighbors in the same resource field (default is 1, max is 20 which is rather slow) ResourceFieldSearchRadius = 20 -- Whether to search in all directions (default is false, not needed if f...
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Generic TeX writer for lunamark. -- It extends [lunamark.writer.generic] and is extended by -- [lunamark.writer.latex] and [lunamark.writer.context]. local M = {} local util = require("lunamark.util")...
---------------------------------------- -- mqtt_core.lua -- -- desc : mqtt core functions -- -- rev : 3.0 -- -- date : 05/01/2021 -- -- author : tuan nguyen (pdxtigre) -- -- email : info@codesmiths.org -- -- website: https://codesm...
love.graphics.setDefaultFilter("nearest", "nearest") love.graphics.setPointSize(2) local Ffi = require("ffi") local SetColor = love.graphics.newShader("setColor.glsl") local Render = love.graphics.newShader("render.glsl") local Physics = love.graphics.newShader("physics.glsl") local _WIDTH, _HEIGHT = love.graphic...
local table_load = require 'table_load' local json = require 'llae.json' local settings = {} settings._data = {} settings._by_name = {} local function set_value_default( data, val) data.value = val end local metatables = {} metatables.string = { set_value = set_value_default } metatables.number = {} function meta...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { Attr = { BoxFactor = 1, BoxHitRatio = 1, DamageId = 1, DamageType = 1, FaintFactor = 1, Hatred = 1, PVPBoxFactor = 1 }, Content = { { BoxFactor = 100, DamageId...
-- Copyright 2022 SmartThings -- -- 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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
return { ["ARMATURE"] = { { name = "TentacleA.01", baseTransform = {63.61192321777344, -29.428720474243164, 1.5707963757004442, 1.0, 1.0}, frames = {{59.20217514038086, 37.51838302612305, 2.5689575481898483, 1.0, 0.9999999403953552}, {64.87846374511719, 33.366539001464844, 2.585667693301595, 1.0, 1.0},...
--- A 2 component vector. -- @module vec2 local modules = (...):gsub('%.[^%.]+$', '') .. "." local vec3 = require(modules .. "vec3") local private = require(modules .. "_private_utils") local acos = math.acos local atan2 = math.atan2 local sqrt = math.sqrt local cos = math.cos local sin = math.sin l...
data:extend({ { type = "technology", name = "alert-systems", icon = "__Red Alerts__/graphics/AlertSystems.png", icon_size = 128, prerequisites = {"circuit-network"}, unit = { count = 40, ingredients = { {"science-pack-1", 1}, {"science-pack-2", 1} }...
//DAK loader Client DAK = { } DAK.__index = DAK Script.Load("lua/base/class.lua") //No sync of plugins active to clients currently, may be useful to have at some point. //Used to load client side scripts, may be expanded if plugin sync seems useful. //Would allow help menus and such to be generated. //Dont think that...
local wibox = require("wibox") local awful = require("awful") local naughty = require("naughty") require("math") require("string") local Volume = { mt = {}, wmt = {} } Volume.wmt.__index = Volume Volume.__index = Volume config = awful.util.getdir("config") local function run(command) local prog = io.popen(command) ...
function stateHandler
HlssmJettonCcsView = class("HlssmJettonCcsView") HlssmJettonCcsView.onCreationComplete = function (slot0) slot0._spRes = { [slot0.model.jettons[5]] = "common/Hlssm_Battle_cmX1.png", [slot0.model.jettons[4]] = "common/Hlssm_Battle_cmX2.png", [slot0.model.jettons[3]] = "common/Hlssm_Battle_cmX3.png", [slot0.mod...
-- Using `if` and `while` write a function `for_loop(a, b, f)` that -- calls `f()` on each integer from a to b (inclusive) function for_loop(a, b, f) local index = a while index <= b do f(index) index = index + 1 end end
----------------------------------- -- Area: Northern San d'Oria -- NPC: Boncort -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/quests/flyers_for_regine") require("scripts/globals/shop") ----------------------------------- funct...
function event_addon_command(...) term = table.concat({...}, ' ') local broken = split(term, ' ') if broken[1] ~= nil then if broken[1]:upper() == "HELP" then write('daze position <x> <y> : moves the daze text box') write('daze help : Shows this!') end if broken[1]:upper() == "POSITION" then if ...
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals select --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Color, Util = Aurora.Color, Aurora.Util local F, C = _G.unpack(Aurora) do --[[ AddOns\Blizzard_InspectUI.lua ]] do --[[ Ins...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Warp Splinter", 553, 562) if not mod then return end mod:RegisterEnableMob(17977) mod.engageId = 1929 -- mod.respawnTime = 0 -- resets, doesn't respawn ---------------------------...
config = super() config.freshness.owner = 'titovartem' return config
return { ["1.1.0"] = function() global.repairing_players = {} end, ["1.1.1"] = function() -- the previous version was setting this flag erroneously for _, player_table in pairs(global.players) do player_table.flags.repair = nil end end }
-- Functions ZOOMY_CLAMP(), ZOOMY_IN(), ZOOMY_OUT(), and the "Zoomy" name are taken from Excrulon's Zoomy v1.0.0 addon. _G["ZOOMYPLUS"] = {}; _G["ZOOMYPLUS"]["settings"] = { display = 1; displayX = 510; displayY = 880; lock = 1; defaultX = 45; defaultY = 38; defaultZoom = 236; scaling = 5; }; local settings = _...
local LOG = require "logging" local dns = require "protocol.dns" local dns_resolve = dns.resolve local cf = require "cf" local fork = cf.fork local wait = cf.wait local system = require "system" local now = system.now local fmt = string.format local find = string.find local match = string.match local pairs = pairs ...
local AddonName, AddonTable = ... AddonTable.emeraldnightmare = { -- Nythendra 139251, -- Despoiled Dragonscale (Artifact Relic) 139252, -- Preserved Worldseed (Artifact Relic) 139249, -- Shaladrassil's Blossom (Artifact Relic) 139250, -- Unwaking Slumber (Artifact Relic) 139214, -- Greyed Drag...
--[[ This fishing routine is inspired by the great work Rootyjr did for MineClone2 ]]-- local S = ethereal.intllib local fish_items = { "ethereal:fish_bluefin", "ethereal:fish_blueram", "ethereal:fish_catfish", "ethereal:fish_plaice", "ethereal:fish_salmon", {"ethereal:fish_clownfish", "savanna"}, {"ethereal...
-- eLua reference manual - pwm module data_en = { -- Title title = "eLua reference manual - pwm module", -- Menu name menu_name = "pwm", desc = "PWM generation", -- Overview overview = [[This module contains functions for accessing the PWM (Pulse Width Modulation) modules of the eLua CPU.]], -- F...
cbot = cbot or {}; if (CLIENT) then return; end cbot:AddCommand("!define", function(caller, text) print("CALLED"); local splode = string.Explode(text); splode[1] = nil; local searc = table.concat(splode); http.Fetch("http://api.urbandictionary.com/v0/define?term="..searc, function(body) print(body); end, fu...
local freeroam = require("freeroam") local dungeon = {} function dungeon.processinput() --[[ Process an input recieved while in the dungeon context. Most inputs do nothing, and are therefore off-handled to the pre-existing freeroam refresh. If there is a powerlevel provided though, we assume that the player has ...
appname="lua binary table" appver="1.0" appcode="1" appsdk="21" path_pattern="" packagename="com.dingyi.demo" theme="Theme_DeviceDefault_Light" app_key="" app_channel="" developer="dingyi" description="" debugmode=true user_permission={ "INTERNET", "WRITE_EXTERNAL_STORAGE" }
local class = require 'middleclass' local cjson = require 'cjson.safe' local pdu = require 'modbus.pdu.init' local data_pack = require 'modbus.data.pack' local data_unpack = require 'modbus.data.unpack' local bcd = require 'bcd' local ioe = require 'ioe' local air_helper = require 'hj212.calc.air_helper' local worker ...
--[[ @package textAdventure/example @filename oldtown.lua @version 1.0 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 24.06.2020 17:02:46 -04 ]]-- oldtown = room:new('oldtown',{ description = 'Estás en un <b>descampado</b>. Reina la tranquilidad y un ambiente\nlúgubre y...
--[[ --------------------------------------------------------- Model Announcer plays a selcted voicefile when model is changed or transmitter powered on. Custom voicefiles can be made for free at RC-Thoughts text-To-Speech service at https://www.rc-thoughts.com/tts/ Model Announ...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local KefuController = class("KefuController", Controller):include(HasSignals) function KefuController:initialize() Controller.initialize(self) HasSignals.initialize(self) end funct...
local Transform = {} function Transform:new( ... ) local arg = {...} local result = -- actual init { x = arg[1] or 0, y = arg[2] or 0 } setmetatable(result, {__index = self } ) return result end function Transform:move(x, y) -- this signature is specific to...
-- TODO: get rid of 'kong.meta'; this module is king local meta = require "kong.meta" local PDK = require "kong.pdk" local phase_checker = require "kong.pdk.private.phases" local type = type local setmetatable = setmetatable local KONG_VERSION = tostring(meta._VERSION) local KONG_VERSION_NUM = tonumber(string.forma...
local internet = require('internet'); local JSON = require("json"); local config = require('config'); local conf = config.get(config.path); local handle = internet.open(conf.serverIP, tonumber(conf.tcpPort)); handle:setvbuf('line'); -- handle:setTimeout('10'); local M = {}; function M.read() -- reads delimited by ...
kEchoVeilCost = 2 kEchoSpurCost = 2 kEchoShellCost = 2 kEchoEggCost = 1
local util = require("util") local class = util.class local table_insert = table.insert local Collector = require("entitas.Collector") local ReactiveProcessor = class("ReactiveProcessor") local function get_collector(self,context) local trigger = self:get_trigger() local ...
local error = error local isstring = isstring local istable = istable local setmetatable = setmetatable local type = type local unpack = unpack local net_BytesWritten = net.BytesWritten local net_ReadBool = net.ReadBool local net_ReadData = net.ReadData local net_ReadDouble = net.ReadDouble local net_ReadFloa...
local LoggingPolicy = require('apicast.policy.logging') describe('Logging policy', function() describe('.log', function() before_each(function() ngx.var = {} end) context('when access logs are enabled', function() it('sets ngx.var.access_logs_enabled to "1"', function() local logging...
return Def.ActorFrame{ Def.BitmapText{ Font= "Common Normal", Text= THEME:GetString("ScreenInitialScreenIsInvalid", "InvalidScreenExplanation"), InitCommand= function(self) self:xy(_screen.cx, _screen.cy):wrapwidthpixels(_screen.w-16) :diffuse{1, 1, 1, 1}:strokecolor{0, 0, 0, 1} end } }
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> 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 http://w...
local table_sort = table.sort local tostring = tostring local version = '1.01' local _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota 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 Softw...
local obj = {} obj.__index = obj -- Metadata obj.name = "spotify" obj.version = "1.0" obj.author = "Pavel Makhov" obj.homepage = "https://github.com/fork-my-spoons/spotify.spoon" obj.license = "MIT - https://opensource.org/licenses/MIT" obj.spotify_indicator = nil obj.timer = nil obj.iconPath = hs.spoons.resourcePath...
--[[-------------------------------------------------------------------- ldump.lua Save precompiled Lua chunks This file is part of Yueliang. Copyright (c) 2006 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the ChangeLog...
local Main local grad_Down = surface.GetTextureID( "gui/gradient_down" ) function AddFeedMsg(msg,col) local l = Main.Msg:Add("DLabel") l:SetText(msg) l:SetTextColor(col) l:SetFont("ChatFont") l:SizeToContents() local i = 0 while (Main.Msg:ChildCount()-i > 20) do Main.Msg:GetChild(i):Remove() i = i+1 e...
return require 'provider.provider'
local graphqlparser = require('fastparse.lib') local checks = require('checks') local errors = require('errors') local Fast_Parse_Error = errors.new_class("GraphQL fastparse error") local function parse_query(query_string) checks("string") return Fast_Parse_Error:pcall(graphqlparser.parse_query, query_string)...
--------------------------------- --! @file PeriodicExecutionContext.lua --! @brief 周期実行コンテキスト定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local PeriodicExecutionContext= {} --_G["openrtm.PeriodicExecutionContext"] = PeriodicExecutionContext local DEFAULT_PERIOD = 0.000001 loca...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
package.path = package.path..";../?.lua" local ffi = require "ffi" local SSL = require "sslprovider" local k32 = require "Kernel32" A = k32.Unicode16ToAnsi function test_SslEnumProtocolProviders() local pdwProviderCount = ffi.new("uint32_t[1]"); local ppProviderList = ffi.new("PNCryptProviderName[1]"); local dwF...
local api = trinium.api local machines = trinium.machines local S = machines.S local recipes = trinium.recipes local def, destruct, r_input, r_output, r_data = machines.parse_multiblock{ controller = "trinium_machines:controller_crude_blast_furnace", casing = "trinium_machines:casing_heat_brick", size = {front = 0,...
local Module = require"Toolbox.Import.Module" local Compiler = require"Sisyphus.Compiler" local Template = Compiler.Objects.Template return Template.Namespace{ Functions = Module.Child"Functions"; }
local ngm = require "ng.math" local wm = require "ng.wm" local utf8 = require "ng.utf8" local utils = require "gui.utils" local consts = require "gui.consts" local abstract_widget = require "gui.abstract_widget" local W = abstract_widget:extends() function W:__init() W.super.__init(self) self.text = "" self.custom...
local err = require 'aula.core.error' local M = { config = { group_name = 'aula_user_events' } } local DEFAULT_AUTOCMD_ARGS = { pattern = '*', once = false, nested = false } -- Make the autocmd string to be executed with vim.api.nvim_command() -- which will not be part of any augroup -- -- @param opts ta...
local _ENV = mkmodule('plugins.workflow') local utils = require 'utils' --[[ Native functions: * isEnabled() * setEnabled(enable) * listConstraints([job[,with_history] ]) -> {{...},...} * findConstraint(token) -> {...} or nil * setConstraint(token[, by_count, goal, gap]) -> {...} * deleteConstraint(token) ->...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- local _K = require "Application" -- function _M:didShow(UI) local sceneGroup = UI.scene.view local layer = UI.layer {{^sceneGroup}} local target = layer.{{myLName}} {{/sceneGroup...
require "Scripts/PlayerAccount/menu" forgotpasswordmenu = menu:new{canvasName = "ForgotPassword"} function forgotpasswordmenu:Show() menu.Show(self) if self.context.username then self:SetText("UsernameText", self.context.username) end end function forgotpasswordmenu:OnAction(entityId, actionName...
------------------------------------------------------------------ -- This feature was originally created by Darth and Repooc of S&L. -- Credits: Darth Predator and Repooc. -- ElvUI Shadow & Light : https://www.tukui.org/addons.php?id=38 -- Later modified by me for this addon --------------------------------------...
for i = 1, #matches, 4 do selectString(matches[i], 1) setUnderline(true) setLink([[send("datanet ]] .. matches[i] .. [[")]], "Datanet link: " .. matches[i]) end
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. foraged_berries = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/food/foraged/edible_jar_berries.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLoo...
local function parsed_url(link) local parsed_link = URL.parse(link) local parsed_path = URL.parse_path(parsed_link.path) return parsed_path[2] end function pre_process(msg) if msg.media then if msg.media.type:match("contact") then add_contact(msg.media.phone, ""..(msg.media.first_name or "-")....
--[[ This module implements the template {{ru-IPA}}. Author: Originally Wyang; rewritten by Benwing; additional contributions from Atitarev and a bit from others FIXME: 1. (DONE) Geminated /j/ from -йя-: treat as any other gemination, meaning it may not always be pronounced geminated. Currently we geminat...
--Dx Functions local dxDrawLine = dxDrawLine local dxDrawImage = dxDrawImageExt local dxDrawText = dxDrawText local dxGetFontHeight = dxGetFontHeight local dxDrawRectangle = dxDrawRectangle local dxSetRenderTarget = dxSetRenderTarget local dxGetTextWidth = dxGetTextWidth local _dxGetTextWidth = dxGetTextWidth local dxS...
local C, N = unpack(select(2, ...)) local AuraList = C.AuraList local UF = N.UnitFrame -- aura fliter for party local PartyFilter = function(_, _, button, _, _, _, _, duration, _, _, _, _, spellID, _, isBossDebuff) if (button.isDebuff) then return ((duration and duration > 0) or isBossDebuff) and n...
-- Phoenix Project © 2016 SWEP.VElements = { ["aksu"] = { type = "Model", model = "models/arxweapon/metroredux_aksu.mdl", bone = "Ak.Body.Dummy", rel = "", pos = Vector(7.9, 2.299, -0.301), angle = Angle(1.169, -3.507, 90), size = Vector(0.85, 0.85, 0.85), color = Color(255, 255, 255, 255), surpresslightning = false...
gemai.actions = {} function gemai.register_action(name, value) gemai.actions[name] = value end gemai.register_action("gemai:always", function(self) self:fire_event("always") end)
----------------------------------------- -- ID: 5775 -- Item: Chocolate Crepe -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP +5% (cap 15) -- MP Healing 2 -- Magic Accuracy +20% (cap 35) -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status") re...
-- Addon global local ClassicWoT = _G.ClassicWoT -- WoW API local time = _G.time ---@class ClassicWoTCore local ClassicWoTCore = {} ClassicWoTCore.__index = ClassicWoTCore ClassicWoT.Core = ClassicWoTCore setmetatable(ClassicWoTCore, { __call = function(cls, ...) return cls.new(...) end, }) function...
----------------------------------- -- Area: Windurst Woods -- NPC: Kohpe Takhabio -- Working 100% ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(423) end function onEventUpdate(player,csid,option) end function onEventFinish(player,cs...
local _, nMainbar = ... local cfg = nMainbar.Config local menuList = { { text = MAINMENU_BUTTON, isTitle = true, notCheckable = true, }, { text = CHARACTER_BUTTON, icon = [[Interface\PaperDollInfoFrame\UI-EquipmentManager-Toggle]], func = function() ...
local R = require "rigel" local SOC = require "generators.soc" local C = require "generators.examplescommon" local harness = require "generators.harnessSOC" local G = require "generators.core" local RM = require "generators.modules" local types = require "types" local SDF = require "sdf" types.export() local Zynq = req...
--[[- Event/Callback system @module RFF.EventSystem @author Fenris_Wolf @release 1.0-alpha @copyright 2018 ]] local EventSystem = {} local Logger = require(ENV_RFF_PATH .. "interface/logger") local EventTable = { } -- predefined events: EventTable.MagazineInsert = { } EventTable.MagazineEject = { } EventTable....
--UI design table local UI = {} local screenWidthUI = love.graphics.getWidth() local screenHeightUI = love.graphics.getHeight() -- buttons load and create --------------------------------------------------------------------- UI.buttonsMenuList = {} UI.forEachWorldButtonsList = {} -- (buttonList, bType, w, h, x, y, n...
local chance = require("chance") chance:seed(os.time()) print("address", chance:address()) print("bool", chance:bool()) print("character", chance:character()) print("consonant", chance:consonant()) print("female", chance:female()) print(" w/last", chance:female(true)) print("hash", chance:hash()) print("integer", cha...
--[[--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------]] function EFFECT:Init(data) self.Origin = data:GetOrigin() self.DirVec = data:GetNormal() self.Radius =...
vec = require("hump.vector-light") require("oo") require("util") -- Fuck... -- Do we have separate AI objects which tell the controller -- what to do, or does the controller just make its own decisions? -- Having a high-level "do this, do that" layer separate from a low-level -- "go here, turn left, fire, turn right,...
local materials = { "4c5f5nk", --8 "mONPuyy", --16 "icx1Qbq", --32 "TpwrpKe", --64 "E8QbV5i", --128 "wAr5H1x", --256 "g52zxtK", --512 "9tHAUp6", --1024 "XAYX2uH" --2048 } local max = math.max function RPGM.DrawCircle(x, y, w, h, col) local size = max(w, h) local id = materi...
print("Priming run.") GT = {} function tellme() io.write("This is coming from lua.tellme.\n") end function square(n) io.write("Within callfuncscript.lua fcn, arg=") io.write(tostring(n)) n=n*n io.write(", squre=") io.write(tostring(n)) print(".") return n end function tweaktable(tab_in) --local tab_out = {...
local entMeta = FindMetaTable("Entity") -- Maintains entities that are to be removed after disconnect local queuedForRemoval = {} --[[--------------------------------------------------------------------------- DarkRP hooks ---------------------------------------------------------------------------]] function GM:Initi...
console.clear() rshift = bit.rshift -- Converts from SNES address model to flat address model (for ROM access) function snes2pc(p) return bit.band(rshift(p, 1), 0x3F8000) + bit.band(p, 0x7FFF) end -- Define memory access functions function makeMemoryReader(f) return function(p) if p < 0x8...
local a = "hello,world!" return a;
require "lfs" module("orbit.cache", package.seeall) local function pathinfo_to_file(path_info) local atom = path_info:find("/xml$") if atom then path_info = path_info:sub(2, atom - 1) else path_info = path_info:sub(2, #path_info) end path_info = string.gsub(path_info, "/", "-") if path_...
require('luvit-test/helper') local co = require('coroutine') local _ = require('../lib/ludash') -- identity assert(_.identity(1) == 1) assert(_.identity('abc') == 'abc') -- times local func = ('Lua programming'):gmatch('.') local splitted = _.times(5, func) equal(splitted, {'L', 'u', 'a', ' ', 'p'}) -- uniqueId ass...
workspace "boostsimd" configurations { "Test" } startproject "boostsimd" project "boostsimd" kind "ConsoleApp" files "main.cpp" zpm.uses "Zefiros-Software/boostsimd"
local lspconfig = require "lspconfig" local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.documentationFormat = { "markdown", } capabilities.textDocument.completion.completionItem.snippetSupport = true capabilities.textDocument.completion.completionIte...