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
raymondtfr/forgottenserver
data/global.lua
1
6641
dofile('data/lib/lib.lua') STORAGEVALUE_PROMOTION = 30018 ropeSpots = {384, 418, 8278, 8592, 13189, 14435, 14436, 15635, 19518} doors = {[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1219] = 1220, [1221] = 1222, [1231] = 1233, [1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, ...
gpl-2.0
rezaar/Tele-Sorena
plugins/settings.s.lua
13
33964
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
alihbs/S_NAKE
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Godfather021/lion
plugins/rss.lua
731
1601
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
dani-sj/mahandany
plugins/boobs.lua
731
1601
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
disslove85/NOVA1-BOT
plugins/boobs.lua
731
1601
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
taschemann/kq-lives
scripts/tower.lua
2
32325
-- tower - "Oracle's tower, southwest of mountain fort" -- /* -- { -- -- P_ORACLE: Spoke to Oracle in the Tower -- (0) Haven't spoken to her yet -- (1) She told you your quest, requested help from monsters -- (2) You helped with monsters (stopped them from getting to the portal) (not done) -- -- P_ORACLEMONSTERS...
gpl-2.0
gedads/Neodynamis
scripts/globals/items/cup_of_choco-delight.lua
12
1151
----------------------------------------- -- ID: 4283 -- Item: cup_of_choco-delight -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic Regen While Healing 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
starlightknight/darkstar
scripts/zones/Windurst_Woods/npcs/Umumu.lua
9
2411
----------------------------------- -- Area: Windurst Woods -- NPC: Umumu -- Involved In Quest: Making Headlines -- !pos 32.575 -5.250 141.372 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/quests") require("scripts/globals/titles") ------------...
gpl-3.0
gedads/Neodynamis
scripts/zones/Caedarva_Mire/npcs/qm12.lua
3
2027
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? -- !pos 456.993 -7.000 -270.815 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require(...
gpl-3.0
RememberTheAir/GroupButler
lua/groupbutler/plugins/setlang.lua
1
2272
local config = require "groupbutler.config" local _M = {} function _M:new(update_obj) local plugin_obj = {} setmetatable(plugin_obj, {__index = self}) for k, v in pairs(update_obj) do plugin_obj[k] = v end return plugin_obj end local function doKeyboard_lang() local keyboard = { inline_keyboard = {} } fo...
gpl-2.0
gedads/Neodynamis
scripts/globals/items/choco-ligar.lua
12
1197
----------------------------------------- -- ID: 5919 -- Item: Choco-ligar -- Food Effect: 3 Min, All Races ----------------------------------------- -- Vitality 1 -- Speed 12.5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
starlightknight/darkstar
scripts/zones/Windurst_Waters/npcs/Chomoro-Kyotoro.lua
9
1200
----------------------------------- -- Area: Windurst Waters -- NPC: Chomoro-Kyotoro -- Involved in Quest: Making the Grade -- !pos 133 -5 167 238 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); ---------------------------...
gpl-3.0
CAAP/Lua
carlos/ferre/miss.lua
1
1240
-- Import Section -- local fd = require'carlos.fold' local format = require'string'.format local print = print -- No more external access after this point _ENV = nil -- or M -- Local Variables for module-only access -- local DATA = {} -------------------------------- -- Local function definitions -- -----------...
gpl-2.0
gedads/Neodynamis
scripts/globals/abilities/pets/attachments/smoke_screen.lua
4
1095
----------------------------------- -- Attachment: Smoke Screen ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addMod(MOD_EVA, 20); pet:addMod(MOD_ACC, -20); end function...
gpl-3.0
starlightknight/darkstar
scripts/mixins/families/qutrub.lua
12
1861
require("scripts/globals/mixins") g_mixins = g_mixins or {} g_mixins.families = g_mixins.families or {} -- AnimationSub for Qutrub -- 0 = main weapon out, sub weapon sheathed -- 1 = main weapon broken, sub weapon sheathed -- 2 = main weapon broken, sub weapon out -- 3 = both weapons broken g_mixins.families.qutrub =...
gpl-3.0
Craige/prosody-modules
mod_auth_custom_http/mod_auth_custom_http.lua
32
1346
-- Prosody IM -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local new_sasl = require "util.sasl".new; local json_encode = require "util.json"; local http = require "socket.http"; local options = module:get...
mit
gedads/Neodynamis
scripts/globals/items/windurst_taco.lua
12
1644
----------------------------------------- -- ID: 5172 -- Item: windurst_taco -- Food Effect: 30Min, All Races ----------------------------------------- -- MP 20 -- Vitality -1 -- Agility 5 -- MP Recovered While Healing 1 -- Ranged Accuracy % 8 (cap 10) -- Ranged Attack +1 ----------------------------------------- requ...
gpl-3.0
hades2013/openwrt-mtk
package/ralink/ui/luci-mtk/src/libs/nixio/axTLS/www/lua/download.lua
180
1550
#!/usr/local/bin/lua require"luasocket" function receive (connection) connection:settimeout(0) local s, status = connection:receive (2^10) if status == "timeout" then coroutine.yield (connection) end return s, status end function download (host, file, outfile) --local f = assert (io.open (outfile, "w")) loc...
gpl-2.0
mynameiscraziu/sickout21
plugins/invite.lua
63
1107
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans send_large_msg(chat, 'User is banned.') else ...
gpl-2.0
gedads/Neodynamis
scripts/zones/Aht_Urhgan_Whitegate/npcs/Mushayra.lua
3
1048
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Mushayra -- Type: Standard NPC -- !pos -111.551 -6.999 -61.720 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_W...
gpl-3.0
gedads/Neodynamis
scripts/zones/The_Sanctuary_of_ZiTah/npcs/Kasim.lua
3
1876
----------------------------------- -- Area: The Sanctuary of Zitah -- NPC: Kasim -- !pos -46 0 -148 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_Zitah/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); r...
gpl-3.0
starlightknight/darkstar
scripts/zones/Open_sea_route_to_Al_Zahbi/IDs.lua
12
1193
----------------------------------- -- Area: Open_sea_route_to_Al_Zahbi ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.OPEN_SEA_ROUTE_TO_AL_ZAHBI] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot ob...
gpl-3.0
starlightknight/darkstar
scripts/globals/abilities/pets/attachments/eraser.lua
11
1703
----------------------------------- -- Attachment: Eraser ----------------------------------- require("scripts/globals/status") ----------------------------------- local removable = { dsp.effect.PETRIFICATION, dsp.effect.SILENCE, dsp.effect.BANE, dsp.effect.CURSE_II, dsp.effect.CURSE, dsp.effec...
gpl-3.0
disslove85/NOVA1-BOT
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
gedads/Neodynamis
scripts/zones/The_Eldieme_Necropolis/npcs/_5fn.lua
3
2646
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: North Plate -- !pos 180 -34 71 195 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- ...
gpl-3.0
pravsingh/Algorithm-Implementations
Knuth_Morris_Pratt/Lua/Yonaba/kmp.lua
26
1219
-- Knuth-Morris-Pratt string searching algorithm implementation -- See: http://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm local function kmp_table(pattern) local result = {} for i = 1, #pattern+1,1 do local j = i while true do if j == 1 then result[#result + 1] = 1 ...
mit
teleowner/TELEOWNER
plugins/src.lua
1
1049
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
ahupowerdns/pdns
pdns/recursordist/contrib/powerdns-example-script.lua
14
3915
pdnslog("pdns-recursor Lua script starting!", pdns.loglevels.Warning) blockset = newDS() blockset:add{"powerdns.org", "xxx"} dropset = newDS(); dropset:add("123.cn") malwareset = newDS() malwareset:add("nl") magic2 = newDN("www.magic2.com") magicMetric = getMetric("magic") -- shows the various ways of blocking, ...
gpl-2.0
gedads/Neodynamis
scripts/zones/Apollyon/Zone.lua
31
11702
----------------------------------- -- -- Zone: Apollyon -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; require("scripts/zones/Apollyon/TextIDs"); require("scripts/globals/limbus"); ----------------------------------- -- onInitiali...
gpl-3.0
gedads/Neodynamis
scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Green.lua
3
2441
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Magian Moogle (Green Bobble) -- Type: Magian Trials NPC (Job Emotes) -- !pos -4.558 2.451 111.305 64 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
starlightknight/darkstar
scripts/commands/setplayervar.lua
9
1288
--------------------------------------------------------------------------------------------------- -- func: setplayervar -- desc: Sets a variable on the target player. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = ...
gpl-3.0
gedads/Neodynamis
scripts/globals/magicburst.lua
33
3436
require("scripts/globals/status") SC_NONE = 0 -- Lv0 None SC_TRANSFIXION = 1 -- Lv1 Light SC_COMPRESSION = 2 -- Lv1 Dark SC_LIQUEFACTION = 3 -- Lv1 Fire SC_SCISSION = 4 -- Lv1 Earth SC_REVERBERATION = 5 -- Lv1 Water SC_DETONATION = 6 -- Lv1 Wind SC_INDURATION = 7 -- Lv1 Ice SC_IMPACTIO...
gpl-3.0
gedads/Neodynamis
scripts/zones/Tavnazian_Safehold/npcs/_0qa.lua
3
2029
----------------------------------- -- Area: Tavnazian Safehold -- NPC: walnut door -- Involved in mission 2-4 -- !pos 111 -41 41 26 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("s...
gpl-3.0
starlightknight/darkstar
scripts/globals/weaponskills/shell_crusher.lua
10
1698
----------------------------------- -- Shell Crusher -- Staff weapon skill -- Skill Level: 175 -- Lowers target's defense. Duration of effect varies with TP. -- If unresisted, lowers target defense by 25%. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget. -- Aligned with the Breeze Belt. -- Element: N...
gpl-3.0
Craige/prosody-modules
mod_manifesto/mod_manifesto.lua
32
6828
-- mod_manifesto local timer = require "util.timer"; local jid_split = require "util.jid".split; local st = require "util.stanza"; local dm = require "util.datamanager"; local dataforms_new = require "util.dataforms".new; local adhoc_initial = require "util.adhoc".new_initial_data_form; local mm_reload = require "modu...
mit
gedads/Neodynamis
scripts/zones/Mhaura/npcs/Celestina.lua
3
2688
----------------------------------- -- Area: Mhaura -- NPC: Celestina -- Finish Quest: The Sand Charm -- Involved in Quest: Riding on the Clouds -- Guild Merchant NPC: Goldsmithing Guild -- !pos -37.624 -16.050 75.681 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; package...
gpl-3.0
gedads/Neodynamis
scripts/globals/mobskills/final_retribution.lua
31
1048
--------------------------------------------- -- Final Retribution -- Family: Corse -- Description: Damages enemies in an area of effect. Additional effect: Stun -- Type: Physical -- Utsusemi/Blink absorb: 1-3 shadows -- Range: Radial -- Notes: Only used by some notorious monsters like Xolotl. ------------------...
gpl-3.0
Jamanno/Zero-K-Infrastructure
Benchmarker/Benchmarks/Configs/ZKL_default/LuaUI/Config/ZK_order.lua
12
4858
-- Widget Order List (0 disables a widget) return { ["AA Command Helper"] = 14, AdvPlayersList = 0, ["Ally Resource Bars"] = 0, AllyCursors = 59, AnimatorGUI = 0, ["Attack AoE"] = 50, ["Attack Warning"] = 55, ["Auto First Build Facing"] = 15, ["Auto Group"] = 53, ["Auto Patrol Nanos"] = 16, ["Au...
gpl-3.0
laino/luakit
lib/quickmarks.lua
6
8888
---------------------------------------------------------------- -- Vimperator style quickmarking -- -- @author Piotr Husiatyński <phusiatynski@gmail.com> -- -- @author Mason Larobina <mason.larobina@gmail.com> -- ------------------------------------------------------------...
gpl-3.0
pedro-andrade-inpe/terrame
packages/base/tests/functional/alternative/SocialNetwork.lua
3
4695
------------------------------------------------------------------------------------------- -- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling. -- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org -- This code is part of the TerraME framework. -- This framework is f...
lgpl-3.0
gedads/Neodynamis
scripts/zones/Port_Bastok/npcs/Alib-Mufalib.lua
2
4065
----------------------------------- -- Area: Port Bastok -- NPC: Alib-Mufalib -- Type: Warp NPC -- !pos 116.080 7.372 -31.820 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/...
gpl-3.0
O-P-E-N/CC-ROUTER
feeds/luci/applications/luci-app-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
92
6917
-- wizard rewrite wip local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk") local mesh_network = ip.IPv4(uci:get_first(community, "community", "...
gpl-2.0
pedro-andrade-inpe/terrame
packages/luadoc/lua/main/util.lua
1
7822
------------------------------------------------------------------------------- -- General utilities. -- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- -- local lfs = require "lfs" local table, io, assert, setmetatable...
lgpl-3.0
Amorph/premake-stable
src/actions/vstudio/vs200x_vcproj_user.lua
26
1489
-- -- vs200x_vcproj_user.lua -- Generate a Visual Studio 2002-2008 C/C++ project .user file -- Copyright (c) 2011 Jason Perkins and the Premake project -- -- -- Set up namespaces -- local vc200x = premake.vstudio.vc200x -- -- Generate the .vcproj.user file -- function vc200x.generate_user(prj) vc200x.header('...
bsd-3-clause
gedads/Neodynamis
scripts/zones/Northern_San_dOria/npcs/Taulenne.lua
16
5134
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taulenne -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; package.loaded["scripts/globals/armorstorage"] = nil; ----------------------------------- require("scripts/zones/No...
gpl-3.0
Erns/Erns-Suicide-Kings
Ern_SKTab_Options.lua
1
11185
--[[ Ern's Suicide Kings <Ern_SKTab_Options.lua> Original Creation Date: 7/18/2012 Updated Date: 2/16/2014 Contact: Ern.Warcraft@gmail.com Refer to LICENSE.txt for the Apache License, Version 2.0. Copyright 2012-2014 Aaron Sayles. All rights reserved. Licensed under the Apache License, Version 2.0 (t...
apache-2.0
deathshadow85/max
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
rezaar/Tele-Sorena
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
gedads/Neodynamis
scripts/globals/items/plate_of_salmon_sushi_+1.lua
12
1583
----------------------------------------- -- ID: 5664 -- Item: plate_of_salmon_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Strength 2 -- Accuracy % 15 (cap 72) -- Ranged ACC % 15 (cap 72) -- Resist Sleep +2 ----------------------------------------- require("scripts/globals/st...
gpl-3.0
mmaxs/pull_requests--ettercap
src/lua/share/core/base64.lua
12
2550
-- Base64-encoding -- Sourced from http://en.wikipedia.org/wiki/Base64 require('math') local __author__ = 'Daniel Lindsley' local __version__ = 'scm-1' local __license__ = 'BSD' local index_table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' function to_binary(integer) local remaining =...
gpl-2.0
gedads/Neodynamis
scripts/globals/items/plate_of_bream_sushi.lua
12
1667
----------------------------------------- -- ID: 5176 -- Item: plate_of_bream_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 6 -- Vitality 5 -- Accuracy % 16 (cap 76) -- Ranged ACC % 16 (cap 76) -- Sleep Resist 1 ----------------------------------------- require("scripts/...
gpl-3.0
gedads/Neodynamis
scripts/zones/Crawlers_Nest/npcs/qm12.lua
3
2120
----------------------------------- -- Area: Crawlers' Nest -- NPC: qm12 (??? - Exoray Mold Crumbs) -- Involved in Quest: In Defiant Challenge -- !pos 99.326 -0.126 -188.869 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
gedads/Neodynamis
scripts/zones/Castle_Oztroja/mobs/Tzee_Xicu_the_Manifest.lua
3
1484
----------------------------------- -- Area: Castle Oztroja -- MOB: Tzee Xicu the Manifest ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_Oztroja/TextIDs"); require("scripts/globals/titles"); ---------...
gpl-3.0
zzzaaiidd/TCHUKY
plugins/textphoto.lua
16
1343
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ text photo: تحويل الصورة الى ملصق ▀▄ ▄▀ ▀▄...
gpl-2.0
gedads/Neodynamis
scripts/globals/items/simit_+1.lua
12
1251
----------------------------------------- -- ID: 5597 -- Item: simit_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 18 -- Vitality 4 -- Defense 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChe...
gpl-3.0
xmrxx/mrx
plugins/zhrafa_arab_mrx_.lua
1
8515
--[[ DEV_ @mem_cool #ṂṜẌ ]] local function mrx(msg, matches) if #matches < 2 then return "بعد هذا الأمر، من خلال تحديد كلمة المسافة أو العبارة التي تريد إدخال الكتابة الجميلة" end if string.len(matches[2]) > 44 then return "الحد الأقصى المسموح به 40 حرفاالأحرف الإنجليزية والأرقام" end local font_base = "ء,...
gpl-2.0
starlightknight/darkstar
scripts/zones/Windurst_Waters/npcs/Leepe-Hoppe.lua
9
10722
----------------------------------- -- Area: Windurst Waters -- NPC: Leepe-Hoppe -- Involved in Mission 1-3, Mission 7-2 -- !pos 13 -9 -197 238 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions"); require("scripts/globals/keyitems"); local ID = require("scripts/...
gpl-3.0
pravsingh/Algorithm-Implementations
Heap_Sort/Lua/Yonaba/heapsort.lua
27
2212
-- Heap sort implementation -- See: http://en.wikipedia.org/wiki/Heapsort -- Binary heap data structure implementation -- Based on http://github.com/Yonaba/Binary-Heaps -- Percolates up local function sift_up(heap, index) if index == 1 then return end local pIndex if index <= 1 then return end if index % 2 ==...
mit
ThisIsArman/UltraKing
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
taschemann/kq-lives
scripts/sunarin.lua
2
2706
-- sunarin - "Sunarin Tower" function autoexec() return end function entity_handler(en) if (en == 0) then local x, y = get_ent_tile(HERO1) move_entity(HERO2, x, y + 1) wait_for_entity(HERO2) bubble(en, _"I am the king of thieves!") if (get_progress(P_AYLA_QUEST) == 7 and get_ent_chrx(HERO1) ...
gpl-2.0
starlightknight/darkstar
scripts/globals/items/galette_des_rois.lua
11
1198
----------------------------------------- -- ID: 5875 -- Item: Galette Des Rois -- Food Effect: 180 Min, All Races ----------------------------------------- -- HP +8 -- MP +3% (cap13) -- Intelligence +2 -- Random Jewel ----------------------------------------- require("scripts/globals/status") require("scripts/globals/...
gpl-3.0
starlightknight/darkstar
scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua
12
1374
----------------------------------- -- Area: Port Windurst -- NPC: Panja-Nanja -- Type: Fishing Adv. Image Support -- !pos -194.499 -3 58.692 240 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Port_Windurst/IDs"); ----------...
gpl-3.0
gedads/Neodynamis
scripts/zones/Temple_of_Uggalepih/mobs/Manipulator.lua
17
2255
---------------------------------- -- Area: Temple of Uggalipeh -- NM: Manipulator -- Notes: Paths around the 2 staircases ----------------------------------- local path = { -17.930, -8.500, -93.215, -18.553, -7.713, -91.224, -20.226, -6.250, -89.091, -21.651, -5.005, -87.401, -23.137, -3.917, ...
gpl-3.0
starlightknight/darkstar
scripts/globals/items/bowl_of_jack-o-soup.lua
11
1388
----------------------------------------- -- ID: 4522 -- Item: Bowl of Jack-o'-Soup -- Food Effect: 240Min, All Races ----------------------------------------- -- Health % 2 (cap 120) -- Agility 3 -- Vitality -1 -- Health Regen While Healing 5 -- Ranged ACC % 8 -- Ranged ACC Cap 25 -------------------------------------...
gpl-3.0
focusworld/ghost-bot
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
gedads/Neodynamis
scripts/zones/Metalworks/npcs/High_Bear.lua
3
1884
----------------------------------- -- Area: Metalworks -- NPC: High Bear -- Type: Quest Giver -- @zone 237 -- !pos 25.231 -14.999 4.552 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); require("scripts/globals/titles"); -----------------------------------...
gpl-3.0
starlightknight/darkstar
scripts/zones/Gustav_Tunnel/npcs/qm2.lua
9
1354
----------------------------------- -- Area: Gustav tunnel -- NPC: qm2 (???) -- Note: Part of mission "The Salt of the Earth" -- !pos -130 1.256 252.696 212 ----------------------------------- local ID = require("scripts/zones/Gustav_Tunnel/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/missions"...
gpl-3.0
gedads/Neodynamis
scripts/globals/weaponskills/gust_slash.lua
23
1283
----------------------------------- -- Gust Slash -- Dagger weapon skill -- Skill level: 40 -- Deals wind elemental damage. Damage varies with TP. -- Will not stack with Sneak Attack. -- Aligned with the Breeze Gorget. -- Aligned with the Breeze Belt. -- Element: Wind -- Modifiers: DEX:20% ; INT:20% -- 100%TP 200%TP...
gpl-3.0
ironjade/DevStack
LanCom/DesignPattern/LUA/OpenScatterTable.lua
1
6208
#!/usr/local/bin/lua --[[ Copyright (c) 2004 by Bruno R. Preiss, P.Eng. $Author: brpreiss $ $Date: 2004/12/05 14:47:20 $ $RCSfile: OpenScatterTable.lua,v $ $Revision: 1.4 $ $Id: OpenScatterTable.lua,v 1.4 2004/12/05 14:47:20 brpreiss Exp $ --]] require "HashTable" require "Array" --{ -- Open scatter table impleme...
apache-2.0
starlightknight/darkstar
scripts/globals/items/pepperoni_pizza_+1.lua
11
1264
----------------------------------------- -- ID: 5698 -- Item: pepperoni_pizza_+1 -- Food Effect: 4 hours, all Races ----------------------------------------- -- HP +35 -- Strength 2 -- Accuracy 9% (caps @ 11) -- Attack 10% (caps @ 16) ----------------------------------------- require("scripts/globals/status") require(...
gpl-3.0
starlightknight/darkstar
scripts/zones/Outer_Horutoto_Ruins/IDs.lua
9
2791
----------------------------------- -- Area: Outer_Horutoto_Ruins ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.OUTER_HORUTOTO_RUINS] = { text = { ORB_ALREADY_PLACED = 0, -- A dark Mana Orb is alread...
gpl-3.0
hades2013/openwrt-mtk
package/ralink/ui/luci-mtk/src/applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua
30
2105
--[[ LuCI - Lua Configuration Interface Copyright 2012 Christian Gagneraud <chris@techworks.ie> 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$ ]]...
gpl-2.0
gedads/Neodynamis
scripts/zones/Bastok_Markets/npcs/Lamepaue.lua
3
11031
----------------------------------- -- Area: Bastok Markets -- NPC: Lamepaue -- Type: Past Event Watcher -- !pos -172.136 -5 -69.632 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets/TextIDs");...
gpl-3.0
pedro-andrade-inpe/terrame
test/packages/onerror/tests/alternative/Utils.lua
3
4120
------------------------------------------------------------------------------------------- -- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling. -- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP. -- -- This code is part of the TerraME framework. -- This framework is free software; yo...
lgpl-3.0
telergybot/zspam
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
padrinoo1/televagir
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
dani-sj/mahandany
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
hyee/dbcli
db2/db2.lua
1
6190
local env,java=env,java local event,packer,cfg,init=env.event.callback,env.packer,env.set,env.init local set_command,exec_command=env.set_command,env.exec_command local db2=env.class(env.db_core) db2.module_list={ "sqlstate", "snap", "sql", "chart", "ssh", } function db2:ctor(isdefault) self.ty...
mit
starlightknight/darkstar
scripts/globals/weaponskills/quietus.lua
10
1867
----------------------------------- -- Quietus -- Scythe weapon skill -- Skill Level: N/A -- Delivers a triple damage attack that ignores target's defense. Amount ignored varies with TP. Redemption: Aftermath. -- Available only when equipped with Redemption (85)/(90)/(95)/(99) or Penitence +1/+2/+3/Umiliati. -- Aligned...
gpl-3.0
gedads/Neodynamis
scripts/zones/Port_Bastok/npcs/Mine_Konte.lua
17
1124
----------------------------------- -- Area: Port Bastok -- NPC: Mine Konte -- Involved in Quest: Out of One's Shell ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end;...
gpl-3.0
laino/luakit
lib/lousy/widget/menu.lua
8
8385
------------------------------------------------------------- -- @author Mason Larobina &lt;mason.larobina@gmail.com&gt; -- -- @copyright 2010 Mason Larobina -- ------------------------------------------------------------- -- Grab environment we need local capi = { widget = widget } local setm...
gpl-3.0
gedads/Neodynamis
scripts/zones/Abyssea-Attohwa/npcs/qm14.lua
3
1385
----------------------------------- -- Zone: Abyssea-Attohwa -- NPC: qm14 (???) -- Spawns Smok -- !pos ? ? ? 215 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/status"); ----------------------------------- -- onTrigger Action ----------------------------------- func...
gpl-3.0
starlightknight/darkstar
scripts/globals/spells/bluemagic/magnetite_cloud.lua
12
1868
----------------------------------------- -- Spell: Magnetite Cloud -- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight -- Spell cost: 86 MP -- Monster Type: Beastmen -- Spell Type: Magical (Earth) -- Blue Magic Points: 3 -- Stat Bonus: VIT+2 -- Level: 46 -- ...
gpl-3.0
ironjade/DevStack
LanCom/DesignPattern/LUA/OrderedListAsLinkedList.lua
1
5186
#!/usr/local/bin/lua --[[ Copyright (c) 2004 by Bruno R. Preiss, P.Eng. $Author: brpreiss $ $Date: 2004/12/05 14:47:20 $ $RCSfile: OrderedListAsLinkedList.lua,v $ $Revision: 1.6 $ $Id: OrderedListAsLinkedList.lua,v 1.6 2004/12/05 14:47:20 brpreiss Exp $ --]] require "OrderedList" require "L...
apache-2.0
APItools/autoswagger.lua
spec/operation_spec.lua
1
4243
local Host = require 'autoswagger.host' local API = require 'autoswagger.api' local Operation = require 'autoswagger.operation' describe('Operation', function() local host, api before_each(function() host = Host:new('google.com', nil, nil, nil, 'host_guid') api = API:new(host, '/foo', 'api_g...
mit
gedads/Neodynamis
scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua
3
1078
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Scotwick -- Type: Allied Notes Notorious Monsters -- @zone 94 -- !pos 153.785 -3.134 9.895 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/Tex...
gpl-3.0
starlightknight/darkstar
scripts/globals/items/icefish.lua
11
1046
----------------------------------------- -- ID: 4470 -- Item: icefish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------...
gpl-3.0
arrayfire/arrayfire_lua
examples/image_processing/brain_segmentation.lua
4
3850
--[[ /******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *****************************************...
bsd-3-clause
ABrandau/OpenRA
mods/ra/maps/allies-04/allies04.lua
4
5171
--[[ Copyright 2007-2019 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
starlightknight/darkstar
scripts/zones/The_Garden_of_RuHmet/npcs/_0z0.lua
9
1306
----------------------------------- -- Area: The_Garden_of_RuHmet -- NPC: _0z0 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions"); require("scripts/globals/keyitems"); require("scripts/globals/bcnm"); function onTrade(player,npc,trade) if (TradeBCNM(...
gpl-3.0
deathshadow85/max
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
pospanet/nodemcu-httpserver
http/file_list.lua
1
1290
return function (connection, args) connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n") connection:send('<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Server File Listing</title></head>') connection:send('<body>') coroutine.yield()...
gpl-2.0
gedads/Neodynamis
scripts/zones/Quicksand_Caves/npcs/_5s0.lua
3
1265
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- !pos -21 0 -60 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs"...
gpl-3.0
gedads/Neodynamis
scripts/zones/Southern_San_dOria_[S]/npcs/PalardaifaultVDraffles.lua
3
1157
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Palardaifault V Draffles -- @zone 80 -- !pos 9 1 -35 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); -----------------------------...
gpl-3.0
MmxBoy/mmx-bot
plugins/Location.lua
185
1565
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
gedads/Neodynamis
scripts/zones/Windurst_Woods/npcs/Cayu_Pensharhumi.lua
3
1460
----------------------------------- -- Area: Windurst Woods -- NPC: Cayu Pensharhumi -- Type: Standard NPC -- !pos 39.437 -0.91 -40.808 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); requir...
gpl-3.0
thatoneprogrammerkid/gameofsquares
debugGraph.lua
2
4195
--Love Debug Graph (https://github.com/Mechazawa/Love-Debug-Graph) by Mechazawa --[[ UNLICENSE This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled bi...
mit
starlightknight/darkstar
scripts/globals/effects/auspice.lua
12
1611
-------------------------------------- -- -- dsp.effect.AUSPICE -- -- Power: Used for Enspell Effect -- SubPower: Tracks Subtle Blow Bonus -- Tier: Used for Enspell Calculation -- -------------------------------------- function onEffectGain(target,effect) --Auspice Reduces TP via adding to your Subtle Blow Mod ...
gpl-3.0
gedads/Neodynamis
scripts/globals/items/slice_of_lynx_meat.lua
12
1352
----------------------------------------- -- ID: 5667 -- Item: Slice of Lynx Meat -- Food Effect: 5 Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0