repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
imeteora/cocos2d-x-3.x-Qt
tests/lua-tests/src/AssetsManagerTest/AssetsManagerModule.lua
17
1398
local AssetManagerModule = {} function AssetManagerModule.newScene(backfunc) local winSize = cc.Director:getInstance():getWinSize() local newScene = cc.Scene:create() local layer = cc.Layer:create() local function backToUpdate() local scene = backfunc() if scene ~= nil then ...
gpl-2.0
CarabusX/Zero-K
units/shipassault.lua
3
6022
return { shipassault = { unitname = [[shipassault]], name = [[Siren]], description = [[Riot/Assault Destroyer (Anti-Sub)]], acceleration = 0.46, activateWhenBuilt = true, brakeRate = 0.6, buildCostMetal = 600, builder ...
gpl-2.0
rafael/kong
kong/tools/responses.lua
7
3860
--- Kong helper methods to send HTTP responses to clients. -- Can be used in the proxy, plugins or admin API. -- Most used status codes and responses are implemented as helper methods. -- -- @author thibaultcha -- Define the most used HTTP status codes through Kong local _M = { status_codes = { HTTP_OK = 200, ...
apache-2.0
jenisteam/AghayeKhas
plugins/wen.lua
1
28564
function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) self:gsub(pattern, function(c) fields[#fields+1] = c end) return fields end local function run(msg, matches) if #matches < 2 then return "•• بعد از این دستور، با قید یک فاصله کلمه یا کلمه ی مورد نظر...
gpl-3.0
luciouskami/YDWE
Development/Component/plugin/w3x2lni/script/core/slk/backend_obj.lua
2
7816
local w3xparser = require 'w3xparser' local lang = require 'lang' local table_insert = table.insert local table_sort = table.sort local table_concat = table.concat local string_char = string.char local math_type = math.type local math_floor = math.floor local wtonumber = w3xparser.tonumber local float2bin = w3...
gpl-3.0
mattyx14/otxserver
data/monster/quests/ferumbras_ascendant/bosses/ferumbras_soul_splinter.lua
2
3358
local mType = Game.createMonsterType("Ferumbras Soul Splinter") local monster = {} monster.description = "Ferumbras Soul Splinter" monster.experience = 12000 monster.outfit = { lookType = 843, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 150000 monste...
gpl-2.0
mattyx14/otxserver
data/monster/quests/cults_of_tibia/bosses/pillars/pillar_of_death.lua
2
1688
local mType = Game.createMonsterType("Pillar Of Death") local monster = {} monster.description = "a pillar of death" monster.experience = 0 monster.outfit = { lookTypeEx = 11427 } monster.health = 20000 monster.maxHealth = 20000 monster.race = "undead" monster.corpse = 0 monster.speed = 0 monster.manaCost = 0 monst...
gpl-2.0
CarabusX/Zero-K
effects/weapexp_puff.lua
7
4514
-- weapexp_puff -- puff_fire2 return { ["weapexp_puff"] = { fire = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, underwater = 0, water = false, properties = { a...
gpl-2.0
mattyx14/otxserver
data/monster/aquatics/quara_pincher.lua
2
2978
local mType = Game.createMonsterType("Quara Pincher") local monster = {} monster.description = "a quara pincher" monster.experience = 1200 monster.outfit = { lookType = 77, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 245 monster.Bestiary = { class =...
gpl-2.0
mattyx14/otxserver
data/monster/magicals/flying_book.lua
2
2237
local mType = Game.createMonsterType("Flying Book") local monster = {} monster.description = "a flying book" monster.experience = 200 monster.outfit = { lookType = 1060, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1654 monster.Bestiary = { class = "...
gpl-2.0
CarabusX/Zero-K
effects/ingeborg.lua
25
15516
-- ingeborg_2 -- ingeborg_3 -- ingeborg_9 -- ingeborg_7 -- ingeborg_8 -- ingeborg_ani -- ingeborg_5 -- ingeborg_10 -- ingeborg_6 -- ingeborg -- ingeborg_1 -- ingeborg_4 return { ["ingeborg_2"] = { wezels = { air = true, class = [[CSimpleParticleSystem]], count ...
gpl-2.0
jucor/lua-sci
dist/_gamma.lua
1
3270
-------------------------------------------------------------------------------- -- Gamma statistical distribution. -- -- Copyright (C) 2011-2013 Stefano Peluchetti. All rights reserved. -- -- Features, documention and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is released...
mit
mattyx14/otxserver
data/monster/mammals/enraged_squirrel.lua
2
1900
local mType = Game.createMonsterType("Enraged Squirrel") local monster = {} monster.description = "an enraged squirrel" monster.experience = 15 monster.outfit = { lookType = 274, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 35 monster.maxHealth = 35 m...
gpl-2.0
mattyx14/otxserver
data/monster/quests/dark_trails/death_priest_shargon.lua
2
3195
local mType = Game.createMonsterType("Death Priest Shargon") local monster = {} monster.description = "Death Priest Shargon" monster.experience = 20000 monster.outfit = { lookType = 278, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 3, lookMount = 0 } monster.health = 65000 monster.maxHe...
gpl-2.0
mattyx14/otxserver
data/monster/quests/dangerous_depth/bosses/the_duke_of_the_depths.lua
2
4796
local mType = Game.createMonsterType("The Duke Of The Depths") local monster = {} monster.description = "The Duke Of The Depths" monster.experience = 40000 monster.outfit = { lookType = 1047, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 50000 monster....
gpl-2.0
nitheeshkl/kln_awesome
awesome_3.4/vicious/hddtemp.lua
1
1084
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2009, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { popen = io.popen } local setmetatable = setmetatable ...
gpl-2.0
jucor/lua-sci
dist/_lognormal.lua
1
1814
-------------------------------------------------------------------------------- -- Lognormal statistical distribution. -- -- Copyright (C) 2011-2013 Stefano Peluchetti. All rights reserved. -- -- Features, documention and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is rele...
mit
black123456789/man
plugins/inpm.lua
59
3138
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
mnemnion/loon
src/mods/peg/ast-node.lua
1
6708
--AST tools local lpeg = require "lpeg" local clu = require "clu/prelude" local ansi = clu.ansi local walker = require "peg/walker" local Forest = require "peg/forest" local cyan = tostring(ansi.cyan) local blue = tostring(ansi.blue) local magenta = tostring(ansi.magenta) local clear = tostring(ansi.clear) local green ...
mit
EvilHero90/tfstemp
data/spells/scripts/party/train.lua
15
1869
local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, COND...
gpl-2.0
christopherjwang/rackspace-monitoring-agent
runners/check_runner.lua
3
2786
--[[ Copyright 2015 Rackspace 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 dis...
apache-2.0
focusworld/nn
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
HeavenIsLost/cast
data/spells/scripts/attack/curse.lua
27
1206
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SMALLCLOUDS) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH) local condition = createConditionObject(CONDITION_CURSED) setConditionParam(condition,...
gpl-2.0
garrysmodlua/wire
lua/entities/gmod_wire_keypad.lua
3
6764
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Keypad" if CLIENT then local X = -50 local Y = -100 local W = 100 local H = 200 local KeyPos = { {X+5 , Y+100 , 25, 25, -2.2, 3.45, 1.3 , 0 }, -- 1 {X+37.5, Y+100 , 25, 25, -0.6, 1.85, 1.3 , 0 }, -- 2 {X+70 , Y+100 , 2...
apache-2.0
nlamirault/dotfiles
.config/lvim/plugin/packer_compiled.lua
1
21763
-- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcal...
apache-2.0
nitheeshkl/kln_awesome
awesome_3.5/themes/holo/theme.lua
1
4935
--[[ Holo Awesome WM config 2.0 github.com/copycat-killer --]] theme = {} theme.icon_dir = os.getenv("HOME") .. "/.config/awesome/themes/holo/icons" --theme.wallpaper ...
gpl-2.0
luciouskami/YDWE
Development/Component/plugin/w3x2lni/script/core/slk/backend_extra_txt.lua
2
1940
local function format_keyval(key, val) if val == '' then return nil end if key == 'EditorSuffix' then return nil end if key == 'EditorName' then return nil end return key .. '=' .. val end local function format_value(val) if type(val) == 'string' then val...
gpl-3.0
Erfanh/Fighter_Bot
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
mrjon1/1
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
tbergeron/love-ludumdare-starter
globals.lua
1
2130
-- Globals Table -- Contains all re-usable variables and functions globals = {} -- Game Version globals.version = '0.0.0' -- Assets relative path globals.assetsDirectory = 'assets/' -- Date Format globals.formatDate = function(days_to_format, full) local years, months, weeks, days = nil -- years years =...
mit
rainfiel/skynet
lualib/redis.lua
20
6194
local skynet = require "skynet" local socket = require "socket" local socketchannel = require "socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis response local redcm...
mit
CarabusX/Zero-K
units/chickenwurm.lua
3
4728
return { chickenwurm = { unitname = [[chickenwurm]], name = [[Wurm]], description = [[Burrowing Flamer (Assault/Riot)]], acceleration = 1.08, activateWhenBuilt = true, brakeRate = 1.23, buildCostEnergy = 0, buildCostMetal = 0, builder ...
gpl-2.0
CarabusX/Zero-K
effects/nota_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
THS56/DEVNOVAR
DevNover/utils.lua
74
30284
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.l...
gpl-2.0
Frownigami1/cuberite
Server/Plugins/APIDump/Classes/Projectiles.lua
4
8443
return { cArrowEntity = { Desc = [[ Represents the arrow when it is shot from the bow. A subclass of the {{cProjectileEntity}}. ]], Functions = { CanPickup = { Params = { { Name = "Player", Type = "cPlayer", }, }, Returns = { { Type = "boolean", ...
apache-2.0
hacker44-h44/50
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
CarabusX/Zero-K
LuaRules/Gadgets/unit_fighter_pullup.lua
6
1046
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Fighter pull-up", desc = "Sets attack safety distance for fighter/bomber aircraft", author = "raaar", date = "2015", license = "PD", layer = 3, enabled = true } end local pullupDist = {} for uni...
gpl-2.0
mattyx14/otxserver
data/monster/undeads/blood_beast.lua
2
3556
local mType = Game.createMonsterType("Blood Beast") local monster = {} monster.description = "a blood beast" monster.experience = 1000 monster.outfit = { lookType = 602, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1040 monster.Bestiary = { class = "...
gpl-2.0
hacker44-h44/50
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
hacker44-h44/50
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
tenplus1/ethereal
stairs.lua
2
10617
local S = ethereal.intllib -- Stairs Redo if stairs and stairs.mod and stairs.mod == "redo" then stairs.register_all("crystal_block", "ethereal:crystal_block", {cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1}, {"crystal_block.png"}, S("Crystal Block Stair"), S("Crystal Block Slab"), default.node_sound...
mit
MeshGeometry/Urho3D
Source/Urho3D/LuaScript/pkgs/ToZerobraneStudioHook.lua
9
12213
-- -- Copyright (c) 2008-2017 the Urho3D project. -- -- 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, m...
mit
nitheeshkl/kln_awesome
awesome_3.5/vicious/widgets/wifi.lua
6
3025
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local math = { ceil = math.ceil } local setmetatable = setmetatabl...
gpl-2.0
mattyx14/otxserver
data/monster/humans/hunter.lua
2
3424
local mType = Game.createMonsterType("Hunter") local monster = {} monster.description = "a hunter" monster.experience = 150 monster.outfit = { lookType = 129, lookHead = 95, lookBody = 116, lookLegs = 120, lookFeet = 115, lookAddons = 0, lookMount = 0 } monster.raceId = 11 monster.Bestiary = { class = "Human"...
gpl-2.0
CarabusX/Zero-K
units/vehcapture.lua
4
4178
return { vehcapture = { unitname = [[vehcapture]], name = [[Dominatrix]], description = [[Capture Rover]], acceleration = 0.266, brakeRate = 0.462, buildCostMetal = 420, builder = false, buildPic = [[vehcapture.png]], canGu...
gpl-2.0
mattyx14/otxserver
data/monster/giants/frost_giant.lua
2
3242
local mType = Game.createMonsterType("Frost Giant") local monster = {} monster.description = "a frost giant" monster.experience = 150 monster.outfit = { lookType = 257, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 324 monster.Bestiary = { class = "Gi...
gpl-2.0
mumuqz/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
72
1073
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, defaultroute, metric, ttl, mtu ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), translate("Leave empty to use the current W...
apache-2.0
jasongdove/FCEUXLuaScripts
FF VIII/ffviii-util.lua
1
1161
local source = nil -- sorted pairs function spairs(t, order) -- collect the keys local keys = {} for k in pairs(t) do keys[#keys+1] = k end -- if order function given, sort by it by passing the table and keys a, b -- otherwise just sort the keys if order then table.sort(keys, function(a, b) return o...
mit
evoteamdev/EVO_TEAM
plugins/groupmanager.lua
1
106977
local function modadd(msg) local hash = "gp_lang:"..msg.to.id local lang = redis:get(hash) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then if not lang then return '_You are not bot admin_' else return '🚸┋انت لست مطور البوت' end end local da...
gpl-3.0
kbara/snabb
src/program/lwaftr/soaktest/soaktest.lua
2
1366
module(..., package.seeall) local config = require("core.config") local lib = require("core.lib") local lwconf = require('apps.lwaftr.conf') local setup = require("program.lwaftr.setup") local long_opts = { duration="D", help="h", ["on-a-stick"] = 0, } function show_usage(code) print(require("program.lwa...
apache-2.0
dinodeck/rpg_conversation_graph
nwn_dialog/code/Animation.lua
10
1057
Animation = {} Animation.__index = Animation function Animation:Create(frames, loop, spf) if loop == nil then loop = true end local this = { mFrames = frames or { 1 }, mIndex = 1, mSPF = spf or 0.12, mTime = 0, mLoop = loop } setmetatable(this, ...
mit
CarabusX/Zero-K
LuaUI/Widgets/dbg_frame_grapher.lua
6
2183
function widget:GetInfo() return { name = "Frame Grapher", desc = "Draw frame time graph in bottom right", author = "Beherith", date = "2020", layer = -10000000000000000000, enabled = false, -- loaded by default } end ------------------------------------------------...
gpl-2.0
veyesys/opencvr
3rdparty/civetweb/test/html_esc.lua
10
4611
htmlEscape = { "&#x263a;", "&#x263b;", "&#x2665;", "&#x2666;", "&#x2663;", "&#x2660;", "&#x2022;", -- ASCII 1-7 (symbols for control characters, see code page 437) "&#x25d8;", "&#x25cb;", "&#x25d9;", "&#x2642;", "&#x2640;", "&#x266a;", "&#x266b;", "&#x263c;", -- ASCII 8-15 "&#x25ba;", "&#x25c4;", "&#x2...
mit
minetest-mods/MoreMesecons
moremesecons_adjustable_blinkyplant/init.lua
2
2104
local toggle_timer = function (pos, restart) local timer = minetest.get_node_timer(pos) if timer:is_started() and not restart then timer:stop() else local interval = tonumber(minetest.get_meta(pos):get_string("interval")) or 1 if interval < moremesecons.setting("adjustable_blinky_plant", "min_interval", 0.5) ...
mpl-2.0
rainfiel/skynet
lualib/snax.lua
59
3683
local skynet = require "skynet" local snax_interface = require "snax.interface" local snax = {} local typeclass = {} local interface_g = skynet.getenv("snax_interface_g") local G = interface_g and require (interface_g) or { require = function() end } interface_g = nil skynet.register_protocol { name = "snax", id =...
mit
mattyx14/otxserver
data/scripts/spells/monster/the_welter_heal.lua
2
1187
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_NONE) local spell = Spell("instant") function spell.onCastSpell(creature, var) local spectators, spectator = Game.getSpectators(creature:getPosition(), false, false, 10, 10, 10, 10) for i = 1, #spectators do spectator = spectators[i] if spect...
gpl-2.0
fo369/luci-1505
modules/luci-base/luasrc/ltn12.lua
84
8954
--[[ LuaSocket 2.0.2 license Copyright � 2004-2007 Diego Nehab 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, me...
apache-2.0
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/far_seer/chain_lightning.lua
1
4296
--[[ Author: Noya Date: 17.01.2015. Bounces a chain lightning ]] function ChainLightning( event ) local hero = event.caster local target = event.target local ability = event.ability local damage = ability:GetLevelSpecialValueFor( "lightning_damage", ability:GetLevel() - 1 ) local bounces = ability:GetLevelSpe...
gpl-3.0
Moosader/Kuko
scripts/Language.lua
2
1264
print( "Language.lua loaded" ) function Language_GetText( key ) if ( language == nil or language[ key ] == nil ) then return "NOTFOUND" end return language[ key ] end -- this is for if the language table is stored in something other than a variable named "language" function Language_GetTextFromLanguage( key, lan...
mit
CarabusX/Zero-K
LuaUI/i18nlib/i18n/interpolate.lua
27
1075
local unpack = unpack or table.unpack -- lua 5.2 compat local bracketDummy = "@@@@@@@@@{@@@@@@@@@" local ltDummy = "@@@@@@@@@<@@@@@@@@@" -- matches a string of type %{age} local function interpolateVariables(str, vars) return str:gsub("%%{%s*(.-)%s*}", function(key) return tostring(vars[key]) end) end -- mat...
gpl-2.0
pampersrocker/risky-epsilon
Game/data/scripts/zombie_prototype/guns.lua
1
2503
function __gun__update(guid, elapsedTime) local self = __guns[guid] if (self.shootTimer > 0) then self.shootTimer = math.clamp(self.shootTimer - elapsedTime, 0, self.shootDelay) end if (self.reloadTimer > 0) then self.reloadTimer = math.clamp(self.reloadTimer - elapsedTime, 0, self.reloadDelay) if (s...
mit
aqasaeed/sparta
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
mattyx14/otxserver
data/monster/quests/ferumbras_ascendant/bosses/ragiaz.lua
2
5295
local mType = Game.createMonsterType("Ragiaz") local monster = {} monster.description = "ragiaz" monster.experience = 100000 monster.outfit = { lookType = 862, lookHead = 76, lookBody = 57, lookLegs = 19, lookFeet = 0, lookAddons = 3, lookMount = 0 } monster.health = 380000 monster.maxHealth = 380000 monster.r...
gpl-2.0
dani-sj/komyl
plugins/arabic_lock.lua
30
1090
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id...
gpl-2.0
black123456789/man
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
junkblocker/hammerspoon
extensions/window/init.lua
7
37790
--- === hs.window === --- --- Inspect/manipulate windows --- --- Notes: --- * See `hs.screen` and `hs.geometry` for more information on how Hammerspoon uses window/screen frames and coordinates local uielement = hs.uielement -- Make sure parent module loads local window = require "hs.window.internal" local applicati...
mit
CarabusX/Zero-K
LuaUI/Widgets/gfx_deferred_rendering.lua
7
22729
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Deferred rendering", version = 3, desc = "Collects and renders point and beam lights using HDR an...
gpl-2.0
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/Twirl.lua
2
1471
-------------------------------- -- @module Twirl -- @extend Grid3DAction -------------------------------- -- @function [parent=#Twirl] setAmplitudeRate -- @param self -- @param #float float -------------------------------- -- @function [parent=#Twirl] getAmplitudeRate -- @param self -- @return float#float...
gpl-2.0
awilliamson/Starfall
lua/starfall/libs_sv/holograms.lua
1
10430
--- Library for creating and manipulating physics-less models AKA "Holograms". -- @shared local holograms_library, holograms_library_metamethods = SF.Libraries.Register("holograms") --- Hologram type local hologram_methods, hologram_metamethods = SF.Typedef("Hologram", SF.Entities.Metatable) SF.Holograms = {} SF.Hol...
bsd-3-clause
mattyx14/otxserver
data/monster/quests/the_secret_library/invading_demon.lua
2
2210
local mType = Game.createMonsterType("Invading Demon") local monster = {} monster.description = "an invading demon" monster.experience = 100 monster.outfit = { lookType = 35, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 1000 monster.maxHealth = 1000 m...
gpl-2.0
mattyx14/otxserver
data/scripts/spells/monster/furyosa_skill_reducer.lua
2
1244
local combat = {} for i = 40, 50 do combat[i] = Combat() combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_YELLOW) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 10000) condition:setParameter(CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, i) arr = { {0, 0, 0...
gpl-2.0
mattyx14/otxserver
data/monster/magicals/brain_squid.lua
2
3898
local mType = Game.createMonsterType("Brain Squid") local monster = {} monster.description = "a brain squid" monster.experience = 17672 monster.outfit = { lookType = 1059, lookHead = 17, lookBody = 41, lookLegs = 77, lookFeet = 57, lookAddons = 0, lookMount = 0 } monster.raceId = 1653 monster.Bestiary = { cla...
gpl-2.0
hussian1997/hhhuu
plugins/voice.lua
8
1050
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀...
agpl-3.0
mattyx14/otxserver
data/monster/quests/dangerous_depth/snail_slime.lua
2
1881
local mType = Game.createMonsterType("Snail Slime") local monster = {} monster.description = "a snail slime" monster.experience = 160 monster.outfit = { lookType = 19, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 1000 monster.maxHealth = 1000 monster....
gpl-2.0
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/TextField.lua
2
5929
-------------------------------- -- @module TextField -- @extend Widget -------------------------------- -- @function [parent=#TextField] setAttachWithIME -- @param self -- @param #bool bool -------------------------------- -- @function [parent=#TextField] getFontSize -- @param self -- @return int#int ret ...
gpl-2.0
houqp/koreader-base
thirdparty/lua-ljsqlite3/init.lua
1
20667
-------------------------------------------------------------------------------- -- A library for interfacing with SQLite3 databases. -- -- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the LJSQLite3 library, w...
agpl-3.0
CarabusX/Zero-K
LuaUI/Utilities/engine_range_circles.lua
8
3083
-- emulates engine range circles. By very_bad_soldier and versus666 local max = math.max local abs = math.abs local cos = math.cos local sin = math.sin local sqrt = math.sqrt local pi = math.pi local spGetGroundHeight = Spring.GetGroundHeight local function GetRange2DWeapon(range, yDiff) local root1 = r...
gpl-2.0
CarabusX/Zero-K
LuaRules/Configs/MetalSpots/Barren.lua
8
1499
local LARGE_SPOT = 2.09 local MEDIUM_SPOT = 1.75 local SMALL_SPOT = 1.40 local TINY_SPOT = 1.04 return { spots = { {x = 1304, z = 2680, metal = MEDIUM_SPOT}, {x = 440, z = 248, metal = TINY_SPOT}, {x = 344, z = 888, metal = TINY_SPOT}, {x = 3992, z = 31...
gpl-2.0
imeteora/cocos2d-x-3.x-Qt
tests/lua-tests/src/AssetsManagerTest/AssetsManagerTest.lua
5
4588
local targetPlatform = cc.Application:getInstance():getTargetPlatform() local lineSpace = 40 local itemTagBasic = 1000 local menuItemNames = { "enter", "reset", "update", } local winSize = cc.Director:getInstance():getWinSize() local function updateLayer() local layer = cc.Layer:create() local s...
gpl-2.0
mattyx14/otxserver
data/monster/quests/the_percht_queens_island/percht_minion.lua
2
1913
local mType = Game.createMonsterType("Percht Minion") local monster = {} monster.description = "a percht minion" monster.experience = 0 monster.outfit = { lookType = 53, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 55 monster.maxHealth = 55 monster.ra...
gpl-2.0
tgp1994/LiquidRP-tgp1994
entities/entities/darkrp_laws/init.lua
1
4481
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local Laws = {} local FixedLaws = {} timer.Simple(0, function() Laws = table.Copy(GAMEMODE.Config.DefaultLaws) FixedLaws = table.Copy(Laws) end) function DarkRP.hooks:canEditLaws(ply, action, args) if not RPExtraTeams[ply:Team()] or not...
gpl-3.0
CarabusX/Zero-K
scripts/striderdante.lua
4
14653
include 'constants.lua' -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local pelvis = piece 'pelvis' local torso = piece 'torso' local tail = piece 'tail' local flagell...
gpl-2.0
mattyx14/otxserver
data/monster/reptiles/young_sea_serpent.lua
2
3508
local mType = Game.createMonsterType("Young Sea Serpent") local monster = {} monster.description = "a young sea serpent" monster.experience = 1000 monster.outfit = { lookType = 317, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 439 monster.Bestiary = {...
gpl-2.0
fo369/luci-1505
applications/luci-app-vsftpd/luasrc/model/cbi/vsftpd/general.lua
11
4092
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2014 HackPascal <hackpascal@gmail.com> 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://ww...
apache-2.0
mattyx14/otxserver
data/monster/quests/the_dream_courts/bosses/malofur_mangrinder.lua
2
3579
local mType = Game.createMonsterType("Malofur Mangrinder") local monster = {} monster.description = "Malofur Mangrinder" monster.experience = 55000 monster.outfit = { lookType = 1120, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 200000 monster.maxHeal...
gpl-2.0
kbara/snabb
src/core/config.lua
14
2514
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- 'config' is a data structure that describes an app network. module(..., package.seeall) local lib = require("core.lib") -- API: Create a new configuration. -- Initially there are no apps or links. function new () return { app...
apache-2.0
luohancfd/FluidDynamicTools
Thermo_Chemical_Properties/Molecule_Properties/RawData/HNO3.lua
1
1034
-- Collater: Rowan J. Gollan -- Date: 30-Mar-2009 HNO3 = {} HNO3.M = { value = 63.01284e-3, units = 'kg/mol', description = 'molecular mass', reference = 'CEA2::thermo.inp' } HNO3.atomic_constituents = {H=1,N=1,O=3} HNO3.charge = 0 HNO3.gamma = { value = 1.181, units = 'non-dimensional', descripti...
gpl-3.0
luohancfd/FluidDynamicTools
Thermo_Chemical_Properties/Molecule_Properties/RawData/N2_B.lua
1
1870
-- Collater: Daniel F. Potter -- Date: 15 July 2012 -- 2nd excited state of nitrogen, B3Pig N2_B = {} N2_B.M = { value = 28.0134e-3, units = 'kg/mol', description = 'molecular mass', reference = 'from CEA2::thermo.inp' } N2_B.atomic_constituents = {N=2} N2_B.charge = 0 N2_B.CEA_coeffs = { { T_low = 2...
gpl-3.0
manoelcampos/LuaXML
XmlParser.lua
1
14037
--- @module Class providing the actual XML parser. -- Available options are: -- * stripWS -- Strip non-significant whitespace (leading/trailing) -- and do not generate events for empty text elements -- -- * expandEntities -- Expand entities (standard entities + single char -- ...
mit
rafael/kong
kong/resolver/handler.lua
21
1037
-- Kong resolver core-plugin -- -- This core-plugin is executed before any other, and allows to map a Host header -- to an API added to Kong. If the API was found, it will set the $backend_url variable -- allowing nginx to proxy the request as defined in the nginx configuration. -- -- Executions: 'access', 'header_filt...
apache-2.0
MeshGeometry/Urho3D
bin/Data/LuaScripts/09_MultipleViewports.lua
24
13081
-- Multiple viewports example. -- This sample demonstrates: -- - Setting up two viewports with two separate cameras -- - Adding post processing effects to a viewport's render path and toggling them require "LuaScripts/Utilities/Sample" local rearCameraNode = nil function Start() -- Execute the ...
mit
qiuxin2012/BigDL
spark/dl/src/test/resources/torch/genPreprocessRefTensors.lua
13
1904
-- -- Copyright 2016 The BigDL Authors. -- -- 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 agr...
apache-2.0
hussian1997/hhhuu
plugins/APICLI.lua
8
1774
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ (ملف اشعار او خواطر) ▀▄ ▄▀ ...
agpl-3.0
jenisteam/AghayeKhas
plugins/plugins.lua
1
7870
do local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( name ) for k,v in pairs(plugins_names()) do if name..'.lu...
gpl-3.0
CarabusX/Zero-K
effects/unused_chloe.lua
25
1910
-- chloe return { ["chloe"] = { glow = { air = true, class = [[CSimpleParticleSystem]], count = 20, ground = true, water = true, properties = { airdrag = 1, colormap = [[1 0....
gpl-2.0
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/tauren_chieftain/reincarnation.lua
1
3879
--[[Author: Noya Date: 12.01.2015. Attempts to reincarnate the target if the caster has enough mana and ability is not on cooldown For the respawn time if you use any custom rule you'll have to change it. Bug: can't reduce death count. However, all the other interactions should be correct (gold/xp/messages) Note:...
gpl-3.0
mattyx14/otxserver
data/monster/quests/svargrond_arena/warlord/deathbringer.lua
2
2935
local mType = Game.createMonsterType("Deathbringer") local monster = {} monster.description = "Deathbringer" monster.experience = 5100 monster.outfit = { lookType = 231, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 8440 monster.maxHealth = 8440 monste...
gpl-2.0
mattyx14/otxserver
data/monster/mammals/enraged_white_deer.lua
2
2326
local mType = Game.createMonsterType("Enraged White Deer") local monster = {} monster.description = "an enraged white deer" monster.experience = 165 monster.outfit = { lookType = 400, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 255 monster.maxHealth ...
gpl-2.0
garrysmodlua/wire
lua/autorun/wire_load.lua
3
5041
--[[ Copyright 2013 Wiremod Developers https://github.com/wiremod/ 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 o...
apache-2.0
mattyx14/otxserver
data/monster/quests/in_service_of_yalahar/sharptooth.lua
2
2306
local mType = Game.createMonsterType("Sharptooth") local monster = {} monster.description = "Sharptooth" monster.experience = 1600 monster.outfit = { lookType = 20, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 3100 monster.maxHealth = 3100 monster.rac...
gpl-2.0