content
stringlengths
5
1.05M
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function (resource) exports.realdriveby:setDriverDrivebyAbility() exports.realdriveby:setPassengerDrivebyAbility(22, 28, 29, 32) end ) --[[ local lastSeat = 0 function toggleDriveBy() -- check if guy is in vehicle if...
gui = require('gui') unit = dfhack.gui.getSelectedUnit() if not unit then print("Error: Cannot get unit") else dfhack.gui.revealInDwarfmodeMap(unit.pos) screen = dfhack.gui.getCurViewscreen(true) dfhack.screen.dismiss(screen) gui.simulateInput(screen, 'D_VIEWUNIT') end
local rng_mt = ... local RandomGenerator = rng_mt.__index local _random = RandomGenerator._random local type, tonumber, error = type, tonumber, error local floor = math.floor local function getrandom(r, l, u) if u ~= nil then if type(r) ~= "number" then error("bad argument #1 to 'random' (num...
#!/usr/bin/lua local t = os.time() math.randomseed(t) function getPseudoRandomString() local chars = 'abcdefghijklmnopqrstuvwxyz0123456789' local length = 12 local randomString = '' local charTable = {} for c in chars:gmatch"." do table.insert(charTable, c) end for i = 1, length do ...
return { c = { enum_specifier = "Enum", function_declarator = "Function", struct_specifier = "Struct", }, cpp = { class_specifier = "Class", enum_specifier = "Enum", function_declarator = "Function", struct_specifier = "Struct", }, c_sharp = { interface_declaration = "Interface...
local cjson = require('cjson') local _ = require('downstroke') local pl = require('pl.import_into')() local itorch_util = require('itorch.util') local base64 = require('base64') local M = {} function M.script_dir() local str = debug.getinfo(2, "S").source:sub(2) local dir = pl.path.abspath(str:match("(.*/)")) i...
function poleSolid(res) poles = getElementsByType("object", resourceRoot) for _, pole in pairs(poles) do setElementFrozen(pole, true) end end addEventHandler("onResourceStart", resourceRoot, poleSolid)
----------------------------------- -- Area: Northern San d'Oria -- NPC: Alphollon C Meriard -- Type: Purifies cursed items with their corresponding abjurations. -- !pos 98.108 -1 137.999 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); -------------------------------...
local ngx = require "ngx" local http = require "http" -- 自定义库模块 local config = require "config" local response = require "response" local ngx_encode_base64 = ngx.encode_base64 local _M = {} _M._VERSION = "0.1" _M.name = "influxdb" local host = config.influxdb_conf["host"] or "127.0.0.1" local port = config.infl...
game.Players.LocalPlayer.Character.Head.Mesh:Remove() for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do if (v:IsA("Accessory")) then v.Parent = workspace end end
--https://github.com/FizzerWL/ExampleMods/tree/master/Diplomacy2Mod function DiplomacyMenu(rootParent, setMaxSize, setScrollable, game, close) Game = game; --make it globally accessible local vert = UI.CreateVerticalLayoutGroup(rootParent); --TODO list proposals we have sent, but have not recived a response --TO...
-- -- Servers provide a means to automate certain tasks in a network (i.e. crafting) -- local cluster_devices = assert(yatm.cluster.devices) local cluster_energy = assert(yatm.cluster.energy) local data_network = assert(yatm.data_network) local Energy = assert(yatm.energy) local function server_refresh_infotext(pos, n...
local mod = DBM:NewMod("BrawlRank4", "DBM-Brawlers") local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17576 $"):sub(12, -3)) --mod:SetModelID(28115) mod:SetZone() mod:SetUsedIcons(8) mod:RegisterEvents( "SPELL_CAST_START 133212", "SPELL_AURA_APPLIED 133129 228981 236155", "SPELL_AURA_AP...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/5 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/unsubscribe_from_module_status_change_notification...
-- Regression tests arising from past bugs in the Kailua type checker. --8<-- regression-kind-map-func-array -- used to cause Slot::assert_eq deadlock local foo = {} --: map<string, function(vector<string>) --> ()> --! ok --8<-- regression-assign-multi-missing-init -- cargo-fuzz trophy case #1 a,b; --@< Error: Expect...
-- ============================= -- -- Copyright 2018 FiatAccompli -- -- ============================= -- include("mod_settings.lua"); include("mod_settings_key_binding_helper.lua"); include("inputsupport"); ModSettings.PageHeader( "LOC_PTK_GLOBAL_HOTKEYS_MOD_SETTINGS_CATEGORY", "LOC_PTK_GLOBAL_HOTKEYS_MOD_SET...
local theme={colors={normal={blue={0.011764705882353,0.68235294117647,1.0,1},green={0.023529411764706,0.91764705882353,0.38039215686275,1},cyan={0.48627450980392,0.92941176470588,0.91372549019608,1},white={0.87450980392157,0.85882352941176,0.87450980392157,1},red={0.70980392156863,0.23137254901961,0.31372549019608,1},m...
return {'fluctuatie','fluctuatiemarge','fluctueren','fluim','fluimen','fluisteraar','fluisteraarster','fluistercampagne','fluisteren','fluistergesprek','fluistering','fluisterstem','fluisterstil','fluistertoon','fluisterzacht','fluit','fluitconcert','fluiteend','fluiten','fluitenkruid','fluitenmaker','fluiter','fluitgl...
local CorePackages = game:GetService("CorePackages") local Rodux = require(CorePackages.Rodux) local InspectAndBuyFolder = script.Parent.Parent local SetAssets = require(InspectAndBuyFolder.Actions.SetAssets) local IsLoaded = Rodux.createReducer(false, { [SetAssets.name] = function(state, action) return true end,...
local round_local = 0 function onStart(target, buff) add_buff_parameter(target, buff, 1) end function onTick(target, buff) round_local = round_local + 1 local interval = buff.cfg_property[1] if not interval then return end if GetBattleData().round % interval ~= 0 then return end if buff.cfg_property[2] then ...
local headlines = require "headlines" headlines.setup { markdown = { source_pattern_start = "^```", source_pattern_end = "^```$", dash_pattern = "^---+$", headline_pattern = "^#+", headline_signs = { "Headline" }, codeblock_sign = "CodeBlock", dash_highlight = "Dash", }, rmd = { s...
local me = {} me.name = "bzcarbon" me.list = {} function me.use_fullerenes() return me.get_setting("bzcarbon-enable-fullerenes") == "yes" end function me.reuse() return me.get_setting("bzcarbon-reuse") == "yes" end function me.use_carbon_black() return me.get_setting("bzcarbon-enable-carbon-black") == "yes" ...
--[[ Functions: Slots ]]-- function Slot:GetNestedContainer() local item = self:GetItem() if item.nested == nil then return end -- Get nested. local nestedContainer = nil if self.nested_container_id ~= nil then -- Get container. local wasCached = false nestedContainer, wasCached = Inventory:LoadContainer({...
local nvim = vim.api -- luacheck: ignore local utils = {} utils.split_path = function(path) local parts = {} path:gsub("([^/]+)", function(p) table.insert(parts, p) end) return parts end utils.last_n = function(coll, n) local buff = {} local drop = #coll - n for _, v in next, coll, drop do tabl...
project "bgfx" kind "StaticLib" language "C++" cppdialect "C++17" exceptionhandling "Off" rtti "Off" staticruntime "on" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("obj/" .. outputdir .. "/%{prj.name}") defines { "__STDC_FORMAT_MACROS" } files ...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the BaseExtension works as expected. -- -- @type TestBaseExtension -- local TestBaseExtension = TestCase:extend() --- -- The require path for the class t...
--[[ Filename: GUITABMapShopC.lua Authors: Sam@ke --]] GUITABMapShopC = {} function GUITABMapShopC:constructor(parent, window, dataManager) mainOutput("GUITABMapShopC was loaded.") self.userPanel = parent self.window = window self.dataManager = dataManager self.screenWidth, self.screenHeight = guiGetScreenS...
slot2 = "ChargeView" ChargeView = class(slot1) slot2 = "charge.view.ccs.ChargeCcsView" requireLuaFromModule(slot1) slot2 = "charge.view.ccs.ChargePhoneCardCcsView" requireLuaFromModule(slot1) slot2 = "charge.view.ccs.RechargeCcsView" requireLuaFromModule(slot1) slot2 = "charge.view.ccs.RechargeCcsItem" requireLu...
kai_tok_scavenger = Creature:new { objectName = "@mob/creature_names:kai_tok_scavenger", socialGroup = "kai_tok", faction = "", level = 31, chanceHit = 0.39, damageMin = 260, damageMax = 270, baseXp = 3097, baseHAM = 8600, baseHAMmax = 10600, armor = 0, resists = {135,130,0,0,0,-1,-1,-1,-1}, meatType = "me...
--[[ Keypads - lua/gui/MinimumValueLabel.lua Copyright 2018 Lex Robinson 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 appli...
-- A Timer version that fill better the widget area -- Offer Shmuely -- Date: 2022 -- ver: 0.6 local options = { { "TextColor", COLOR, YELLOW }, { "Timer", VALUE, 1, 1, 3}, { "use_days", BOOL, 0 } -- if greater than 24 hours: 0=still show as hours, 1=use days } local function log(s) return; ...
local Compiler = {}; Bytecode = require('BytecodeEditor.lua'); Compiler.Compile = function(self, src) local bytes = Bytecode.Editor:StringToBytecodeArray(src); local AllChunksLoaded = false; local CompiledChunks = {}; local chunkLevel = 0; repeat --compiler has to run things in order also ...
local dns = require "dns" local stdnse = require "stdnse" local table = require "table" local ipOps = require "ipOps" description = [[ Checks DNS zone configuration against best practices, including RFC 1912. The configuration checks are divided into categories which each have a number of different tests. ]] --- -- @...
function jwt.encode(payload) local json_payload = encode.json(payload) local cmd = "/opt/rooset/etc/jwtencode '" .. json_payload .. "'" local enc = io.popen(cmd, "r") local resp = "" for line in enc:lines() do resp = resp .. line end local a, b, code = enc:close() if code == 0 then return resp els...
local ToastRoot = script.Parent local DialogRoot = ToastRoot.Parent local AppRoot = DialogRoot.Parent local UIBloxRoot = AppRoot.Parent local Packages = UIBloxRoot.Parent local Roact = require(Packages.Roact) local t = require(Packages.t) local GetTextSize = require(UIBloxRoot.Core.Text.GetTextSize) local Images = re...
local S = technic_cnc.getter -- Define slope boxes for the various nodes ------------------------------------------- technic_cnc.programs = { { suffix = "technic_cnc_stick", model = {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}, desc = S("Stick") }, { suffix = "technic_cnc_element_end_double", model = {-0.3, -0.5...
local spaces = require("hs._asm.undocumented.spaces") local config = { spacesDelay = 0.3 } local module = { active = 1, lastMove = 0 } module.layout = function() return spaces.layout()[spaces.mainScreenUUID()] end module.set = function(active, force) if active ~= module.active or force then module.active = ...
local PLUGIN = PLUGIN function PLUGIN:PlayerGetFistDamage(client, damage, context) if (client:getChar()) then context.damage = context.damage + (client:getChar():getAttrib("str", 0) * nut.config.get("strMultiplier")) end end function PLUGIN:PlayerThrowPunch(client, hit) if (client:getChar()) then cli...
--------------------------------- --! @file --! @addtogroup SeatArray --! @brief a counted array SeatArray --! @author hr@cronlygames.com ----------------------------------- --! create the temp class local class = {mt = {}} --! create the class name SeatArray local SeatArray = class --! create the class metatable cl...
/* Author: PHCC Date: 28/12/2020 SPACE POWAS! To be futurely used as the power for the blue emerald (space stone) Press BT_CUSTOM2 to bind yourself to a point in space, then press it again to teleport back there! */ local SPACESTONE_DRAIN = 20 local currentmap local function createPortal(player) ...
local hotkey = require 'hs.hotkey' local bind = hotkey.bind local function getAllVisibleWindowsInMainScreen() local currentScreen = hs.window.focusedWindow():screen() local visibleWindows = hs.window.visibleWindows() local windows = {} for i, window in ipairs(visibleWindows) do if ( curre...
ngx.print('<meta http-equiv="content-type" content="text/html;charset=utf-8">\n') ngx.print('<h1> 这个是 h1 </h1>\n') ngx.print('<pre>'); ngx.say("Hello World.\n") ngx.print("just test"); local url = ngx.var.uri ngx.say('<br>', url, '<br/>') ngx.print('这次访问的header头是: ', ngx.req.raw_header()) ngx.print('请求方式: ', ngx.re...
object_tangible_loot_creature_loot_collections_dooku_datadisk_04 = object_tangible_loot_creature_loot_collections_shared_dooku_datadisk_04:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_dooku_datadisk_04, "object/tangible/loot/creature/loot/collections/dooku_datadisk_04.iff")
local perkData = { sharedValues = { layoutOrder = 0; subtitle = "Equipment Perk"; color = Color3.fromRGB(171, 47, 86); }; perks = { ["airborne"] = { title = "Airborne"; description = "1.5x Basic Attack damage while jumping."; onDamageGiven = function(sourceManifest, sourceType, sourceId, targetM...
dofile("../../../ProjectGen/common.lua") local SolutionName = "Selas" local Architecture = "x64" local ExtraLibraries = { "SceneLib", "TextureLib", "GeometryLib", "Shading", "BuildCore", "BuildCommon" } if _ARGS[1] == "osx" then ExtraDefines = { "IsOsx_=1" } Platform = "osx" else ExtraDefines = { "IsWindows_=1" }...
mobs:register_mob("dmobs:elephant", { type = "animal", passive = false, reach = 1, damage = 2, attack_type = "dogfight", hp_min = 12, hp_max = 22, armor = 130, collisionbox = {-0.9, -1.2, -0.9, 0.9, 0.9, 0.9}, visual = "mesh", mesh = "elephant.b3d", textures = { {"dmobs_elephant.png"}, }, blood_texture ...
function onRecvbyte(player, msg, byte) if byte == 0xD0 then local quests = {} local missions = msg:getByte() for i = 1, missions do quests[#quests + 1] = msg:getU16() end player:resetTrackedMissions(quests) end end
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_LIGHT) setConditionParam(condition, CONDITION_PARAM_LIGHT_LEVEL, 9) setConditionParam(condition, CONDITION_PARAM_...
local pKey="xxxxxxxxxx" local host="nusensor.appspot.com" local m = node.heap() --local gpio0 = 3 --local gpio2 = 4 --local gpio4 = 2 local GPIO12 = 6 local GPIO13 = 7 local GPIO14 = 5 --Use GPIO13 to provide power for bmp180, si7021 gpio.mode(GPIO13, gpio.OUTPUT) gpio.write(GPIO13, gpio.HIGH) i=0 tmr.alarm(1,5000,...
return { Name = "var="; Aliases = {}; Description = "Sets a stored value."; Group = "DefaultUtil"; Args = { { Type = "storedKey"; Name = "Key"; Description = "The key to set, saved in your user data store. Keys prefixed with . are not saved. Keys prefixed with $ are game-wide. Keys prefixed with $. are ...
local webdevicon_ok, webdevicon = pcall(require, "nvim-web-devicons") if not webdevicon_ok then return end webdevicon.setup { default = true }
-- Lists all the topics of the Modules BR section as BBCODE (@ file 'result.txt'). (Topic | Title | Author) local api = require("fromage") local client = api() local enum = client.enumerations() local normalizeHTML do local entities = { ["&amp;"] = '&', ["&lt;"] = '<', ["&gt;"] = '>', ["&laquo;"] = '«', ["&...
local shell = require("shell") io.write(shell.getWorkingDirectory())
local lgi = require("lgi") local Gtk = lgi.require("Gtk", "3.0") local app = Gtk.Application { application_id = "com.github.Miqueas.Lua-GTK3-Examples.GtkSpinner" } function app:on_activate() self.active_window:present() end function app:on_startup() local win = Gtk.ApplicationWindow { application = self, ...
IsInOnsetCustomsUI = false function LeaveOnsetCustomsUI() ShowMouseCursor(false) SetIgnoreMoveInput(false) SetIgnoreLookInput(false) SetInputMode(INPUT_GAME) IsInOnsetCustomsUI = false SetCameraLocation(0, 0, 0, false) SetCameraRotation(0, 0, 0, false) end local function GetVehiclePriceFromModel...
workspace "CCN_Lab" architecture "x86_64" configurations { "Debug", "Release" } include "Assignment1" include "Assignment2" include "Assignment3" include "Assignment4" include "Assignment5"
--Floors mod minetest.register_node("floors:wood_walkway", { tiles = {"default_wood.png"}, is_ground_content = false, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1}, sounds = default.node_sound_wood_defaults(), description = ("Wood Walkway"), drawtype = "nodebox", paramtype = ...
local string_size = require("engine/core/string_size") local graphics_helper = require("engine/ui/graphics_helper") local text_helper = require("engine/ui/text_helper") local localizer = require("localization/localizer") local gameplay_data = require("resources/gameplay_data") local visual_data = require("resources/vi...
function onSay(cid, words, param) local a = io.open("data/creatures.xml", "w") local ex = io.open("data/extensions.xml", "w") local final = '<?xml version="1.0" encoding="UTF-8"?>\n <creatures>' local efinal = ' <tileset name="POKEMONS">\n <creatures>' local k = io.open("data/monster/monsters.xml", "a+") ...
if onServer() then function initialize(otherPlayerIndex) local requestor = Player() local wanted = Player(otherPlayerIndex) if wanted then local hx, hy = wanted:getHomeSectorCoordinates() requestor:sendChatMessage("Server", 0, "His or her home sector is \\s(%i:%i).", hx, hy) else requestor:sendChatMessage("...
minetest.register_tool( "revival:diamond_scalpel", { description = "Diamond Scalpel", groups = {dissection_tool = 1}, inventory_image = "revival_diamond_scalpel.png", wield_image = "revival_diamond_scalpel.png" } ) minetest.register_tool( "revival:steel_scalpel", { ...
---- -- Tests for the xlsxwriter.lua core class. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- require "Test.More" require "Test.LongString" plan(1) ---- -- Tests setup. -- local expected local got local caption local Core = require "xlsxwriter.core" local core -- Remove extra whitespace in the formatt...
spiceAmount = 0 spiceMaxLvl1 = 10000 defaultSpiceBarPath = "Assets/New UI/spice_bar_fill_default.png" isDefaultBar = true -- Taken spice takenSpice = false whiteBlinkTimer = nil whiteBlinkTotalTimer = nil whiteSpiceBarPath = "Assets/New UI/spice_bar_fill_white.png" whiteBlinkDuration = 0.9 whiteBlinkTransitionSpeed =...
return PlaceObj("ModDef", { "title", "Veridian Dynamics (Logo)", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_Logos_VeridianDynamics", "steam_id", "1520470773", "author", "BrowncoatTrekky & ChoGGi", "lua_revision", 249143, "TagColonyLogos", true, "c...
metabase "msvc2010_windowsx64" option("msvc", "version", "2010") option("msvconfiguration", "PlatformToolset", "v100") import "msvc_common_windows.lua" import "msvc_common_windowsx64.lua" metabase_end()
-- compatibility module for old Garry's Mod luasocket modules require("socket")
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style 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 training...
local Territories = {} local insidePoint = false local activeZone = nil local QBCore = exports['qb-core']:GetCoreObject() isLoggedIn = false PlayerGang = {} PlayerJob = {} RegisterNetEvent('QBCore:Client:OnPlayerLoaded') AddEventHandler('QBCore:Client:OnPlayerLoaded', function() isLoggedIn = true PlayerGang ...
help([==[ Description =========== The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...). More information ================ - Homepage: http://gcc.gnu.org/ ]==]) whatis([==[Description: The GNU Compiler Coll...
return { {id = 1, name = ""} }
function onCreate() addLuaScript('dialogueEnd') end local timesend = 0 function onEndSong() timesend = timesend + 1 if timesend == 1 and isStoryMode then playSound('pickup',1) return Function_Stop; end return Function_Continue; end function onNextDialogue(count) -- triggered when the nex...
Fuel = {} Fuel.Explode = true
function NilIO(info) return {nil, info; n=2} end function BangIO(info) return {nil, info; n=2} end function RealIO(units, info) return {0.0, units, info} end function StringIO(units, info) return {"", units, info} end function RangeIO(min, max, units, info) return {0.0, min, max, units, info} end functio...
--[[ Copyright (C) 2018 "IoT.bzh" Author Sebastien Douheret <sebastien@iot.bzh> 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 re...
-- Number of bars. Older bars will refresh if judgments/barDuration exceeds this value. local barcount = playerConfig:get_data().ErrorBarCount -- Width of the bars. local barWidth = GAMEPLAY:getItemWidth("errorBarBarWidth") -- Time duration in seconds before the ticks fade out. Doesn't need to be higher than 1. Maybe i...
local popup = {} local api = vim.api local function bufnr_calc_width(buf, lines) return api.nvim_buf_call(buf, function() local width = 0 for _, l in ipairs(lines) do local len = vim.fn.strdisplaywidth(l) if len > width then width = len end end return ...
local mod = DBM:NewMod(2210, "DBM-Azeroth-BfA", nil, 1028) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 18026 $"):sub(12, -3)) mod:SetCreatureID(138794) --mod:SetEncounterID(1880) mod:SetReCombatTime(20) mod:SetZone() --mod:SetMinSyncRevision(11969) mod:RegisterCombat("combat") mod:RegisterEvent...
local file = io.open("Dia14.txt", "r") local text = file:read("*a") file:close() local function split(str, del) --String, Delimiter local t = {} for value in str:gmatch("[^" .. del .. "]+") do table.insert(t, value) end return t end local inventory = {} local function getList(adjust) local l...
---------------------------------------------------------------- -- Sceneを生成するファクトリークラスです. -- SceneManagerにより使用されます. ---------------------------------------------------------------- -- import local Scene = require("hp/display/Scene") -- class local M = {} --------------------------------------- -- シーンを生成します. -- この関数...
-- A custom array shuffle implementation -- This is not part of the Bogosort algorithm local function shuffle(list) local n = #list for i = 1, n do local j, k = math.random(1,n), math.random(1,n) list[j], list[k] = list[k], list[j] end return list end -- Checks if an array is sorted local function is_sorted...
FACTION.name = "Staff" FACTION.desc = "A [Z.E.C.T] Warhammer 40k: Rogue Trader Staff Member." FACTION.color = Color(128, 0, 128) FACTION.pay = 0 FACTION.payTime = 600 FACTION.health = 100 FACTION.armor = 0 FACTION.isDefault = false function FACTION:onSpawn(client) -- Custom health and armor for players in this fact...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Numpad Input" ENT.WireDebugName = "Numpad Input" if CLIENT then return end -- No more client //As input.GetKeyName is Clientside only, the following list is generated by: //lua_run_cl local a="{\"" for k=1, KEY_LAST do a=a..input.GetKey...
--[[ Business logic for the add task feature. ]]-- function todo.on_save_new_task_click(player) todo.log("Creating task by player " .. player.name) local dialog = todo.get_add_dialog(player) if (dialog == nil) then return end local task_data, should_add_to_top = todo.get_task_from_add_d...
-------------------------------- -- @module MWAStarPathFinder -- @extend MWObject -- @parent_module mw -------------------------------- -- -- @function [parent=#MWAStarPathFinder] getMapHeight -- @param self -- @return int#int ret (return value: int) -------------------------------- -- -- @function [paren...
-- 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. -- --[[ -- -- A container tha...
require 'cairo' require 'lib' --[[ Convert hexadezimal colors to rgba values e.g. cairo_set_source_rgba(cr, rgbToRgba(0xff7f00, 0.8)) ]] function rgbToRgba(color, alpha) return ((color / 0x10000) % 0x100) / 255.0, ((color / 0x100) % 0x100) / 255.0, (color % 0x100) / 255.0, alpha end --[[ Write text on cr by ...
local AddonName, AddonTable = ... AddonTable.enchanting = { -- Materials 152875, -- Gloom Dust 152876, -- Umbra Shard 152877, -- veiled crystal -- Enchants 153437, -- Enchant Gloves - Kul Tiran Crafting 153438, -- Enchant Ring - Seal of Critical Strike 153439, -- Enchant Ring - Seal of ...
-- ファイルを転送するスクリプト -- ファイルをタイムシフト再生できる: http://localhost:5510/xcode.lua?fname=video/foo.ts dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') fpath=mg.get_var(mg.request_info.query_string,'fname') if fpath then fpath=DocumentToNativePath(fpath) option=XCODE_OPTIONS[GetVarInt(mg.request_info.query_strin...
----------------------------------- -- Area: Upper Jeuno -- NPC: Luto Mewrilah -- !pos -53 0 45 244 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) ...
-- Melts metals using lava as a heat source. local S = metal_melter.S -- Max lava that can be held by the melter. metal_melter.max_fuel = 8000 -- Spec divided by this number is the lava usage. metal_melter.lava_usage = 9 -- Max metal that can be held by the melter. metal_melter.max_metal = 16000 -- How much metal ...
local mod = DBM:NewMod(1133, "DBM-Party-WoD", 3, 536) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15007 $"):sub(12, -3)) mod:SetCreatureID(80005) mod:SetEncounterID(1736) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 163447 161588", "SPELL_AURA_APP...
return Def.ActorFrame{ Font("mentone","24px")..{ InitCommand=cmd(NoStroke;zoom,0.65;halign,1); SetGradeCommand=function(self,params) local sGrade = params.Grade or 'Grade_None'; local gradeString = THEME:GetString("Grade",ToEnumShortString(sGrade)) self:settext(gradeString) self:diffuse(PlayerColor(par...
local json = require 'json' local loader = {} function loader.fromFile(fname) local l ={} local data = love.filesystem.read("string", fname) local levelData = json.decode(data) function l.getDimensions() return levelData.width, levelData.height end function l.buildMap() return l...
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:InitializeSuper("stoploops","BasicCommands","Stops all active loop commands.") e...
local Prop = {} Prop.Name = "Mesa 3-325 Grif Dr" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -1278, 9218, 804 ), Vector( -974, 8962, 804 ), Vector( -826, 9426, 804 ), Vector( -946, 9342, 804 ), Vector( -946, 9470, 804 ), } GM.Property:Register( Prop )
yatm.codex.register_entry("yatm_mail:mailbox", { pages = { { heading_item = { context = true, default = "yatm_mail:mailbox_wood_default", }, heading = "Mailbox", lines = { "Mailboxes are item storage nodes.", "They can be used by other players to drop-off it...
CustomizableWeaponry:addFireSound("M4A4.FIRE", "weapons/M4A4/M416-1.wav", 1, 125, CHAN_STATIC) CustomizableWeaponry:addFireSound("M4A4.FIRE.SUPPRESSED", "weapons/M4A4/M416_SIL-1.wav", 1, 75, CHAN_STATIC) CustomizableWeaponry:addReloadSound("M4A4.Cloth", "weapons/M4A4/cloth.wav") CustomizableWeaponry:addReloadSound("M4...
#! /usr/bin/env lua --[[-%tabs=3---------------------------------------------------------------- | | | Module: export.lua | | Function: Export data structure in Lua-readable syntax ...
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local command = {} local api_map = {} function command.auth(server, user, passwd) local api = api_map[server] if not api then return nil, "User auth api does not exists for server "..server end return api:login(user, passwd) e...