content
stringlengths
5
1.05M
return { summary = 'Get the Collider\'s tag.', description = 'Returns the Collider\'s tag.', arguments = {}, returns = { { name = 'tag', type = 'string', description = 'The Collider\'s collision tag.' } }, notes = [[ Collision between tags can be enabled and disabled using `Wor...
-- Copyright 2015-2016 Carnegie Mellon University -- -- 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 ...
-- KristWallet 2 local down = "https://raw.githubusercontent.com/Vationox/kristwallet2/master/" local required = { ".kw/settings.lua" } if not fs.exists("/.kw") then print("Creating directory") fs.makeDir("/.kw") end for a, b in pairs(required) do print("Downloading "..b) local handle = http...
local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored) -- Calls receiveMsg to check if there is a link receiveMsg(message) return 0 end links_events = { onTextMessageEvent = onTextMessageEvent }
alven.output("hello") alven.output("hello2")
--[[ 攻击AI ]] -- 显示延时 local C_SHOW_DELAY = 0.5 -- 攻击行为树 local C_B3_ATTACK = "attack" local Blackboard = require("app.main.modules.behavior3.core.Blackboard") local Attack = class("Attack", require("app.main.modules.script.ScriptBase")) -- 构造函数 function Attack:ctor(config) if config then table.merge(self, config)...
local Tunnel = module("_core", "lib/Tunnel") local Proxy = module("_core", "lib/Proxy") cAPI = Proxy.getInterface("API") API = Tunnel.getInterface("API") doorexplosed = false local interiors = { -- [1] = 72962, -- BANCO BLACKWATER -- [2] = 42754, -- BANCO SAINT DENNIS [3] = 29442 -- BANCO RHODES --...
---@class RandomizedDeadSurvivorBase : zombie.randomizedWorld.randomizedDeadSurvivor.RandomizedDeadSurvivorBase RandomizedDeadSurvivorBase = {} ---@public ---@param arg0 BuildingDef ---@return void function RandomizedDeadSurvivorBase:randomizeDeadSurvivor(arg0) end
module("luci.model.cbi.passwall2.server.api.shadowsocks", package.seeall) function gen_config(user) local config = {} config.server = {"[::0]", "0.0.0.0"} config.server_port = tonumber(user.port) config.password = user.password config.timeout = tonumber(user.timeout) config.fast_open = (user.tcp...
object_tangible_wearables_armor_invisible_invisible_chitin_helmet = object_tangible_wearables_armor_invisible_shared_invisible_chitin_helmet:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_invisible_invisible_chitin_helmet, "object/tangible/wearables/armor/invisible/invisible_chitin_helmet.iff")
local DifferenceCheck = require(script.Parent.Parent.DifferenceCheck) local ReplicateStore = {} local ReplicatedRoduxStores = {} local allowedOptions = { "UseWhitelist", "Filter", "AllowPlayerDispatchedActions" } ReplicateStore.__index = ReplicateStore -- creates a copy of the table to ensure that DifferenceCheck...
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Mike Pall function trim(x) return ( math.floor(x * 100000) ) / 100000.0 end local function A(i, j) local ij = i+j-1 return 1.0 / (ij * (ij-1) * 0.5 + i) end local function Av(x, y, N) for i=1,N do ...
local Data = require("core.Data") Data.define_prototype("event") Data.add( "core.event", { game_initialized = {}, character_created = {}, item_created = {}, character_removed = {}, item_removed = {}, character_refreshed = {}, calc_character_damage = {}, character_d...
return { version = "1.1", luaversion = "5.1", tiledversion = "2018.01.23", orientation = "orthogonal", renderorder = "right-down", width = 100, height = 100, tilewidth = 16, tileheight = 16, nextobjectid = 4, properties = {}, tilesets = { { name = "atlas01", firstgid = 1, f...
return function() local Utils = require(script.Parent.Utils) local Signal = require(script.Parent.Signal) describe('Utils.getSignal', function() local signals: { [string]: Signal.Signal } = {} it('should return a Signal', function() local signal = Utils.getSignal(signals, 'Test', true) expect(Signal.Is(s...
function Pickup.main() end function Pickup.BeginPlay(_ARG_0_) if CurrentScenario ~= nil and CurrentScenario.OnPickableItemBeginPlay ~= nil then CurrentScenario.OnPickableItemBeginPlay(_ARG_0_) end end function Pickup.EndPlay(_ARG_0_) if CurrentScenario ~= nil and CurrentScenario.OnPickableItemEndPlay ~= n...
--todo 添加记忆位置 setbackimg require('loveframes') require('selectbox') require('equip') --一个道具包含一个图片,文字提示,位置,是否可见 --道具表={ {img,text,row,col,show} } bagbox={ nilImg=love.graphics.newImage('assets/box.png'), equips={}, imgbtn={}, } function bagbox:new(o) o = o or {} --如果参数中没有提供table,则创建一个空的。 --将新对象实例的metatable指向表...
local awful = require("awful") local gears = require("gears") local naughty = require("naughty") local beautiful = require("beautiful") local hotkeys_popup = require("awful.hotkeys_popup") local dpi = beautiful.xresources.apply_dpi require("awful.hotkeys_popup.keys") -- Define modkeys local modkey = "Mod4" local alt...
local c = require('colorbuddy.color').colors local s = require('colorbuddy.style').styles local no = s.NONE local M = {} local icons = { ["gruntfile"] = { color = c.orange }, ["gulpfile"] = { color = c.red }, ["dropbox"] = { color = c.blue }, ["xls"] = { col...
local m = string.match local gsub = string.gsub local tagList = {} local classList = {} local log = logger "featsLog.txt" local tagLog = logger "featTagsLog.txt" local pageParsers = {} local parsersPath = "otherData/featPageParsers" log:print "Loading parsers:" for k, file in ipairs(love.filesystem.getDirectoryItems(...
pg = pg or {} pg.transform_data_template = { [501] = { use_gold = 200, name = "舰体改良I", star_limit = 1, descrip = "耐久+45", max_level = 1, skin_id = 0, use_ship = 0, level_limit = 1, id = 501, icon = "hp_1", skill_id = 0, condition_id = {}, effect = { { durability = 45 } }, ship_i...
-- Set up core mapgen aliases. minetest.register_alias("mapgen_stone", "aurum_base:stone") minetest.register_alias("mapgen_water_source", "aurum_base:water_source") minetest.register_alias("mapgen_water_flowing", "aurum_base:water_flowing") minetest.register_alias("mapgen_river_water_source", "aurum_base:river_water_so...
return Def.ActorFrame{ OnCommand=cmd(zoom,0.85); LoadActor("graphics/b-plus.png"); };
--[[ Prototype Oriented Programming for Lua 5.1, 5.2, 5.3 & 5.4 Copyright (C) 2000-2022 std.prototype authors ]] --[[-- Module table. Lazy loading of submodules, and metadata for the Prototype package. @module std.prototype ]] local _ENV = require 'std.normalize' {} --[[ =============== ]]-- --[[ Implementa...
local Path = require ('map.path') local Storm = require ('stormlib') -- Wrapper for a MPQ object provided by [lua-stormlib], primarily focused on -- providing W3X compatibility. -- -- [lua-stormlib]: https://github.com/nvs/lua-stormlib local MPQ = {} MPQ.__index = MPQ function MPQ.new (path, mode) -- StormLib will o...
borvos_guard = Creature:new { objectName = "", customName = "Borvo's Guard", socialGroup = "borvo", faction = "borvo", level = 15, chanceHit = 0.31, damageMin = 160, damageMax = 170, baseXp = 831, baseHAM = 2400, baseHAMmax = 3000, armor = 0, resists = {0,0,0,0,0,0,0,0,-1}, meatType = "", meatAmount = 0,...
local old_moneygang22_init = MoneyTweakData.init function MoneyTweakData:init(tweak_data) old_moneygang22_init(self, tweak_data) self.sell_weapon_multiplier = -10000000 end
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local stringstream = require("string_stream") local str_decode = require("string_decode") -...
minetest.register_node("building_blocks:Adobe", { tiles = {"building_blocks_Adobe.png"}, description = "Adobe", is_ground_content = true, groups = {crumbly=3}, sounds = default.node_sound_stone_defaults(), }) minetest.register_node("building_blocks:Roofing", { tiles = {"building_blocks_Roofing.png"}, is_ground_c...
local TCP = require "internal.TCP" local socket = {} -- hook connect 与 ssl connect function socket.connect(host, port, SSL) local session = TCP:new() if not SSL then local ok, err = session:connect(host, port) if not ok then session:close() return ok, err end else local ok, err = session:ssl_connect(h...
local Mirror = {}; function Mirror.GetArgs(fun) local args = {} local hook = debug.gethook() local argHook = function( ... ) local info = debug.getinfo(3) if 'pcall' ~= info.name then return end for i = 1, math.huge do local name, value = debug.getlocal(2, i) ...
Crucible = Class { init = function(self, enemiesPerSlot) self.slots = {} self.enemiesPerSlot = enemiesPerSlot for i=9, 1, -1 do table.insert(self.slots, Slot(i)) end self.isLocked = false -- self.currentRecipe = {} -- self.isRecipe = true end;...
-- vim: ts=4 sw=4 -- -- parse http header require "console" local defaultExt = {"html","txt","lua","lc"} local function decodeURI(str) str=str:gsub('%+', " ") str=str:gsub('%%(%x%x)', function(hex) return string.char(tonumber(hex,16)) end) return str end local function parseURI(uri) local args = {} local fslist...
function floorspawn.OnInit() end function floorspawn.OnEnable() local numfloors = 4; local go = this.GameObject; local transform = go:GetTransform(); local floorPrefab = Prefab.Load("floor.pfb"); local ceilPrefab = Prefab.Load("ceiling.pfb"); for i=0, numfloors, 1 do local floor = floorPrefab:Cre...
local theme = require('beautiful') local fd_menu = require('utils.fd_menu') local lookup_icon = require('utils.icon_finder').lookup local click_to_hide = require('utils.click_to_hide').menu local awesome_menu = require('widgets.menus.awesome') theme.awesome_menu_icon = lookup_icon(theme.awesome_menu_icon) local base...
local typedefs = require "kong.db.schema.typedefs" return { name = "header-based-rate-limiting", fields = { { consumer = typedefs.no_consumer }, { config = { type = "record", fields = { { redis = { ...
return {'eenheidsvakcentrale','een','eenaderig','eenakter','eenarm','eenarmig','eenbaansweg','eenbenig','eenbladig','eencellig','eencellige','eencilinder','eend','eendaags','eendachtig','eendagskuiken','eendagstoerisme','eendagstoerist','eendagsvlieg','eendagswedstrijd','eendekker','eendelig','eendelijk','eendenbek','e...
local jwt = {} -- private local function sign(msg, key) result = crypto.hmac(key, msg, crypto.sha256).digest() return result end local function jsonEncode(input) result = json.stringify(input) return result end local function urlsafeB64Encode(input) result = base64.encode(input) result = string.gsub(result...
modifier_templar_chicken = class({}) function modifier_templar_chicken:IsPurgable() return false end function modifier_templar_chicken:CheckState() return { [MODIFIER_STATE_DISARMED] = true, [MODIFIER_STATE_HEXED] = true, [MODIFIER_STATE_MUTED] = true, [MODIFIER_STATE_SILENCED] = true } end function modifi...
local M = {} local sh = require('ge/extensions/scenario/scenariohelper') local function onRaceStart() local modeFile = io.open('ego_movementMode', 'w') modeFile:write('MANUAL') modeFile:close() sh.setAiLine('ego', {line={{pos={1.0, 0.0, 0}}, {pos={56.0, 3.0, 0}}, {pos={56.0, 3.0, 0}}}, routeSpeed=13...
AlphaSwarmYeOldeAIBrainClass = AIBrain local CreateAlphaSwarmBrain = import('/mods/AlphaSwarm/lua/AI/AlphaSwarm/Brain.lua').CreateBrain AIBrain = Class(AlphaSwarmYeOldeAIBrainClass) { OnCreateAI = function(self, planName) local per = ScenarioInfo.ArmySetup[self.Name].AIPersonality if string.find(p...
require("set") require("packages") require("colors") require("cassette") require("mappings") require("lsp") require("set") require("snippets") require("completion")
require('colorbuddy').setup() local Color = require('colorbuddy.color').Color local c = require('colorbuddy.color').colors local Group = require('colorbuddy.group').Group local g = require('colorbuddy.group').groups local s = require('colorbuddy.style').styles Color.new('superwhite', '#E0E0E0') Color.new('softwhite'...
return {["ShirtGraphic"] = {Superclass = "CharacterAppearance",Tags = {},Properties = {["Graphic"] = {ValueType = "Content",Tags = {},},},},["BevelMesh"] = {Superclass = "DataModelMesh",Tags = {"deprecated","notbrowsable",},},["PluginMouse"] = {Superclass = "Mouse",Tags = {},Events = {["DragEnter"] = {Tags = {"PluginSe...
function onInit() Gui.onInit_handle(self) end function onFirstLayout() Gui.onFirstLayout_handle(self) end function onClose() end function onListChanged(node, child) print(self.getClass() .. '.onListChanged', node, child) notifyUpdate() end
-- _ _ _ _ _ -- / \ | | | | | __ ___ _(_) -- / _ \ | | |_ | |/ _` \ \ / / | -- / ___ \| | | |_| | (_| |\ V /| | -- /_/ \_\_|_|\___/ \__,_| \_/ |_| -- -- github: @AllJavi -- -- Client ShortCuts configuration local awful = require('awful') local gears = require('gears') local ...
noble_female = { "object/mobile/dressed_noble_bothan_female_01.iff", "object/mobile/dressed_noble_fat_human_female_01.iff", "object/mobile/dressed_noble_fat_human_female_02.iff", "object/mobile/dressed_noble_fat_twilek_female_01.iff", "object/mobile/dressed_noble_fat_twilek_female_02.iff", "object/mobile/dressed_...
-- 跳動 -- local loop = 0 -- --loop function -- function breathe(obj) -- if (loop <= 1) then -- loop = loop + 1 -- print (loop) -- local function loop(obj) -- -- --the obj is fire.png -- if (obj.scale ~= 1) then -- ob...
mkgic = {} local modpath = minetest.get_modpath("mkgic") dofile(modpath.."/mana_flower.lua") dofile(modpath.."/nodes.lua") dofile(modpath.."/materials.lua") dofile(modpath.."/func.lua")
local sh = require 'shell' local w = require 'wait' local factions = {} local function Faction(name) return function(init) factions[name] = init end end local function manualHack(server, faction) sh.execute('netpath '..server) while not w.haveInvite(faction)() do sh.execute('hack') ns:sleep(5) ...
local StringUtils = require("lib.string-utils") local Day07 = {} function Day07.parse_crab_positions(line) local split_line = StringUtils.split(line, ",") local crab_positions = {} for _, position_string in ipairs(split_line) do table.insert(crab_positions, tonumber(position_string)) end r...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Bottle" ENT.Spawnable = true ENT.Category = "BLUES BAR" function ENT:SetupDataTables() self:NetworkVar( "String", 0, "BottleName") self:NetworkVar( "Entity", 3, "ConnectedBar" ) self:NetworkVar( "Bool" , 4 , "IsBusy") end
--[[ $ | filesystem ops EXPORTS fs path proc FILESYSTEM API (NOT ASYNC) indir(dir, ...) -> path filedir(file) -> dir filename(file) -> name filenameext(file) -> name, ext fileext(file) -> ext exists(file, [type]) -> t|f checkexists(file, [type]) startcwd() cwd() chdir(dir) run_indir(dir, fn) searchpa...
----------------------------------------- -- ID: 4587 -- Item: Broiled Trout -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -1 -- Ranged ATT % 14 (cap 55) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -------...
--Mod Name: Uranium Mod --Author: LandMine --Last Edit: 07.28.2012 --About Mod: Adds various items to Minetest --MineTest Version: MineTest-C55 0.4.dev-20120606-c57e508 ------------------------------------- function spawn_tnt(pos, entname) minetest.sound_play("", {pos = pos,gain = 1.0,max_hear_distance = 8...
local db = require 'std.database':new() db:update('abc', '攻擊力', '力量') db:update('def',"法術攻擊力", '元素傷害') return db
AddCSLuaFile() if not LIB_APERTURE then print("Error: Aperture lib does not exist!!!") return end -- ================================ ITEM DROPPER ============================ LIB_APERTURE.ITEM_DROPPER_ITEMS = { [1] = "Weighted Storage Cube", [2] = "Old Weighted Storage Cube", [3] = "Companion Cube", [4] = "Ball...
-- Copyright (c) 2019 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local moonpie = require "moonpie" function love.update() moonpie.update() end function love.draw() moonpie.paint() end
recruitmentpool_proto = { [1] = { pool_id = 1, cards = { {3, 104001, 1, 2500}, {3, 204001, 1, 2500}, {3, 304001, 1, 2500}, {3, 404001, 1, 2500}, }, quality = 4, weight = 5300, }, [2] = { pool_id = 1, cards = { {3, 107001, 1, 1000}, {3, 107002, 1, 1000}, {3, 107003, 1, 1000}, {3, 207001, 1, 1000}, {3, 207002, 1, 1000}, ...
local spr_idle = require('src.sprites.spr_idle') local spr_run = require('src.sprites.spr_run') local o_player = LGML.Object('o_player') function o_player:create() self.solid = false self.gravity = 10 self.gravity_direction = 270 -- Sprites self.sprite_index = spr_idle self.image_xscale = 1 self.image_...
-- bisection method for solving non-linear equations delta=1e-6 -- tolerance function bisect(f,a,b,fa,fb) local c=(a+b)/2 print(n .. " c=" .. c .. " a=" .. a .. " b=" .. b .. "\n") if c==a or c==b or math.abs(a-b)<delta then return c,b-a end n=n+1 local fc=f(c) if fa*fc<0 then return bisect(f,a,c,fa,fc) else r...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Weapon\server.lua -- - Dragon local kPerformExpirationCheckAfterDelay = 1.00 local originalWeaponSetWeaponWorldState originalWeaponSetWeaponWorldState = Class_ReplaceMethod("Weapon", "SetWeaponWorldS...
ITEM.name = "Resistance Armor" ITEM.desc = "Clothing fit for the Resistance." ITEM.replacements = { {"group01", "group03"}, {"group02", "group03"}, {"group03m", "group03"}, } ITEM.armor = 25 ITEM.price = 100 ITEM.flag = "y"
local S = aurum.get_translator() aurum.magic.register_ritual("aurum_rituals:home", { description = S"Go Home", longdesc = S"Return to your respawn point.\nThis ritual can only be performed in Aurum, and you will must have full health.", size = b.box.new(vector.new(-1, -1, -1), vector.new(1, 0, 1)), protected = fa...
hook.Add("AddToolMenuTabs", "EMod.SpawnMenuTab", function() spawnmenu.AddToolTab("EMod", "EMod", "icon16/transmit.png") end) --models/props_c17/utilitypolemount01a.mdl EMod = EMod or {} EMODTick = GetConVar("emod_tickrate"):GetFloat() EMODTemp = GetConVar("emod_defaulttemp"):GetFloat() hook.Add("PostDrawTranslucentR...
RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(response) Heap.ESX.PlayerData = response LoadMotels() end) RegisterNetEvent("esx:setJob") AddEventHandler("esx:setJob", function(response) Heap.ESX.PlayerData.job = response end) RegisterNetEvent("renz_motels:up...
--[[ *** Artemis *** Written by : echomap --]] local _, L = ...; ------------------------------------------------------------------------- -- Options ------------------------------------------------------------------------- function Artemis.OptionsOpen() Artemis.OptionInit() InterfaceOptionsFrame_OpenToCategor...
test_run = require('test_run').new() fiber = require('fiber') json = require('json') function yielder(n) for i=1, n do fiber.yield() end end csw_check_counter = 0 fibers = {} test_run:cmd('setopt delimiter ";"') for i=1,100 do fibers[i] = fiber.new(function() for j=1,10 do fiber.yield() ...
-- -- Copyright 2021 Andreas MATTHIAS -- -- This work may be distributed and/or modified under the -- conditions of the LaTeX Project Public License, either version 1.3c -- of this license or (at your option) any later version. -- The latest version of this license is in -- http://www.latex-project.org/lppl.txt -- an...
object_building_mustafar_terrain_creature_lairs_must_blistmok_lair = object_building_mustafar_terrain_creature_lairs_shared_must_blistmok_lair:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_creature_lairs_must_blistmok_lair, "object/building/mustafar/terrain/creature_lairs/must_blistmok_lair.iff")...
local m = require 'pegparser.parser' local coder = require 'pegparser.coder' local util = require'pegparser.util' --[[ Removed labels: - Err_027 (';' in rule fieldDeclaration) - Err_175 (AssignmentOperator in rule assignment) - Err_177 ('->' in rule lambdaExpression) - Err_002 (dim+ in rule arrayType...
local BORDER_SIZE = 1000 local BallController = { borderLeft = Entity:new(-1 * BORDER_SIZE, 0, BORDER_SIZE, Constants.SCREEN_HEIGHT), borderRight = Entity:new(Constants.SCREEN_WIDTH, 0, BORDER_SIZE, Constants.SCREEN_HEIGHT), borderTop = Entity:new(0, -1 * BORDER_SIZE, Constants.SCREEN_WIDTH, BORDER_SIZE) }...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" module('MulActivityTimeState_pb') local MULACTIVITYTIMESTATE = protobuf.EnumDescriptor(); local MULACTIVITYTIMESTATE_MULACTIVITY_BEFOREOPEN_ENUM = protobuf.EnumValueDescriptor(); local MULACTIVITYTIMESTATE_MULACTIVITY_RUNNING_ENUM...
----------------------------------- -- Area: King Ranperre's Tomb -- DOOR: _5a0 (Heavy Stone Door) -- !pos -39.000 4.823 20.000 190 ----------------------------------- local ID = require("scripts/zones/King_Ranperres_Tomb/IDs") require("scripts/globals/missions") ----------------------------------- function onTrade(pl...
local gl = require("galaxyline") local gls = gl.section local condition = require('galaxyline.condition') local colors = require('zephyr') gl.short_line_list = {'NvimTree','vista','dbui','packer'} local active_bg = colors.base2 local inactive_bg = colors.base1 -- vim's mode() function returns character codes that ar...
// This is the ID given to any weapon item for all teams ITEM_WPN_COMMON = 11 function FUNC_DROPWEAPON( ply, id, client, icon ) if icon then return "icon16/arrow_down.png" end if client then return "Drop" end local tbl = item.GetByID( id ) local prop = ents.Create( "sent_droppedgun" ) prop:SetPos( ply:GetIt...
ITEM.name = "Agripinaa Pattern Type II Autogun" ITEM.description = "This model was produced on Agripinaa Forge World. It can fire a single shot, a three round burst or on fully automatic." ITEM.model = "models/weapons/w_autogun_b.mdl" ITEM.class = "weapon_40k_autogun" ITEM.weaponCategory = "primary" ITEM.width = 4 ITEM...
local classDef_meta = {__index={m1=1,m2=2}} function classDef_meta.__index:func1() self.m1=100 print(self.m1,self.m2) end local function createClassObj() local obj = {} setmetatable(obj,classDef_meta) return obj end local obj1 = createClassObj() obj1:func1() obj1.m2= 3 obj1:func1() local obj2 = createClassObj(...
--[[ Allow sharing of local peripherals. ]]-- local Event = require('event') local Peripheral = require('peripheral') local Socket = require('socket') Event.addRoutine(function() print('peripheral: listening on port 189') while true do local socket = Socket.server(189) print('peripheral: connection f...
random_faerie_wings_box = { use = function(player) local faerie_wings = { "green_faerie_wings", "blue_faerie_wings", "golden_faerie_wings", "platinum_faerie_wings", "red_faerie_wings" } local randomFaerieWing = faerie_wings[math.random(1, #faerie_wings)] if not player:hasSpace(randomFaerieWing...
ys = ys or {} ys.Battle.BattleSwitchBGMWave = class("BattleSwitchBGMWave", ys.Battle.BattleWaveInfo) ys.Battle.BattleSwitchBGMWave.__name = "BattleSwitchBGMWave" ys.Battle.BattleSwitchBGMWave.Ctor = function (slot0) slot0.super.Ctor(slot0) end ys.Battle.BattleSwitchBGMWave.SetWaveData = function (slot0, slot1) slot...
--------------------------------- --! @file ConnectorListener.lua --! @brief コネクタコールバック定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local ConnectorListener= {} --_G["openrtm.ConnectorListener"] = ConnectorListener ConnectorListener.ConnectorListenerStatus = { NO_CHANGE ...
-- Automatically compute the analytical derivative for the unsatisfaction semantics -- TODO/NOTE: Some of these derivatives - namely Eq, And, and Or - are discontinuous, so we use -- smooth approximations math = dnmath -- inspect = require('inspect') -- A tiny number used as epsilon eps = 0.0000000000000001 function...
return { meta = { _next = "assets/levels/level-2.lua", pause = true, info = "LEVEL 1\nPRESS SPACE TO JUMP.\nAVOID HATE EMOJIS. REPAIR HEARTS" }, blocks = { {x = 500, y = 200} }, broken = { {x = 800, y = 200} }, platforms = { } }
-- Keys are user:troupe keys local result = {} for index, key in pairs(KEYS) do local key_type = redis.call("TYPE", key)["ok"] local items if key_type == "set" then items = redis.call("SMEMBERS", key) elseif key_type == "zset" then items = redis.call("ZRANGE", key, 0, -1); el...
local CashInUI = class("CashInUI", BaseUI) local CashInItem = App.RequireHall("view/cash/CashInItem") function CashInUI:ctor() self:load(UriConst.ui_cashIn, UIType.Fixed, UIAnim.RightToLeft) end function CashInUI:Awake() self.scroll:Init(CashInItem) self.scroll:AddPageCallback(function ( ... ) log(...
project "Memory" if _ACTION then location(GetEngineLocation()) end kind "SharedLib" language "C++" defines { "IS_MEMORY" } files { "**.h", "**.cpp", "**.inl", "**.lua" } includedirs { "include", "../Engine/include", "../../Frameworks/Gaff/include", "../../Dependencies/rpmalloc", ...
--[[ AdiBags - Adirelle's bag addon. Copyright 2010-2014 Adirelle (adirelle@gmail.com) All rights reserved. This file is part of AdiBags. AdiBags is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-json. -- -- dromozoa-json is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -...
local _, ns = ... local E, C, L = ns:unpack() if not C.nameplate.enable then return end ---------------------------------------------------------------------------------------- -- oUF nameplates ---------------------------------------------------------------------------------------- local oUF = ns.oUF or oUF local ...
object_tangible_deed_guild_deed_naboo_guild_03_deed = object_tangible_deed_guild_deed_shared_naboo_guild_03_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_guild_deed_naboo_guild_03_deed, "object/tangible/deed/guild_deed/naboo_guild_03_deed.iff")
-- vim:et local cmd={} cmd["MSG"]=function(pl,a,ts) -- MSG:~msg if a.n<2 then return end cput("MSG:%s:~%s",pl.name,a[2]) end cmd["INFO"]=function(pl,a,ts) -- INFO:~msg if a.n<2 then return end cput("INFO:~%s",a[2]) end cmd["OK"]=function(pl,a,ts) pl.gotok=true end cmd["ALLY"]=function(pl,a,ts...
object_building_player_sm_hut = object_building_player_shared_sm_hut:new { } ObjectTemplates:addTemplate(object_building_player_sm_hut, "object/building/player/sm_hut.iff")
-------------------------------- -- @module ParticleSystemQuad -- @extend ParticleSystem -- @parent_module cc ---@class cc.ParticleSystemQuad:cc.ParticleSystem local ParticleSystemQuad = {} cc.ParticleSystemQuad = ParticleSystemQuad -------------------------------- --- Sets a new SpriteFrame as particle. --- WARNIN...
function warlockSpecial(drain) drain = drain or azs.class.drain if drain == "Soul" then warlockDrainSoul() else warlockDrainMana() end end function warlock_drain_mana_skull() if azs.targetSkull() then warlockDrainMana() end end function warlock_drain_mana_cross() if azs.targe...
function init(virtual) if not virtual then self.zeroAngle = -math.pi / 2 storage.targetAngle = (storage.targetAngle and storage.targetAngle % (2 * math.pi)) or 0 setTargetPosition() entity.setInteractive(true) end end function onInteraction(args) cycleTarget() end function cycleTarget() stora...
--[[ This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Created by 8bitMafia. --]] local PLUGIN = PLUGIN; PLUGIN:SetGlobalAlias("cwThirdPersonCommand");
print('Ca marche pas !')
--gemenchantmod.lua local hooks = {} local is_opened_msg_box = false local item_obj = nil local temp_item_obj = nil local temp_item_slot = nil local function get_exp_from_slot() local slots = GET_MAT_SLOT(ui.GetFrame("reinforce_by_mix")); local totalCount = 0 local addExp = 0 local cnt = slots:GetSlo...
require("analytics") local logger = require("logger") -- Stuff defined in this file: -- . the data structures that store the configuration of -- the stack of panels -- . the main game routine -- (rising, timers, falling, cursor movement, swapping, landing) -- . the matches-checking routine local min, pairs, d...