content
stringlengths
5
1.05M
function FlyingText(text, position, color) color = color or {r = 1, g = 1, b = 1} -- local surface = game.surfaces.nauvis return game.surfaces.nauvis.create_entity { name = 'tutorial-flying-text', text = text, position = {x = position.x, y = position.y - 1}, color = color ...
function Theras_OnEnterCombat(Unit,Event) Unit:RegisterEvent("Terrormaster_ManaBurn", 20000, 0) Unit:RegisterEvent("Terrormaster_Metamorphosis", 1000, 1) Unit:RegisterEvent("Terrormaster_Spellbreaker", 12000, 0) end function Theras_ManaBurn(Unit,Event) Unit:FullCastSpellOnTarget(39262,Unit:GetClosestPlayer()) end ...
local API = require('api') local class = require('middleclass') local api = API() local Transport = class('Transport') function Transport:get_peers() -- Get a list of peers. return api:get("peer/list") end function Transport:get_common_blocks(ids) -- Get a list of blocks by ids. -- :param ids: List of bloc...
function win(side) -- Announces win? time = 0 -- Reset game bullets.reset() particles.reset() if side == "l" then particles.ekusuploshun(rcol[1], rcol[2], rcol[3]) -- Left wins else particles.ekusuploshun(lcol[1], lcol[2], lcol[3]) -- Right wins end end function love.load() ...
--//================================================================ local _JudgmentColor = { ["Flawless"] = color("#ffc4ed"), ["Perfect"] = color("#6ccfff"), ["Great"] = color("#a9ff63"), ["Good"] = color("#ffd075"), ["Bad"] = color("#ae84cf"), ["Miss"] = color("#ff5252"), } ...
local ffi = require("ffi") --#include <stdarg.h> --#include <sys/uio.h> require ("sd-id128") require ("sd-event") ffi.cdef[[ /* Types */ typedef struct sd_bus sd_bus; typedef struct sd_bus_message sd_bus_message; typedef struct sd_bus_slot sd_bus_slot; typedef struct sd_bus_creds sd_bus_creds; typedef struct sd_bu...
function edit_fields(name) local field_editor_dialog = extra_dialogs["field_editor"] if( not field_editor_dialog) then number_editor_1 = iup.text{expand="HORIZONTAL"} number_editor_2 = iup.text{expand="HORIZONTAL"} local number_editor_1_box = iup.hbox{iup.label{title = "Minimum: "},...
include("shared.lua"); -- Called when the entity initializes. function ENT:Initialize() end -- Called when the entity should draw. function ENT:Draw() self.Entity:DrawModel() end -- Called when the entity should think. function ENT:Think() local dlight = DynamicLight( self:EntIndex() ) if ( dligh...
AddCSLuaFile() if( CLIENT ) then SWEP.PrintName = "NPC Spawn Editor" SWEP.Slot = 0 SWEP.SlotPos = 0 SWEP.CLMode = 0 end SWEP.HoldType = "fists" SWEP.Category = "impulse" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.m...
C_ContributionCollector = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ContributionCollector.Close) function C_ContributionCollector.Close() end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ContributionCollector.Contribute) ---@param contributionID number function C_ContributionCollector....
mysql = exports.mrp_mysql function giveFishLicense(usingGC) dbExec(mysql:getConnection(), "UPDATE characters SET fish_license='1' WHERE charactername='" .. (getPlayerName(source)) .. "' LIMIT 1") exports.mrp_anticheat:changeProtectedElementDataEx(source, "license.fish", 1) exports.mrp_hud:sendBottomNotification(sou...
local class = require("class") local Menu = class() function Menu:init(name, parent) self.name = name or "" self._parent = parent self.items = {} self.type = MenuItemType.SubMenu self.active = true end function Menu:multiSelect(items, selected, handler, active) if active == nil then active = t...
--- -- FDMM Arms Plant Module. -- @module FDMM_ArmsPlant env.info("---FDMM_ArmsPlant Start---") require('Territory/FDMM_Facility') --- FDMM arms plant module. fdmm.armsPlant = {} do -- FDMMArmsPlant --- Arms plant class that manages an arms manufacturing plant facility in a territory, which acts as an RPType.Arms...
local AddonName, AddonTable = ... -- Halls of Stone AddonTable.hos = { -- Krystallus 37649, -- Quarry Chisel 35670, -- Brann's Lost Mining Helmet 35672, -- Hollow Geode Help 37652, -- Spaulders of Krystallus 35673, -- Leggings of Burning Gleam 37650, -- Shardling Legguards 37651, -- The...
module(..., package.seeall) local helpers = require 'lib.helpers' local escape = helpers.xml_escape local noext = helpers.strip_extension local fmt_title = helpers.title local fmt_message = helpers.message local fmt_ts = helpers.timestamp local fmt_email = helpers.email local fmt_uuid = helpers....
local meta = FindMetaTable("Player") function meta:AddToBalance(amount) local curBalance = self:GetBalance() self:SetBalance(curBalance + amount) end function meta:RemoveFromBalance(amount) local curBalance = self:GetBalance() self:SetBalance(curBalance - amount) end function meta:SetBalance(balance) self:Set...
local original_lab = data.raw["lab"]["lab"] local beaconed_data = { machine_energy_usage = original_lab.energy_usage, machine_emissions = original_lab.energy_source.emissions_per_minute, machine_crafting_speed = original_lab.researching_speed, machine_module_slots ...
local _, CLM = ... -- Libs local ScrollingTable = LibStub("ScrollingTable") local AceGUI = LibStub("AceGUI-3.0") -- local LIBS = { -- registry = LibStub("AceConfigRegistry-3.0"), -- gui = LibStub("AceConfigDialog-3.0") -- } local LOG = CLM.LOG local UTILS = CLM.UTILS local MODULES = CLM.MODULES local CONSTAN...
function process_includedirs(list) local r = "" for _, v in ipairs(list) do r = r .. ' -I "' .. v .. '"' end return r end local prj_root = path.getabsolute('../../') local old_files = files function string.remove_null(s) local pos = s:find("\0") if not pos then return s end retur...
local function logJsonRecursive(obj) if type(obj) == 'string' then _G.logger:writeMsg('"' .. obj .. '"') elseif type(obj) == 'table' then local first = true _G.logger:writeMsg('{') for key, val in pairs(obj) do if not first then _G.logger:writeMsg(',') else first = fals...
-- med_flame_hit return { ["med_flame_hit"] = { fakelight = { air = false, class = [[CSimpleGroundFlash]], count = 4, ground = true, water = false, properties = { colormap = [[1 1 1 1 1 0.5 ...
local _M = require('apicast.policy.oidc_authentication') local JWT = require('resty.jwt') local rsa = require('fixtures.rsa') local OIDC = require('apicast.oauth.oidc') local http_ng = require 'resty.http_ng' local access_token = setmetatable({ header = { typ = 'JWT', alg = 'RS256', kid = 'somekid' }, payload = { ...
local _M = require 'resty.resolver.socket' describe('resty.resolver.socket', function() describe('.new', function() it('initializes client', function() local wrapper = _M.new(ngx.socket.tcp()) assert.truthy(wrapper) end) end) describe(':connect', function() it('resolves localhost', fun...
require("/dynamic/helpers/sound_parser.lua") sound = parseSound('https://pewpew.live/jfxr/index.html#%7B%22_version%22%3A1%2C%22_name%22%3A%22Powerup%2030%22%2C%22_locked%22%3A%5B%5D%2C%22sampleRate%22%3A44100%2C%22attack%22%3A0.008769257937429664%2C%22sustain%22%3A0.1%2C%22sustainPunch%22%3A70%2C%22decay%22%3A0.37975...
--This was programmed by vissequ#1301 (Discord). You may use this any way you wish, but please do not remove this credit. local h script.Parent.ChildAdded:Connect(function() h = script.Parent.Occupant if h:IsA("Humanoid") then for i,v in pairs(h.Parent:GetChildren()) do if v:IsA("BasePart") or v:IsA("MeshPart"...
local PlayerController = require(game.ServerScriptService.kwatworks.Base.BaseController):extend() local PlayerObject = require(game.ServerScriptService.kwatworks.Core.PlayerObject) PlayerController.players = {} function PlayerController:Add(player) assert(player:is(PlayerObject),"Instance is not a player object...
; <a name=top> ; <a href="https://git.io/sin21"><img width=400 src="/docs/img/sin1.png"></a> ; <hr> ; <p> ; &nbsp;<a href="https://git.io/sin21">home</a> :: ; <a href="https://github.com/txt/sin21/blob/master/docs/syllabus.md#top">syllabus</a> :: ; <a href="https://github.com/txt/sin21/blob/master/docs/syllabu...
-- Pawn by Vger-Azjol-Nerub -- www.vgermods.com -- © 2006-2018 Green Eclipse. This mod is released under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 license. -- See Readme.htm for more information. -- -- German resources ------------------------------------------------------------ local function Pa...
local opts = { noremap = true, silent = true } local keymap = vim.api.nvim_set_keymap keymap("n", "<leader>m", ":MaximizerToggle!<CR>", opts)
local cmdM = {} local dbHeroTbl = require("game.db.dbHeroTbl") local addItemByLoc = require("game.cmd.addItemByLoc") local army_max_level = require("game.config.army_max_level") local army_level = require("game.config.army_level") local hero = require("game.config.hero") local enum = require("game.config.enum") local...
local co = coroutine.create(coroutine.yield) coroutine.resume(co)
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end if player:getStorageValue(Storage.secretService.TBIMission03) == 1 then player:setStorageValue(Storage.secretService.TBIMission03, 2) Game.createMonster('pirate buccaneer', Positio...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies] PreloadPT all invalid values in "RequestType" array -- -- Description: -- Behavior of SDL during start SDL in case when PreloadedPT has has several values in "RequestType" array and one of...
----------------------------------- -- Area: Den of Rancor -- Mob: Doom Toad -- Note: PH for Ogama ----------------------------------- local ID = require("scripts/zones/Den_of_Rancor/IDs") require("scripts/globals/regimes") require("scripts/globals/mobs") ----------------------------------- function onMobDeath(mob, p...
slot2 = "BaseWinNoticeCcsPane" BaseWinNoticeCcsPane = class(slot1) BaseWinNoticeCcsPane.onCreationComplete = function (slot0) slot1, slot2 = nil slot5 = "zsb_firetipskuangeffectyy/zsb_firetipskuangeffectyy.json" slot5 = "zsb_firetipskuangeffectyy/zsb_firetipskuangeffectyy.atlas" slot0._spineBg = sp.SkeletonAnimati...
-- // WARNING: The section below may NOT be optimised and very unclean. I'm currently working on this as a Temporary solution. \\ -- -- Hides HUD local hide = { ["CHudHealth"] = true, ["CHudBattery"] = true, ["CHudAmmo"] = true, ["CHudSecondaryAmmo"] = true } local curteam local mat = { [1] = Material("vgui/phe...
--control.lua local function replaceOre(entity, new) local surf = entity.surface local pos = entity.position local amt = entity.amount local force = entity.force entity.destroy() surf.create_entity({name = new, position = pos, force = force, amount = amt}) surf.create_entity({name = "nuclear-ore-overlay", pos...
package.path = package.path..";../?.lua" local ffi = require "ffi" local Keyboard = require "Keyboard" local EventLoop = require "EventLoop" local DMX = require "DisplayManX" local Display = DMXDisplay(); --Display:SetBackground(0,0,0); local screenWidth, screenHeight = Display:GetSize(); local displayHeight = sc...
-- begin blueprint for apps{} sorting and filtering apps = {} apps.mt = {} function apps.new(o) o = o or {} setmetatable(o, apps.mt) o.print = apps.print o.sort = apps.sort o.filter = apps.filter return o end function apps.sort(self, arg) local i = 1 if arg == nil then a...
do (nil)(function(jf) local i, s = jf.i, jf.s return { int_add_c = 5, int_sub_c = -1, int_mul_c = 6, int_div_c = 3, int_exp_c = 8, int_eq_c = false, int_ne_c = true, int_lt_c = true, int_gt_c = false, int_le_c = false, int_ge_c = true, in...
Paddle = class('Paddle') function Paddle:initialize(side) self.speed = 400 self.width = 25 self.height = 125 self.side = side self.y = height / 2 - self.height / 2 if side == 'left' then self.x = 40 self.downKey = 's' self.upKey = 'w' elseif side == 'right' then self.x = width - 40 - self....
Victim = game.Players["LocalPlayer"] Victim = Victim.Character o1 = Instance.new("Sound") o1.Parent = Victim.Head o1.SoundId = "rbxassetid://429400881" o1:Play() o1 = Instance.new("Sound") o1.Name = "SoundofPain" o1.Parent = Victim.Head o1.Volume = 3 o1.SoundId = "rbxassetid://606862847" o1:Play() V...
local math = require('math') local math_abs = math.abs local math_ceil = math.ceil local math_exp = math.exp local math_pi = math.pi local math_sqrt = math.sqrt math.e = math_exp(1) math.phi = (1 + math_sqrt(5)) / 2 math.tau = 2 * math_pi local math_mult = function(...) local mult = 0 for i = 1, select('#',...
local search = {} local dir = require("luarocks.dir") local path = require("luarocks.path") local manif = require("luarocks.manif") local vers = require("luarocks.core.vers") local cfg = require("luarocks.core.cfg") local util = require("luarocks.util") local queries = require("luarocks.queries") local results = requi...
local modulename = "abtestingCache" local _M = {} _M._VERSION = '0.0.1' local ERRORINFO = require('abtesting.error.errcode').info local systemConf = require('abtesting.utils.init') local prefixConf = systemConf.prefixConf local runtimeLib = prefixConf.runtimeInfoPrefix local indices = systemConf.indices local field...
Bola=Core.class(Sprite) function Bola:init() print(texto) local bitmap=Bitmap.new(Texture.new("enemy.png")) self:addChild(bitmap) stage:addChild(self) self.velocidade=math.random(1,3) self.setX(math.random(0,270)) self:addEventListener(Event.ENTER_FRAME, self.movimenta,self) self:addEventListen...
local VIB_AMP = { 0x01, 0x02, 0x03, 0x04, 0x06, 0x09, 0x0B, 0x0D, 0x10, 0x15, --0x1D, 0x2B, 0x3F, 0x5F, 0x7F, } local apulimit = function (x) return math.min(0x7FF, math.max(0, x)) end local apufreq = function (x) return apulimit(math.floor(236250000 / 132 / 16 / x - 1 + .5)) end local freqapu = function (x) return ...
#include "effects.lua" #include "utils.lua" #include "textbox.lua" local sortedEffectList = {} local menuScrollPosition = 0 local listScreenMaxScroll = 0 function init() saveFileInit() sortedEffectList = SortEffectsTable() listScreenMaxScroll = #sortedEffectList / 4 * 20 + 10 end function draw() local t...
function Assert(expr) if not expr then error("Assertion failed") end end function AssertEquals(value, expectation) local equals if type(expectation) == "table" then equals = (Ext.Json.Stringify(expectation) == Ext.Json.Stringify(value)) else equals = (expectation == value) ...
default.chest.register_chest("rewarding_chest", { description = ("Chest"), tiles = { "rewarding_chest_top.png", "rewarding_chest_top.png", "rewarding_chest_side.png", "rewarding_chest_side.png", "rewarding_chest_front.png", "rewarding_chest_inside.png" }, sounds = default.node_sound_glass_defaults(), s...
function WriteMessage(size) local writer = { id = _WriteMessage(size) } function writer:WriteUInt8(value) _WriteUInt8(self.id,value) return self end function writer:Send() _SendMessage(self.id) return self end return writer end function __ReadMessage() local reader = {} function reader:ReadUInt8() ...
return {'criant','cricket','cricketbal','cricketbond','cricketen','cricketer','cricketmatch','cricketteam','cricketveld','cricketwedstrijd','crime','crimefighter','criminaliseren','criminalisering','criminalist','criminalistiek','criminaliteit','criminaliteitsbeheersing','criminaliteitsbeleid','criminaliteitsbestrijdin...
-- If it works, it's written by UzukiShimamura. If it doesn't work, I don't know who the fxxk wrote it! -- define SotS StatueOfTheSeven include("GameCapabilities"); function OnTurnBegin_SotSReset() for i = 0, GameDefines.MAX_PLAYERS-1, 1 do local pPlayer = Players[i]; if HasTrait("TRAIT_GENSHIN_BUILDING_STATUE_O...
HUD = { cooldowns = {} } Thread = {} --[[ Functions: HUD ]]-- function HUD:Init() DisplayRadar(false) local dict = "map" while not HasStreamedTextureDictLoaded(dict) do RequestStreamedTextureDict(dict) Citizen.Wait(200) end AddReplaceTexture("platform:/textures/graphics", "radarmasksm", dict, "radarmasksm")...
-- Устанавливает гравитацию транспортного средства игрока так, чтобы можно было ездить по любым поверхностям -------------------------------------------------------------------------------- --<[ Модуль FunGravityVehicle ]>------------------------------------------------ ------------------------------------------------...
--------------------------------------------- -- Megaflare -- Family: Bahamut -- Description: Deals heavy Fire damage to enemies within a fan-shaped area. -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: -- Notes: Used by Bahamut every 10% of its HP (except at 10%), but can use at will when und...
dofile(factory.modpath.."/items/zinc.lua") dofile(factory.modpath.."/items/crafting.lua") dofile(factory.modpath.."/items/craftitems.lua") dofile(factory.modpath.."/items/gears.lua") dofile(factory.modpath.."/items/moving_item.lua") dofile(factory.modpath.."/items/battery_item.lua") dofile(factory.modpath.."/items/wire...
-- ROT13 ciphering algorithm implementation -- See: http://en.wikipedia.org/wiki/ROT13 -- Returns the ASCII bytecode of either 'a' or 'A' local function ascii_base(s) return s:lower() == s and ('a'):byte() or ('A'):byte() end -- ROT13 is based on Caesar ciphering algorithm, using 13 as a key local function caesar_c...
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 10, height = 10, tilewidth = 32, tileheight = 32, properties = { ["blockx"] = "32", ["blocky"] = "32", ["format"] = ".png", ["numx"] = "8", ["numy"] = "6" }, tilesets = { { name = "tmw_desert_spacing", firstgid = 1, tilewidth = 32, tilehe...
--[[ - SKYNET SIMPLE ( https://github.com/viticm/skynet-simple ) - $Id mysqlauto.lua - @link https://github.com/viticm/skynet-simple for the canonical source repository - @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com ) - @license - @user viticm( viticm.ti@gmail.com ) - @date 2020/08/05 16:22 - @uses...
local func = {} func.check_collision_rect = function(obj1, obj2) return obj1.x < (obj2.x + obj2.width) and obj2.x < (obj1.x + obj1.width) and obj1.y < (obj2.y + obj2.height) and obj2.y < (obj1.y + obj1.height) end func.check_collision_circle = function(circleA, circleB) local ...
return { __important = true, __target = "eaw-lua.log", __id = "file", __has_character_limit = false, __log = function(self, message) _CustomScriptMessage(self.__target, tostring(message)) end, with_target_file = function(self, target) if nil == target then return end ...
--[[ The MIT License (MIT) Copyright (c) 2018 Setzerbomb 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, ...
----------------------------------------------------------------------- --[[ Standardize ]]-- -- A Preprocess that subtracts the mean and divides -- by the standard deviation. ----------------------------------------------------------------------- local Standardize = torch.class("dp.Standardize", "dp.Preprocess") Stan...
-- mod-version:2 local core = require "core" local config = require "core.config" local linter = require "plugins.linter" config.ameba_args = {} linter.add_language { file_patterns = {"%.cr$"}, warning_pattern = "[^:]:(%d+):(%d+)\n[%s]?([^\n]+)", command = core.project_dir .. "/bin/ameba $FILENAME $ARGS --no-co...
--[[ Name: "sv_enum.lua". Product: "blueprint". --]] DAY_LENGTH = 1440; NOON_EXACT = 720; DAWN_EXACT = 360; DUSK_EXACT = 1080; DAWN_START = 216; DUSK_START = 936; DAY_START = 300; DAWN_END = 504; DUSK_END = 1224; DAY_END = 1110; LIGHT_HIGH = string.byte("z"); LIGHT_LOW = string.byte("a");
package.path = 'utf8.lua/?.lua;' .. package.path utf8 = require 'utf8' AUTHOR_MAX_SIZE = 15 AUTHOR_MAX_DISPLAY = 11 AUTHOR_LINK = "" ARRAY_AUTHORS = {} ARRAY_AUTHORS_SIZE = 0 NUMBER_OF_COLUMNS = 1 -- Dump the content of a table, usefull for debuging purpose -- source: https://stackoverflow.com/a/27028...
local app = require "pl.app" local utils = require "pl.utils" local path = require "pl.path" local asserteq = require 'pl.test'.asserteq local quote = utils.quote_arg local _, cmd = app.lua() cmd = cmd .. " " .. quote({"-e", "package.path=[[./lua/?.lua;./lua/?/init.lua;]]..package.path"}) local function run_script(s...
--[[ Copyright (c) 2010 Sjors Gielen 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, distribute, ...
Config = {} Config.Strefy = { Pole1 = { Pos = { x = 300.26428222656, y = 4311.1333007812, z = 46.721260070801}, Size = 25.0 }, Pole2 = { Pos = { x = -2358.904296875, y = 2696.2639160156, z = 2.9664077758789}, Size = 25.0 }, Pole3 = { Pos = { x...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Sausage"; ITEM.model = "models/griim/foodpack/sausage.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "A sausage made out of some kind of assorted meats. You don't want to know what the skin's ma...
local t = LoadActor("ScreenSelectMusic decorations/default") return t
ITEM.name = "SEVA" ITEM.model ="models/kek1ch/scientific_outfit.mdl" ITEM.newModel ="models/nasca/stalker/male_seva_lone.mdl" ITEM.description= "SEVA suit." ITEM.longdesc = "This suit was produced by one of Kiev's Defence Research institutes and represents a phenomenal alternative to stalker hand-made suits. It is an e...
-- ----------------------------------------------------------------------------- -- Parse -- ----------------------------------------------------------------------------- describe('RepeatUntil.parse', function() spec('repeat until', function() assert.has_subtable({ cond = { value = 'true' }, }, parse.R...
-- illremember's cool new kill script for fe -- requires 2 tools, replace TARGET name with person you want -- NO FE GODMODE!! TARGET = "PUT PLAYER NAME HERE" lplayer = game:GetService("Players").LocalPlayer for i,v in pairs(lplayer.Backpack:GetChildren())do lplayer.Character.Humanoid:EquipTool(v) end for i,v in pairs(...
-- Mapping of QNX PPS messaging and SMQ -- http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.pps.developer/topic/about.html -- https://realtimelogic.com/ba/doc/?url=SMQ.html local tinsert,fmt=table.insert,string.format -- Table with function names equal the :encoding: as specified here: -- http://www.qnx.com/de...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2398 --------------------------------------------------------------------------------------------------- -- Description: Processing of 'SendLocation' with mult...
require('scripts/debug') local mod_gui = require("mod-gui") local gui_button_style = "slot_button_notext" local gui_button_style_whitetext = "slot_button_whitetext" local activedebug = false local iconlist = require('iconlist') local iconlist_creativemod = { {"creative-mod", "creativemod_button", "creative-mod...
-- taken from https://github.com/minetest/minetest_game/blob/master/mods/default/functions.lua default.cool_lava = function(pos, node) if node.name == "default:lava_source" then minetest.set_node(pos, {name = "default:obsidian"}) else -- Lava flowing minetest.set_node(pos, {name = "lavastone:lavastone"}) end m...
local initialize_rules = require 'validation.rules.initialize_rules' local setmetatable = setmetatable local check_rules = {__index = { validate = function(self, value, model, translations) if value == nil then return nil end local rules = self.rules for i = 1, #rules ...
object_static_item_item_wrapped_candy = object_static_item_shared_item_wrapped_candy:new { } ObjectTemplates:addTemplate(object_static_item_item_wrapped_candy, "object/static/item/item_wrapped_candy.iff")
local awful = require('awful') local spawn = require('awful.spawn') local app = require('configuration.apps').default.quake local quake_id = 'notnil' local quake_client local opened = false function create_shell() quake_id = spawn( app, { skip_decoration = true } ) end function open_quake() ...
_errors = { '<TI><p align="center">Errors</p>' } ERROR_TA = 3 MAX_ERRORS = 7 function alert(str, name) ui.addPopup(0, 0, string.format('<font face="mono" size="15">%s</font>', str), name, 200, 150, 400, true) end function addError(err) err = string.format("• %s\n", err) for i = #_errors + 1, 3, -1 do ...
error('Error: from script init.server.lua')
local json = require 'cjson' --local bjson = BestHTTP.JSON.Json local jsonSplit = JsonSplit; local GameObject = UnityEngine.GameObject --local WebRequest = UnityEngine.Networking.UnityWebRequest; --local TextureRequest = UnityEngine.Networking.UnityWebRequestTexture; local mHTTPRequest = BestHTTP.HTTPRequest; local ht...
if SERVER then PrisonSystem.RegisterJob("cook", function(ply) end, function(ply) end) end
--- Provides a basis for the compass GUI. Invidiual CompassElements handle -- the positioning. -- @classmod ICompass local ICompass = {} ICompass.__index = ICompass ICompass.ClassName = "ICompass" ICompass.PercentSolid = 0.8 ICompass.ThetaVisible = math.pi/2 function ICompass.new(CompassModel, Container) --- Makes a...
local parser = require("parser") local jump_linker = require("jump_linker") local emmy_lua_parser = require("emmy_lua_parser") local emmy_lua_linker = require("emmy_lua_linker") local util = require("util") local error_code_util = require("error_code_util") local xml = require("scripts.xml_util") local md = require("s...
----------------------------------- -- Area: Windurst Woods -- NPC: Etsatsa ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(252) end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
--[[ Metatables ]]-- Main = {} Main.shops = {} Shop = {} Shop.__index = Shop --[[ Functions: Main ]]-- function Main:Init() if self._Init then self:_Init() end for id, shop in pairs(Config.Shops) do self:RegisterShop(id, shop) end end function Main:RegisterShop(id, info) local shop = Shop:Create(id, info) ...
function CDOTA_BaseNPC_Hero:GetNetworth () return GetNetworth(self) end
-- -- @copyright (c) 2016 Upstart Illustration LLC. All rights reserved. -- local Ticket = Class() function Ticket.new(self) local productId local sku function self.init(_productId, _sku) productId = _productId sku = _sku end function self.getProductId() return productId ...
--[[ Copyright (c) 2021, TU Delft 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 writing, software...
return { version = "1.1", luaversion = "5.1", tiledversion = "0.14.2", orientation = "orthogonal", renderorder = "right-down", width = 25, height = 50, tilewidth = 8, tileheight = 8, nextobjectid = 9, properties = {}, tilesets = { { name = "tiles", firstgid = 1, tilewidth =...
money = {} money.x = 128 money.y = 64 money.sprite=51 money.light = false money.draw=false function draw_money() spr(money.sprite,money.x,money.y) end function hit_money() if start_menu == false then if player.x+7 > money.x and player.x < money.x+7 then if player.y+7 > money.y and player.y < money.y+7 ...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] local UserProfileScene = class('UserProfileScene') local AccountInfo = require('AccountInfo') local Resources = require('Resources') local showMessageBox = require('UICommon.MessageBox').showMessageBox; function UserProfileScene.extend(target, ...) local t = tolua.getpeer(...
local function qt_table(sdkdir, version) return { version = version, sdkdir = sdkdir, sdkver = version, bindir = path.join(sdkdir, "bin"), includedir = path.join(sdkdir, "include"), libdir = path.join(sdkdir, "lib"), libexecdir = path.join(sdkdir, "libexec"), ...
local awful = require('awful') local gears = require('gears') local dpi = require('beautiful').xresources.apply_dpi require('awful.autofocus') local modkey = require('configuration.keys.mod').mod_key local altkey = require('configuration.keys.mod').alt_key -- Resize client in given direction local floating_resize_amou...
require'nvim-treesitter.configs'.setup({ ensure_installed = { 'bash', 'c', 'c_sharp', 'comment', 'cpp', 'css', 'go', 'graphql', 'html', 'javascript', 'json', 'lua', 'regex', 'ruby', 'toml', 'tsx', 'typescript' }, highlight = { enable = true, ...
number = 33.33 float = 3.141 title = "A title" width = 600 height = 400 fullscreen = true matrix ={ {111,222,333}, {444,555,666}, {777,888,999} } Table1 = {ID = 1, Value = 123, Text = "Test"} -- Val = 123 Table2 = { t = "Table2", X = 1+15-3, Y = 1+10, W = 3, H = 10, Test...