content
stringlengths
5
1.05M
if os.getenv('LOCAL_LUA_DEBUGGER_VSCODE') == '1' then require('lldebugger').start() end require 'src/global' local backgroundX = 0 function love.load () math.randomseed(os.time()) love.graphics.setDefaultFilter('nearest', 'nearest') Push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT,...
return Def.ActorFrame { --OnCommand=cmd(sleep,999); LoadActor(THEME:GetPathG("","_BGMovies/gameover"))..{ InitCommand=cmd(Cover); }; LoadActor(THEME:GetPathS("ScreenGameOver","music"))..{ OnCommand=cmd(play); }; Def.Quad{ InitCommand=cmd(diffuse,Color("White");setsize,SCREEN_WIDTH,SCREEN_HEIGH...
local hdoor_list = { --Number , Description , default image { "cobble" , "Hidden Cobble Door", "default_cobble"}, { "stone" , "Hidden Stone Door", "default_stone"}, { "wood", "Hidden Wood Door", "default_wood"}, { "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"}, { "brick", "Hidden Brick Door", "...
common = dofile("common.lua") assert = common.assert local url = require("url") --local sys = require("sys") -- URLs to parse, and expected data -- { url = parsed } local parseTests = { ["//some_path"] = { href = "//some_path", pathname = "//some_path" }, ["http://www.narwhaljs.org/blog/categories?id=ne...
korriban_world = { lairSpawns = { { lairTemplateName = "tatooine_outlaw_camp_neutral_medium_theater", spawnLimit = -1, minDifficulty = 2, maxDifficulty = 11, numberToSpawn = 0, weighting = 15, size = 25 }, { lairTemplateName = "tatooine_womprat_womprat_neutral_medium_boss_01", spawnLi...
//________________________________ // // NS2 CustomEntitesMod // Made by JimWest 2012 // //________________________________ Script.Load("lua/FunctionContracts.lua") Script.Load("lua/PathingUtility.lua") ScaledModelMixin = CreateMixin( ScaledModelMixin ) ScaledModelMixin.type = "ScaledModel" ScaledModelMixin.ex...
local name, value = ... _G[name] = value
--[[ Author: Noya Used by: Pizzalol Date: 14.03.2015. Levels up the ability_name to the same level of the ability that runs this ]] function LevelUpAbility( event ) local caster = event.caster local this_ability = event.ability local this_abilityName = this_ability:GetAbilityName() local this_abilityLevel = t...
Config = { offset = 0, original_volume = 100, system_muted = false, code_seek_just_performed = false, checker = {} } return Config
-- 矩形モジュール local Rectangle = {} -- 初期化 function Rectangle:initialize(x, y, w, h) self.x = x or self.x or 0 self.y = y or self.y or 0 self.width = w or self.width or 0 self.height = h or self.height or 0 end -- 矩形の描画 function Rectangle:drawRectangle() love.graphics.rectangle('line', self:left(), s...
local PluginRoot = script.Parent.Parent.Parent local Modules = PluginRoot.Core.Modules local Utilities = require(Modules.Utilities) local CameraState = require(Modules.CameraState) local InputState = require(Modules.InputState) local PairSampler = require(Modules.PairSampler) local Constants = require(Modules.Constants...
-- example top level script for web based build -- copyright 2016 Samuel Baird MIT Licence local platform = require('lt.moonshine.platform') local app = require('lt.app') -- preload assets then launch app app.launch( -- preferred logical screen size (will adjust logical size to canvas dimensions) { width = 480, ...
-- -- EXF: Example Framework -- -- This should make examples easier and more enjoyable to use. -- All examples in one application! Yaay! -- -- Updated by Dresenpai -- Updated again by EntranceJew local exf = require 'exf' function love.load() exf:load() end function love.update(dt) end function love.draw() end func...
package("gr") set_homepage("https://gr-framework.org/") set_description("GR framework: a graphics library for visualisation applications") set_license("MIT") if is_plat("windows") then if is_arch("x64") then add_urls("https://github.com/sciapp/gr/releases/download/v$(version)/gr-$(...
local L = LibStub("AceLocale-3.0"):NewLocale("SimpleChatCleaner", "enUS", true) if not L then return end L["Simple Chat Cleaner"] = true L["Debug"] = true L["enabled"] = true L["Enabled"] = true L["disabled"] = true L["Enables the Chat Cleaner"] = true L["Toggles debug mode"] = true L["Match Whole Words"] = true L["F...
local _M = {} function _M.set_tracer_provider(tp) _M.tracer_provider = tp end function _M.get_tracer_provider() return _M.tracer_provider end function _M.tracer(name, opts) return _M.tracer_provider:tracer(name, opts) end return _M
require 'image' require 'nn' require 'qt' local optnet = require 'optnet' torch.setdefaulttensortype('torch.FloatTensor') torch.manualSeed(1) opt = { batchSize = 64, -- number of samples to produce noisetype = 'normal', -- type of noise distribution (uniform / normal). net = '', -- path...
local Spell = { } Spell.LearnTime = 60 Spell.Description = [[ A charm that allowed the caster to send out red sparks from their wand. The sparks were firework-like in appearance, and had a vast range, shooting up to a great height, then hovering in the spot where the caster aimed. ]] Spell.ApplyDelay = ...
-- This module contains everything for highlighting Hop. local M = {} -- Insert the highlights that Hop uses. function M.insert_highlights() -- Highlight used for the mono-sequence keys (i.e. sequence of 1). vim.api.nvim_command("highlight default HopNextKey guifg=#ff007c gui=bold ctermfg=198 cterm=bold") -- High...
-- Train an auto-encoder using config.json. require('torch') require('nn') require('optim') require('hdf5') require('cunn') require('lfs') --- Append the tensor tensor to the tensor acc which may initially be nil. local function appendTensor(acc, tensor) if acc == nil then acc = tensor:float() else acc = ...
local F, C = unpack(select(2, ...)) local UNITFRAME, cfg = F:GetModule('Unitframe'), C.unitframe function UNITFRAME:AddStatusIndicator(self) local statusIndicator = CreateFrame('Frame') local statusText = F.CreateFS(self.Health, 'pixel', '', nil, true) statusText:SetPoint('LEFT', self.HealthValue, 'RIGHT', 10, 0) ...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Chocolate Muffin"; ITEM.model = "models/griim/foodpack/muffin.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "A delicious, still moist muffin in a tin, with chocolate chips throughout it."; ITEM...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize() self.BaseClass.Initialize(self) self.damaged = 0 self.time = 0 self.water = 100 self.Active = 1 self:ShowOutput() end function ENT:Repair() self.BaseClass.Repair(self) self:SetColor(C...
Tracker:AddItems("items/common.json") Tracker:AddMaps("maps/maps.json") ScriptHost:LoadScript("scripts/logic.lua") Tracker:AddLocations("locations/virtual.json") Tracker:AddLocations("locations/johto.json") Tracker:AddLocations("locations/kanto.json") Tracker:AddLayouts("layouts/items.json") Tracker:AddLayouts("lay...
-- MENU local devmenu = { { "gvim", "gvim" } } local networkmenu = { { "firefox", "firefox" }, { "chromium", "chromium --disk-cache-size=268435456" }, { "thunderbird", "thunderbird" }, { "pidgin", "pidgin" }, { "skype", "skype" }, { "xchat", "xchat...
-- Behavior for warden (1) in the level gandriamines routine = function(O) O:gotoTile(36, 10.5) O:gotoTile(36, 5.5) end
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Calling a Pokemon", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/pokemon_released.png"}, {type = CONTENT_TYPES.TEXT, value = "To release a Pokemon in PSoul you can use two ways:\n\nThe first and simplest, is just clicking t...
--.--------------------------------------------- --. Rules_VC_To_MAIN.lua (Version:1.0) -- --. Applies rules from: -- --. all: VC_TEST -> GLB_SYS -- --. table: WORK_DEF_ROLES -> GLB_RUN -- --.--------------------------------------------- --.-------------------- ...
-- Event stuff based on the pubsub. --[[ The MIT License (MIT) Copyright (c) 2015 - 2016 Adrian Pistol 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...
local games = {} --############################################################################################################################################# --# State/Globals # --############...
--- Component to block input on specify zone by node -- @module Blocker -- @within BaseComponent -- @alias druid.blocker ---Trigger node -- @tfield node node --- local const = require("druid.const") local component = require("druid.component") local Blocker = component.create("blocker", { component.ON_INPUT }) --...
local snap = require "snap" local fzy = snap.get "consumer.fzy" local fzf = snap.get "consumer.fzf" local limit = snap.get "consumer.limit" local producer_file = snap.get "producer.ripgrep.file" local producer_jumplist = snap.get "producer.vim.jumplist" local producer_git = snap.get "producer.git.file" local producer_l...
if onServer() then local entity = Entity() if not entity.aiOwned then if entity.isShip or entity.isStation or entity.isDrone then entity:addScriptOnce("data/scripts/entity/avocontrol-shiptracker.lua") end end end
--[[ General options panel --]] local ADDON, Addon = ... local General = Addon:NewPanel('General') local L = LibStub('AceLocale-3.0'):GetLocale('Combuctor') local frame local Managed = General:NewCheckButton(L.ActPanel, L.ActPanelTip) Managed:SetPoint('TOPLEFT', 15, -120) Managed:SetScript('OnClick', function() ...
function createIAckMsg() local msgInfos={} msgInfos["1"]="@dst,uint16_t,2,0" msgInfos["2"]="@totalLgth,uint16_t,2,0" flags=0 handleIAck=structmsg2.createMsgFromList(msgInfos,0,flags); print("2") return handleIAck end createIAckMsg() print("done")
--[[ main.lua Starts the guild bank frame on demand --]] local MODULE = ... local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')] local Guild = Addon:NewModule('Guild') function Guild:OnEnable() self:RegisterMessage('CACHE_GUILD_OPENED', 'OnOpen') self:RegisterMessage('CACHE_GUILD_CLOSED', 'OnClo...
return { id = "T10201", mode = 2, once = true, scripts = { { actor = -1, side = 0, nameColor = "#a9f548", say = "右舷发现敌方旗舰!判断舰船型号中……未识别国籍型号", shake = { speed = 1, number = 3 }, typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } ...
ITEM.name = "Component" ITEM.desc = "A Weapon." ITEM.category = "Components" ITEM.model = "models/weapons/w_pistol.mdl" ITEM.width = 1 ITEM.height = 1 function ITEM:getDesc(partial) local desc = self.desc local customData = self:getData("custom", {}) if(customData.quality) then desc = desc .. "\nQuality: " ..cus...
--[[ A top-down action game made with Bitty Engine Copyright (C) 2021 Tony Wang, all rights reserved Engine page: https://paladin-t.github.io/bitty/ Game page: https://paladin-t.github.io/games/hb/ ]] Object = class({ --[[ Variables. ]] maxHp = 0, hp = 0, atk = 0, x = 0, y = 0, xOffset = nil, yOffset = nil,...
--region CTesterManager.lua --Author : jefflwq --Date : 2015/2/28 --说明 : CTesterManager类 --endregion using "Joop" using "System.Collections.Generic" namespace "System.Tester" { class "CTesterManager" : CContentManager { StartTest = function(self, ...) ...
-- sorted pairs function spairs(t, order) -- collect the keys local keys = {} for k in pairs(t) do keys[#keys+1] = k end -- if order function given, sort by it by passing the table and keys a, b -- otherwise just sort the keys if order then table.sort(keys, function(a, b) return order(t, a, b) end) ...
local fakeTilesHelper = require("helpers.fake_tiles") local dashBlock = {} dashBlock.name = "dashBlock" dashBlock.depth = 0 dashBlock.placements = { name = "dash_block", data = { tiletype = "3", blendin = true, canDash = true, permanent = true, width = 8, height...
local mod = DBM:NewMod(1719, "DBM-Party-Legion", 7, 800) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15008 $"):sub(12, -3)) mod:SetCreatureID(104217) mod:SetEncounterID(1869) mod:SetZone() mod.onlyMythic = true mod:RegisterCombat("combat") --Out of combat register, to support the s...
--[=[ @class TorsoIKUtils ]=] local require = require(script.Parent.loader).load(script) local IKUtils = require("IKUtils") local OFFSET_Y = 0.5 local TorsoIKUtils = {} local waistYawClamper = IKUtils.getDampenedAngleClamp( math.rad(20), math.rad(10)) local waistPitchClamper = IKUtils.getDampenedAngleClamp( ...
------------------------------------------------------------------------------------------- -- script_time_esp-dsmr-logger.lua door: Michel Groen ------------------------------------------------------------------------------------------- -- Aanpassingen gemaakt door Martijn Hendriks (2020-07-21) ivm V1 hardware -- ...
local function concommand_executed(ply, cmd, args) if not args[1] then return end local name = string.lower(args[1]) if not name or not FAdmin.Commands.List[name] then FAdmin.Messages.SendMessage(ply, 1, "Command does not exist!") return end local args2 = args table.remove(args2, 1) for k,v in pairs(args2)...
local botToken = ""; -- https://discord.com/developers/applications/ local status = "discord bot hosted on roblox"; --|| put me in serverscriptservice (DO NOT MAKE ME A LOCALSCRIPT) local WS = require(workspace.WebSocket); WS.Setup("http://your.ip.here", 2030); -- port forward it you dumby. netgear users go to routerlo...
return {'khedoe','khelawan'}
---------------------------- -- Deathrun -- -- Created by Skeyler.com -- ---------------------------- SS.MapList = {} function SS:AddMap(name, save) SS.MapList[name] = {name=name} if save then SS:Save() end end -- These will all get saved once the maps are loaded -- SS:AddMap(...
Locales['en'] = { ['trunk_closed'] = '~r~This trunk is closed.', ['no_veh_nearby'] = 'There is no vehicle nearby.', ['trunk_in_use'] = 'This trunk is in use.', ['trunk_weight'] = 'Trunk weight: ~g~%s / %s lb~w~', ['trunk_full'] = 'This trunk is full.', ['invali...
local colorscheme = "gruvbox" local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not status_ok then vim.notify("colorscheme " .. colorscheme .. " not found!") return end --vim.cmd [[ --try -- colorscheme darkplus --catch /^Vim\%((\a\+)\)\=:E185/ --colorscheme default --set background=dark ...
blank = { filename = "__StreetLamps__/graphics/transparent_pixel.png", priority = "extra-high", width = 1, height = 1 } -- Entity local hiddenLampEntity = table.deepcopy(data.raw["lamp"]["small-lamp"]) hiddenLampEntity.name = "substation-hidden-lamp" hiddenLampEntity.flags = {"placeable-off-grid", ...
local utf8 = require( "utf8" ) local luatable = require "LuaTable" local vector = require "vector" local ui = require "ui" local ProjectsArea = require "ProjectsArea" local DescriptionArea = require "DescriptionArea" local Journal = require "Journal" local Project = require "Project" -- todo: move somewhere local ...
invoke = { cast = function(player) local aether = 22000 local healthCost = math.floor(player.maxMagic *.4) local minMagic = 30 if (not player:canCast(1, 1, 0)) then return end if (player.magic < minMagic) then player:sendMinitext("Your will is too weak.") return end if (player.health - heal...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= -- DEFAULT Easy IFC Buttons Presets for SSK 2 -- ============================================================= -- -- labelsI...
function t() return function() end end local a = t{1, 2, 3, 4} local a = t{1} local a = t"a" local a = t"b" local a = t(1, 2, 3) t{2, 3} "a" t{2, 3, 4} {1}
-- The wheels we support/have. local Wheels = { "DDR1st1.5Wheel", "DDR2ndMIXCLUBVERSiON2Wheel", "DDR3rdMixPlusWheel", "DDR4thMixPlusWheel", "DDR5thMixWheel", --"DDRMAXWheel", ---"Popn10Wheel", } -- The Styles that are defined for the game mode. local GameModeStyles = { ["dance"] = "dance_single", ["pump"] = ...
--[[ A library to handle ingame resources, as provided by the Radsources XMLs. It will look for the files in Windower/plugins/resources. ]] _libs = _libs or {} _libs.resources = true _libs.functions = _libs.functions or require('functions') _libs.tables = _libs.tables or require('tables') _libs.strings = _libs.strings...
local mockagne = require 'mockagne' local when = mockagne.when local any = mockagne.any local verify = mockagne.verify describe('client - overlay', function() setup(function() _G.unpack = table.unpack _G.Locales = { en = { all = 'message', translatio...
return function (dir) assert(#dir > 0) local toolset = require "toolset" local list = {} local size = 0 local CHUNK_META = 1 local CHUNK_DATA = 2 local data = io.open(dir .. "/assets.bundle", 'w+b') local function add_file(path) print('pack file: ' .. path) local f = a...
Talk(3, "小兄弟,行走江湖记得多行侠仗义.", "talkname3", 0); do return end;
-- importd.lua -- 读取csv文件,并转成相应的格式 -- 声明模块名 IMPORT_D = {} setmetatable(IMPORT_D, {__index = _G}) local _ENV = IMPORT_D local splitChar = "\t" -- 定义内部接口,按照字母顺序排序 --读取csv文件,存入数组,以#开头的为注释 --正文第一行为字段的类型,第二行为字段名 local function handle_line(line) local row = {} --如果为#开头,不做任何处理 line = trim(line) if string....
local PluginRoot = script:FindFirstAncestor("SurfaceTool") local Roact: Roact = require(PluginRoot.Packages.Roact) local Llama = require(PluginRoot.Packages.Llama) local Contexts = require(script.Parent.Contexts) local e = Roact.createElement local Component = Roact.Component:extend("PluginAction") Component.defau...
object_building_kashyyyk_ptch_kashyyyk_fern_s02 = object_building_kashyyyk_shared_ptch_kashyyyk_fern_s02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_ptch_kashyyyk_fern_s02, "object/building/kashyyyk/ptch_kashyyyk_fern_s02.iff")
--proxy contracts type State = 'NOT_INITED' | 'COMMON' | 'STOPPED' type Storage = { admin:string, state:string, symbol:string, cdcContractAddr: string, feederContractAddr: string, --- stableTokenAddr: string, tokenDebtInfo: Map<string> } var M = Contract<Storage>() let function get_fr...
-- Copyright 2022 philh30 -- -- 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 writ...
-- -- C'Thun Key Bind - World of Warcraft Add'On for key binding. -- Author: Alexander Iglin (savinggalaxyforfood@gmail.com) -- SlashCmdList["CTHUN"] = function(msg) ProcessInput(msg) end SLASH_CTHUN1 = "/cthun" local EventFrame = CreateFrame("Frame") EventFrame:RegisterEvent("PLAYER_LOGIN") EventFrame:SetScript(...
WEPS = {} function WEPS.TypeForWeapon(class) local tbl = util.WeaponForClass(class) return tbl and tbl.Kind or WEAPON_NONE end -- You'd expect this to go on the weapon entity, but we need to be able to call -- it on a swep table as well. function WEPS.IsEquipment(wep) return wep.Kind and wep.Kind >= WEAPO...
local IO = require "kong.tools.io" local TEST_FILE = "/tmp/test_file" describe("IO", function() before_each(function() os.remove(TEST_FILE) end) it("should detect existing commands", function() assert.truthy(IO.cmd_exists("hash")) assert.falsy(IO.cmd_exists("hashasdasd")) end) it("should writ...
-- Invector, License MIT, Author Jordach -- Fake third person but works like third person local default_eye_offset = vector.new(0,0,0) local ground_eye_offset = vector.new(0,1.7,-30) local ground_eye_offset_3r = vector.new(0,-10,0) local player_relative = vector.new(0,0,0) local player_rot = vector.new(0,0,0) -- Upda...
-- Copyright 2017-2018, Firaxis Games -- This file is being included into the base NotificationPanel file using the wildcard include setup in NotificationPanel.lua -- Refer to the bottom of NotificationPanel.lua to see how that's happening -- DO NOT include any NotificationPanel files here or it will cause problems --...
-- For websocket support local guid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" local mime = require("mime") local sha1 = dofile(path.."sha1.lua") local clientList = {} function buffersend(client,msg) if client and clientList[client] then clientList[client].send = (clientList[client].send or "") .. msg end end func...
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); local ____exports = {} local ____general = require("constants.general") local General = ____general.default ____exports.default = __TS__Class() local Styles = ____exports.default Styles.name = "Styles" function Styles.pr...
object_intangible_beast_bm_snorbal = object_intangible_beast_shared_bm_snorbal:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_snorbal, "object/intangible/beast/bm_snorbal.iff")
style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "2"}; line_style = {["line_color"] = "f30", ["line_width"] = "2"}; grid_style = {["off_color"] = "none", ["on_color"] = "none", ["line_color"] = "000", ["line_w...
Stage = Object:extend() function Stage:new() self.area = Area(self) self.area:addPhysicsWorld() self.area.world:addCollisionClass('Enemy') self.area.world:addCollisionClass('Player') self.area.world:addCollisionClass('Projectile', {ignores = {'Projectile', 'Player'}}) self.area.world:addCollisi...
local fs = require("fs") local utils = require("./miscUtils") local json = require("json") local discordia = require("discordia") local commandHandler = {} commandHandler.commands = {} commandHandler.sortedCommandNames = {} commandHandler.sortedPermissionNames = {} commandHandler.customPermissions = { b...
if not Server then return end local mod = %__MODNAME__% mod:LoadAllModuleFiles("Server") local moduleManager = mod:GetModule('modulemanager') local modules = moduleManager:GetModules() fw_print_debug(moduleManager, "Loading all server files") for _,module in ipairs(modules) do fw_print_debug(moduleManager, "Loadi...
--[[ MIT License Copyright (c) 2020 Shoelee 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, publi...
local docroc = require 'tools/docroc' io.output('doc/README.md') io.write('RxLua\n===\n\n') local comments = docroc.process('rx.lua') -- Generate table of contents for _, comment in ipairs(comments) do local tags = comment.tags if tags.class then local class = tags.class[1].text io.write('- [' .. class...
--[[ Dummy module Config: none ]] local device, config local status = false local function init(dev) device = dev config = device.config return { setter = "boolean", -- type of value for setting values remotely, nil otherwise getter = "boolean", -- type of value fo...
slot0 = class("GuildBasePage", import("...base.BaseSubView")) slot0.getUIName = function (slot0) slot1, slot2 = slot0:getTargetUI() if not getProxy(GuildProxy):getRawData() then return slot0.uiname end if slot3:getFaction() == GuildConst.FACTION_TYPE_BLHX then slot0.uiname = slot1 elseif slot4 == GuildConst...
-- Example of a custom level.lua script which can override game -- lua script. All this level script does it peform drawing offset -- from the touch location. local drawing = require 'drawing' local handlers = {} local drawing_offset = 30 function handlers.OnTouchBegan(x, y) return drawing.OnTouchBegan(x + dra...
local Broadcast = require("core.Broadcast") local Damage = require("core.Damage") local sfmt = string.format local wrapper = require("core.lib.wrapper") local Combat = wrapper.loadBundleScript("lib/Combat", "bundle-example-combat"); local...
return { name = "james2doyle/merge", version = "0.0.2", description = "Merge table 1 with table 2, handles nested tables", tags = { "table", "merge", "combine", "nested", "array", "object" }, license = "MIT", author = { name = "James Doyle", email = "james2doyle@gmail.com" }, homepage = "https://github.co...
local colorscheme = 'nightfox' local ok = prequire(colorscheme) if not ok then return end if colorscheme == 'nightfox' then require('nightfox').setup { options = { dim_inactive = false, }, groups = { all = { NormalFloat = { link = 'Normal' }, FloatBorder = { fg = 'bg4' }, ...
include('organizer-lib') function get_sets() sets.TH = { hands={ name="Merlinic Dastanas", augments={'"Treasure Hunter"+2',},hp=9,mp=20}, legs={ name="Merlinic Shalwar", augments={'Pet: Accuracy+16 Pet: Rng. Acc.+16','Pet: Haste+1','"Treasure Hunter"+1','Mag. Acc.+9 "Mag.Atk.Bns."+9',},hp=29,mp=44...
-- Workspace: SilverEngine -- ------------------- workspace "SilverEngine" architecture "x86_64" configurations { "Debug", "Release" } startproject "Galena" -- Project: SilverEngine -- ----------------- project "SilverEngine" location "SilverEngine" kind "SharedLib" language "C++" cppdialect "c++17" sta...
----------------------------------------- -- ID: 18427 -- Item: Hanafubuki -- Item Effect: TP +10 -- Durration: Instant ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------------------- function onItemCheck(target) local resul...
isDbg = false function Initialize() hexChars = { [0]='0', [1]='1', [2]='2', [3]='3', [4]='4', [5]='5', [6]='6', [7]='7', [8]='8', [9]='9', [10]='a', [11]='b', [12]='c', [13]='d', [14]='e', [15]='f' } page = tonumber(SKIN:GetVariable('page',1)) ulBytes = SKIN:GetVariable('uploadMax') dlBytes =...
local THNN = require 'nn.THNN' local BCECriterion, parent = torch.class('nn.BCECriterion', 'nn.Criterion') function BCECriterion:__init(weights, sizeAverage) parent.__init(self) if sizeAverage ~= nil then self.sizeAverage = sizeAverage else self.sizeAverage = true end if weights ~= nil then ...
--[[ desc: Battle, a component for battle business. author: Musoucrow since: 2018-3-29 alter: 2019-4-10 ]]-- local _TABLE = require("lib.table") local _RESOURCE = require("lib.resource") local _RESMGR = require("actor.resmgr") local _Point3 = require("graphics.drawunit.point3") local _Caller = require("core.calle...
return {'udding'}
local Help = {} local function is_heading(line, char) if #line == 0 then return false end for i = 1, #line do local c = line:sub(i, i) if c ~= char then return false end end return true end function Help.get_headings(filepath, start, total) local he...
local vim = vim local api = vim.api local globals = require 'vimwiki_server/globals' local g = require 'vimwiki_server/lib/graphql' local u = require 'vimwiki_server/lib/utils' local v = require 'vimwiki_server/lib/vars' local M = {} -- Synchronous function to execute code under cursor function M.execute_under_curso...
slot2 = "BaseOnlinePlayerCcsGrid" BaseOnlinePlayerCcsGrid = class(slot1) BaseOnlinePlayerCcsGrid.onCreationComplete = function (slot0) slot13 = slot0.onUserData createSetterGetter(slot2, slot0, "userData", nil, nil, nil, nil, handler(slot11, slot0)) slot3 = slot0 slot0.onUserData(slot2) end BaseOnlinePlayerCcs...
quest DEscape_hourseeffect begin state start begin ----- Asker At ----- when 50052.use begin if get_time()<=pc.getqf("15saniye") then syschat("<System> 15 saniye gecmeden atini Cagiramassin!") else pc.setqf("15saniye", get_time()+15) cmdchat("DEscapeZirhliAt") end end ----- Asker At ----- whe...
function Ichoron_OnCombat(Unit, Event) Unit:SendChatMessage(12, 0, "Water Gun, Water Blast, Ha Ha Ha. Pokemon have nothing on me.") Unit:RegisterEvent("Ichoron_Drained", 5000, 20) Unit:RegisterEvent("Ichoron_Frenzy1", 10000, 20) Unit:RegisterEvent("Ichoron_ProtectiveBubble", 15000, 20) Unit:RegisterEvent("Ichoron_Fren...
-- list.lua list_remove_first_of = function(cur, val) if cur == nil then return nil end if cur.car == val then return cur.cdr else cur.cdr = list_remove_first_of(cur.cdr, val) end return cur end list = function() return { head = nil ,prepend = function(ls, val) ls.head = {car = val...
require ("state_handler") -- Include Simple Tiled Implementation library local sti = require "sti" local tx, ty, sx, sy, map function love.load() map = sti("assets/maps/map_test.lua") tx, ty = 0, 0 sx, sy = 1.5, 1.5 -- Calque des objets dynamiques (au-dessus du dernier ajouté) local layer = map:a...