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 |
|---|---|---|---|---|---|
rrpgfirecast/firecast | Macros/Ficha/Pack Old Dragon/JogadaDeProteção.lua | 1 | 2204 | local indice = tonumber(arg[1]);
local mod = arg[2];
local texto = "";
local personagem = sheet;
local filter = arg[#arg] or "mine";
local personagem = sheet;
if filter == "all" or filter == "pc" or filter == "pcOnline" or filter=="npc" or filter=="mine" then
if filter=="mine"then
personagem = getCharacterSheet(... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_Bastok/npcs/Aishah.lua | 37 | 1043 | -----------------------------------
-- Area: Port Bastok
-- NPC: Aishah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/items/bowl_of_mog_pudding.lua | 36 | 1154 | -----------------------------------------
-- ID: 6009
-- Item: Bowl of Mog Pudding
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 7
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
otservme/global1053 | data/npc/scripts/Elane.lua | 2 | 6719 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, ms... | gpl-2.0 |
The-HalcyonDays/darkstar | scripts/globals/mobskills/Damnation_Dive.lua | 7 | 1350 | ---------------------------------------------
-- Damnation Dive
--
-- Description: Dives into a single target. Additional effect: Knockback + Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadow
-- Range: Melee
-- Notes: Used instead of Gliding Spike by certain notorious monsters.
---------------------------... | gpl-3.0 |
reza-sec/reza-sec | plugins/admin.lua | 95 | 10643 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
DarkstarProject/darkstar | scripts/zones/Apollyon/bcnms/cs_apollyon.lua | 9 | 1394 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/battlefield")
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBattlefieldTick(battlefield, tick)
ds... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 13 | 6103 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tosuka-Porika
-- Starts Quests: Early Bird Catches the Bookworm, Chasing Tales
-- Involved in Quests: Hat in Hand, Past Reflections, Blessed Radiance
-- Involved in Missions: Windurst 2-1, Windurst 7-1, Windurst 8-2, CoP 3-3
-- @pos -26 -... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/hex_palm.lua | 11 | 1024 | ---------------------------------------------
-- Hex Palm
-- Family: Qutrub
-- Description: Steals HP from targets in front.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Front cone
-- Notes: Used only when wielding no weapon.
---------------------------------------------
require("scripts/globals/m... | gpl-3.0 |
davidbz/trafficserver | plugins/lua/example/test_fetch.lua | 17 | 1604 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | apache-2.0 |
marcel-sch/luci | applications/luci-app-privoxy/luasrc/controller/privoxy.lua | 33 | 4608 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.privoxy", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local HTTP = require "luci.http"
local UCI = require "luci.model.uci"
l... | apache-2.0 |
tcatm/luci | applications/luci-app-privoxy/luasrc/controller/privoxy.lua | 33 | 4608 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.privoxy", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local HTTP = require "luci.http"
local UCI = require "luci.model.uci"
l... | apache-2.0 |
Fenix-XI/Fenix | scripts/globals/items/serving_of_menemen.lua | 18 | 1528 | -----------------------------------------
-- ID: 5586
-- Item: serving_of_menemen
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 30
-- MP 30
-- Agility 1
-- Intelligence -1
-- HP recovered while healing 1
-- MP recovered while healing 1
-----------------------------------------
require... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/abilities/corsairs_roll.lua | 5 | 2595 | -----------------------------------
-- Ability: Corsair's Roll
-- Increases the amount of experience points earned by party members within area of effect
-- Optimal Job: Corsair
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 5
--
-- Die Roll |Exp Bonus%
-- -------- -----------
-- 1 |10%
-- 2 ... | gpl-3.0 |
AbolDalton/kia | plugins/terminal.lua | 12 | 1554 | function run_sh(msg, matches)
local receiver = get_receiver(msg)
name = get_name(msg)
text = ''
if is_sudo(msg) then
bash = msg.text:sub(4,-1)
text = run_bash(bash)
else
text = name .. ' you have no power here!'
end
send_large_msg(receiver, 'In Process...', ok_cb,... | gpl-2.0 |
eugeneia/snabbswitch | lib/ljsyscall/syscall/rump/ffirump.lua | 24 | 1893 | -- ffi type and function definitions for rump kernel functions
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string... | apache-2.0 |
crunchuser/prosody-modules | mod_swedishchef/mod_swedishchef.lua | 32 | 1690 | -- Copyright (C) 2009 Florian Zeitz
-- Copyright (C) 2009 Matthew Wild
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local trigger_string = module:get_option_string("swedishchef_trigger");
trigger_string = (trigger_string and trigger_string .. " "... | mit |
Fenix-XI/Fenix | scripts/zones/Bastok_Markets/npcs/Sinon.lua | 14 | 4321 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Sinon
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
require("scrip... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/items/meatloaf.lua | 18 | 1369 | -----------------------------------------
-- ID: 5689
-- Item: Meatloaf
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- Strength 6
-- Agility 2
-- Intelligence -3
-- Attack 20% Cap 75
-----------------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
ArchiveTeam/wikis-grab | urlcode.lua | 58 | 3476 | ----------------------------------------------------------------------------
-- Utility functions for encoding/decoding of URLs.
--
-- @release $Id: urlcode.lua,v 1.10 2008/01/21 16:11:32 carregal Exp $
----------------------------------------------------------------------------
local ipairs, next, pairs, tonumber, ty... | unlicense |
Fenix-XI/Fenix | scripts/zones/Dynamis-Jeuno/npcs/qm1.lua | 13 | 1216 | -----------------------------------
-- Area: Dynamis Jeuno
-- NPC: ??? (Spawn when mega is defeated)
-----------------------------------
package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Dynamis-Jeuno/TextIDs");... | gpl-3.0 |
tcatm/luci | modules/luci-base/luasrc/tools/webadmin.lua | 59 | 2301 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.webadmin", package.seeall)
local util = require "luci.util"
local uci = require "luci.model.uci"
local ip = require "luci.ip"
func... | apache-2.0 |
Fenix-XI/Fenix | scripts/zones/Al_Zahbi/npcs/Zazarg.lua | 13 | 1043 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zazarg
-- Type: Stoneserpent General
-- @zone: 48
-- @pos -41.675 -8 104.452
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Windurst_Waters/npcs/Dienger.lua | 13 | 1057 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Dienger
-- Type: Melody Minstrel
-- @zone: 238
-- @pos -46.448 -6.312 212.384
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Norg/TextIDs.lua | 14 | 2341 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6406; -- Obtained: <item>.
GIL_OBTAINED = 6407; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6409; -- Obtai... | gpl-3.0 |
SkzKatsushiro/OpenRA | mods/cnc/maps/nod06b/nod06b.lua | 25 | 7008 | NodUnitsVehicle1 = { 'bggy', 'bggy', 'bike', 'bike', 'bike' }
NodUnitsVehicle2 = { 'ltnk', 'ltnk', 'ltnk' }
NodUnitsGunner = { 'e1', 'e1', 'e1', 'e1', 'e1', 'e1' }
NodUnitsRocket = { 'e3', 'e3', 'e3', 'e3', 'e3', 'e3' }
Gdi1Units = { 'e1', 'e1', 'e2', 'e2', 'e2' }
HuntCellTriggerActivator = { CPos.New(61,34), CPos.New... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/South_Gustaberg/IDs.lua | 6 | 3283 | -----------------------------------
-- Area: South_Gustaberg
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.SOUTH_GUSTABERG] =
{
text =
{
NOTHING_HAPPENS = 141, -- Nothing happens...
ITEM_CANN... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/mobskills/Wanion.lua | 43 | 1329 | ---------------------------------------------------
-- Wanion
-- AoE of all status ailments it has.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Mhaura/npcs/Laughing_Bison.lua | 12 | 1223 | -----------------------------------
-- Area: Mhaura
-- NPC: Lacia
-- Standard Info NPC
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
-- Each boat comes every 1152 seconds/8 game hours, 4 hour offset between Selbina and Aht Urghan
-- Original timer... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria/npcs/Paouala.lua | 1 | 2216 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Paouala
-- Starts and Finishes Quest: Sleepless Nights
-- @zone 230
-- @pos 158 -6 17
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Windurst_Walls/npcs/Moogle.lua | 1 | 6166 | -----------------------------------
-- Area: Residential Area
-- NPC: Moogle
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/globals/moghouse");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Windurs... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Upper_Jeuno/npcs/Koriso-Manriso.lua | 13 | 1048 | ----------------------------------
-- Area: Upper Jeuno
-- NPC: Koriso-Manriso
-- Type: Item Deliverer
-- @zone: 244
-- @pos -64.39 1 23.704
--
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
----------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Periqia/IDs.lua | 49 | 3842 | Periqia = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6381, -- Obtained: <item>
GIL_OBTAINED = 6384, -- Obtained <number> gil
KEYITEM_OBTAINED = 6384, -- Obtaine... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Bastok_Markets/npcs/Brunhilde.lua | 17 | 1577 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Brunhilde
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
alirezadeadly/sers | plugins/Map.lua | 13 | 2262 | do
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
local function get_staticmap(area)
local api = base_api.."/staticmap?"
local lat,lng,acc,types = get_latlong(area)
local scale = types[1]
if scale=="locality" then
zoom=8
elseif scale=="country" then
zoom=4
else
zoom = 13
end
l... | gpl-2.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/iron_tempest.lua | 11 | 1350 | -----------------------------------
-- Iron Tempest
-- Great Axe weapon skill
-- Skill Level: 40
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/kurayami_ichi.lua | 12 | 1358 | -----------------------------------------
-- Spell: Kurayami:Ichi
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
fun... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/items/dish_of_spag_nero_di_seppia_+1.lua | 18 | 1799 | -----------------------------------------
-- ID: 5202
-- Item: dish_of_spag_nero_di_seppia_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
----------------------------... | gpl-3.0 |
Giorox/AngelionOT-Repo | data/npc/scripts/Buddel Tyrsung.lua | 5 | 1326 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
DarkstarProject/darkstar | scripts/commands/messagespecial.lua | 14 | 1264 | ---------------------------------------------------------------------------------------------------
-- func: messagespecial
-- desc: Injects a message special packet.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "i... | gpl-3.0 |
autismuk/Comet | system/transitions.lua | 5 | 20170 | --- ************************************************************************************************************************************************************************
---
--- Name : transition.lua
--- Purpose : Class managing transitions to and from view objects.
--- Created: 30 April 2014
--- Autho... | mit |
Giorox/AngelionOT-Repo | data/talkactions/scripts/playerinfo.lua | 1 | 1954 | function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then
doPl... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Gusgen_Mines/npcs/qm4.lua | 13 | 1429 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm4 (???)
-- Involved In Quest: Ghosts of the Past
-- @pos -174 0 369 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/nightmare_scythe.lua | 10 | 1603 | -----------------------------------
-- Nightmare Scythe
-- Scythe weapon skill
-- Skill Level: 100
-- Blinds enemy. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers: STR:60% ; M... | gpl-3.0 |
marcel-sch/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua | 68 | 3021 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
local function find_outgoing_contexts(uci)
local c = { }
local h = { }
-- uci:foreach("asterisk", "dialplan",
-- function(s)
-- if not h[s['.name']] then
-- c[#c+1]... | apache-2.0 |
dios-game/dios | templates/lua_cocos/resources/src/cocos/extension/DeprecatedExtensionFunc.lua | 61 | 1351 | if nil == cc.Control then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.ad... | mit |
Fenix-XI/Fenix | scripts/zones/Windurst_Walls/npcs/Rutango-Botango.lua | 13 | 2472 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-92 Y:-9 Z:107
-- NPC: Rutango-Botango
-- Working 100%
-- Involved in Quest: To Bee or Not to Bee?
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
----------------------... | gpl-3.0 |
crunchuser/prosody-modules | mod_captcha_registration/util/dataforms.lua | 33 | 6601 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- 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 setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type, next = tost... | mit |
franko/gsl-shell | data/iter.lua | 1 | 2031 |
-- iter.lua
--
-- Copyright (C) 2009-2013 Francesco Abbate
--
-- 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; either version 3 of the License, or (at
-- your option) any later vers... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Windurst_Waters/npcs/Naiko-Paneiko.lua | 9 | 3323 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Naiko-Paneiko
-- Involved In Quest: Making Headlines, Riding on the Clouds
-- !pos -246 -5 -308 238
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs");
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
asdofindia/prosody-modules | mod_couchdb/couchdb/mod_couchdb.lua | 32 | 2155 |
local http = require "socket.http";
local url = require "socket.url";
local couchapi = module:require("couchdb/couchapi");
local json = module:require("couchdb/json");
local couchdb_url = assert(module:get_option("couchdb_url"), "Option couchdb_url not specified");
local db = couchapi.db(couchdb_url);
local functio... | mit |
abasshacker/abbasend | plugins/inpm.lua | 243 | 3007 | 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 |
Fenix-XI/Fenix | scripts/zones/Horlais_Peak/bcnms/under_observation.lua | 30 | 1739 | -----------------------------------
-- Area: Horlias peak
-- Name: under_observation
-- BCNM40
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAMP... | gpl-3.0 |
jeiboor/nod32bot | plugins/chat.lua | 7 | 2910 | local function run(msg)
if msg.text == "hi" then
return "Hello\n"..msg.from.first_name
end
if msg.text == "Hi" then
return "Hello\n"..msg.from.first_name
end
if msg.text == "Hello" then
return "Hi\n"..msg.from.first_name
end
if msg.text == "hello" then
return "Hi\n"..msg.from.first_name
end
if msg.text == "slm" the... | gpl-2.0 |
Fenix-XI/Fenix | scripts/globals/spells/advancing_march.lua | 27 | 1451 | -----------------------------------------
-- Spell: Advancing March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/battlefield_elegy.lua | 12 | 1788 | -----------------------------------------
-- Spell: Battlefield Elegy
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
en... | gpl-3.0 |
asdofindia/prosody-modules | mod_register_json/register_json/mod_register_json.lua | 32 | 10044 | -- Expose a simple token based servlet to handle user registrations from web pages
-- through Base64 encoded JSON.
-- Copyright (C) 2010 - 2013, Marco Cirillo (LW.Org)
local datamanager = datamanager
local b64_decode = require "util.encodings".base64.decode
local b64_encode = require "util.encodings".base64.encode
lo... | mit |
AbolDalton/kia | plugins/qrcode.lua | 12 | 1803 | --[[
* 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 |
Giorox/AngelionOT-Repo | data/npc/scripts/Uzon.lua | 1 | 2326 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
Giorox/AngelionOT-Repo | data/actions/lib/actions.lua | 3 | 2974 | SPOTS = {384, 418, 8278, 8592}
ROPABLE = { 294, 369, 370, 383, 392, 408, 409, 427, 428, 430, 462, 469, 470, 482, 484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285,
8284, 8281, 8280, 8279, 8277, 8276, 8323, 8380, 8567, 8585, 8596, 8595, 8249, 8250, 8251, 8252, 8253, 8254, 8255, 8256, 8972, 9606, 9625 }
HOLE... | gpl-3.0 |
8devices/carambola2-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
Fenix-XI/Fenix | scripts/zones/Upper_Delkfutts_Tower/npcs/Treasure_Chest.lua | 13 | 3726 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: Treasure Chest
-- Involved In Quest: Wings of Gold
-- @pos -380 -143 23 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 9 | 1176 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -9 -13 -151 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/quests")
-----------------------------------
... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Bastok_Markets/npcs/Linkshell_Concierge.lua | 1 | 25849 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Linkshell Concierge
-- Guild Merchant NPC: Linkshell_Concierge
-- @pos G-10
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Garlaige_Citadel/npcs/Treasure_Chest.lua | 13 | 2950 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Treasure Chest
-- @zone 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("s... | gpl-3.0 |
crunchuser/prosody-modules | mod_tcpproxy/mod_tcpproxy.lua | 31 | 3923 | local st = require "util.stanza";
local xmlns_ibb = "http://jabber.org/protocol/ibb";
local xmlns_tcp = "http://prosody.im/protocol/tcpproxy";
local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port";
local base64 = require "util.encodings".base64;
local b64, unb64 = base64.encode, base64.decode;
local... | mit |
DarkstarProject/darkstar | scripts/zones/Nyzul_Isle/instances/path_of_darkness.lua | 9 | 2307 | -----------------------------------
--
-- TOAU-42: Path of Darkness
--
-----------------------------------
local ID = require("scripts/zones/Nyzul_Isle/IDs")
require("scripts/globals/instance")
require("scripts/globals/keyitems");
-----------------------------------
function afterInstanceRegister(player)
local ins... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/freeze_ii.lua | 6 | 1201 | -----------------------------------------
-- Spell: Freeze II
-- Deals ice damage to an enemy and lowers its resistance against fire.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
devFRIND/TAEMNEW | plugins/runservar2.lua | 1 | 3891 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY TAEMNEW .. .. ▀▄ ▄▀
▀▄ ▄▀ BY TAEMNEW() ......... ...... ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY TAEMNEW .... ▀▄ ▄▀
▀▄ ▄▀ isup : ضد توقف البوت .... ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀... | gpl-2.0 |
Fenix-XI/Fenix | scripts/globals/mobskills/Gigaflare.lua | 37 | 1686 | ---------------------------------------------
-- Gigaflare
-- Family: Bahamut
-- Description: Deals massive Fire damage to enemies within a fan-shaped area.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range:
-- Notes: Used by Bahamut when at 10% of its HP, and can use anytime afterwards at will... | gpl-3.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/fadmin/fadmin/logging/sv_init.lua | 4 | 7864 | local logging
FAdmin.StartHooks["Logging"] = function()
FAdmin.Access.AddPrivilege("Logging", 3)
FAdmin.Commands.AddCommand("Logging", function(ply, cmd, args)
if not FAdmin.Access.PlayerHasPrivilege(ply, "Logging") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
if not t... | agpl-3.0 |
jbp4444/PuzzleGame | scripts/RotateGame.lua | 1 | 6631 | --
-- Copyright 2013-2014 John Pormann
--
-- 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 l... | apache-2.0 |
Fenix-XI/Fenix | scripts/zones/East_Ronfaure_[S]/npcs/Cavernous_Maw.lua | 29 | 1412 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: Cavernous Maw
-- Teleports Players to East Ronfaure
-- @pos 322 -59 503 81
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Mount_Zhayolm/IDs.lua | 11 | 2459 | -----------------------------------
-- Area: Mount_Zhayolm
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.MOUNT_ZHAYOLM] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_CANNOT_BE... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/items/prized_angler_stewpot.lua | 18 | 2003 | -----------------------------------------
-- ID: 5613
-- Item: Prized Angler's Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10%
-- MP +20
-- Dexterity 4
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while healing 3
-- Accuracy 1... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/abilities/wind_maneuver.lua | 9 | 1881 | -----------------------------------
-- Ability: Wind Maneuver
-- Enhances the effect of wind attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status")
requ... | gpl-3.0 |
jeiboor/nod32bot | plugins/plugmanager.lua | 22 | 3691 | do
local function run(msg, matches)
if not is_sudo(msg) then
return "you have not accsess to filemanager"
end
local receiver = get_receiver(msg)
if matches[1] == 'بفرس' then
local file = matches[3]
if matches[2] == 'sticker' and not matches[4] then
send_document(receiver, "./media/"... | gpl-2.0 |
DarkstarProject/darkstar | scripts/zones/Port_Windurst/npcs/Papo-Hopo.lua | 9 | 2579 | -----------------------------------
-- Area: Port Windurst
-- NPC: Papo-Hopo
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
TruthJusticeOnionWay = ... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Hurr_the_Betrayer.lua | 9 | 2714 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Hurr the Betrayer
-- Type: Involved in the "Sahagin Key Quest"
-- !pos 305.882 26.768 234.279 176
-----------------------------------
local ID = require("scripts/zones/Sea_Serpent_Grotto/IDs")
-----------------------------------
function onTrade... | gpl-3.0 |
gwlim/openwrt_mr3420_8M | feeds/xwrt/webif-iw-lua-openssl/files/usr/lib/lua/lua-xwrt/openssl.lua | 26 | 38586 | require("lua-xwrt.addon.string")
require("lua-xwrt.addon.uci")
require("lua-xwrt.html.form")
require("lua-xwrt.xwrt.translator")
require("lua-xwrt.addon.io")
--io.stderr = io.stdout
function upload(dir,file)
print(dir,file)
local algo = util.file_load("/etc/openssl/"..dir.."/"..file)
print([[Pragma: public
Expires: 0... | gpl-2.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/fadmin/fadmin/cl_interface/cl_PlayerLists.lua | 6 | 1789 | local function ScoreboardAddTeam(Name, color)
local ScreenWidth, ScreenHeight = ScrW(), ScrH()
local cat = FAdmin.ScoreBoard.Main.Controls.FAdminPanelList:Add("FAdminPlayerCatagory")
cat:SetLabel(" " .. Name)
cat.CatagoryColor = color
cat:SetWide((FAdmin.ScoreBoard.Width - 40) / 2)
function c... | agpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Port_Bastok/npcs/Valeriano.lua | 17 | 1664 | -----------------------------------
-- Area: Port Bastok
-- NPC: Valeriano
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/items/plate_of_shrimp_sushi_+1.lua | 18 | 1606 | -----------------------------------------
-- ID: 5692
-- Item: plate_of_shrimp_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 12 (unknown, assuming HQ stat)
-- Store TP 2
-- Triple Attack 1 (unknown, assuming same as NQ)
---------------------... | gpl-3.0 |
Zarel/warzone2100 | lib/betawidget/tools/sdl-testapp.lua | 3 | 3706 | -- vim:set et sts=2 sw=2:
dofile("patterns.lua")
-- A custom pattern
-- This pattern will be set when clicking once on 'myWindow'
pattern = betawidget.pattern("window/green", 0, 0, 0, 1)
pattern:addColourStop(0.00, 0.0000, 0.2353, 0.0353, 0.47)
pattern:addColourStop(1.00, 0.0000, 0.2353, 0.0353, 0.27)
wnd = betawidg... | gpl-2.0 |
eugeneia/snabbswitch | src/program/loadtest/promise.lua | 9 | 1774 | module(..., package.seeall)
Promise = {}
Promise.__index = Promise
local function is_promise(val)
return type(val) == 'table' and val.and_then
end
local function curry(f, ...)
local curried_args = { ... }
if #curried_args == 0 then return f end
return function(...)
local args = { ... }
-- Pre... | apache-2.0 |
lemboyz/lua8583 | unittest/test.lua | 1 | 10656 | local iso8583 = require("iso8583")
local cjson = require("cjson")
local time = require("time")
local UT = require("UT")
local function bcdunzip(str)
return ({str:gsub(".", function(c) return string.format("%02X", c:byte(1)) end)})[1]
end
local function bcdzip(str)
return ({str:gsub("..", function(x) return st... | apache-2.0 |
soheildiscover/soheil | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria/npcs/Rouva.lua | 13 | 1734 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rouva
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -17 2 10 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
wangg12/fbcunn | examples/imagenet/models/alexnet_ccn2.lua | 8 | 1951 | require 'ccn2'
require 'cudnn'
function createModel(nGPU)
local features = nn.Sequential() -- branch 1
features:add(nn.Transpose({1,4},{1,3},{1,2}))
features:add(ccn2.SpatialConvolution(3,64,11,4,0,1,4)) -- 224 -> 55
features:add(cudnn.ReLU(true))
features:add(ccn2.SpatialMaxPooling(3,2)) ... | bsd-3-clause |
DarkstarProject/darkstar | scripts/zones/The_Ashu_Talif/instances/the_black_coffin.lua | 9 | 2037 | -----------------------------------
--
-- TOAU-15: The Black Coffin
--
-----------------------------------
require("scripts/globals/instance")
require("scripts/globals/keyitems")
local ID = require("scripts/zones/The_Ashu_Talif/IDs")
-----------------------------------
function afterInstanceRegister(player)
local ... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/weaponskills/armor_break.lua | 10 | 1833 | -----------------------------------
-- Armor Break
-- Great Axe weapon skill
-- Skill level: 100
-- Lowers enemy's defense. Duration of effect varies with TP.
-- Lowers defense by as much as 25% if unresisted.
-- Strong against: Antica, Bats, Cockatrice, Dhalmel, Lizards, Mandragora, Worms.
-- Immune: Ahriman.
-- Will ... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Aydeewa_Subterrane/mobs/Pandemonium_Warden.lua | 1 | 11959 | -----------------------------------
-- Area: Aydeewa Subterrane
-- ZNM: Pandemonium_Warden
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
------------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Halvung/npcs/qm3.lua | 30 | 1312 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Reacton(ZNM T2))
-- @pos 18 -9 213 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
require("scripts/globals/status");
----... | gpl-3.0 |
oTibia/UnderLight-AK47 | data/talkactions/scripts/teleportto.lua | 2 | 1648 | function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to type the parameter.")
return false
end
local destPos = getWaypointPositionByName(param)
local creature = getCreatureByName(param)
local tile = string.explode(param, ",")
local pos =... | gpl-2.0 |
DarkstarProject/darkstar | scripts/globals/items/hellsteak.lua | 11 | 1655 | -----------------------------------------
-- ID: 5609
-- Item: hellsteak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 6
-- Intelligence -2
-- Health Regen While Healing 2
-- hMP +1
-- Attack % 18 (cap 145)
-- Ranged ATT % 18 (cap 145)
-- Dragon Killer 5
----------... | gpl-3.0 |
spamn/lain | widget/bat.lua | 2 | 7073 | --[[
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann
--]]
local first_line = require("lain.helpers").first_line
local newtimer = require("lain.helpers").newtimer
local naughty = require("naughty")
local wibox = require("wibox")
local math ... | gpl-2.0 |
franko/gsl-shell | data/base.lua | 1 | 3535 |
-- base.lua
--
-- Modify print to support tables, ffi and gsl types.
-- Add math.divmod(n,p).
--
-- Copyright (C) 2009-2013 Francesco Abbate
--
-- 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 Softwar... | gpl-3.0 |
botFree/botFree | help.lua | 2 | 9661 | --[[
_ _ _ _ ___ ___ _
__ _| |__ ___ ___| | ___ __ ___ _ __ (_) __ _ / |/ _ \ / _ \| | __
/ _` | '_ \ / _ \/ __| |/ / '__/ _ \| '_ \ | |/ _` | | | | | | | | | |/ /
| (_| | |_) | (_) \__ \ <| | | (_) | |_) | | | (_| | | | |_| | |_| | ... | gpl-2.0 |
Fenix-XI/Fenix | scripts/globals/items/bowl_of_seafood_stew.lua | 18 | 1455 | -----------------------------------------
-- ID: 4561
-- Item: Bowl of Seafood Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 1
-- Vitality 5
-- Defense % 25
-- Defense Cap 120
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/serving_of_flint_caviar.lua | 11 | 1122 | -----------------------------------------
-- ID: 4276
-- Item: serving_of_flint_caviar
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Magic 10
-- Dexterity 4
-- Mind -1
-- Charisma 4
-----------------------------------------
require("scripts/globals/status")
require("scripts/... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.