content
stringlengths
5
1.05M
s = Instance.new("Sound", game.Workspace) s.Volume = 1 s.SoundId = "http://www.roblox.com/asset/?id=410806544" for _,v in pairs(game.Players:GetChildren()) do v.Chatted:connect(function(msg) if string.match(msg,"here come dat boi") then s:Play() if v.Character.Head:FindFirstChild("Dat Boi") then print("Already Exists G...
-- VARIABLES =================================================================== -- Amount used in place of passing arguments to a function timer = 0.0 audio = nil -- FUNCTIONS =================================================================== function Constructor() audio = owner:GetComponent("AudioEmitter") audi...
local random random = love.math.random Vector.left = Vector(-1, 0) Vector.right = Vector(1, 0) Vector.up = Vector(0, -1) Vector.down = Vector(0, 1) randomChoice = function(t) local keys do local _accum_0 = { } local _len_0 = 1 for key, _ in pairs(t) do _accum_0[_len_0] = key _len_0 = _len_0 ...
local tbTable = GameMain:GetMod("MagicHelper") local tbMagic = tbTable:GetMagic("ZT_JZM_X") function tbMagic:Init() end function tbMagic:EnableCheck(npc) return true end function tbMagic:TargetCheck(key, t) return true end function tbMagic:MagicEnter(IDs, IsThing) end function tbMagic:MagicStep(dt, durati...
local Enemy = require('mob.enemy') local Maph = require('maph') local DarterDart = require('mob.darter_dart') local MobDeath = require('mob.particle.mob_death') local Item = require('mob.item') local Pack = require('pack') local atan2, pi, floor, max, cos, sin, random = math.atan2, math.pi, math.floor, ...
-- -- Copyright 2010-2020 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause -- local function crtNone() buildoptions { "-nostdlib", "-nodefaultlibs", "-nostartfiles", "-Wa,--noexecstack", "-ffreestanding", } linkoptions { "-nostdlib", "-nodefaul...
local SetWeatherPreset = {} SetWeatherPreset.__index = SetWeatherPreset local ReplicatedStorage = game:GetService("ReplicatedStorage") local Singletons = ReplicatedStorage:WaitForChild("Singletons") local Weather = require(Singletons:WaitForChild("Weather")) local Services = ReplicatedStorage:WaitForChild("Services") ...
Locales['pl'] = { ['used_bread'] = 'zjadłeś/aś ~y~1x~s~ ~b~chleb~s~', ['used_water'] = 'wypiłeś/aś ~y~1x~s~ ~b~woda~s~', }
-- Copyright (C) by Jianhao Dai (Toruneko) local ERR = require "resty.crypto.error" local ffi = require "ffi" local ffi_gc = ffi.gc local ffi_null = ffi.null local C = ffi.C local type = type local ipairs = ipairs local _M = { _VERSION = '0.0.1' } ffi.cdef [[ typedef struct x509_st X509; typedef struct x509_store_s...
SILE.registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typesetter.state.nodes local char = SU.utf8charfromcodepoint(cp) if #hlist > 1 and hlist[#hlist].is_unshaped then hlist[#hlist].text = hlist[...
local Multiline = {} function Multiline.wrap (font, text, limit) local lines = {{ width = 0 }} local advance = 0 local lastSpaceAdvance = 0 local function append (word, space) local wordAdvance = font:getAdvance(word) local spaceAdvance = font:getAdvance(space) local words = li...
navpoints_raw = { [1] = {["comment"] = "UNZ*C*274.00/100.00 13-37-25.5100N 143-01-52.1100E", ["callsignStr"] = "ACRON", ["latitude"] = 13.6237527777778, ["longitude"] = 143.031141666667 }, [2] = {["comment"] = "UAM*T* /0.50 PMY*LG*063.87 13-35-32.0100N 144-57-18.2600E", ["callsignStr"] = "ACUYU", ["latitude"] = 13.59...
CcsListViewItem = class("CcsListViewItem") CcsListViewItem.ctor = function (slot0) ClassUtil.extends(slot0, CcsScrollViewItem) slot0._itemScale = 1 createSetterGetter(slot0, "data", nil, false, false, false, false, handler(slot0, slot0.updateView)) createSetterGetter(slot0, "itemIndex", nil, false, false, false,...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Dialogue HUD -- --==========================================================================-- class "gui.huddialogue" ( "gui.hudframe" ) local huddialogue = gui.huddialogue function huddialogue:huddialogue( parent ) local...
-- spawn.lua -- Implements spawn teleportion and the /spawn [world] and /setspawn commands. -- Teleports the specified player to the spawn of the world they're in. local function SendPlayerToWorldSpawn(a_Player) -- Get the spawn's coordinates... local World = a_Player:GetWorld() local SpawnX = World:GetSpawnX() lo...
local utils = require("utils") local configs = require("configs") local pluginLoader = require("plugin_loader") local modHandler = require("mods") local toolUtils = require("tool_utils") local toolHandler = {} toolHandler.tools = {} toolHandler.currentTool = nil toolHandler.currentToolName = nil function toolHandler...
function degToRad( d ) return d * 0.01745329251 end function love.load() g = love.graphics rodLen, gravity, velocity, acceleration = 260, 3, 0, 0 halfWid, damp = g.getWidth() / 2, .989 posX, posY, angle = halfWid TWO_PI, angle = math.pi * 2, degToRad( 90 ) end function love.update( dt ) ac...
-- -- Created by IntelliJ IDEA. -- User: Kunkka Huang -- Date: 17/1/19 -- Time: 上午10:10 -- To change this template use File | Settings | File Templates. -- return { confirm = "确定", cancel = "取消", multi_language = "不同语言使用不同字体文件(英文:Klee.fnt,中文:Arial)。", zoom_button = "普通按钮", zoom_button_desc = "缩放按钮的...
class 'Casino' function Casino:__init() self.actions = { [3] = true, [4] = true, [5] = true, [6] = true, [11] = true, [12] = true, [13] = true, [14] = true, [17] = true, [18] = true, [105] = true, [137] = true, [138] = true, [139] = true, [16] = true } self.coi...
local Autosaver = Class(function(self, inst) self.inst = inst self.timeout = TUNING.AUTOSAVE_INTERVAL self.inst:StartUpdatingComponent(self) end) function Autosaver:DoSave() local enabled = true if PLATFORM == "PS4" then enabled = GetPlayer().profile:GetAutosaveEnabled() end if...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
local _G = require "_G" local error = _G.error local getmetatable = _G.getmetatable local rawget = _G.rawget local ExHandlerKey = {"Exception Handler Key"} local function callhandler(self, ...) local handler = self[ExHandlerKey] or error((...)) return handler(self, ...) end return { keys = { exca...
local const = require 'proto.define' local json = require 'json' local config = { ["Lua.runtime.version"] = { scope = "resource", type = "string", default = "Lua 5.4", enum = { "Lua 5.1", "Lua 5.2", "Lua 5.3", "Lua 5.4", "...
-- -- gmake2_perfile_flags.lua -- Tests compiler and linker flags for Makefiles. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local suite = test.declare("gmake2_perfile_flags") local p = premake local gmake2 = p.modules.gmake2 local project = p.project -- -- Setup -- local...
local RoomMove = class('RoomMove') local libcenter = require "libcenter" function RoomMove:initialize() DEBUG("=============RoomMove Init=================") self._players = {} end function RoomMove:broadcast(msg, filter_uid) for k, v in pairs(self._players) do if filter_uid and fil...
require('stdlib.handle.player') ---@class Unit local Unit = {} Unit.__index = Unit local allUnits = {} unit = {} unit.metatable = Unit unit.MAX_COLLISION = 200 -- Maximum collision size for a unit (in gameplay constants) ---Used to wrap a wc3 unit userdata value to a Unit table. Eg.: unit.wrap(GetTriggerUnit()) -...
--[[ MIT License Copyright (c) 2019 SotADB.info 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, ...
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialize...
local colors = { cterm = { red = 196, green = 46, yellow = 226, blue = 45, magenta = 5, cyan = 45, white = 255, }, gui = { red = '#E080A0', green = '#80E080', yellow = '#F0F090', blue = '#50B0F0', magenta = '#8080E0', cyan = '#222222', white = '#F0F0F0', b...
local Tier1ArmorVendorID = 43479 local Tier1ArmorLoop = { [1] = {16866,16868,16865,16863,16867}, -- Warrior -- [2] = {16854,16856,16853,16860,16855}, -- Paladin -- [3] = {16846,16848,16845,16852,16847}, -- Hunter -- [4] = {16821,16823,16820,16826,16822}, -- Rogue -- [5] = {16813,16816,16815,16812,168...
name = "Dev Tools" version = "0.8.0-alpha" description = [[Version: ]] .. version .. "\n\n" .. [[An extendable mod, that simplifies the most common tasks for both developers and testers ]] .. [[as an alternative to debugkeys.]] .. "\n\n" .. [[v]] .. version .. [[:]] .. "\n" .. [[- Added support for ar...
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
pfUI:RegisterModule("gui", function () local default_border = tonumber(pfUI_config.appearance.border.default) pfUI.gui = CreateFrame("Frame",nil,UIParent) pfUI.gui:RegisterEvent("PLAYER_ENTERING_WORLD") pfUI.gui:SetFrameStrata("DIALOG") pfUI.gui:SetWidth(500) pfUI.gui:SetHeight(500) pfUI.gui:Hide() ...
if FORMAT:match 'markdown' then function Image(elem) -- Make sure extension is .png elem.src = elem.src:gsub("%.pdf", ".png") -- Prepend figure directory elem.src = "figs/" .. elem.src return elem end end -- Filter images with this function if the target format is HTML if FORMAT:match 'html'...
modifier_bane_fiends_grip_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_bane_fiends_grip_lua:IsHidden() return false end function modifier_bane_fiends_grip_lua:IsDebuff() return true end function modifier_bane_fiends_grip_lua:I...
data:extend({ ---- AAI burner control -- Gate electrical power behind AAI? { type = "bool-setting", name = "aivech-ssx-gate-electricity", setting_type = "startup", default_value = false, order = "a-aai" }, -- Use AAI intermediates { type = "bool-setting", name = "aivech-ssx-aai-recipes", ...
function handler.get() local foo = {} .. {} end function handler.post() return 999 end
--- Creates a label with a scrolling text element. It is highly recommended you use a monospace font for this label. --@classmod Chyron --@author Delra --@copyright 2019 --@author Damian Monogue --@copyright 2020 local Chyron = { name = "ChyronClass", text = "", displayWidth = 28, updateTime = 200, font = "Ze...
object_tangible_component_cybernetic_cybernetic_module_acid_resistance_two_core = object_tangible_component_cybernetic_shared_cybernetic_module_acid_resistance_two_core:new { } ObjectTemplates:addTemplate(object_tangible_component_cybernetic_cybernetic_module_acid_resistance_two_core, "object/tangible/component/cyber...
require('dialogue') local introText = "You see a beautiful woman. " local positiveText = "She smiles brightly at you!" local neutralText = "She ignores you." local negativeText = "She sneers at you." local endText = "You walk away, and wonder what could have been..." local maxFeeling = 3 local minFeeling = -3 local ...
--- Scene management for Lua game development. -- -- You can use use scenes to seperate the different states of your game: for example, a menu scene and a game scene. -- This module is fully implemented in Ubiquitousse and is mostly a "recommended way" of organising an Ubiquitousse-based game. -- However, you don't hav...
-- File : sd_entries.lua -- Who : Jose Amores -- What : SD subdissector in charge of parsing Entries within at EntriesArray -- local p_sd_ents = Proto("sd_entries","sd_entry") local f_e_type = ProtoField.uint8("sd.e.type","Type",base.HEX) local f_e_o1_i = ProtoField.uint8("sd.e.opt1_i","Index 1st options",...
-- Treesitter configuration -- Parsers must be installed manually via :TSInstall require "nvim-treesitter.configs".setup { ensure_installed = "all", -- requires 'JoosepAlviste/nvim-ts-context-commentstring' context_commentstring = { enable = true }, highlight = { enable = true }, indent = { en...
local _, namespace = ... local PoolManager = {} namespace.PoolManager = PoolManager local function ResetterFunc(pool, frame) frame:Hide() frame:SetParent(nil) frame:ClearAllPoints() if frame._data then frame._data = nil end end local framePool = CreateFramePool("Statusbar", UIParent, "Sma...
hu = game.Players.LocalPlayer.Character.Humanoid local l = Instance.new("Humanoid") l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" wait(0.1) hu.Parent = game.Players.LocalPlayer game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character.Animate....
object_tangible_smuggler_illegal_core_booster = object_tangible_smuggler_shared_illegal_core_booster:new { } ObjectTemplates:addTemplate(object_tangible_smuggler_illegal_core_booster, "object/tangible/smuggler/illegal_core_booster.iff")
TURT_KEY_SPACE = 32 TURT_KEY_APOSTROPHE = 39 TURT_KEY_COMMA = 44 TURT_KEY_MINUS = 45 TURT_KEY_PERIOD = 46 TURT_KEY_SLASH = 47 TURT_KEY_0 = 48 TURT_KEY_1 = 49 TURT_KEY_2 = 50 TURT_KEY_3 = 51 TURT_KEY_4 = 52 TURT_KEY_5 = 53 TURT_KEY_6 = 54 TURT_KEY_7 = 55 TURT_KEY_8 = 56 TURT_KEY_9 = 57 TURT_KEY_SEMICOLON = 59 ...
function sub(a, b) return a - b; end function add(c, d) return c + d end print("hello") print(add(1, 2))
-- module: scratchpad - quick place to jot down info -- I use this for short-term todos and reminders, mostly. -- local m = {} local ufile = require('utils.file') local uapp = require('utils.app') local lastApp = nil local chooser = nil local menu = nil local visible = false -- COMMANDS local commands = { { ['...
-- Disable temple perk spawns _perk_spawn_many = perk_spawn_many function perk_spawn_many(x, y, dont_remove_others_, ignore_these_) if (dont_remove_others_ and ModIsEnabled("nightmare")) then EntityLoad("mods/ALIEN/items/nightmare_item.xml", x+30, y) else EntityLoad("mods/ALIEN/items/level_up_i...
-- function! plugins#neomake#makeprg() abort -- if empty(&makeprg) -- return -- endif -- local ft = &filetype -- local makeprg = map(split(&makeprg, ' '), {key, val -> substitute(val, '^%$', '%t', 'g') }) -- local executable = l:makeprg[0] -- local args = l:makeprg[1:] -- local name ...
local printer = peripheral.find "printer3d" local args = {...} if #args < 1 then error("Usage: print3d FILE [count]\n") end if args[1] == "reset" then printer.reset() end local count = 1 if #args > 1 then count = assert(tonumber(args[2]), tostring(args[2]) .. " is not a valid count") end local file = fs.open(ar...
function onNewChannelEvent(serverConnectionHandlerID, channelID, channelParentID) --print("on new channel event START: " .. serverConnectionHandlerID, channelID, channelParentID) --print (ccname(serverConnectionHandlerID, channelID)) --print (cctopic(serverConnectionHandlerID, channelID)) --print(ccdesc(serverConnect...
local toll = 0; local FB = 0; local RFB = 0; local Funny = true; function B2S(b) return GAMESTATE:GetCurrentSong():GetTimingData():GetElapsedTimeFromBeat(b) end; local ratemod = string.match(GAMESTATE:GetSongOptionsString(), "%d.%d"); if ratemod then ratemod = tonumber(ratemod); else ratemod = 1.0 end local SP3 =1 l...
-- A sample class demonstrating the proper use of Motors -- and RobotDrive in ToastLua -- Initiate a motor and its type Motor.pwm(0) -- New Talon on PWM Port #0 Motor.pwm(1, "Jaguar") -- New Jaguar on PWM Port #0 Motor.can(2) -- New Talon SRX on CAN ID #2 Motor.can(3, "Jaguar") -- New CAN Jaguar on CAN ID #3 Mot...
-- Autogenerated by Luapress v3.0 -- For available configuation options, see: fizzadar.com/luapress -- Or see the default config at: -- github.com/Fizzadar/Luapress/blob/develop/luapress/default_config.lua local config = { url = '/tests/sticky/build', sticky_page = 'sticky' } return config
local CacheLoader = torch.class("dp.CacheLoader") function CacheLoader:__init() self.cacheDir = paths.concat(dp.DATA_DIR,"datacache") assert(paths.dir(self.cacheDir) or paths.mkdir(self.cacheDir),"<CacheLoader> failed to make datacache [".. self.cacheDir .."]") end function CacheLoader:load(dsName, dsConf, cache...
require("prototypes.item.concrete-logistics") require("prototypes.recipe.concrete-logistics") require("prototypes.technology.color-concrete") require("prototypes.entity.concrete-logistics") require("prototypes.style.icon") require("prototypes.style.table") require("prototypes.style.flow") require("prototypes.style....
if SERVER then AddCSLuaFile( "shared.lua" ) end if CLIENT then SWEP.PrintName = "NV Range Scanner" SWEP.Slot = 1 SWEP.Slotpos = 1 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 55 SWEP.IconLetter = "Q" end SWEP.Base = "ts_base" SWEP.HoldType = "slam" SWEP.UseHands = true SWEP.ViewModel = "models/...
local pluginPath = ... local plugin = remodel.readModelFile(pluginPath)[1] local marker = Instance.new('Folder') marker.Name = 'DEV_BUILD' marker.Parent = plugin remodel.writeModelFile(plugin, pluginPath)
--[[ MIT License Copyright (c) 2020 Ryan Ward 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, di...
require 'cutorch'; require 'cunn'; require 'cudnn' require 'image' require 'nn' require 'nnx' require 'optim' require 'hdf5' require 'util.lua' require 'DataLoader.lua' require 'model.lua' -- Default user options options = { imgColorPath = 'demo/test-heightmap.color.png', imgDepthPath = 'demo/test-heightmap.depth....
local self = CustomStatSystem local isClient = Ext.IsClient() --region Stat/Category Getting ---@param displayName string ---@return SheetCustomStatData function CustomStatSystem:GetStatByName(displayName) for uuid,stats in pairs(self.Stats) do for id,stat in pairs(stats) do if stat.DisplayName == displayName o...
if (SERVER) then AddCSLuaFile() end if (CLIENT) then SWEP.PrintName = "KSwep Backpack" SWEP.Author = "vurtual" SWEP.Slot = 0 SWEP.SlotPos = 99 end SWEP.Spawnable = false SWEP.Category="KSwep Equipment" SWEP.AdminSpawnable = false SWEP.ViewModel = nil SWEP.WorldModel = "models/weapons/w_suitcase_passenger.mdl" SWEP...
object_tangible_collection_rock_glowing_10 = object_tangible_collection_shared_rock_glowing_10:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rock_glowing_10, "object/tangible/collection/rock_glowing_10.iff")
----------------------------------------- -- ID: 4183 -- Konron Hassen -- A fountain-type firework appears on the ground ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) end
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2013 -- ============================================================= -- Behavior - Physics: My Force -- ============================================================= -- Short and Sweet License: -- 1. You may ...
-- Script based collision detection without physics for Defold -- Eventually want to port to a native extension for performance local M = {} -- point within an unrotated rectangle assuming that the rectangle's x,y is its centroid function M.point_within_rectangle_centroid(point_x, point_y, rectangle_x, rectangle_y, r...
vim.g.tokyonight_style = "night" vim.g.tokyonight_dark_sidebar = true vim.g.tokyonight_dark_float = true vim.g.vscode_style = "dark" -- Enable transparent background. vim.g.vscode_transparent = 1 -- Enable italic comment vim.g.vscode_italic_comment = 1 -- vim.cmd("colorscheme vscode") vim.cmd("colorscheme tokyonight")...
function Inner( k ) print( debug.traceback() ) print "Program continues..." end function Middle( x, y ) Inner( x+y ) end function Outer( a, b, c ) Middle( a*b, c ) end Outer( 2, 3, 5 )
local DefaultAccess = { isAdmin = true } bgNPC.cvar = bgNPC.cvar or {} bgNPC.cvar.bgn_enable = 1 bgNPC.cvar.bgn_debug = 0 bgNPC.cvar.bgn_max_npc = 35 bgNPC.cvar.bgn_spawn_radius = 3000 bgNPC.cvar.bgn_disable_logic_radius = 500 bgNPC.cvar.bgn_spawn_radius_visibility = 2500 bgNPC.cvar.bgn_spawn_radius_raytracing = 2000 ...
return {recents={}, window={[1]=2048,[2]=1057,[3]=0,[4]=95,["n"]=4}, window_mode="maximized", previous_find={}, previous_replace={}}
--[==[ JSON encoding and decoding API. Written by Cosmin Apreutesei. Public Domain. json.decode(s[, null_val]) -> t decode JSON json.encode(t) -> s encode JSON json.null value to encode json `null` json.asarray(t) -> t mark t to be encoded as a json a...
return function() local result = {} if not game.active_mods['Vehicle Wagon'] then return nil end return { categories = { trains = { groups = { trains = { items = { ["vehicle-wagon"] = { ...
#! /usr/bin/env luajit -- Copyright (c) 2013 Stephen Irons -- License included at end of file local fluid = require('fluidsynth') local chords = require('chords') local serpent = require('serpent') local soundfont = '/usr/share/sounds/sf2/FluidR3_GM.sf2' local audio_driver = 'pulseaudio' local function schedule_c...
local thismod = minetest.get_current_modname() local modpath = minetest.get_modpath(thismod) local tm = thismod..":" dofile(modpath .. "/nodes.lua") dofile(modpath .. "/lib.lua")
-- Install the packer if not yet local execute = vim.api.nvim_command local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim" if vim.fn.empty(vim.fn.glob(install_path)) > 0 then execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path) execute "packadd packer.nvim...
-- SAPI for CivetWeb -- Wrapper for the native "mg" interface SAPI = {} SAPI.Request = {} SAPI.Request.getpostdata = function(n) local s = "" s = mg.read(n) return s end SAPI.Request.servervariable = function(varname) local s if varname == "REQUEST_METHOD" then s = mg.request_info.request_method elsei...
local function pp(t) local print_r_cache = {} local function sub_print_r(t, indent) if (print_r_cache[tostring(t)]) then print(indent .. "*" .. tostring(t)) else print_r_cache[tostring(t)] = true if (type(t) == "table") then for pos, val in pairs(t) do if (type(v...
local PLUGIN = PLUGIN;
solution "VulkanDemo" language "C++" location "../build" libdirs { "../deps/vulkan/Lib" } links { "vulkan-1" } configurations { "Debug", "Release", "Shipping" } platforms { "x32", "x64", } configuration "Debug" ...
package.cpath = package.cpath .. ";?.dylib" hello_module = require('hello_lua_module') hello_module.hello()
local screen_width = 960 local screen_height = 540 local movebox = { width = 300, height = 200, } movebox.x = screen_width / 2 - movebox.width / 2 movebox.y = screen_height - movebox.height local selectionMade = nil local attacks = { SWING = 0, BASH = 1, KICK = 2, CHILL = 3 } local gfx = {} loca...
require "app.util" local skynet = require "skynet" local agent = require "app.agent" local login = require "app.login" local config = require "app.config.custom" local roleid = tonumber(...) assert(roleid) local robot = {} function robot.onconnect(linkobj) skynet.error(string.format("op=onconnect,linktype=%s,link...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author (zacharyenriquee@gmail.com). This content is only intended to be used on the TERRANOVA Half-Life 2 Roleplay server. Please respect the developers. --]] local PANEL = {}; local panelWidth = 700 local panelHeig...
describe("ssdp", function() local upnp_response describe("the UPnP response XML", function() before_each(function() require("spec/nodemcu_stubs") nodemcu.wifi.sta.ip = '192.168.1.100' upnp_response = require("ssdp")() end) it("contains the IP address and port", function() asser...
-- @group UI -- @brief The OpenGL implementation of a grid. local DefaultGrid = ae.oo.class() -- @brief Creates a DefaultGrid object. -- @param columns The widths of the columns. -- @param rows The heights of the rows. -- @return A new DefaultGrid object. function DefaultGrid.new(columns,rows) local self = ae...
-- GENERATED, DO NOT EDIT module("moonscript.errors", package.seeall) local moon = require("moonscript") local util = require("moonscript.util") require("lpeg") local concat, insert = table.concat, table.insert local split, pos_to_line = util.split, util.pos_to_line local lookup_line lookup_line = function(fname, pos, ...
return { { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Arcane Surge Support", npc = "Nessa", classes = "Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Blight", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { qu...
local url = request.path:match("/response/redirects(.*)") assert(url) local path = request.url .. request.ctx if url == '' then assert(response.redirect(path .. '/response/redirects/hop')) return elseif url == '/hop' then assert(response.redirect(path .. '/response/redirects/to')) return elseif url ==...
local class = require('middleclass') local Controller = require('mvc.Controller') local LoginController = class("LoginController", Controller) local ShowWaiting = require('app.helpers.ShowWaiting') local uploaderror = require('app.helpers.uploaderror') local SoundMng = require('app.helpers.SoundMng') function L...
local function getdirectory(p) for i = #p, 1, -1 do if p:sub(i,i) == "/" then return p:sub(1,i) end end return "./" end local sd = getdirectory(arg[0]) local function lerror(token, err) print(string.format("dragonc: parser: %s:%d: %s", token[4], token[3], err)) end local function node_t(kind, errtok, iden...
--[[ file linking. ]]-- -- load engine internals. -- conf.lua is first included by Löve. require 'load' require 'alias' require 'utility' --require 'deep' debug = false if debug then local chunk = love.filesystem.load('buildno.soft') chunk() love.filesystem.write('buildno.soft',fmt('build=%d',b...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) local condition = Condition(CONDITION_DAZZLED) condition:setParameter(CONDITION_PARAM_DELAYED, true) cond...
local music = nil; local ambientMusic = ""; local isAmbient = false; local airlocks = {}; boss1 = scene:getObjects("boss1")[1]; boss2 = scene:getObjects("boss2")[1]; bg = nil; function startMusic(name, crossfade) local newMusic = audio:createStream(name); newMusic.loop = true; newMusic.isMusic = true; ...
if script.active_mods["zk-lib"] then require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua").add_lib(require("multi-surface-control")) else require("event_handler").add_lib(require("multi-surface-control")) end
local function ChangePhoto(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local Rio = DevRio:get("RaumoTeam:Photo"..result.id_) if not result.profile_photo_ then if ...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- function getVehicleHandlingProperty ( element, property ) if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then ...
return Def.ActorFrame { Def.Quad { InitCommand = function(self) self:FullScreen():diffuse(color('#000000')) end, }, }
----------------------------------------------- -- Set up ----------------------------------------------- local hyper = {"cmd", "alt", "ctrl"} hs.window.animationDuration = 0 ----------------------------------------------- -- hyper d for left one half window ----------------------------------------------- ...