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
nitheeshkl/kln_awesome
awesome_3.5/vicious/widgets/uptime.lua
15
1191
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> --------------------------------------------------- -- {{{ Grab environment local setmetatable = setmetatable local ...
gpl-2.0
cho4036/package
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua
80
4829
-- ------ extra functions ------ -- function ruleCheck() -- determine if rules needs a proper protocol configured uci.cursor():foreach("mwan3", "rule", function (section) local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port")) local destPort = ut.trim(sys.exec("...
gpl-2.0
mattyx14/otxserver
data/monster/fey/wisp.lua
2
3040
local mType = Game.createMonsterType("Wisp") local monster = {} monster.description = "a wisp" monster.experience = 0 monster.outfit = { lookType = 294, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 462 monster.Bestiary = { class = "Fey", race = BEST...
gpl-2.0
raminea/capitan-Deadpool
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(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[tostr...
gpl-2.0
zakariaRobot/TeleSeed
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(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[tostr...
gpl-2.0
manoelcampos/LuaXML
xmlhandler/dom.lua
1
4020
---- @module Handler to generate a DOM-like node tree structure with -- a single ROOT node parent - each node is a table comprising -- the fields below. -- -- node = { _name = <Element Name>, -- _type = ROOT|ELEMENT|TEXT|COMMENT|PI|DECL|DTD, -- _attr = { Node attributes - se...
mit
mattyx14/otxserver
data/monster/humanoids/troll_guard.lua
2
2379
local mType = Game.createMonsterType("Troll Guard") local monster = {} monster.description = "a troll guard" monster.experience = 25 monster.outfit = { lookType = 281, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 745 monster.Bestiary = { class = "Hum...
gpl-2.0
mattyx14/otxserver
data/scripts/spells/support/levitate.lua
2
1734
local function levitate(creature, parameter) local fromPosition = creature:getPosition() if parameter == "up" and fromPosition.z ~= 8 or parameter == "down" and fromPosition.z ~= 7 then local toPosition = creature:getPosition() toPosition:getNextPosition(creature:getDirection()) local tile = Tile(parameter ==...
gpl-2.0
mattyx14/otxserver
data/monster/aquatics/deepsea_blood_crab.lua
2
2463
local mType = Game.createMonsterType("Deepsea Blood Crab") local monster = {} monster.description = "a deepsea blood crab" monster.experience = 180 monster.outfit = { lookType = 200, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 437 monster.Bestiary = ...
gpl-2.0
mattyx14/otxserver
data/lib/core/revscriptsys.lua
2
7669
-- Create functions revscriptsys function createFunctions(class) local exclude = {[2] = {"is"}, [3] = {"get", "set", "add", "can"}, [4] = {"need"}} local temp = {} for name, func in pairs(class) do local add = true for strLen, strTable in pairs(exclude) do if table.contains(strTable, name:sub(1, strLen)) then...
gpl-2.0
mumuqz/luci
applications/luci-app-pbx/luasrc/model/cbi/pbx.lua
146
4360
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
CarabusX/Zero-K
LuaUI/Widgets/gui_showeco_action.lua
4
11263
local version = "v1.003" function widget:GetInfo() return { name = "Showeco and Grid Drawer", desc = "Register an action called Showeco & draw overdrive overlay.", --"acts like F4", author = "xponen, ashdnazg", date = "July 19 2013", license = "GNU GPL, v2 or later", layer ...
gpl-2.0
guitaryang/lualib
lmap_test.lua
1
2196
local lmap = require"lmap" local tinsert = table.insert local function test() local mm = lmap.new() mm:insert("gutiar1", 100) mm:insert("gutiar2", 200) mm:insert("gutiar3", 300) mm:insert("gutiar4", 400) mm:insert("gutiar5", 500) mm:insert("gutiar6", 600) mm["guitar7"] = 700 print(mm.guitar7) mm["guita...
mit
CarabusX/Zero-K
scripts/planeheavyfighter.lua
5
3785
include "constants.lua" --pieces local base = piece "base" local wingR, wingL, wingtipR, wingtipL = piece("wingr", "wingl", "wingtip1", "wingtip2") local engineR, engineL, thrust1, thrust2, thrust3 = piece("jetr", "jetl", "thrust1", "thrust2", "thrust3") local missR, missL = piece("m1", "m2") local smokePiece = {base...
gpl-2.0
dbltnk/macro-prototype
loveframes/objects/internal/columnlist/columnlistrow.lua
1
5046
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- columnlistrow class local newobject = loveframes.NewObject("columnlistrow", "loveframes_object_columnlistrow", true) --[[----...
mit
aledbf/ingress-nginx
rootfs/etc/nginx/lua/configuration.lua
4
6889
local cjson = require("cjson.safe") local io = io local ngx = ngx local tostring = tostring local string = string local table = table local pairs = pairs -- this is the Lua representation of Configuration struct in internal/ingress/types.go local configuration_data = ngx.shared.configuration_data local certificate_da...
apache-2.0
williamhogman/dsv-gamejam16
hump/vector.lua
20
5319
--[[ Copyright (c) 2010-2013 Matthias Richter 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, dis...
mit
tgp1994/LiquidRP-tgp1994
gamemode/liquiddrp/cl_qmenu.lua
1
15039
if LDRP_SH.DisableQMenu then return end local LDRP = {} function LDRP.QMenuHUD() if LDRP.QMenuStr then local Font = (string.len(LDRP.QMenuStr) > 28 and "Trebuchet24") or "HUDNumber5" draw.SimpleTextOutlined(LDRP.QMenuStr, Font, ScrW()*.5, ScrH()*.03, Color(255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, C...
gpl-3.0
rafael/kong
spec/plugins/key-auth/daos_spec.lua
7
2379
local spec_helper = require "spec.spec_helpers" local uuid = require "uuid" local env = spec_helper.get_env() local dao_factory = env.dao_factory local faker = env.faker describe("DAO key-auth Credentials", function() setup(function() spec_helper.prepare_db() end) it("should not insert in DB if consumer d...
apache-2.0
amirmrbad/superbot
plugins/inrealm.lua
13
25404
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
GetDotaStats/stat-achievements
statachievement/scripts/vscripts/addon_game_mode.lua
1
2702
-- Load Stat collection (statcollection should be available from any script scope) require('lib.statcollection_achievement') statcollection_achievement.setModID( 'achievement_test' --GET THIS FROM http://getdotastats.com/#d2mods__my_mods ) print( "Example stat collection game mode loaded." ) if YourGamemode == nil t...
gpl-2.0
Links7094/nwf
resources/lua/app_initialized.lua
2
1535
------------------------------------------------------------------ -- desc: 服务器、框架完全加载之后的处理脚本 -- author: zenghui -- date: 2017-3-27 -- attention: 网站启动时将自动执行此文件一次。 -- 注意此文件执行之时服务器、框架、模块已经完全加载完毕。 -- 可以在这个文件里加入一些业务脚本 ------------------------------------------------------------------ local nwf...
mit
rainfiel/skynet
service/cslave.lua
19
6492
local skynet = require "skynet" local socket = require "socket" require "skynet.manager" -- import skynet.launch, ... local table = table local slaves = {} local connect_queue = {} local globalname = {} local queryname = {} local harbor = {} local harbor_service local monitor = {} local monitor_master_set = {} local ...
mit
junkblocker/hammerspoon
extensions/battery/init.lua
20
1813
--- === hs.battery === --- --- Battery/power information --- All functions here may return nil, if the information requested is not available. --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("hs.battery.i...
mit
Frownigami1/cuberite
Server/Plugins/APIDump/Hooks/OnBlockToPickups.lua
36
2438
return { HOOK_BLOCK_TO_PICKUPS = { CalledWhen = "A block is about to be dug ({{cPlayer|player}}, {{cEntity|entity}} or natural reason), plugins may override what pickups that will produce.", DefaultFnName = "OnBlockToPickups", -- also used as pagename Desc = [[ This callback gets called whenever a block is ...
apache-2.0
mattyx14/otxserver
data/monster/mammals/sibang.lua
2
2865
local mType = Game.createMonsterType("Sibang") local monster = {} monster.description = "a sibang" monster.experience = 105 monster.outfit = { lookType = 118, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 118 monster.Bestiary = { class = "Mammal", ra...
gpl-2.0
mattyx14/otxserver
data/monster/bosses/yaga_the_crone.lua
2
3581
local mType = Game.createMonsterType("Yaga The Crone") local monster = {} monster.description = "Yaga The Crone" monster.experience = 375 monster.outfit = { lookType = 54, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 620 monster.maxHealth = 620 monste...
gpl-2.0
Erfanh/Fighter_Bot
plugins/all.lua
264
4202
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
CarabusX/Zero-K
LuaRules/Gadgets/Include/PriorityQueue.lua
6
1525
-- -- Slight adaptation from: -- https://gist.github.com/leegao/1074642 -- local insert = table.insert local remove = table.remove local PriorityQueue = {} function PriorityQueue.new(cmp, initial) local pq = setmetatable({}, { __index = { cmp = cmp or function(a,b) return a < b end, push = function(self, v) ...
gpl-2.0
ld-test/feedparser
tests/XMLElement.lua
3
2322
local XMLElement = require "feedparser.XMLElement" local lom = require "lxp.lom" local function req(a, b) local t = type(a) if t~=type(b) then return false end if t == 'table' then for i,v in pairs(a) do local eq = req(v, b[i]) if not eq then return nil end end return true elseif t == 'function' or t =...
bsd-3-clause
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/MenuItem.lua
6
1112
-------------------------------- -- @module MenuItem -- @extend Node -------------------------------- -- @function [parent=#MenuItem] setEnabled -- @param self -- @param #bool bool -------------------------------- -- @function [parent=#MenuItem] activate -- @param self ----------------------------...
gpl-2.0
ReclaimYourPrivacy/cloak-luci
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
28
2106
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. local dsp = require "luci.dispatcher" local nixio = require "nixio" m = Map("ocserv", translate("OpenConnect VPN")) if m.uci:get("ocserv", "config", "auth") == "plain" then --[[Users]]-...
apache-2.0
mattyx14/otxserver
data/monster/humanoids/pirat_artillerist.lua
2
3283
local mType = Game.createMonsterType("Pirat Artillerist") local monster = {} monster.description = "a pirat artillerist" monster.experience = 2800 monster.outfit = { lookType = 1346, lookHead = 126, lookBody = 94, lookLegs = 86, lookFeet = 94, lookAddons = 2, lookMount = 0 } monster.raceId = 918 monster.Bestia...
gpl-2.0
Quit/jelly
lib/resources.lua
1
2048
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan 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 restri...
mit
PAC3-Server/ServerContent
lua/notagain/jrpg/autorun/client/impact_effects.lua
2
6638
local jfx = requirex("jfx") local draw_line = requirex("draw_line") do local glyph_disc = jfx.CreateMaterial({ Shader = "UnlitGeneric", BaseTexture = "https://raw.githubusercontent.com/PAC3-Server/ServerAssets/master/materials/pac_server/jrpg/disc.png", VertexColor = 1, VertexAlph...
mit
tenplus1/ethereal
onion.lua
1
2742
local S = ethereal.intllib -- wild onion minetest.register_craftitem("ethereal:wild_onion_plant", { description = S("Wild Onion"), inventory_image = "wild_onion.png", wield_image = "wild_onion.png", groups = {food_onion = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return...
mit
CarabusX/Zero-K
scripts/turretaaflak.lua
8
2814
local flare = {piece 'flare1', piece 'flare2'} local barrel = {piece 'barrel1', piece 'barrel2'} local base = piece 'base' local turret = piece 'turret' local guns = piece 'guns' local a1, a2, a3, a4 = piece('a1', 'a2', 'a3', 'neck') local floatbase = piece 'floatbase' local trueaim = piece 'trueaim' local gun_to_use ...
gpl-2.0
raminea/capitan-Deadpool
plugins/inpm.lua
1114
3008
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
MRAHS/Backup
plugins/inpm.lua
1114
3008
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
ali0098/zombi-bot
plugins/inpm.lua
1114
3008
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
mattyx14/otxserver
data/monster/vermins/lesser_swarmer.lua
2
2075
local mType = Game.createMonsterType("Lesser Swarmer") local monster = {} monster.description = "a lesser swarmer" monster.experience = 0 monster.outfit = { lookType = 460, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 230 monster.maxHealth = 230 monst...
gpl-2.0
nitheeshkl/kln_awesome
awesome_3.4/vicious/pacman.lua
1
1147
--------------------------------------------------- -- 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
tgp1994/LiquidRP-tgp1994
gamemode/fadmin/fadmin/playeractions/giveweapons/sv_init.lua
3
1795
local function GiveWeapon(ply, cmd, args) if not FAdmin.Access.PlayerHasPrivilege(ply, "giveweapon") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return end if not args[2] then return end local targets = FAdmin.FindPlayer(args[1]) if not targets or #targets == 1 and not IsValid(targets[1]) then FAdmin....
gpl-3.0
rainfiel/skynet
service/launcher.lua
24
3372
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local function handle_to_address(handle) retu...
mit
luciouskami/YDWE
Development/Component/compiler/script/computed/order_id.lua
3
8231
local order2id = { smart = 0xD0003, stop = 0xD0004, setrally = 0xD000C, getitem = 0xD000D, attack = 0xD000F, attackground = 0xD0010, attackonce = 0xD0011, move = 0xD0012, AImove = 0xD0014, patrol = 0xD0016, holdposition = 0xD0019, build = 0xD001A, humanbuild = 0xD001B, orcbuild = 0xD001C, nightelfbuild =...
gpl-3.0
mattyx14/otxserver
data/monster/reptiles/lizard_legionnaire.lua
2
3112
local mType = Game.createMonsterType("Lizard Legionnaire") local monster = {} monster.description = "a lizard legionnaire" monster.experience = 1100 monster.outfit = { lookType = 338, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 624 monster.Bestiary =...
gpl-2.0
HeavenIsLost/cast
data/npc/lib/npcsystem/npchandler.lua
13
21971
-- Advanced NPC System by Jiddo if NpcHandler == nil then -- Constant talkdelay behaviors. TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly. TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default) TALKDELAY_EVENT = 2 -- Not yet implemented -- Currently applied tal...
gpl-2.0
christopherjwang/rackspace-monitoring-agent
tests/test-net.lua
4
3647
--[[ 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
mattyx14/otxserver
data/monster/traps/hive_pore.lua
2
1900
local mType = Game.createMonsterType("Hive Pore") local monster = {} monster.description = "a hive pore" monster.experience = 0 monster.outfit = { lookTypeEx = 14064 } monster.health = 1 monster.maxHealth = 1 monster.race = "venom" monster.corpse = 0 monster.speed = 0 monster.manaCost = 355 monster.changeTarget = {...
gpl-2.0
CarabusX/Zero-K
LuaUI/Widgets/gui_chili_commander_upgrade.lua
6
30608
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Commander Upgrade", desc = "Interface for commander upgrade selection.", author =...
gpl-2.0
daniel-slaney/quadrology
game/src/mode.lua
1
1134
-- -- lib/mode.lua -- -- A mode is a high-level state of the game that has love callbacks as events. -- --[[ usage: local schema, mode1, mode2, .., modeN = require 'lib/mode' { 'mode1', 'mode2', ..., 'modeN' } local state = require 'lib/state' local schema, MainMode = require 'lib/mode' { 'MainMode' } local machi...
bsd-2-clause
haswne/IRAQ_BOT
tg/test.lua
210
2571
started = 0 our_id = 0 function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'tab...
gpl-2.0
zain211/zain.aliraqex
tg/test.lua
210
2571
started = 0 our_id = 0 function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'tab...
gpl-2.0
tgp1994/LiquidRP-tgp1994
gamemode/fadmin/fadmin/playeractions/kickban/sh_shared.lua
3
1288
function FAdmin.PlayerActions.ConvertBanTime(time) local Add = "" time = math.Round(time) if time <= 0 then return "permanent" elseif time < 60 then -- minutes return math.ceil(time) .. " minute(s)" elseif time >= 60 and time < 1440 then -- hours if math.floor((time/60 - math.floor(time/60))*60) > 0 then A...
gpl-3.0
abgoyal/nodemcu-firmware
tools/cross-lua.lua
19
1145
local args = { ... } local b = require "tools.build" local builder = b.new_builder( ".build/cross-lua" ) local utils = b.utils local sf = string.format builder:init( args ) builder:set_build_mode( builder.BUILD_DIR_LINEARIZED ) local output = 'luac.cross' local cdefs = '-DLUA_CROSS_COMPILER -O2' -- Lua source files ...
mit
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/units/human/peasant.lua
1
3525
-- NOTE: There should be a separate Call To Arms ability on each peasant but it's -- currently not possible because there's not enough ability slots visible CALL_THINK_INTERVAL = 0.1 function CallToArms( event ) local caster = event.caster local hero = caster:GetOwner() local ability = event.ability local player...
gpl-3.0
dinodeck/rpg_conversation_graph
nwn_dialog_advanced/map/map_town.lua
1
154919
function CreateTownMap(state) local id = "town" local townState = state.maps[id] local OnTalk = function(map, trigger, entity, x, y, layer) local dialogDef = { speakerX = x, speakerY = y, graphDef = conversation_5 } local dialogState = DialogState:Create(dialogDef) ...
mit
mattyx14/otxserver
data/monster/vermins/parasite.lua
2
1898
local mType = Game.createMonsterType("Parasite") local monster = {} monster.description = "a parasite" monster.experience = 0 monster.outfit = { lookType = 82, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 550 monster.maxHealth = 550 monster.race = "ve...
gpl-2.0
zain211/zain.aliraqex
plugins/en-ASD_KARBALA1.lua
2
4364
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ help1 : مساعدة ▀▄ ▄▀ ▀▄▀...
gpl-2.0
mattyx14/otxserver
data/monster/vermins/rotworm.lua
2
2727
local mType = Game.createMonsterType("Rotworm") local monster = {} monster.description = "a rotworm" monster.experience = 40 monster.outfit = { lookType = 26, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 26 monster.Bestiary = { class = "Vermin", rac...
gpl-2.0
mattyx14/otxserver
data/monster/mammals/stone_rhino.lua
2
2514
local mType = Game.createMonsterType("Stone Rhino") local monster = {} monster.description = "a Stone Rhino" monster.experience = 1800 monster.outfit = { lookType = 936, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1395 monster.Bestiary = { class = "...
gpl-2.0
mattyx14/otxserver
data/monster/quests/svargrond_arena/greenhorn/achad.lua
2
1968
local mType = Game.createMonsterType("Achad") local monster = {} monster.description = "Achad" monster.experience = 70 monster.outfit = { lookType = 146, lookHead = 95, lookBody = 93, lookLegs = 38, lookFeet = 59, lookAddons = 3, lookMount = 0 } monster.health = 185 monster.maxHealth = 185 monster.race = "bloo...
gpl-2.0
kbara/snabb
src/apps/lwaftr/channel.lua
2
7120
-- Channels -- -- A channel is a way for different threads or processes to communicate. -- Channels are backed by a ring buffer that is mapped into shared -- memory. Access to a channel will never block or cause a system call. -- Readers and writers have to agree ahead of time on how to interpret -- the messages that ...
apache-2.0
imeteora/cocos2d-x-3.x-Qt
tests/lua-tests/src/IntervalTest/IntervalTest.lua
17
4556
local scheduler = cc.Director:getInstance():getScheduler() local SID_STEP1 = 100 local SID_STEP2 = 101 local SID_STEP3 = 102 local IDC_PAUSE = 200 local function IntervalLayer() local ret = cc.Layer:create() local m_time0 = 0 local m_time1 = 0 local m_time2 = 0 local m_time3 = 0 loc...
gpl-2.0
CarabusX/Zero-K
LuaRules/Configs/StartBoxes/Archsimkats_Valley_V1.lua
6
4213
local ret = { [0] = { boxes = { { {5383, 8188}, {5460, 8030}, {5692, 7970}, {6073, 7809}, {6252, 7594}, {6309, 7174}, {6209, 7132}, {6179, 7002}, {6186, 6819}, {6010, 6691}, {5896, 6562}, {5822, 6358}, {5890, 6179}, {6262, 5935}, {6564, 5755}, {6699,...
gpl-2.0
Germanunkol/GridCars
network/examples/dedicated.lua
4
3931
-- This is a minimal example of how to set up a dedicated server. -- In this context, dedicated means the server is run -- a) headless (no Löve dependency) -- b) in plain Lua. -- Requirements: Luasocket and Lua must be installed network = require( "../network" ) local server local MAX_PLAYERS = 16 local PORT = 3412 l...
mit
mattyx14/otxserver
data/monster/quests/the_secret_library/the_lily_of_night.lua
2
2223
local mType = Game.createMonsterType("The Lily of Night") local monster = {} monster.description = "a the lily of night" monster.experience = 0 monster.outfit = { lookType = 1068, lookHead = 0, lookBody = 57, lookLegs = 90, lookFeet = 79, lookAddons = 2, lookMount = 0 } monster.health = 10000 monster.maxHealth...
gpl-2.0
mattyx14/otxserver
data/monster/quests/cults_of_tibia/misguided_shadow.lua
2
2410
local mType = Game.createMonsterType("Misguided Shadow") local monster = {} monster.description = "a misguided shadow" monster.experience = 1200 monster.outfit = { lookType = 985, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 3000 monster.maxHealth = 3...
gpl-2.0
aqasaeed/sparta
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
hacker44-h44/50
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
rafael/kong
kong/api/app.lua
7
4686
local lapis = require "lapis" local utils = require "kong.tools.utils" local stringy = require "stringy" local responses = require "kong.tools.responses" local app_helpers = require "lapis.application" local app = lapis.Application() -- Parses a form value, handling multipart/data values -- @param `v` The value object...
apache-2.0
ReclaimYourPrivacy/cloak-luci
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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 $Id$ ]]-- require("luci.i1...
apache-2.0
awilliamson/Starfall
lua/starfall/libs_sh/trace.lua
1
8489
------------------------------------------------------------------------------- -- Trace library ------------------------------------------------------------------------------- local dgetmeta = debug.getmetatable --[[ -- Here's a neat little script to convert enumerations wiki.gmod.com-style -- into something usable ...
bsd-3-clause
CarabusX/Zero-K
units/starlight_satellite.lua
3
5557
return { starlight_satellite = { unitname = [[starlight_satellite]], name = [[Glint]], description = [[Starlight relay satellite]], acceleration = 0.456, brakeRate = 2.736, buildCostMetal = 300, builder = false, bui...
gpl-2.0
garrysmodlua/wire
lua/wire/gates/logic.lua
18
2870
--[[ Logic Gates ]] GateActions("Logic") GateActions["not"] = { name = "Not (Invert)", inputs = { "A" }, output = function(gate, A) if (A > 0) then return 0 end return 1 end, label = function(Out, A) return "not "..A.." = "..Out end } GateActions["and"] = { name = "And (All)", inputs = { "A", "B", "C...
apache-2.0
mattyx14/otxserver
data/monster/humanoids/insane_siren.lua
2
3466
local mType = Game.createMonsterType("Insane Siren") local monster = {} monster.description = "an insane siren" monster.experience = 6000 monster.outfit = { lookType = 1136, lookHead = 72, lookBody = 94, lookLegs = 79, lookFeet = 4, lookAddons = 3, lookMount = 0 } monster.raceId = 1735 monster.Bestiary = { cl...
gpl-2.0
imeteora/cocos2d-x-3.x-Qt
templates/lua-template-default/src/main.lua
1
8556
require "Cocos2d" require "Cocos2dConstants" -- cclog cclog = function(...) print(string.format(...)) end -- for CCLuaEngine traceback function __G__TRACKBACK__(msg) cclog("----------------------------------------") cclog("LUA ERROR: " .. tostring(msg) .. "\n") cclog(debug.traceback()) cclog("----...
gpl-2.0
mattyx14/otxserver
data/monster/demons/askarak_demon.lua
2
3694
local mType = Game.createMonsterType("Askarak Demon") local monster = {} monster.description = "an askarak demon" monster.experience = 900 monster.outfit = { lookType = 420, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 727 monster.Bestiary = { class ...
gpl-2.0
fo369/luci-1505
modules/luci-base/luasrc/cbi.lua
3
40250
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.cbi", package.seeall) require("luci.template") local util = require("luci.util") require("luci.http") --local event = require "luci.sys.event" local fs = require("nixio.fs") local uc...
apache-2.0
MRAHS/Backup
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(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[tostr...
gpl-2.0
nitheeshkl/kln_awesome
awesome_3.5/blingbling/config_example/rc.lua
2
24560
-- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library local wibox = require("wibox") -- Theme handling library local beautiful = require("beautiful") -- Notification library local naughty = r...
gpl-2.0
christopherjwang/rackspace-monitoring-agent
hostinfo/filesystem.lua
1
1533
--[[ Copyright 2014 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
dickeyf/darkstar
scripts/globals/abilities/light_maneuver.lua
35
1609
----------------------------------- -- Ability: Light Maneuver -- Enhances the effect of light attachments. Must have animator equipped. -- Obtained: Puppetmaster level 1 -- Recast Time: 10 seconds (shared with all maneuvers) -- Duration: 1 minute ----------------------------------- require("scripts/globals/status"); ...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c18517177.lua
3
1616
--コア・ブラスト function c18517177.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) c:RegisterEffect(e1) --maintain local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(18517177,0)) e2:SetType(EF...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c28124263.lua
6
2160
--D・キャメラン function c28124263.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EVENT_LEAVE_FIELD_P) e1:SetOperation(c28124263.check) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) ...
gpl-2.0
mitchellwrosen/lua-parser
test/samples/1.lua
3
34547
--[[ Interpolating Search on a String LUA 5.1 compatible Can only search sorted tables with value string table.intsearchstr( table, value ), for searching a normal sorted table table.intsearchstrrev( table, value ), for searching a reversed sorted table If the value is found: it returns a t...
bsd-3-clause
dickeyf/darkstar
scripts/globals/weaponskills/tachi_hobaku.lua
1
1680
----------------------------------- -- Tachi Hobaku -- Great Katana weapon skill -- Skill Level: 30 -- Stuns enemy. Chance of stun varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Snow Gorget. -- Aligned with the Snow Belt. -- Element: None -- Modifiers: STR:60% -- 100%TP 200%TP 300%TP -- 1.00...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c10117149.lua
2
3492
--ブンボーグ005 function c10117149.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --splimit local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_PZONE) e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c100213059.lua
2
2235
--螺旋のストライクバースト --Spiral Flame Strike --Scripted by Eerie Code function c100213059.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1e0) e1:SetTarget(c100213059.target) c:RegisterEffect(e1) end function c100213059.desfi...
gpl-2.0
dickeyf/darkstar
scripts/zones/Heavens_Tower/npcs/Kupipi.lua
13
7287
----------------------------------- -- Area: Heaven's Tower -- NPC: Kupipi -- Involved in Mission 2-3 -- Involved in Quest: Riding on the Clouds -- @pos 2 0.1 30 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
dickeyf/darkstar
scripts/zones/Northern_San_dOria/npcs/Olbergieut.lua
1
2329
----------------------------------- -- Area: Northern San d'Oria -- NPC: Olbergieut -- Type: Quest NPC -- @zone 231 -- @pos 91 0 121 -- -- Starts and Finishes Quest: Gates of Paradise ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; -------------------------------...
gpl-3.0
Turttle/darkstar
scripts/zones/Bastok_Mines/npcs/Emaliveulaux.lua
30
1948
----------------------------------- -- Area: Bastok Mines -- NPC: Emaliveulaux -- Only sells when Bastok controls the Tavnazian Archipelago -- Only available to those with CoP Ch. 4.1 or higher ----------------------------------- require("scripts/globals/events/harvest_festivals"); require...
gpl-3.0
dickeyf/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Mindala-Andola_CC.lua
13
1074
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Mindala-Andola, C.C. -- Type: Sigil -- @zone: 94 -- @pos -31.869 -6.009 226.793 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ...
gpl-3.0
Turttle/darkstar
scripts/zones/Spire_of_Vahzl/Zone.lua
17
1582
----------------------------------- -- -- Zone: Spire_of_Vahzl (23) -- ----------------------------------- package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Spire_of_Vahzl/TextIDs"); require("scripts/g...
gpl-3.0
deepmind/meltingpot
meltingpot/lua/levels/coop_mining/components.lua
1
9293
--[[ Copyright 2022 DeepMind Technologies Limited. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
apache-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c9888196.lua
6
4233
--A・O・J ディサイシブ・アームズ function c9888196.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),2) c:EnableReviveLimit() --destroy1 local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(9888196,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:Set...
gpl-2.0
fgenesis/Aquaria_experimental
game_scripts/scripts/entities/pet_dumbo.lua
6
4372
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 2 -- of the License, or (at your option) any later vers...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c48928529.lua
5
1306
--No.83 ギャラクシー・クィーン function c48928529.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,1,3) c:EnableReviveLimit() --attack up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(48928529,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCost(c489285...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c232.lua
2
1264
--Doubulldog function c232.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c232.condition) e1:SetTarget(c232.target) e1:SetOperation(c232.activate) c:RegisterEffect(e1) end functio...
gpl-2.0
dickeyf/darkstar
scripts/globals/spells/invisible.lua
27
1280
----------------------------------------- -- Spell: Invisible -- Lessens chance of being detected by sight. -- Duration is random number between 30 seconds and 5 minutes ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------...
gpl-3.0