content
stringlengths
5
1.05M
ModUtil.RegisterMod("HeavenOrHellMode") ModUtil.WrapBaseFunction("CreateNewHero", function(baseFunc, prevRun, args) local hero = baseFunc(prevRun, args) if GetNumMetaUpgrades("NoInvulnerabilityShrineUpgrade") >= 1 then AddIncomingDamageModifier( hero, { Name = "HeavenOrHellMode", GlobalMultiplier =...
return { LogicPlugins = { PitchShifter = "Pitch Shifter II", }, CommandEditor = { KeyDetailPanel = "_NS:273", SaveButton = "_NS:50", }, ExportDialog = { BackgroundImage = "_NS:17", }, MediaImporter = { MainPanel = "_NS:39", }, ColorBoard = { ColorBoard = "Color Boar...
local ipairs = ipairs local _M = {} -- splits strings into host and port local function parse_addr(addr) local _, _, host, port = addr:find("([^:]+):([^:]+)") if host and port then return {host=host, port=port} else return nil, "error in parsing upstream address!" end end function _M.ge...
function PowerBomb.main() end
--ワンタイム・パスコード --One-Time Passcode --Script by nekrozar function c101002061.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,101002061+EFFECT_COUNT_CODE_OATH) e1:SetT...
BetterVoteSystem.Print = function (msg) print(os.date("%H:%M:%S", os.time()).." - [Better Vote System] "..msg) end BetterVoteSystem.httpError = function (error) BetterVoteSystem.Print("Web request failed") BetterVoteSystem.Print("Error details: " .. error) end BetterVoteSystem.GiveReward = function (ply) ...
local Packet = require "lumina.protocol.packet" local lfs = require "lfs" local test_utils = require "spec.test_utils" describe("Packet", function() describe("flat files #f", function() local base_path = "test-messages" for file_path in lfs.dir(base_path) do if file_path == '.' or file_...
local AnimationAbility = script:GetCustomProperty("AnimationAbility"):WaitForObject() local Attachment = script:GetCustomProperty("Attachment"):WaitForObject() local Orc_VFX = script:GetCustomProperty("Orc_VFX"):WaitForObject() local Elf_VFX = script:GetCustomProperty("Elf_VFX"):WaitForObject() local LOCAL_PLAYER = Ga...
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local process = require "nvim-lsp-installer.process" local std = require "nvim-lsp-installer.installers.std" local context = require "nvim-lsp-installer.installers.context" local platform = require "nvim-lsp-installer.plat...
-- LICENSE: The MIT License (MIT) -- -- Copyright (c) 2014 Aaron Westendorf -- -- adaptation to Microsoft Azure -- Author: Pascal Trouvin -- -- History: -- 20161020: fix '==' in cookies deletion -- 20160208: do not expose OAUTHv2 JWT token anymore: security issue, -- because unable to verify the signature a...
local lu = require 'luaunit' local openssl = require 'openssl' local helper = require'helper' TestStore = {} function TestStore:testAll() local ca = helper.get_ca() local store = ca:get_store() assert(store:trust(true)) store:add(ca.cacert) store:add(ca.crl) store:load('luasec/certs/serverA.pem', 'luasec...
DntgtestController.resetTimeService = function (slot0) slot0.MAX_DIFFRENCE = 2000 slot0.SYNC_TIME = 3 slot0.m_startTime = socket.gettime() slot3 = slot0 slot0.m_dwServerTick = slot0.GetClientTick(slot2) slot0.m_lDiffrenceTick = 0 slot0.m_dwTrade = 0 slot0.m_bReady = false slot0.m_nSyncTime = 0 end DntgtestCon...
env = require('test_run') test_run = env.new() test_run:cmd("create server test with script='box/simple-tuple-size-increasing.lua'") test_run:cmd("start server test") test_run:cmd("switch test") digest = require('digest') s = box.schema.space.create('test') test_run:cmd("setopt delimiter ';'") _ = s:create_index('prim...
local t = require "test" local ecs = require "ecs" local u = require "util" u.test_defaults() local P1 = ecs.pipeline("P1", "flecs.pipeline.OnUpdate, flecs.pipeline.PostUpdate") local P2 = ecs.pipeline("P2", "flecs.pipeline.OnUpdate") ecs.set_pipeline(P1) assert(ecs.get_pipeline() == P1) local Struct = ...
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2004. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Common code for all the vehicle implementations -- ----------...
player = { pos = { X = 20, Y = 30, }, filename = "res/images/player.png", HP = 20, -- you can also have comments } -- Global Variables boolean = false tmpglobal = Vector3() vec3 = nil float = 0.0 lalala = 1 -- Global statement a.k.a will only run once if write("Hello") then write("Wo...
------------------------------------------------------------------------------------------------------------ -- /// Some default models so can easily do simple things -- /// Also this is a reference for math generated geometry -- /// -- luajit helpers :) local tinsert = table.insert local tremove = tabl...
local Music = require("levelhead.data.music") local Zones = require("levelhead.data.zones") local Lang = require("levelhead.data.languages") local Misc = require("levelhead.misc") local Settings = Class() function Settings:initialize() self.prefix = string.rep(string.char(0x00),6) self.campaignMarker =...
local awful_bad = 1073741823 local inf_bad = 10000 local eject_penalty = -inf_bad local deplorable = 100000 SILE.pagebuilder = { collateVboxes = function(vboxlist) local i local output = SILE.nodefactory.newVbox({nodes = {} }) local h = SILE.length.new({}) for i=1,#vboxlist do table.insert(outp...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP","vrp_kikkert") --SERVER EVENTET-- vRP.defInventoryItem({"kikkert","Kikkert","Bruges til at se ting på lang afstand", function(args) local ...
local args = {...} if #args == 0 then repeat local read = require("term").read() if read then io.write(read) end until not read else for i = 1, #args do local file, reason = io.open(args[i],"rb")--TODO: make b an option if not file then io.stderr:write(reason .. "\n") return ...
local S = pulse_network.S local api = trinium.api local nei = trinium.nei local recipes = trinium.recipes minetest.register_craftitem("pulse_network:blank_pattern", { description = S"Blank Pattern", inventory_image = "pulse_network.blank_pattern.png", }) minetest.register_craftitem("pulse_network:encoded_pattern", ...
--region CType_Tester.lua --Author : jefflwq --Date : 2015/2/28 --说明 : CType 类的测试程序 --endregion if true then --false:启用测试, true:禁用测试(测试无问题后请设为true) return end using "Joop" using "System" using "System.Tester" using "System.Collections.Generic" namespace "Testers.JLib" { static_clas...
local dispatcher = require "nvim-lsp-installer.dispatcher" local fs = require "nvim-lsp-installer.fs" local log = require "nvim-lsp-installer.log" local platform = require "nvim-lsp-installer.platform" local settings = require "nvim-lsp-installer.settings" local installers = require "nvim-lsp-installer.installers" loca...
local NodeSet = {} local methods = {} local metatable = {} function metatable.__index(node_set, key) return methods[key] end function metatable.__add(added_node_set, add_node_set) return methods.merge(added_node_set, add_node_set) end local function map(values, func) local converted_values = {} for i, valu...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by hartnett. --- DateTime: 2019/11/8 11:22 --- local fetch_local_conf = require("apisix.core.config_local").local_conf local redis_new = require("resty.redis").new local clone_tab = require("table.clone") local function new() local local_conf, e...
dofile('../scripts/run-turn.lua') turn = get_turn() eressea.free_game() print("trying to read data from " .. turn) eressea.read_game(turn .. ".dat")
local event = require("event") local gpu = component.proxy(component.list("gpu")()) local w, h = gpu.getResolution() local term = {} _OSENV.term = _OSENV.term or { x = 1, y = 1 } local function roundToNearest(n, multiple) local n = n == 0 and 1 or n local remainder = n % multiple if remainder == 0 th...
-- vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]] -- vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]] -- vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]] -- vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]] -- vim.cmd [[hig...
--ZFUNC-isposixname-v1 local function isposixname( name ) --> res, i if #name == 0 then return false, 1 end local index = string.find( name, "[^A-Za-z0-9%._%-]" ) if index then return false, index else return true, nil end end return isposixname
test_run = require('test_run').new() fiber = require('fiber') log = require('log') test_util = require('util') util = require('vshard.util') test_run:cmd("setopt delimiter ';'") fake_M = { reloadable_func = nil, module_version = 1, }; test_run:cmd("setopt delimiter ''"); function slow_fail() fiber.sleep(0.01) ...
minetest.register_node("ks_metals:aluminium", { description = "Aluminium", tiles = {"metals.aluminium_block.png"}, groups = {metal = 1, solid_metal = 1, aluminium = 1, chippable = 2}, }) minetest.register_node("ks_metals:copper", { description = "Copper", tiles = {"metals.copper_block.png"}, groups = {metal = 1,...
-- player options: -- controls -- color -- name -- game options -- random variables: -- -- game colors: -- wall color -- background color -- powerups
ITEM.Name = 'Rockety' ITEM.Price = 1000 ITEM.Model = 'models/Items/AR2_Grenade.mdl' ITEM.Follower = 'rockety' function ITEM:OnEquip(ply, modifications) ply:Fo_CreateFollower( self.Follower ) end function ITEM:OnHolster(ply) ply:Fo_RemoveFollower( self.Follower ) end
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;examples/?.lua" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local socket = require "clientsocket" local proto = require "proto" local sproto = require "sproto" local host = sproto.new(proto.s2c):host "package" local request = host:att...
-- A solution contains projects, and defines the available configurations solution "examples" configurations { "Debug", "Release", } defines { "UNICODE", "_UNICODE", } includedirs { "../include", } configuration "Debug" do defines { "DEBUG" } flags { "Symbols" } targetdir "../../debug" l...
bSecure.Steam.Config = {} --[[------------------------------------- Name: API Key Default: "" Description: Get your API key from https://steamcommunity.com/dev. It's used to lookup data about an individual --]]------------------------------------- bSecure.Steam.Config["APIKey"] = "" --[[-----...
local M = {} function M.setup(use) -- Dashboard -- use { -- "glepnir/dashboard-nvim", -- config = function() -- require("config.dashboard").setup() -- end, -- } -- use { "mhinz/vim-startify" } -- use { -- "startup-nvim/startup.nvim", -- config = function() -- require("startup"...
local scenario = function(ctx) vim.o.termguicolors = true vim.o.background = "dark" require("gesture.view").click = function() vim.cmd("redraw!") end local gesture = require("gesture") gesture.register({ name = "example name", inputs = {gesture.right(), gesture.down()}, action = "normal! gg...
--[[ Filename: VehicleManagerS.lua Authors: Sam@ke --]] VehicleManagerS = {} function VehicleManagerS:constructor(parent) mainOutput("VehicleManagerS was loaded.") self.mainClass = parent self.vehicleStats = {} self.vehicleStats[602] = { mass = 150, turnMass = 6.5, dragCoeff = 9.1, cent...
a_mighty_boar_tremble = class({}) LinkLuaModifier( 'a_mighty_boar_tremble_modifier', 'encounters/a_mighty_boar/a_mighty_boar_tremble_modifier', LUA_MODIFIER_MOTION_NONE ) function a_mighty_boar_tremble:OnSpellStart() --- Get Caster, Victim, Player, Point --- local caster = self:GetCaster() local caster_loc = cas...
--!A cross-platform build utility based on Lua -- -- 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...
data:extend({ { type = "bool-setting", name = "respawn-starter-armor", setting_type = "runtime-global", default_value = true, order = "a" }, { type = "bool-setting", name = "respawn-starter-armor-intermediates", setting_type = "runtime-global",...
stores = { [1] = { ["usability"] = false, ["store_name"] = "初级金币商店", ["commodities"] = { ["25金币购买800生命值"] = function() local hero_propertys = get_hero_property() if hero_propertys["gold"] >= 25 then hero_propertys["gold...
local debug_utils = {} function debug_utils.sourced_filepath() local str = debug.getinfo(2, "S").source:sub(2) return str end function debug_utils.sourced_filename() local str = debug_utils.sourced_filepath() return str:match "^.*/(.*).lua$" or str end return debug_utils
local SUPER = Box local NewClass = { name = "Sprite", anchor_x = 0.5, anchor_y = 0.5, texture = nil, quad = nil, } function NewClass:create(img, name, quad) local o = SUPER.create(self, name) o:setTexture(img) o:setQuad(quad) o:resize() return o; end function NewCla...
-- Example: Getting the mouse position function love.load() local f = love.graphics.newFont(love._vera_ttf, 14) love.graphics.setFont(f) end function love.draw() -- Gets the x- and y-position of the mouse. local x, y = love.mouse.getPosition() -- Draws the position on screen. love.graphics.pri...
-- ---------------------------------- -- -- --------- Fury-like mesh --------- -- -- -------- Fury mesh by: JF -------- -- -- ----- Modified by Tasty Kiwi ----- -- -- ---------------------------------- -- require("/static/graphics/helpers/color_helpers.lua") require("/static/graphics/helpers/geometric_helpers.l...
local flatten do local __flatten __flatten = function(t, buffer) local _exp_0 = type(t) if "string" == _exp_0 then buffer[#buffer + 1] = t elseif "number" == _exp_0 then buffer[#buffer + 1] = tostring(t) elseif "table" == _exp_0 then for _index_0 = 1, #t do local thing = t[...
local M = {} M.hooks = { internal = {} } M.hooks.clear = function() M.hooks.internal = {} end M.hooks.register = function(hook_name, subname, fn) if not M.hooks.internal[hook_name] then M.hooks.internal[hook_name] = {} end M.hooks.internal[hook_name][sub_name] = fn end M.hooks.call = function(hook_name, ......
AddCSLuaFile() SWEP.Base = "ls_base" SWEP.Primary.Ammo = "none" SWEP.Primary.Automatic = false SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = -1 SWEP.Primary.Sound = Sound("WeaponFrag.Roll") SWEP.Primary.ImpactSound = Sound("Canister.ImpactHard") function SWEP:PrimaryAttack() if self.PrePrimaryAttack then ...
----------------------------------- -- Area: Al Zahbi -- NPC: Nudahaal -- Type: Bonecraft Normal/Adv. Image Support -- !pos -57.056 -7 -88.377 48 ----------------------------------- require("scripts/globals/status") require("scripts/globals/crafting") local ID = require("scripts/zones/Al_Zahbi/IDs") ------------------...
require "utils" classes = {} local colors = {"A", "B", "C", "D", "E", "F"} classes.BaseCrystal= {} function classes.BaseCrystal:new(color) local object = {} if utils.checkElement(colors, color) or color == nil then object.color = color or colors[math.random(1, #colors)] object.status = t...
stoos_imperial_ensign = Creature:new { objectName = "", socialGroup = "imperial", faction = "imperial", level = 30, chanceHit = 0.390000, damageMin = 290, damageMax = 300, baseXp = 2914, baseHAM = 8400, baseHAMmax = 10200, armor = 0, resists = {0,45,0,-1,40,-1,40,-1,-1}, meatType = "", meatA...
local function getTimes(npsPerMeasure, timingData) if (npsPerMeasure == nil) then return {firstSecond=0, lastSecond=0, totalSeconds=0} end -- insane, but whatever local totalMeasures = 0 for i, a in ipairs(npsPerMeasure) do totalMeasures = totalMeasures + 1 end l...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISDeflateTire : ISBaseTimedAction ISDeflateTire = ISBaseTimedAction:derive("ISDef...
local mod = {} function mod.get_safe_env() return { _VERSION = _VERSION, assert = assert, coroutine = { create = coroutine.create, resume = coroutine.resume, running = coroutine.running, status = coroutine.status, wrap = coroutine.wrap, yield = coroutine.yiel...
local request = require("lapis.spec.request").mock_request local config = require("lapis.config").get() local app = require("app") local T = require("u-test") local expect = T.expect local trve = T.is_not_nil local json = require("cjson") local g_ngx = function() expect("table")(type(ngx)) end local cfg = function() ...
stationState = {} function stationState.enter() if world.entityExists(self.stationId or -1) == nil then return nil end return { pos = world.callScriptedEntity(self.stationId, "getLandingPos") } end function stationState.update(dt, sd) moveTo(sd.pos, dt) local pos = entity.position() if world.magni...
-- See LICENSE for terms return { PlaceObj("ModItemOptionToggle", { "name", "SkipDefault", "DisplayName", T(302535920011724, "Skip Default Logos"), "Help", T(302535920011725, "Enable this to not use default logos and only use modded ones."), "DefaultValue", false, }), }
local redis = require 'redis' local client = redis.connect('127.0.0.1', 6379) local response = client:ping() -- true print(response)
local librdkafka = require 'rdkafka.librdkafka' local ffi = require 'ffi' local KafkaTopicPartitionList = {} KafkaTopicPartitionList.__index = KafkaTopicPartitionList function KafkaTopicPartitionList.create(topic_cnt, original_config) local config = {} setmetatable(config, KafkaTopicPartitionList) if ori...
local mob = class('mob') function mob:initialize() self.dx = 0 self.dy = 0 self.equipped_items = {} end function mob:draw() if self.equipped_items then for _ , x in pairs(self.equipped_items) do x:draw() end end local alpha = 255 if (not self.dying) and self.iframe_end_time and self.iframe...
require"imlua" require"imlua_process" function save_histogram (hist, filename, format) local height = 200 -- altura da imagem local max = math.max(unpack(hist)) -- pega o maior valor do histograma local n = table.getn(hist) + 1 -- zero-based local image = im.ImageCreate(n, height, im.GRAY, im.BYTE) -- cria ...
package.path = os.getenv("HOME") .. "/.luarocks/share/lua/5.2/?.lua;" .. os.getenv("HOME") .. "/.luarocks/share/lua/5.2/?/init.lua;" .. package.path package.cpath = os.getenv("HOME") .. "/.luarocks/lib/lua/5.2/?.so;" .. package.cpath local SecretCache = require("lightning-dissector.secret-cache").SecretCache ...
local mod = DBM:NewMod("WaycrestTrash", "DBM-Party-BfA", 10) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17755 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 263959 265881 265876 265368 266036 278551 265759 264038 263905 26540...
local tArgs = {...} if #tArgs < 1 then print("Usage: mkdir <path>") return end local dir = tArgs[1] if dir:sub(1, 1) == "~" then dir = "/"..(currentUser == "root" and systemDirs.root or fs.combine(systemDirs.users, currentUser))..dir:sub(2) end local newDir = shell.resolve(dir) fs.makeDir(newDir)
import "./library.lua" -- libraryTable. -> field1, field2 local FieldTable = { field1 = "11", ["field2"] = "22", [33] = "33", withoutInit} FieldTable.field4 = "44" FieldTable["field5"] = "55" FieldTable[66] = "66" FieldTable2 = { field1 = "11", ["field2"] = "22" } FieldTable3 = { } -- FieldTable. -> field1, field2, ...
local tablex = require("dungen.tablex") local Config = require("dungen.config") local Generator = require("dungen.generator") local Renderer = require("dungen.renderer") io.stdout:setvbuf('no') -- show debug output live in SublimeText console local texture, info_texts, pointer_texts = nil, {}, {} local window_w, win...
--ZFUNC-removeif-v1 local function removeif( arr, fv, init ) --> removed init = init or 1 local removed = {} local i = 1 while i <= #arr do if fv( arr[ i ] ) then local r = table.remove( arr, i ) table.insert( removed, r ) else i = i+1 end end return remove...
addEventHandler ( "onPlayerQuit", root, function() local previousChannel = playerChannels[source] --Remove them from any previous channels if tonumber(previousChannel) then channels[previousChannel][source] = nil --Delete the empty table if he was the last player if not next(channels[previousChannel]) ...
require("gameData/dataInterfaceBase"); GroupGameInterface = class(DataInterfaceBase); GroupGameInterface.getInstance = function() if not GroupGameInterface.s_instance then GroupGameInterface.s_instance = new(GroupGameInterface); end return GroupGameInterface.s_instance; end GroupGameInterface.cto...
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------- Label creator -------------------------------- ---------------------------------------------------------------------------- function goo...
return {'ary','aryan','arys','aryans'}
require 'util/table-save.lua' local table1 = {} table1.string = "a string" table1.anotherTable = {'a', 'b', 'c'} -- table.save( table1, "test_tbl.lua" ) local table2 = table.load( "test_tbl.lua" ) print (table2)
local M = {} function M.new_rpc(connection, parser) local rpc = { connection = connection, parser = parser, enviroment = {}, waiters = {}, rpc_ids = 0 } function rpc._get_result(self, data) local id, result = data.id, data.result for i, waiter in ipairs(self.waiters) do if waiter.id == id then ...
local telescope = require('telescope') local actions = require('telescope.actions') local builtin = require('telescope.builtin') telescope.setup{ defaults = { layout_config = { prompt_position = "top", }, sorting_strategy = "ascending", mappings = { i = { ["<esc>"] = actions.close...
require 'nn' require 'libcudafft' tcbp = {} tcbp.version = 1.0-1 -- support modules torch.include('tcbp', 'cbp.lua') torch.include('tcbp', 'ssr.lua') -- prevent likely name conflicts nn.tcbp = tcbp
--Design/Image/Script: wyykak c13959997={} Duel.LoadScript("c13959997.lua") local cc=13959998 local this=_G["c"..cc] local rerollc={76815942,17994645,55863245,44155002,68319538,7391448,75326861,34408491,24221808,87460579,40939228,21123811} this.maincount=40 this.extracount=20 this.useBanList=true this.skillEnabled=fa...
-- -- log.lua -- -- Copyright (c) 2016 rxi, jpuigcerver -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- -- LICENSE: -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and ass...
-- Dat View -- -- Class: GGPK File -- GGPK File -- local ipairs = ipairs local t_insert = table.insert local t_remove = table.remove local GGPKClass = newClass("GGPKFile", function(self, path) self.path = path self.ggpk = { } self:ReadRecord(self.ggpk) for i = 1, self.ggpk.numRecord do self:ReadRecord(self.ggpk...
--[[ Copyright (c) 2015 gameboxcloud.com 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, modify, merge, publish, distrib...
dhtTimer = tmr.create() local tmpStatus = 0 tmpStatus, temp, humidity = dht.readxx(1) dhtTimer:register(60000, tmr.ALARM_AUTO, function (t) status, temp, humidity = dht.readxx(1) if status == 0 then mq:publish(MQTT_TEMP_TOPIC, temp, 0, 0) mq:publish(MQTT_HUMIDITY_TOPIC, humidity, 0, 0) ...
imperial_retreat_guard = Creature:new { objectName = "@mob/creature_names:imperial_retreat_guard", socialGroup = "imperial", faction = "imperial", level = 72, chanceHit = 0.75, damageMin = 520, damageMax = 750, baseXp = 6931, baseHAM = 1200, baseHAMmax = 1500, armor = 0, resists = {0,0,0,0,30,-1,30,-1,-1}, ...
-- A script to merge Questie objectDB locale to ClassicCodex -- ClassicCodex version: @project-version@, object locale num: 14071 -- Questie version: 6.5.1, object locale num: 9065 if select(4, GetAddOnInfo('MergeQuestieToCodexDB')) then return end local D = CodexDB.objects.loc D[3265]="" D[6286]="" D[6287]="" D[18047]...
harmonia = rawget(_G, "harmonia") or {} harmonia.exp = harmonia.exp or {} local exp_system = harmonia_exp.ExpSystem:new() minetest.register_on_mods_loaded(exp_system:method("init")) minetest.register_on_shutdown(exp_system:method("terminate")) minetest.register_on_joinplayer(exp_system:method("on_player_join")) harm...
local Scheduler = require('app.helpers.Scheduler') local SoundMng = require('app.helpers.SoundMng') local tools = require('app.helpers.tools') local ConvertToTableView = require('app.helpers.ConvertToTableView') local cache = require('app.helpers.cache') local app = require('app.App'):instance() local GVSetScoreView =...
local self = {} mUI.ViewManager = self self.defaultView = { x = 0, y = 0, w = ScrW(), h = ScrH() } self.defaultView.limit = self.defaultView self.defaultView.real = self.defaultView self.viewStack = { self.defaultView } function self:ResolutionChange(scrW,scrH) self.defaultView.w = scrW se...
--- === plugins.finalcutpro.midi.controls.controlui.relative === --- --- Adds the ability to control any Final Cut Pro User Interface Element via a MIDI Knob/Slider. local require = require local log = require "hs.logger".new "midiCtrlSlider" local ax = require "hs.axuielement" local e...
local function create_sprite(name) local cs = {} cs.type = "sprite" cs.name = "lm_wire_" .. name cs.filename = "__Logistic-Machines__/graphics/gui/" .. name .. ".png" cs.width = 500 cs.height = 500 cs.flags = { "gui-icon" } return cs end data:extend({ create_sprite("rc_to_sub_red_co...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local DT = E:GetModule('DataTexts') --Cache global variables --Lua functions local time = time local max = math.max local join = string.join --WoW API / Variables local UnitGUID = UnitGUID local CombatLogGetCurrentE...
-- See LICENSE for terms local PlaceObj = PlaceObj local T = T local properties = {} local c = 0 local lightmodels = { "Terraformed", "TheMartian", } for i = 1, #lightmodels do local id = lightmodels[i] c = c + 1 properties[c] = PlaceObj("ModItemOptionToggle", { "name", "mod_" .. id, "DisplayName", id, ...
stringx = require('pl.stringx') require 'nngraph' require 'nn' require 'torch' require 'cunn' require 'io' require 'base.lua' data = require('data.lua') data.traindataset(1) vocab = data.vocab_map ivocab = data.inverse_vocab_map model = torch.load('/scratch/mu388/model.net','ascii') function readline() local line = ...
return { { effect_list = { { type = "BattleBuffAddBulletAttr", trigger = { "onBulletCreate" }, arg_list = { attr = "cri", number = 0.01 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "damageAgains...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2427 --------------------------------- --[[ Required Shared libraries ]] local common = require("user_modules/sequences/actions") local runner = require('user_...
--[[Player Parts]]-- Player = game:GetService("Players").yfc---Name Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] LeftLeg = Character["Left Leg"] RightArm = Character["Right Arm"] Right...
require "behaviours/wander" require "behaviours/faceentity" require "behaviours/chaseandattack" require "behaviours/runaway" require "behaviours/panic" require "behaviours/follow" require "behaviours/doaction" local SchPikoBrain = Class(Brain, function(self, inst) Brain._ctor(self, inst) end) local MI...
function createVehicleForPlayer(player, command, model) local db = exports.db:getConnection() local x, y, z = getElementPosition(player) y = y + 5 --After creating vehicle, save them, create new row database (to configure DB stuff go into db.lua) dbExec(db, 'INSERT INTO cars (model, x, y, z...
local syntax_java = { bgcolor = "darkblue"; bracketmatch = true; { name = "LongComment"; fgcolor = "gray7"; pat_open = [[ \/\* ]]; pat_close = [[ \*\/ ]]; }, { name = "Comment"; fgcolor = "gray7"; pattern = [[ \/\/.* ]]; }, { name = "Literal"; fgcolor = "white"; pattern = [[ (...
--[[ Author: kritth Date: 9.1.2015. Bubbles seen only to ally as pre-effect ]] function torrent_bubble_allies( keys ) local caster = keys.caster local allHeroes = HeroList:GetAllHeroes() local delay = keys.ability:GetLevelSpecialValueFor( "delay", keys.ability:GetLevel() - 1 ) local particleName = "particles/u...