content
stringlengths
5
1.05M
addCommandHandler ( "cc", function ( p, _, ... ) if ( isPlayerMuted ( p ) ) then return exports['VDBGMessages']:sendClientMessage ( "Você está mutado.", p, 255, 0, 0 ) end if ( isPedInVehicle ( p ) ) then if ( ... ) then local car = getPedOccupiedVehicle ( p ) if ( car ) then local msg = table.concat (...
return PlaceObj("ModDef", { "title", "Lower Maintenance In Dome", "id", "ChoGGi_LowerMaintenanceInDome", "steam_id", "2605631213", "pops_any_uuid", "2c4fa29a-c56b-4954-bbd5-b595b7b7d8eb", "lua_revision", 1007000, -- Picard "version", 1, "version_major", 0, "version_minor", 1, "image", "Preview.jpg", "author",...
function MarineTeam:InitTechTree() PlayingTeam.InitTechTree(self) -- Marine tier 1 self.techTree:AddBuildNode(kTechId.CommandStation, kTechId.None, kTechId.None) self.techTree:AddBuildNode(kTechId.Extractor, kTechId.None, kTechId.None) self...
slot0 = class("LinkLinkScene", import("..base.BaseUI")) slot0.MAX_ROW = 6 slot0.MAX_COLUMN = 11 slot0.COUNT_DOWN = 3 slot0.RESET_CD = 5 slot0.GAME_STATE_BEGIN = 0 slot0.GAME_STATE_GAMING = 1 slot0.GAME_STATE_END = 2 slot0.CARD_STATE_NORMAL = 0 slot0.CARD_STATE_LINKED = 1 slot0.CARD_STATE_BLANK = 2 slot0.getUIName = fu...
object_tangible_dungeon_ddf_key = object_tangible_dungeon_shared_ddf_key:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_ddf_key, "object/tangible/dungeon/ddf_key.iff")
------------------------------------------------------------------------------------------- -- -- raylib [shaders] example - Apply a shader to some shape or texture -- -- NOTE: This example requires raylib OpenGL 3.3 or ES2 versions for shaders support, -- OpenGL 1.1 does not support shaders, recompile raylib ...
--tool generate, do not modify by you own except you know what to do --tool author cclin 2015.08.24 module(...,package.seeall); --当需要强制客户端更新协议时,修改此字段 -----------------------------------------------------------------GameServer JSQY_GS = 0x0001 --1 --< GameServer JSQY_USR_KEEPALIVE = 0x0002 --2 --< 保持连接使用的空包 -- JSQY...
--パラレルエクシード --Scripted by mallu11 function c101012001.initial_effect(c) --spsummon1 local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101012001,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FL...
local go = { node = require "skyla.game_object.node", sprite = require "skyla.game_object.sprite", spine = require "skyla.game_object.spine", scale9sprite = require "skyla.game_object.scale9sprite", panel = require "skyla.game_object.panel", primitive = require "skyla.game_object.primitive", ...
local char = script.Parent.Parent local torso = script.Parent local hum = char.Humanoid local origvel = torso.Velocity local origrot = torso.RotVelocity repeat wait(0.1) hum.PlatformStand = true torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10)) torso.RotVelocity = Vector3.new(math.random(...
function lua_intArray_test(intArray) print("lua_intArray: "..intArray[0]..", "..intArray[1]..", "..intArray[2]..", "..intArray[3]); intArray[0] = 9001; intArray[1] = 9002; intArray[2] = 9003; intArray[3] = 9004; end function lua_structArray_test(structArray) print("lua_structArray: "..structArray[0].intProp..", ...
require("which-key").setup { }
-------------------------------- -- @module ReuseGrid -- @extend ActionInstant -- @parent_module cc -------------------------------- -- @function [parent=#ReuseGrid] create -- @param self -- @param #int int -- @return ReuseGrid#ReuseGrid ret (return value: cc.ReuseGrid) -------------------------------- -- @...
module(..., package.seeall) local data = jester.modules.data --[[ ODBC action handlers. ]] function load_data_odbc(action) require("jester.modules.data.odbc") data.odbc.load_data(action) end function load_data_odbc_count(action) require("jester.modules.data.odbc") data.odbc.load_data_count(action) end fun...
local classic = require 'classic' local TruncationHandler = require 'utils.truncationHandler' local ArtTruncationHandler = classic.class('ArtTruncationHandler', TruncationHandler) function ArtTruncationHandler:_init(opts) self.truncationTable = {1} self.t0 = opts.t0 self.alpha = opts.alpha end function Ar...
local LuanoidClass = require(script.Luanoid) local buildRigFromAttachments = require(script.buildRigFromAttachments) local luanoids = setmetatable({}, {__mode = "kv"}) local LuanoidService = {} function LuanoidService.new(...) local luanoid = LuanoidClass(...) luanoids[luanoid.Character] = luanoid return...
local Point = require("point/point") describe("#Point", function() -- tagged as "Point" it("Constructor", function() for i = 0, 9, 1 do point = Point:new(i, j) assert.are.equal(point.x, i) assert.are.equal(point.y, j) end end) it("sum", function() p...
slot0 = class("GuildRankPage", import("...base.GuildBasePage")) slot0.getTargetUI = function (slot0) return "GuildRankBluePage", "GuildRankRedPage" end slot1 = { "commit", "task", "battle" } slot2 = { i18n("guild_member_rank_title_donate"), i18n("guild_member_rank_title_finish_cnt"), i18n("guild_member_rank_ti...
local ui, uiu, uie = require("ui").quick() local scener = require("scener") local alert = require("alert") local scene = { name = "Scene List" } local root = uie.column({ uie.image("header"), uie.scrollbox( uie.list({ }):with({ grow = false }):with(uiu.fillWidth):with...
------------------------------------------------------------------------------ -- -- This file is part of the Corona game engine. -- For overview and more information on licensing please refer to README.md -- Home page: https://github.com/coronalabs/corona -- Contact: support@coronalabs.com -- ------------------------...
--[[ Name: LabelColor.lua From roblox-trello v2 Description: Collection of label colors Copyright (c) 2019 Luis, David Duque 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 S...
--[[ TheNexusAvenger Project for the Nexus Unit Testing Plugin. --]] local NexusProject = require(script:WaitForChild("NexusProject")) local NexusPluginFrameworkPluginProject = NexusProject.new(script) return NexusPluginFrameworkPluginProject
local ext = { "mkv","mp4","webm","wmv","avi","3gp","ogv","mpg","mpeg","mov","vob" ,"ts","m2ts","divx","flv","asf","m4v","h264","h265","rmvb","rm","ogm" } local valid = {} for i = 1, #ext do valid[ext[i]] = true end local function main() local playlist = mp.get_property_native('playlist') l...
-- test_OSModule.lua -- -- --[[ OSModule - This is a rough substitute for using ffi.load, ffi.C and ffi.typeof Usage: local k32 = OSModule("kernel32") local GetConsoleMode = k32.GetConsoleMode; print("GetConsoleMode", GetConsoleMode); local lpMode = ffi.new("DWORD[1]"); local status = GetConsoleMode(nil, lp...
canvasSize = {20, 15} tiles16 = TileSet { filename = "tiles16.tga", size = {10, 9} } tiles32 = TileSet { filename = "tiles32.tga", size = {8, 3} } custom1 = TileSet { filename = "custom1.tga", size = {12, 9} } custom2 = TileSet { filename = "custom2.tga", size = {12, 8} } custom3 = ...
local image = require 'src/image' local oop = require 'src/oop' local dialog = require 'ui/dialog' local go_screen = require 'battle/go_screen' local customize = oop.class { transparent = true, } function customize:init (battle, folder, queue) self.battle = battle self.queue = queue self.folder = folder...
-- 先这样判断是不是Windows if package.config:sub(1, 1) == "\\" then package.cpath = package.cpath .. ";../colib/?.dll" else package.cpath = package.cpath .. ";../colib/?.so" end package.path = package.path ..";../colib/?.lua" local Timer = require "mhtimer" local currtime = 0 do local timer = Timer.new() f...
data:extend( { { type = "item", name = "borehole", icon = "__BoreHole__/graphics/icons/borehole.png", icon_size = 32, flags = {}, subgroup = "extraction-machine", place_result = "borehole", stack_size = 10, }, { type = "item", name = "borehole-energy", icon =...
pfUI:RegisterSkin("Flightmaster", "vanilla:tbc", function () StripTextures(TaxiFrame) CreateBackdrop(TaxiFrame, nil, nil, .75) CreateBackdropShadow(TaxiFrame) TaxiFrame.backdrop:SetPoint("TOPLEFT", 10, -10) TaxiFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72) TaxiFrame:SetHitRectInsets(10,32,10,72) Enable...
---------------------------------------------------------------------------------- -- Total RP 3 -- Russian locale -- --------------------------------------------------------------------------- -- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) -- -- Licensed under the Apache License, Version 2.0 (t...
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the license found in the LICENSE file in -- the root directory of this source tree. An additional grant of patent rights -- can be found in the PATENTS file in the same directory. -- --[[ -- -- The BLSTM model...
local encode = require "cjson.safe".encode local ngx_header = ngx.header local string_format = string.format local ngx_redirect = ngx.redirect local ngx_print = ngx.print local version = '1.0' local function JsonResponse(json, status) return function () local json, err = encode(json) if not js...
----------------------------------------------------------------------------------------------- -- CRIADOR DO SCRIPT: Paulo Ricardo ----------------------------------------------------------- -- DISCORD DO CRIADOR: PR#0001 ---------------------------------------------------------------- -- GITHUB: https://github.com...
include("shared.lua"); include("../../../gamemode/gui/cl_inventory.lua"); function ENT:Initialize() self.Rotation = 0; self.LastTime = SysTime(); self.Hovering = false; net.Receive("ItemEntitySetItem", function() local rxTable = net.ReadTable(); self.Item = rxTable["item"]; self.ItemName = rxTable...
local K, C, L = select(2, ...):unpack() if C.Misc.ItemLevel ~= true then return end local OnEvent = CreateFrame("Frame", nil, UIParent) local OnLoad = CreateFrame("Frame", nil, UIParent) -- Item level on slot buttons in Character / InspectFrame (by Tukz) local slots = { "HeadSlot", "NeckSlot", "ShoulderSlot", "BackS...
PROJECT_NAME = path.getname(os.getcwd()) minko.project.library("minko-plugin-" .. PROJECT_NAME) removeplatforms { "android", "ios", "html5" } files { "lib/**.hpp", "lib/**.h", "lib/**.cpp", "lib/**.c", "include/**.hpp", "src/**.cpp" } configuration {"linux32 or linux64 or osx64"} includedirs { ...
local composer = require( "composer" ) local scene = composer.newScene() local function gotoGame() composer.gotoScene( "game" ) end local function gotoHighscores() composer.gotoScene( "highscores" ) end function scene:create( event ) local sceneGroup = self.view local background = display.newImageRect( sceneG...
local get_user = require("api-umbrella.proxy.user_store").get return function(settings) -- Retrieve the API key found in the resolve_api_key middleware. local api_key = ngx.ctx.api_key if not api_key then if settings and settings["disable_api_key"] then return nil else return nil, "api_key_mi...
local RUF = LibStub('AceAddon-3.0'):GetAddon('RUF') local L = LibStub('AceLocale-3.0'):GetLocale('RUF') local RUF_Options = RUF:GetModule('Options') local LSM = LibStub('LibSharedMedia-3.0') local _, ns = ... local oUF = ns.oUF local _, PlayerClass = UnitClass('player') local TagList = {} local LocalisedTags = {} loca...
util.AddNetworkString( "AutoBodyNPC_UpdateVehicle" ) local function UpdateVehicle( _, ply ) local npc = net.ReadEntity( ) local vehicle = net.ReadEntity( ) local to_change = net.ReadUInt( 3 ) -- 1 = respray, 2 = skin, 3 = bodygroup, 4 = engine, 5 = underglow if not isentity( npc ) or not isentity( vehicle ) or np...
--[[ This script validates the conflict for port:pin when using the simple_led and simple_button component in a zigbee application This script iterates through all the instances of simple_led and simple_button, compares the port/pin for the instances. --]] if slc.is_selected("simple_led") == true and s...
--[[ A telnet server T. Ellison, May 2018 This version is more complex than the simple Lua example previously provided in our distro. The main reason is that a single Lua command can produce a LOT of output, and the server has to work within four constraints: - The SDK rules are that you can only issue one se...
--[[ MIT License Copyright (c) 2022 Ilyas TAOUAOU (CodesOtaku) 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, mod...
return function(client) client:on("messageCreate", function(message) local strContent = message.content local uAuthor = message.author local mMember = message.member local cChannel = message.channel local tblArgs = strContent:split(" ") local gGuild = message.ch...
require("prototypes.metalworking.defines") data:extend( { { type = "item", name = "cobalt-plate", icon = "__Engineersvsenvironmentalist__/graphics/icons/metalworking/cobalt-plate.png", flags = {"goes-to-main-inventory"}, subgroup = "cobalt-processing", order = "c-a-j[cobalt-plate]", stack_s...
--[[ MIT License Copyright (c) 2021 Michael Wiesendanger 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, mod...
-- Copyright 2016 The Arken Platform Authors. -- All rights reserved. -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file. ARKEN_ENV = os.getenv("ARKEN_ENV") or "test" local empty = require('arken.empty') local test = require('arken.test') local buffer = "" prin...
local pingstrings = require "environmentpinger/pingstrings" local Image = require "widgets/image" local ImageButton = require "widgets/imagebutton" local PingImageManager = require "widgets/pingimagemanager" local Encryptor = require "environmentpinger/encryptor" local cooldown_thread = nil local function LoadConfig(na...
local reverse_string = require('reverse-string') describe('reverse-string', function() it('an empty string', function() assert.are.equal('', reverse_string('')) end) it('a word', function() assert.are.equal('tobor', reverse_string('robot')) end) it('a capitalized word', function() assert.are.eq...
love_ring_delay = { cast = function(player) player:setDuration("love_ring_delay", Config.loveRingDelay) end, }
data.raw["gui-style"].default["tsh_button"] = { type = "button_style", parent = "tool_button_blue", height = 38, width = 38, padding = 7, } data.raw["gui-style"].default["tsh_heading_filler"] = { type = "empty_widget_style", parent = "draggable_space_header", height = 24, ...
getglobal game getfield -1 GetService pushvalue -2 pushstring ReplicatedStorage pcall 2 1 0 getfield -1 Dark getfield -1 Clone pushvalue -2 pcall 1 1 0 getglobal game getfield -1 GetService pushvalue -2 pushstring Players pcall 2 1 0 getfield -1 LocalPlayer getfield -1 Backpack pushvalue -1 setfield -6 Parent emptystac...
thisThread = love.thread.getThread() --package.path = "Scripts/?.lua;" .. package.path require("love.filesystem") pcall(require,"mapUtils") pcall(require,"Scripts/mapUtils") pcall(require,"TSerial") pcall(require,"Scripts/TSerial") pcall(require,"misc") pcall(require,"socket") require("Scripts/misc") ip = thisThre...
battleWindow = nil battleButton = nil battlePanel = nil filterPanel = nil toggleFilterButton = nil lastBattleButtonSwitched = nil battleButtonsByCreaturesList = {} creatureAgeList = {} mouseWidget = nil sortTypeBox = nil sortOrderBox = nil hidePlayersButton = nil hideNPCsButton = nil hideMonstersButton = nil hideSkul...
--!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...
local command = {} command.PermissionLevel = 1 command.Shorthand = {"logs","alog"} command.Params = {"Optional:String","..."} command.Usage = "adminlog" command.Description = [[Displays a log of all commands that were run. Currently the only available option is "search".]] local rstore = game:GetService("ReplicatedSt...
DuduTree = {} function DuduTree:Filter(raw) ret = "" current = self.tree matching = false censored = "" original = "" for uchar in string.gfind(raw, "([%z\1-\127\194-\244][\128-\191]*)") do if not matching then if current[uchar] ~= nil then matching = true current = current[uchar] c...
local spawnmenu_engine = spawnmenu module( "spawnmenu", package.seeall ) local g_ToolMenu = {} local CreationMenus = {} local PropTable = {} local PropTableCustom = {} local ActiveToolPanel = nil local ActiveSpawnlistID = 1000 function SetActiveControlPanel( pnl ) ActiveToolPanel = pnl end function ActiveControl...
_32BitSupport = false -- Windows only. for Linux, "on" is hardcoded StaticRuntime = "on" SandboxHideConsole = false OverEditorHideConsole = false workspace "OverEngine" startproject "OverEditor" configurations { "Debug", "DebugOptimized", "Release", "Dist" } if (_32BitSupport) then platforms {"x8...
---@private 信使技能缓存 slkHelper.courierBlink = nil slkHelper.courierRangePickUp = nil slkHelper.courierSeparate = nil slkHelper.courierDeliver = nil --- 获取自动配置的信使技能 slkHelper.courierAutoSkill = function() if (slkHelper.courierBlink == nil) then local Name = "信使-闪烁" local obj = slk.ability.AEbl:new("sl...
local RunService = game:GetService("RunService") local Logger = {} local function genBase() local ret = "" if RunService:IsStudio() then ret = ret .. "[TEST] " else ret = ret .. "[RELEASE] " end if RunService:IsClient() then ret = ret .. "[CLIENT] " else ret ...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] PLUGIN.name = "Token Distributor"; PLUGIN.description = "Distribute tokens to the CWU members so that they can reward workers."; PLUGIN.author = "theHandgun"; ix.util.Include("sv_hooks.lua"); ix.util.Include("cl_hooks...
require("dapui").setup() vim.api.nvim_set_keymap('n', '<leader>duo', "<cmd>lua require'dapui'.open()<CR>", {}) vim.api.nvim_set_keymap('n', '<leader>duc', "<cmd>lua require'dapui'.close()<CR>", {}) vim.api.nvim_set_keymap('n', '<leader>dut', "<cmd>lua require'dapui'.toggle()<CR>", {})
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) --include('entities/base_wire_entity/init.lua') include( 'shared.lua' ) util.PrecacheSound( "ambient/atmosphere/outdoor2.wav" ) util.PrecacheSound( "ambient/atmosphere/indoor1.wav" ) util.PrecacheSound( "buttons/button1.wav" ) util.PrecacheSound( "buttons/butt...
viewport = { getX = function () return mem.wram(0x0000C0, 2) end, getY = function () return mem.wram(0x0000C4, 2) end }
local tp = "odd" local mirrorMaster = function(class, existing, new) -- Frames in one master can't "see" frames in another, so we have to get creative -- XXX This knows altogether too much about the implementation of masters if not SILE.scratch.masters[new] then SILE.scratch.masters[new] = {frames={}} end if no...
--[[ Name: "cl_player.lua". Product: "kuroScript". --]] kuroScript.player = {}; -- A function to get the local player's action. function kuroScript.player.GetAction(player, percentage) local startActionTime = player:GetSharedVar("ks_StartActionTime"); local actionDuration = player:GetSharedVar("ks_ActionDuration")...
local schema = require "kong.plugins.ndfd-xml-as-json.schema" describe("kong.plugins.ndfd-xml-as-json.schema", function() it("should return a table", function() assert.is.equal("table", type(schema)) end) it("is a global plugin", function() assert.is.True(schema.no_consumer) end) it("defines the c...
-- -- d/tools/ldc.lua -- Provides LDC-specific configuration strings. -- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project -- local p = premake p.tools.ldc = { } local ldc = p.tools.ldc local project = p.project local config = p.config local d = p.modules.d -- -- Set default tools -- ...
--[[ @Authors: Ben Dol (BeniS) @Details: Extension functions that extend the Player class. ]] function Player:getMoney() return self:getItemsCount(3031) + (self:getItemsCount(3035) * 100) + (self:getItemsCount(3043) * 10000) end function Player:getFlaskItems() local count = 0 for i=1,#Flasks do cou...
local trigger = {} trigger.name = "ExtendedVariantMode/IntegerExtendedVariantTrigger" trigger.placements = { name = "trigger", data = { variantChange = "DashCount", enable = true, newValue = 1, revertOnLeave = false, revertOnDeath = true, delayRevertOnDeath = fal...
local Module = torch.class('nn.Module') function Module:__init() self.gradInput = torch.Tensor() self.output = torch.Tensor() end function Module:parameters() if self.weight and self.bias then return {self.weight, self.bias}, {self.gradWeight, self.gradBias} elseif self.weight then return {sel...
DxRadioButton = inherit(DxElement) function DxRadioButton:constructor(x, y, width, height, text, selected) self.type = "dx-radiobutton" self.text = text self.textColor = getStyleSetting("radiobutton", "text_color") self.radiobutton = { width = math.min(height, 22), height = math.min(height, 22), selec...
return { cornanotc4 = { acceleration = 0.2, brakerate = 2, buildcostenergy = 580188, buildcostmetal = 31813, builddistance = 1500, builder = true, buildpic = "cornanotc4.dds", buildtime = 300000, canassist = true, canguard = true, canmove = false, canpatrol = true, canreclaim = ...
local CurrentPage = PageNames[props["page_index"].Value] if CurrentPage == "Control" then table.insert(graphics,{ Type = "GroupBox", Fill = {220,220,220}, StrokeWidth = 2, CornerRadius = 5, Position = {9,17}, Size = {261,204} }) table.insert(graphics,{ Type = "Text", Text = "Click ...
local Command = VH_CommandLib.Command:new("Spectate", VH_CommandLib.UserTypes.Admin, "Spectates the player.", "") Command:addArg(VH_CommandLib.ArgTypes.Plr, {required = true, notSelf = true}) Command:addAlias({Prefix = "!", Alias = "spectate"}) Command.Callback = function(Sender, Alias, Target) -- Todo, right click t...
local Color = require('Color') local CountDown = { } -- Displays a countdown function CountDown:count() self.timeLimit = self.timeLimit-1 self.timeLeft.text = self.timeLimit if(self.timeLimit == 0)then self.timeLeft.text = "GO!" -- flash text self.timeLeft:setTextColor(unpack(Color.green)) time...
counter = 0 -- Initialize the pseudo random number generator - http://lua-users.org/wiki/MathLibraryTutorial math.randomseed(os.time()) math.random(); math.random(); math.random() function file_exists(file) local f = io.open(file, "rb") if f then f:close() end return f ~= nil end function shuffle(paths) loca...
--Copyright © 2021, Zubis --All rights reserved. --Redistribution and use in source and binary forms, with or without --modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and the fol...
object_tangible_furniture_city_road_torch_6x64_03 = object_tangible_furniture_city_shared_road_torch_6x64_03:new { } ObjectTemplates:addTemplate(object_tangible_furniture_city_road_torch_6x64_03, "object/tangible/furniture/city/road_torch_6x64_03.iff")
local luaunit = require 'luaunit' local mock_turtle = require 'me.strangepan.libs.computercraft.mock.v1.turtle' local move = require 'me.strangepan.libs.computercraft.turtle.v1.move' TestObject = {} function TestObject:setup() self._system_turtle = turtle turtle = mock_turtle.builder():build() self.under_test ...
-- MyConstructor local isConstruct = false -- Components local spawnPoints = nil local bossPoints = nil local owner_healthScript = nil local owner_transform = nil local owner_meshAnimator = nil local owner_audioEmitter = nil -- Animations local switchAn...
----------------------------------- -- Ability: Call Wyvern -- Summons a Wyvern to fight by your side. -- Obtained: Dragoon Level 1 -- Recast Time: 20:00 -- Duration: Instant -- Special: Only available if Dragoon is your main class. ----------------------------------- require("scripts/globals/settings") require("script...
Keybind.g({ --[[ #------------------------------------------------------------------------------# # CONFIG # #------------------------------------------------------------------------------# --]] -- reload nvim configuration file { 'n', '...
-- debugger = require('fb.debugger') require('train/init') tokenizer = require 'libs/tokenizer' function accuracy(pred, gold) return torch.eq(pred, gold):sum() / pred:size(1) end function header(s) print(string.rep('=', 50)) print(" "..s) print(string.rep('=', 50)) end nngraph.setDebug(true) local TEST = ...
-- HYDRO_TURBINE -- Water turbine: -- Active if flowing >water< above it -- (does not work with other liquids) minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { drawtype = "mesh", mesh = "jeija_hydro_turbine.obj", tiles = { "jeija_hydro_turbine_sides_off.png", "jeija_hydro_turbine_top_bottom.p...
----------------------------------- -- Area: Norg ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.NORG] = { text = { HOMEPOINT_SET = 2, -- Home point set! ITEM_CANNOT_BE_OBTAINED = 64...
----------------------------------- -- Area: Talacca_Cove -- NPC: rock slab (corsair job flag quest) -- !pos -99 -7 -91 57 ----------------------------------- local ID = require("scripts/zones/Talacca_Cove/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") require("scripts/globals/status") req...
-- work only with ilu and frame.lua u = {} u.scene = {} u.scene.name = "hello" u.load = function() -- body end u.update = function () -- body end u.draw = function () love.graphics.print("hello, world", 200, 200) end -- return u
object_draft_schematic_furniture_must_table_medium_01 = object_draft_schematic_furniture_shared_must_table_medium_01:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_must_table_medium_01, "object/draft_schematic/furniture/must_table_medium_01.iff")
_addon.name = 'TPSreport' _addon.author = 'Lili' _addon.version = '0.0.3' _addon.command = 'tpsreport' require('logger') require('xml') files = require('files') packets = require('packets') res_jobs = require('resources').jobs local party = windower.ffxi.get_party() local current_members = T{} local known_players = T...
return function() local Type = require(script.Parent.Parent.Type) local Change = require(script.Parent.Change) it("should yield change listener objects when indexed", function() expect(Type.of(Change.Text)).to.equal(Type.HostChangeEvent) expect(Type.of(Change.Selected)).to.equal(Type.HostChangeEvent) end) i...
-- pico-8 to html host communication (synchronous) local comm_gpio = { size = 0, base = 1, } local gpio_address = 0x5f80 function comm_gpio_write(index, byte) poke(gpio_address + index, byte) end function comm_gpio_read(index) return peek(gpio_address + index) end function comm_send(bytes) comm_g...
fx_version 'bodacious' games { 'gta5' } server_scripts { 'index.js' } dependencies { 'yarn' }
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin local command = {} command.help = "Create a vote." command.command = "vote" command.arguments = {"title"} command.optionalArguments = {"options"} command...
require 'lib.behavior3.core.Action' local attack = b3.Class("Attack", b3.Action) b3.Attack = attack function attack:ctor(settings) b3.Action.ctor(self) self.name = "Attack" self.title = "Attack" self.properties = {skill = ''} end function attack:tick(tick) local actor = tick.blackboard:get('actor') local ta...
for n,o in pairs({(function(n,...)local D="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local f=n['xQ2Js'];local P=n[(352131843)];local T=n[(931295757)];local d=n[(851712440)];local m=n[((977211171-#("PSU|161027525v21222B11273172751L275102731327523d27f22I27f21o26o24Y21J18...
--@import see.base.String --@import see.io.Rednet --@import see.util.ArgumentUtils --[[ A way of managing a single rednet connection ]] --[[ Constructs a new RednetConnection @param number:id The id of the computer to send and receive from @param see.base.String:protocol The protocol to send and recieve ...
local Peg = require "espalier:peg" local table = require "core:core/table" local Twig = require "orb:orb/metas/twig" local Header = require "orb:orb/header" local Codeblock = require "orb:orb/codeblock" local Table = require "orb:orb/table" local Prose = require "orb:orb/pros...
local pcall = pcall local ngx_log = ngx.log local ERR = ngx.ERR local _M = {} do local ngx_req_get_post_args = ngx.req.get_post_args function _M.get_post_args() local ok, res, err = pcall(ngx_req_get_post_args) if not ok or err then local msg = res and res or err ngx_log(ERR, "could not ge...