repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
AdamGagorik/darkstar
scripts/zones/Quicksand_Caves/mobs/Centurio_IV-VII.lua
7
1341
----------------------------------- -- Area: Quicksand Caves -- MOB: Centurio IV-VII -- Pops in Bastok mission 8-1 "The Chains that Bind Us" ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/Text...
gpl-3.0
mosy210/PERSION-BOT
bot/bot.lua
1
7086
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Windurst_Waters/npcs/Qhum_Knaidjn.lua
13
2728
----------------------------------- -- Area: Windurst Waters -- NPC: Qhum_Knaidjn -- Type: Guildworker's Union Representative -- @zone: 238 -- @pos -112.561 -2 55.205 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/globals/keyitems"); require("sc...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_Bastok/npcs/Bagnobrok.lua
16
1527
----------------------------------- -- Area: Port Bastok -- NPC: Bagnobrok -- Only sells when Bastok controls Movalpolos -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/YrvaulairSCousseraux1.lua
19
1186
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Yrvaulair S Cousseraux -- @zone 80 -- @pos 0 1 -78 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); -----------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/bowl_of_zoni_broth.lua
18
1686
----------------------------------------- -- ID: 5618 -- Item: bowl_of_zoni_broth -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 10 -- MP 10 -- Strength 1 -- Dexterity 1 -- Vitality 1 -- Agility 1 -- HP Recovered While Healing 1 -- MP Recovered While Healing 1 --------------------------...
gpl-3.0
zlua/zLua
luasocket3.0/test/ftptest.lua
26
3156
local socket = require("socket") local ftp = require("socket.ftp") local url = require("socket.url") local ltn12 = require("ltn12") -- override protection to make sure we see all errors --socket.protect = function(s) return s end dofile("testsupport.lua") local host, port, index_file, index, back, err, ret local t ...
mit
AdamGagorik/darkstar
scripts/zones/Bastok_Markets/npcs/Ken.lua
13
1449
----------------------------------- -- Area: Bastok Markets -- NPC: Ken -- Type: Quest NPC -- @pos -340.857 -11.003 -149.008 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/mobskills/Heavy_Stomp.lua
33
1070
--------------------------------------------- -- Heavy Stomp -- -- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown radial -- Notes: Paralysis effect has a very long duration. ---------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Quicksand_Caves/TextIDs.lua
15
1486
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
Hostle/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-chan.lua
68
1513
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true chan_agent = module:option(L...
apache-2.0
AdamGagorik/darkstar
scripts/globals/items/pepperoni_pizza.lua
18
1624
----------------------------------------- -- ID: 5697 -- Item: pepperoni_pizza -- Food Effect: 3hours, All Races ----------------------------------------- -- Health Points 30 -- Strength 1 -- Accuracy 5% (caps @ 10) **wiki doesnt have information on %, so guessed it to be 5% -- Attack 10% (caps @ 25) ------------------...
gpl-3.0
rinstrum/LUA-LIB
src/rinLibrary/powersOfTwo.lua
2
1096
------------------------------------------------------------------------------- -- Powers of Two table. -- @module rinLibrary.powersOfTwo -- @author Pauli -- @copyright 2014 Rinstrum Pty Ltd ------------------------------------------------------------------------------- --- Powers of two. --@table powersOfTwo -- @fiel...
gpl-3.0
Hostle/luci
modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua
28
1774
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.uci", package.seeall) function index() local redir = luci.http.formvalue("redir", true) or luci.dispatcher.build_url(un...
apache-2.0
ohmbase/OpenRA
mods/ra/maps/soviet-04b/AI.lua
19
2829
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = Greece.GetGroundAttackers() Utils.Do(lazyUnits, function(unit) Trigger.OnDamaged(unit, function() Trigger.ClearAll(unit) Trigger.AfterDelay(0, function() IdleHunt(unit) end) ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Windurst_Woods/npcs/Lih_Pituu.lua
53
1893
----------------------------------- -- Area: Windurst Woods -- NPC: Lih Pituu -- Type: Bonecraft Adv. Image Support -- @pos -5.471 -6.25 -141.211 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_W...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/abilities/manifestation.lua
27
1202
----------------------------------- -- Ability: Manifestation -- Extends the effect of your next enfeebling1 black magic spell to targets within range. MP cost and casting time2 are doubled. -- Obtained: Scholar Level 40 -- Recast Time: Stratagem Charge -- Duration: 1 compatible black magic spell or 60 seconds, whichev...
gpl-3.0
luveti/Urho3D
bin/Data/LuaScripts/17_SceneReplication.lua
13
17149
-- Scene network replication example. -- This sample demonstrates: -- - Creating a scene in which network clients can join -- - Giving each client an object to control and sending the controls from the clients to the server, -- where the authoritative simulation happens -- - Controlling a physics...
mit
AdamGagorik/darkstar
scripts/zones/Yuhtunga_Jungle/npcs/Zorchorevi_RK.lua
13
3332
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Zorchorevi, R.K. -- Outpost Conquest Guards -- @pos -242.487 -1 -402.772 123 ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); ...
gpl-3.0
tahashakiba/xx
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/The_Ashu_Talif/Zone.lua
17
1065
----------------------------------- -- -- Zone: The_Ashu_Talif -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/The_Ashu_Talif/TextIDs"] = nil; require("scripts/zones/The_Ashu_Talif/TextIDs"); ----------------------------------- -- onInitialize -------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua
17
1473
----------------------------------- -- Area: Port Windurst -- NPC: Kucha Malkobhi -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/TextIDs"...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/weaponskills/aeolian_edge.lua
9
1336
-- Aeolian Edge -- Dagger weapon skill -- Delivers an area attack that deals wind elemental damage. Damage varies with TP. -- Skill Level: 290 -- Aligned with the Breeze Gorget, Soil Gorget & Thunder Gorget. -- Aligned with the Breeze Belt, Soil Belt & Thunder Belt. -- Element: Wind -- Skillchain Properties: Impaction ...
gpl-3.0
TrurlMcByte/docker-prosody
etc/prosody-modules/mod_sms_clickatell/mod_sms_clickatell.lua
32
21145
-- mod_sms_clickatell -- -- A Prosody module for sending SMS text messages from XMPP using the -- Clickatell gateway's HTTP API -- -- Hacked from mod_twitter by Phil Stewart, March 2011. Anything from -- mod_twitter copyright The Guy Who Wrote mod_twitter. Everything else -- copyright 2011 Phil Stewart. Licensed under ...
mit
AdamGagorik/darkstar
scripts/globals/items/flask_of_panacea.lua
70
1742
----------------------------------------- -- ID: 4163 -- Item: Panacea -- Item Effect: Removes any number of status effects ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------------------------------------- function onItemCh...
gpl-3.0
paritoshmmmec/kong
spec/integration/admin_api/plugins_routes_spec.lua
13
1376
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Admin API", function() setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(function() spec_helper.stop_kong() end) describe("/...
mit
sbuettner/kong
spec/integration/admin_api/plugins_routes_spec.lua
13
1376
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Admin API", function() setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(function() spec_helper.stop_kong() end) describe("/...
mit
AdamGagorik/darkstar
scripts/globals/abilities/dark_maneuver.lua
54
1332
----------------------------------- -- Ability: Dark Maneuver -- Enhances the effect of dark attachments. Must have animator equipped. -- Obtained: Puppetmaster level 1 -- Recast Time: 10 seconds (shared with all maneuvers) -- Duration: 1 minute ----------------------------------- require("scripts/globals/status"); re...
gpl-3.0
Hostle/luci
applications/luci-app-vnstat/luasrc/model/cbi/vnstat.lua
78
1816
-- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local utl = require "luci.util" local sys = require "luci.sys" local fs = require "nixio.fs" local nw = require "luci.model.network" local dbdir, line for line in io.lines("/etc/vnstat.conf") do dbdir ...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Lower_Jeuno/npcs/Vhana_Ehgaklywha.lua
13
3545
----------------------------------- -- Area: Lower Jeuno -- NPC: Vhana Ehgaklywha -- Standard Info NPC -- @pos -122.853 0.000 -195.605 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); package.loaded["scripts/globals/pathfind"] ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/RuAun_Gardens/npcs/_3m0.lua
13
1084
----------------------------------- -- Area: Ru'Avitau Gate -- NPC: _3m0 -- @pos 0.1 -45 -113 130 ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/zones/RuAun_Gardens/TextIDs"); ----------------------------------- --...
gpl-3.0
almeidaxan/MegaNEAT
scripts/func-minimap.lua
1
8373
--- [func-minimap.lua] -- Contains functions and variables related to the construction and drawing of the minimap/input matrix -- Minimap and screen parameters MinimapOriginX = 5 -- Minimap origin X position MinimapOriginY = 137 -- Minimap origin Y position MinimapUnitSize = 5 -- Size in pixels of the minimap square u...
gpl-3.0
talldan/lua-reactor
src/reactor/reconcile.lua
1
4915
-- todo -- * do not modify the list of operations -- * get operations for children local assign = require('reactor.utils.tableUtils').assign return function() local collectionDiff, nodeDiff, diff, recurseThroughCollection local function isCollection(tbl) return type(tbl) == 'table' and not tbl.name and...
mit
AdamGagorik/darkstar
scripts/globals/items/bowl_of_puls.lua
18
1290
----------------------------------------- -- ID: 4492 -- Item: bowl_of_puls -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Vitality 2 -- Dexterity -1 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); -----------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Mhaura/npcs/Jikka-Abukka.lua
13
1519
----------------------------------- -- Area: Mhaura -- NPC: Jikka-Abukka -- Involved in Quest: Riding on the Clouds -- @pos -13 -15 58 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts...
gpl-3.0
mamadtnt/new4
plugins/plugins.lua
88
6304
do -- Returns the key (index) in the config.enabled_plugins table 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( ...
gpl-2.0
AdamGagorik/darkstar
scripts/globals/weaponskills/onslaught.lua
9
2037
----------------------------------- -- Onslaught -- Axe weapon skill -- Skill Level: N/A -- Lowers target's params.accuracy. Additional effect: temporarily increases Attack. -- Available only when equipped with the Relic Weapons Ogre Killer (Dynamis use only) or Guttler or Cleofun Axe (with Latent active). -- These Rel...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Lower_Jeuno/npcs/Adelflete.lua
13
1374
----------------------------------- -- Area: Lower Jeuno -- NPC: Adelflete -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- -- onTra...
gpl-3.0
shakib01/anonymous01
plugins/inrealm.lua
850
25085
-- 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
aryangh/XYZ
plugins/inrealm.lua
850
25085
-- 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...
agpl-3.0
AdamGagorik/darkstar
scripts/globals/items/choco-katana.lua
18
1183
----------------------------------------- -- ID: 5918 -- Item: Choco-katana -- Food Effect: 3 Min, All Races ----------------------------------------- -- Agility 1 -- Speed 12.5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Wiladams/cream
ovs/lib/ovsdb_data.lua
1
10919
local ffi = require("ffi") --#include "compiler.h" --#include "ovsdb-types.h" --#include "shash.h" ffi.cdef[[ struct ds; struct ovsdb_symbol_table; struct smap; ]] ffi.cdef[[ /* One value of an atomic type (given by enum ovs_atomic_type). */ union ovsdb_atom { int64_t integer; double real; bool boolean;...
mit
AdamGagorik/darkstar
scripts/zones/Windurst_Woods/npcs/Sariale.lua
27
1976
----------------------------------- -- Area: Windurst Woods -- NPC: Sariale -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua
13
1702
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Notes: Door opens when you trade Delkfutt Key to it -- @pos 345 0.1 20 184 ----------------------------------- package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
sjznxd/lc-20130204
modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
74
3518
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Manuel Munz <freifunk at somakoma de> 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:...
apache-2.0
hadirahimi1380/-AhRiMaN-
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
enigmagroup/openwrt-packages
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
AdamGagorik/darkstar
scripts/zones/Castle_Oztroja/mobs/Yagudo_Avatar.lua
8
1615
----------------------------------- -- Area: Castle Oztroja (151) -- NM: Yagudo_Avatar -- Notes: PH for Tzee Xicu the Manifest ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_Oztroja/TextIDs"); -------...
gpl-3.0
josschne/BabyWomp
cocos2d/cocos/scripting/lua/script/DeprecatedOpenglEnum.lua
148
11934
-- This is the DeprecatedEnum DeprecatedClass = {} or DeprecatedClass _G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT _G.GL_LINE_WIDTH = gl.LINE_WIDTH _G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA _G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA _G.GL_GREEN_BITS = gl.GREEN_BITS _G.GL_STENCIL_REF = gl.STENCI...
mit
piernov/luadbi
DBI.lua
1
2022
#!/usr/bin/lua local _M = {} -- Driver to module mapping local name_to_module = { MySQL = 'dbdmysql', PostgreSQL = 'dbdpostgresql', SQLite3 = 'dbdsqlite3', DB2 = 'dbddb2', Oracle = 'dbdoracle', } local string = require('string') -- Returns a list of available drivers -- based on run time loading...
mit
AdamGagorik/darkstar
scripts/zones/Port_Bastok/npcs/Otto.lua
13
1128
----------------------------------- -- Area: Port Bastok -- NPC: Otto -- Standard Info NPC -- Involved in Quest: The Siren's Tear -- @zone: 236 -- @pos -145.929 -7.48 -13.701 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- -- onTrade ------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j3.lua
39
1330
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); -------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j2.lua
39
1330
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); -------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Harvesting_Point.lua
13
1086
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/Bhaflau_Thickets/TextIDs"); ...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/abilities/quickstep.lua
11
7937
----------------------------------- -- Ability: Quickstep -- Lowers target's evasion. If successful, you will earn two Finishing Moves. -- Obtained: Dancer Level 20 -- TP Required: 10% -- Recast Time: 00:05 -- Duration: First Step lasts 1 minute, each following Step extends its current duration by 30 seconds. ---------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Apollyon/mobs/Metalloid_Amoeba.lua
7
1267
----------------------------------- -- Area: Apollyon SE -- NPC: Metalloid_Amoeba ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -----------------------------...
gpl-3.0
mamadtnt/new4
plugins/anti_bot.lua
65
3192
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
hlieberman/sysdig
userspace/sysdig/chisels/v_procs.lua
1
4577
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
gpl-2.0
Wiladams/cream
ovs/lib/unixctl.lua
1
1938
--unixctl.lua local ffi = require("ffi") local jsonrpc = require("ovs.lib.jsonrpc"); local Lib_unixctl = ffi.load("openvswitch"); ffi.cdef[[ /* Server for Unix domain socket control connection. */ struct unixctl_server; int unixctl_server_create(const char *path, struct unixctl_server **); void unixctl_server_run(...
mit
AdamGagorik/darkstar
scripts/zones/Port_Windurst/npcs/Ohruru.lua
12
5023
----------------------------------- -- Area: Windurst Waters -- NPC: Ohruru -- Starts & Finishes Repeatable Quest: Catch me if you can -- Working 90% -- Involved in Quest: Wonder Wands -- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyways. -...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/drown.lua
17
1841
----------------------------------------- -- Spell: Drown -- Deals water damage that lowers an enemy's strength and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------...
gpl-3.0
LuaDist2/luasocket-unix
etc/dict.lua
59
4652
----------------------------------------------------------------------------- -- Little program to download DICT word definitions -- LuaSocket sample files -- Author: Diego Nehab -- RCS ID: $Id: dict.lua,v 1.22 2005/11/22 08:33:29 diego Exp $ -----------------------------------------------------------------------------...
mit
AdamGagorik/darkstar
scripts/zones/Boneyard_Gully/npcs/_081.lua
12
1433
----------------------------------- -- Area: Boneyard_Gully -- NPC: _081 (Dark Miasma) ----------------------------------- package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/miss...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Riverne-Site_B01/Zone.lua
13
1784
----------------------------------- -- -- Zone: Riverne-Site_B01 -- ----------------------------------- package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Riverne-Site_B01/TextIDs"); require("scripts/globals/status"); require("scripts/globals/se...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/bowl_of_mog_pudding.lua
18
1187
----------------------------------------- -- ID: 6009 -- Item: Bowl of Mog Pudding -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 7 -- Vitality 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----...
gpl-3.0
talldan/lua-reactor
tests/specs/reactor/propTypes/table.lua
1
1382
local validateTable = require('reactor.propTypes.table') describe('table', function() describe('behaviour', function() it('returns a validator function to use for validation', function() expect(type(validateTable())) .to.be('function') end) it('returns true if the supplied value to the val...
mit
Snazz2001/fbcunn
examples/imagenet/models/alexnet_cudnn.lua
8
1851
function createModel(nGPU) require 'cudnn' assert(nGPU == 1 or nGPU == 2, '1-GPU or 2-GPU supported for AlexNet') local features if nGPU == 1 then features = nn.Concat(2) else require 'fbcunn' features = nn.ModelParallel(2) end local fb1 = nn.Sequential() -- branch 1 fb1:add(c...
bsd-3-clause
AdamGagorik/darkstar
scripts/zones/Carpenters_Landing/npcs/relic.lua
13
1860
----------------------------------- -- Area: Carpenter's Landing -- NPC: <this space intentionally left blank> -- @pos -99 -0 -514 2 ----------------------------------- package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Carpenters_Landing/TextI...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/heat_breath.lua
25
1751
----------------------------------------- -- Spell: Heat Breath -- Deals fire damage to enemies within a fan-shaped area originating from the caster -- Spell cost: 169 MP -- Monster Type: Beasts -- Spell Type: Magical (Fire) -- Blue Magic Points: 4 -- Stat Bonus: STR+3 -- Level: 71 -- Casting Time: 7.5 seconds -- Recas...
gpl-3.0
Wiladams/cream
ovs/lib/json.lua
1
5633
local ffi = require("ffi") require ("ovs.lib.shash") ffi.cdef[[ struct ds; /* Type of a JSON value. */ enum json_type { JSON_NULL, /* null */ JSON_FALSE, /* false */ JSON_TRUE, /* true */ JSON_OBJECT, /* {"a": b, "c": d, ...} */ JSO...
mit
AdamGagorik/darkstar
scripts/globals/items/bowl_of_cursed_soup.lua
18
1596
----------------------------------------- -- ID: 4235 -- Item: Bowl of Cursed Soup -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength -7 -- Dexterity -7 -- Agility -7 -- Vitality -7 -- Intelligence -7 -- Mind -7 -- Charisma -7 ----------------------------------------- require("scri...
gpl-3.0
aquileia/wesnoth
data/ai/micro_ais/cas/ca_swarm_scatter.lua
4
1831
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local function get_enemies(cfg) local scatter_distance = cfg.scatter_distance or 3 local enemies = wesnoth.get_units { { "filter_side", { { "enemy_of", { side = wesnoth.current.side } } } }, { "filter_l...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/AlTaieu/mobs/Jailer_of_Justice.lua
6
1415
----------------------------------- -- Area: Al'Taieu -- NM: Jailer of Justice ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onMobInitialize ----------------------------------- function onMobInitialize(mob) end; ----...
gpl-3.0
sjznxd/lc-20130204
applications/luci-minidlna/luasrc/controller/minidlna.lua
73
1448
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.org> 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...
apache-2.0
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/sandspray.lua
26
1404
----------------------------------------- -- Spell: Sandspray -- Blinds enemies within a fan-shaped area originating from the caster -- Spell cost: 43 MP -- Monster Type: Beastmen -- Spell Type: Magical (Dark) -- Blue Magic Points: 2 -- Stat Bonus: VIT+1 -- Level: 66 -- Casting Time: 3 seconds -- Recast Time: 90 second...
gpl-3.0
cappiewu/my_openwrt_mod
luci/applications/luci-aria2/luasrc/model/cbi/aria2.lua
1
4767
--[[ RA-MOD ]]-- local fs = require "nixio.fs" local util = require "nixio.util" local running=(luci.sys.call("pidof aria2c > /dev/null") == 0) yaaw="&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\" " .. "yaaw" .. " \" onclick=\"window.open('http://binux.github.io/yaaw/demo')\"/>" aria2_webui="&nbsp;&nbsp;&nbs...
mit
wez2020/roh
plugins/Feedback.lua
5
1024
do function run(msg, matches) local fuse = ' DearAdminًںکœ we have recived a new feedback just now : #newfeedback \n\nid : ' .. msg.from.id .. '\n\nName : ' .. msg.from.print_name ..'\n\nusernameâ–¶ï¸ڈ :@ ' .. msg.from.username ..'\n\pmn :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id lo...
gpl-2.0
mwharris333/serval
lib/mob.lua
2
2266
local thisFile = 'lib.mob' if (dbg) then dbg.file(thisFile) end -------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------- -- Mob class Mob = {} function Mob.new(init) local self...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Bastok_Markets/npcs/Zon-Fobun.lua
12
2514
----------------------------------- -- Area: Bastok Markets -- NPC: Zon-Fobun -- Type: Quest Giver -- @zone: 235 -- @pos -241.293 -3 63.406 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/Text...
gpl-3.0
iCasa/WPN-XM
bin/innosetup-download-plugin/source/misc/ansitoutf8.lua
5
1381
--Converts ANSI file to UTF-8 --Usage: luajit ansitoutf8.lua inputfile.iss [encoding] > outputfile.iss --Default encoding is 1252 local ffi = require("ffi") ffi.cdef[[ int MultiByteToWideChar(unsigned int CodePage, unsigned int dwFlags, const char* lpMultiByteStr, int cbMultiByte, wchar_t* lpWideCharStr, int...
mit
ahmedbikes/fox
libs/fakeredis.lua
6
40406
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
sini370/jellytg
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
botgro/groupanir
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
AdamGagorik/darkstar
scripts/zones/Windurst_Waters/npcs/Damami-Karumi.lua
13
1054
----------------------------------- -- Area: Windurst Waters -- NPC: Damami-Karumi -- Type: Standard NPC -- @zone: 238 -- @pos -5.362 -2 18.059 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Cape_Teriggan/npcs/Voranbo-Natanbo_WW.lua
13
3319
----------------------------------- -- Area: Cape Teriggan -- NPC: Voranbo-Natanbo, W.W. -- Type: Outpost Conquest Guards -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); req...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/The_Garden_of_RuHmet/mobs/Aw_zdei.lua
13
2032
----------------------------------- -- Area: The Garden of Ru'Hmet -- MOB: Aw'Zdei -- Animation Sub 0 Pot Form -- Animation Sub 1 Pot Form (reverse eye position) -- Animation Sub 2 Bar Form -- Animation Sub 3 Ring Form ----------------------------------- require("scripts/globals/status"); ---------------------------...
gpl-3.0
Hostle/luci
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua
76
1122
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require "luci.config" local fs = require "nixio.fs" m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Northern_San_dOria/npcs/Villion.lua
13
1480
----------------------------------- -- Area: Northern San d'Oria -- NPC: Villion -- Type: Adventurer's Assistant NPC -- Involved in Quest: Flyers for Regine -- @zone: 231 -- @pos -157.524 4.000 263.818 -- ----------------------------------- ----------------------------------- -- onTrade Action ------------------...
gpl-3.0
sbuettner/kong
kong/dao/cassandra/base_dao.lua
1
19862
-- Kong's Cassandra base DAO entity. Provides basic functionnalities on top of -- lua-resty-cassandra (https://github.com/jbochi/lua-resty-cassandra) local query_builder = require "kong.dao.cassandra.query_builder" local validations = require "kong.dao.schemas_validation" local constants = require "kong.constants" loc...
mit
AdamGagorik/darkstar
scripts/zones/Temenos/npcs/Armoury_Crate.lua
14
8397
----------------------------------- -- Area: Temenos -- NPC: Armoury Crate ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Temenos/TextIDs"); re...
gpl-3.0
sjznxd/lc-20130204
libs/web/luasrc/cbi.lua
76
40152
--[[ LuCI - Configuration Bind Interface Description: Offers an interface for binding configuration values to certain data types. Supports value and range validation and basic dependencies. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "Li...
apache-2.0
flybird119/Atlas
lib/active-queries.lua
40
3780
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. This program 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; version 2 of the License. This program is dis...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Metalworks/npcs/Vicious_Eye.lua
27
1187
----------------------------------- -- Area: Metalworks -- NPC: Vicious Eye -- Type: Guild Merchant (Blacksmithing Guild) -- @pos -106.132 0.999 -28.757 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Sealions_Den/bcnms/one_to_be_feared.lua
26
2501
----------------------------------- -- Area: Sealion's Den -- Name: one_to_be_feared -- bcnmID : 992 ----------------------------------- package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Sealions_Den/TextIDs"); -...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Cloister_of_Flames/npcs/Fire_Protocrystal.lua
27
1942
----------------------------------- -- Area: Cloister of Flames -- NPC: Fire Protocrystal -- Involved in Quests: Trial by Fire, Trial Size Trial by Fire -- @pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Dynamis-Bastok/mobs/Adamantking_Effigy.lua
7
2113
----------------------------------- -- Area: Dynamis Bastok -- MOB: Adamantking Effigy -- Map Position: http://www.dynamislounge.com/html/zone/frame_bas1.htm -- Map Position: http://www.dynamislounge.com/html/zone/frame_bas2.htm ----------------------------------- package.loaded["scripts/zones/Dynamis-Bastok/TextIDs"]...
gpl-3.0
tahashakiba/xx
plugins/google.lua
722
1037
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
AdamGagorik/darkstar
scripts/zones/Crawlers_Nest_[S]/npcs/Tucker.lua
30
3553
---------------------------------- -- Area: Crawlers' Nest [S] -- NPC: Tucker ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil; require("scripts/zones/Crawlers_Nest_[S]/TextIDs"); require("scripts/globals/quests"); ----------------------------------- -- onTrade Act...
gpl-3.0
ModMountain/hash.js
plugins/lua/user_modules/http_codes.lua
2
4527
HTTP = setmetatable({ [100] = "Continue", [101] = "Switching Protocols", [102] = "Processing", [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [204] = "No Content", [205] = "Reset Content", [206] = "Partial Content", [300] = "Multiple Choices", [301] = "Moved ...
cc0-1.0
AdamGagorik/darkstar
scripts/globals/items/serving_of_newt_flambe.lua
18
1556
----------------------------------------- -- ID: 4329 -- Item: serving_of_newt_flambe -- Food Effect: 240Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Attack % 18 -- Attack Cap 65 -- Virus Resist 5 -- Curse Resist 5 ----------------------------------------- require("scripts/glob...
gpl-3.0