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 |
|---|---|---|---|---|---|
abbasgh12345/extremenewedit | plugins/banhammer.lua | 1 | 11842 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g5.lua | 13 | 1085 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g5 (Door D)
-- @pos -4.001 -22.4 174.498 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
-------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Ilrusi_Atoll/Zone.lua | 36 | 1453 | -----------------------------------
--
-- Zone: Ilrusi_Atoll
-- zone 55
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
require("scripts/zones/Ilrusi_Atoll/TextIDs");
require("scripts/globals/settings");
------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/plate_of_octopus_sushi.lua | 18 | 1285 | -----------------------------------------
-- ID: 5693
-- Item: plate_of_octopus_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 1
-- Accuracy % 16
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
Dugy/wesnoth-names | 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 |
AlexandreCA/update | scripts/zones/Outer_Horutoto_Ruins/npcs/_5e9.lua | 17 | 1734 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: The Heart of the Matter
-- @pos 584 0 -660 194
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
AlexandreCA/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 |
AlexandreCA/update | scripts/zones/Rolanberry_Fields_[S]/Zone.lua | 28 | 1346 | -----------------------------------
--
-- Zone: Rolanberry_Fields_[S] (91)
--
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Rolanberry_Fields_[S]/TextIDs")... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua | 16 | 2985 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- Teleports Players to Sauromugue_Champaign_S
-- @pos 369 8 -227 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
PedramNaderi/PEDIW | plugins/help.lua | 1 | 2012 | do
function run(msg, matches)
local help = [[ℹ️ راهنمای سلف بات پدرام :
●[/!#]bot on
فعال کردن بوت در یک گروه خواص
●[/!#]bot off
غیر فعال کردن بوت در یک گروه خواض
●[/!#]plugins
مشاهده لیست پلاگین ها
●[/!#]plugins enable (plugin name)
فعال کردن پلاگینی با نام (plugin name)
●[/!#]plugins disable (plugin name)... | gpl-2.0 |
chourobin/kong | kong/plugins/oauth2/access.lua | 5 | 12086 | local stringy = require "stringy"
local utils = require "kong.tools.utils"
local cache = require "kong.tools.database_cache"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local timestamp = require "kong.tools.timestamp"
local _M = {}
local CONTENT_LENGTH = "content-length... | mit |
AlexandreCA/update | scripts/globals/items/silkworm_egg.lua | 36 | 1132 | -----------------------------------------
-- ID: 4526
-- Item: Silkworm Egg
-- Food Effect: 5 Mins, All Races
-----------------------------------------
-- HP 12
-- MP 12
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 17 | 2294 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- @pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
zhoukk/skynet | examples/login/client.lua | 67 | 3950 | package.cpath = "luaclib/?.so"
local socket = require "clientsocket"
local crypt = require "crypt"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local fd = assert(socket.connect("127.0.0.1", 8001))
local function writeline(fd, text)
socket.send(fd, text .. "\n")
end
local function unpack_line(text)
loca... | mit |
AlexandreCA/update | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
nwf/openwrt-luci | applications/luci-app-upnp/luasrc/controller/upnp.lua | 39 | 1886 | -- 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.
module("luci.controller.upnp", package.seeall)
function index()
if not nixio.fs.access("/etc/config/upnpd") then
return
end
local page
page = entry({"... | apache-2.0 |
AlexandreCA/darkstar | scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua | 13 | 1804 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Spacial Displacement
-- Entrance to Riverne Site #A01 and #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("sc... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Morimar_Basalt_Fields/Zone.lua | 16 | 1211 | -----------------------------------
--
-- Zone: Morimar Basalt Fields
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Morimar_Basalt_Fields/TextIDs"] = nil;
require("scripts/zones/Morimar_Basalt_Fields/TextIDs");
-----------------------------------
-- onIni... | gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/bluemagic/wild_carrot.lua | 18 | 1787 | -----------------------------------------
-- Spell: Wild Carrot
-- Restores HP for the target party member
-- Spell cost: 37 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: HP+5
-- Level: 30
-- Casting Time: 2.5 seconds
-- Recast Time: 6 seconds
--
-- Combos... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Bastok_Markets/npcs/Reet.lua | 34 | 1352 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Reet
-- Adventurer's Assistant
-- @zone 235
-- @pos -237 -12 -41
-------------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Port_Jeuno/npcs/Rachocho.lua | 13 | 1038 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Rachocho
-- Type: Standard NPC
-- @zone: 246
-- @pos 3.789 7 -59.411
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/os_stats.lua | 10 | 1868 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
active_page = "hosts"
dofile(dirs.installdir .. "/sc... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Tahrongi_Canyon/TextIDs.lua | 13 | 2263 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6560; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6565; -- Obtained: <item>.
GIL_OBTAINED = 6566; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6568; -- Obt... | gpl-3.0 |
devxkh/FrankE | src/ThirdParty/LuaJIT/dynasm/dasm_arm.lua | 15 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
AlexandreCA/update | scripts/commands/delkeyitem.lua | 26 | 1228 | ---------------------------------------------------------------------------------------------------
-- func: @delkeyitem
-- desc: Deletes the given key item from the player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
... | gpl-3.0 |
samboy/Oblige | misc/game_WIP/chex.lua | 1 | 34830 | ----------------------------------------------------------------
-- GAME DEF : Chex Quest 3
----------------------------------------------------------------
--
-- Oblige Level Maker
--
-- Copyright (C) 2009 Enhas
-- Copyright (C) 2011 Andrew Apted
--
-- This program is free software; you can redistribute it and/or
... | gpl-2.0 |
AlexandreCA/update | scripts/globals/items/blackened_frog.lua | 35 | 1741 | -----------------------------------------
-- ID: 4536
-- Item: Blackened Frog
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -2
-- Attack % 14
-- Attack Cap 60
-- Ranged ATT % 14
-- Ranged ATT Cap 60
-- Enmity -5
------------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/weaponskills/frostbite.lua | 30 | 1231 | -----------------------------------
-- Frostbite
-- Great Sword weapon skill
-- Skill Level: 70
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: Ice
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 ... | gpl-3.0 |
AlexandreCA/update | scripts/globals/abilities/thunder_shot.lua | 6 | 2830 | -----------------------------------
-- Ability: Thunder Shot
-- Consumes a Thunder Card to enhance lightning-based debuffs. Deals lightning-based magic damage
-- Shock Effect: Enhanced DoT and MND-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
requi... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Nashmau/npcs/Chichiroon.lua | 34 | 1300 | -----------------------------------
-- Area: Nashmau
-- NPC: Chichiroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
--------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Silver_Knife/Zone.lua | 19 | 1059 | -----------------------------------
--
-- Zone: Silver Knife
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Silver_Knife/TextIDs"] = nil;
require("scripts/zones/Silver_Knife/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5ff.lua | 13 | 1080 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 88 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
--... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Chauxnatte.lua | 25 | 1268 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Chauxnatte
-- @zone 80
-- @pos 85 1 -51
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-----... | gpl-3.0 |
amedlock/breakout | middleclass.lua | 15 | 5301 | -- middleclass.lua - v2.0 (2011-09)
-- Copyright (c) 2011 Enrique García Cota
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,... | mit |
AlexandreCA/update | scripts/zones/Xarcabard/npcs/Pilcha_RK.lua | 30 | 3043 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pilcha, R.K.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
AlexandreCA/update | scripts/globals/weaponskills/numbing_shot.lua | 18 | 1513 | -----------------------------------
-- Numbing Shot
-- Marksmanship weapon skill
-- Skill level: 290
-- Main of sub must be Ranger or Corsair
-- Aligned with the Thunder & Breeze Gorget.
-- Aligned with the Thunder Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: AGI 80%
-- 100%TP 200%TP 300%TP
-- 3.00... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/dungeon/d_cmine_8.lua | 1 | 5787 | addnpc(45132, "QUEST_LV_0200_20150317_000504", "d_cmine_8", -1560, 71, -11, 45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_20150317_000504", "d_cmine_8", -1052, -63, -1160, 45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_20150317_000504", "d_cmine_8", 36, 8, -194, 45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_20150317_000... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/abilities/pets/healing_breath_iii.lua | 25 | 1899 | ---------------------------------------------------
-- Healing Breath III
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCheck(... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Arrapago_Reef/npcs/qm6.lua | 30 | 1138 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (corsair job flag quest)
--
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-----------------------------------
... | gpl-3.0 |
CMLL/wesnoth | data/lua/wml-tags.lua | 17 | 48614 | --! #textdomain wesnoth
function wesnoth.game_events.on_load(cfg)
if #cfg == 0 then return end
local t = {}
for i = 1,#cfg do t[i] = string.format("[%s]", cfg[i][1]) end
error(string.format("~wml:%s not supported at scenario toplevel", table.concat(t, ', ')), 0)
end
function wesnoth.game_events.on_save()
return ... | gpl-2.0 |
TeddyEngel/Loogine | luoop/luoop.lua | 2 | 6817 | -----
-- Luoop - easy and flexible object oriented library for Lua
-- Author: Teddy Engel <engel.teddy[at]gmail.com> / @Teddy_Engel
-- Version: 1.2
--
-- This is an implementation of a object-oriented Lua module, coded entirely in Lua.
-- It is meant to be simple and flexile, since the main initial requirement was mult... | mit |
AlexandreCA/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 |
niedzielski/premake-4.4-beta4 | tests/base/test_os.lua | 9 | 3145 | --
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
T.os = { }
local suite = T.os
--
-- os.findlib() tests
--
function suite.findlib_FindSystemLib()
if os.is("windows") then
test.istrue(os.findl... | bsd-3-clause |
virgo-agent-toolkit/rackspace-monitoring-agent | tests/test-net.lua | 4 | 3647 | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | apache-2.0 |
AlexandreCA/update | scripts/globals/abilities/hasso.lua | 18 | 1152 | -----------------------------------
-- Ability: Hasso
-- Grants a bonus to attack speed, accuracy, and Strength when using two-handed weapons, but increases recast and casting times.
-- Obtained: Samurai Level 25
-- Recast Time: 1:00
-- Duration: 5:00
-----------------------------------
require("scripts/global... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Talacca_Cove/npcs/qm1.lua | 42 | 1267 | -----------------------------------
-- Area: Talacca_Cove
-- NPC: ??? (corsair job flag quest)
--
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Talacca_Cove/TextIDs");
require("scripts/globals/keyitems");
--... | gpl-3.0 |
mosavy/leaderbottg | plugins/help.lua | 1 | 2475 | local function run(msg, matches)
local group = load_data('bot/group.json')
local addgroup = group[tostring(msg.chat_id)]
if matches[1] == 'help' and is_momod(msg) or is_owner(msg) and addgroup then
pm1 = [[🔴🔐help lock🔐🔴
🔹!lock links =>قفل لینک
🔹!lock edit =>قفل ویرایش پیام
🔹!lock fwd =>قفل فروارد
🔹!lock ... | gpl-3.0 |
mobinantispam/test-bot | 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 |
treytomes/mgreboot | mods/default/mapgen.lua | 1 | 38703 | --
-- Aliases for map generators
--
minetest.register_alias("mapgen_stone", "default:stone")
minetest.register_alias("mapgen_dirt", "default:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
minetest.register_alias("mapgen_sand", "default:sand")
minetest.register_alias("mapgen_water_s... | mit |
AlexandreCA/darkstar | scripts/globals/items/bunch_of_san_dorian_grapes.lua | 18 | 1192 | -----------------------------------------
-- ID: 4431
-- Item: Bunch of San Dorian Grapes
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Port_Windurst/npcs/Degong.lua | 53 | 1826 | -----------------------------------
-- Area: Port Windurst
-- NPC: Degong
-- Type: Fishing Synthesis Image Support
-- @pos -178.400 -3.835 60.480 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua | 38 | 1044 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Chemioue
-- Type: NPC Quest
-- @zone: 26
-- @pos 82.041 -34.964 67.636
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----... | gpl-3.0 |
martolini/Vana | scripts/instances/orbisToLudiTrip.lua | 1 | 1142 | --[[
Copyright (C) 2008-2015 Vana Development Team
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 distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Windurst_Waters/npcs/Olaky-Yayulaky.lua | 13 | 1061 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Olaky-Yayulaky
-- Type: Item Depository
-- @zone: 238
-- @pos -61.247 -4.5 72.551
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_s_Tiger.lua | 8 | 1141 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel's Tiger
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Windurst_Waters/npcs/Ensasa.lua | 30 | 1873 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ensasa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/Text... | gpl-3.0 |
mobinantispam/test-bot | plugins/plugins.lua | 325 | 6164 | 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 |
AlexandreCA/update | scripts/zones/Metalworks/npcs/Cid.lua | 17 | 11184 | -----------------------------------
-- Area: Metalworks
-- NPC: Cid
-- Starts & Finishes Quest: Cid's Secret, The Usual, Dark Puppet (start)
-- Involved in Mission: Bastok 7-1
-- @pos -12 -12 1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-------------------... | gpl-3.0 |
kynesim/wireshark | test/lua/dissector.lua | 25 | 31880 | ----------------------------------------
-- script-name: dns_dissector.lua
--
-- author: Hadriel Kaplan <hadrielk at yahoo dot com>
-- Copyright (c) 2014, Hadriel Kaplan
-- This code is in the Public Domain, or the BSD (3 clause) license if Public Domain does not apply
-- in your country.
--
-- Version: 2.1
--
-- Chang... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Davoi/npcs/qm1.lua | 17 | 1420 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm1)
-- Involved in Quest: To Cure a Cough
-- @pos -115.830 -0.427 -184.289 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
lzubiaur/woot | lib/luajit-2.0/src/jit/v.lua | 88 | 5614 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
AlexandreCA/update | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua | 17 | 3319 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
yasharsa/yashartg | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
testprmagma/ultra-bot | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
paly2/minetest-minetestforfun-server | mods/item_drop/init.lua | 1 | 5321 |
local enable_damage = minetest.setting_getbool("enable_damage")
local creative_mode = minetest.setting_getbool("creative_mode")
-- Following edits by gravgun
-- Idea is to have a radius pickup range around the player, whatever the height
-- We need to have a radius that will at least contain 1 node distance at the pl... | unlicense |
AlexandreCA/update | scripts/globals/items/salmon_croute.lua | 35 | 1351 | -----------------------------------------
-- ID: 4551
-- Item: salmon_croute
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 8
-- MP 8
-- Dexterity 2
-- MP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Bibiki_Bay/npcs/Clamming_Point.lua | 19 | 5746 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Clamming Point
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
require("scripts/zones/Bibiki_Bay/TextIDs");
require("scripts/globals/keyitems");
-----------------------------------
-- Local Variables
------... | gpl-3.0 |
commodo/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/cpu.lua | 74 | 1429 | -- stat/cpu collector
local function scrape()
local stat = get_contents("/proc/stat")
-- system boot time, seconds since epoch
metric("node_boot_time_seconds", "gauge", nil,
string.match(stat, "btime ([0-9]+)"))
-- context switches since boot (all CPUs)
metric("node_context_switches_total", "counter", n... | gpl-2.0 |
elfinlazz/melia | system/scripts/npc/field/f_3cmlake_83.lua | 1 | 2254 | addnpc(152002, "QUEST_UNUSED_20151102_002765", "f_3cmlake_83", 815.8752, 307.7971, -144.9392, 172, "npc_dummy")
addnpc(152002, "QUEST_UNUSED_20151102_002765", "f_3cmlake_83", -197.3349, 312.4104, 143.6573, 45, "npc_dummy")
addnpc(147473, "QUEST_LV_0100_20151102_010890", "f_3cmlake_83", -164.9662, 312.4104, 169.774, -55... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 13 | 3326 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/army_biscuit.lua | 18 | 1233 | -----------------------------------------
-- ID: 5657
-- Item: army_biscuit
-- Food Effect: 5Min?, All Races
-----------------------------------------
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/plate_of_bream_sushi_+1.lua | 17 | 1478 | -----------------------------------------
-- ID: 5177
-- Item: plate_of_bream_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 5
-- Accuracy % 17
-- Ranged ACC % 17
-- Sleep Resist 5
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/warm_egg.lua | 35 | 1186 | -----------------------------------------
-- ID: 4602
-- Item: warm_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 18
-- Magic 18
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/get_host_data.lua | 6 | 3612 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
function getNetworkStats(network)
local hosts_stats = interface.getHostsInfo()
my_network = nil
for key... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Open_sea_route_to_Mhaura/npcs/Pashi_Maccaleh.lua | 17 | 1246 | -----------------------------------
-- Area: Open sea route to Mhaura
-- NPC: Pashi Maccaleh
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
heptal/hammerspoon | extensions/fnutils/init.lua | 11 | 20125 | --- === hs.fnutils ===
---
--- Functional programming utility functions
local fnutils = {}
local pairs,ipairs = pairs,ipairs
local floor = math.floor
--- hs.fnutils.imap(list, fn) -> list
--- Function
--- Execute a function across a list-like table in order, and collect the results
---
--- Parameters:
--- * list - ... | mit |
FOS-Games/moai-pixel-runner | Player.lua | 1 | 4573 | local Player = {}
--
-- Created by IntelliJ IDEA.
-- User: Lars
-- Date: 9/12/2014
-- Time: 14:33
-- To change this template use File | Settings | File Templates.
--
local World
local tools=require('tools')
local player = {}
---------------------------------------
--------Initialize function------------
-------------... | apache-2.0 |
AlexandreCA/update | scripts/globals/items/pipira.lua | 18 | 1400 | -----------------------------------------
-- ID: 5787
-- Item: pipira
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Attack % 14.5
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Chateau_dOraguille/npcs/Perfaumand.lua | 13 | 1712 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Perfaumand
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -39 -3 69 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
Shayan123456/botttt | plugins/banhammer.lua | 106 | 11894 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Al_Zahbi/npcs/Macici.lua | 53 | 2304 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Macici
-- Type: Smithing Normal/Adv. Image Support
-- @pos -35.163 -1 -31.351 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scr... | gpl-3.0 |
AlexandreCA/update | scripts/globals/mobskills/Typhoon.lua | 25 | 1072 | ---------------------------------------------
-- Typhoon
--
-- Description: Spins around dealing damage to targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-4 shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 6 | 1043 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Ranguemont_Pass/npcs/Perchond.lua | 13 | 1699 | -----------------------------------
-- Area: Ranguemont Pass
-- NPC: Perchond
-- @pos -182.844 4 -164.948 166
-----------------------------------
package.loaded["scripts/zones/Ranguemont_Pass/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
----------------------------------... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/unified_inventory/group.lua | 3 | 3426 | function unified_inventory.canonical_item_spec_matcher(spec)
local specname = ItemStack(spec):get_name()
if specname:sub(1, 6) == "group:" then
local group_names = specname:sub(7):split(",")
return function (itemname)
local itemdef = minetest.registered_items[itemname]
for _, group_name in ipairs(group_name... | unlicense |
AlexandreCA/update | scripts/zones/Rabao/npcs/Alfesar.lua | 17 | 2389 | -----------------------------------
-- Area: Rabao
-- NPC: Alfesar
-- Standard Info NPC
--Starts The Missing Piece
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitem... | gpl-3.0 |
AlexandreCA/update | scripts/zones/The_Eldieme_Necropolis/npcs/qm8.lua | 57 | 2181 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: qm8 (??? - Ancient Papyrus Shreds)
-- Involved in Quest: In Defiant Challenge
-- @pos 105.275 -32 92.551 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
boknilev/nn | ClassNLLCriterion.lua | 10 | 2966 | local ClassNLLCriterion, parent = torch.class('nn.ClassNLLCriterion', 'nn.Criterion')
function ClassNLLCriterion:__init(weights)
parent.__init(self)
self.sizeAverage = true
self.outputTensor = torch.Tensor(1)
if weights then
assert(weights:dim() == 1, "weights input should be 1-D Tensor")
sel... | bsd-3-clause |
AlexandreCA/update | scripts/globals/items/moat_carp.lua | 18 | 1319 | -----------------------------------------
-- ID: 4401
-- Item: moat_carp
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/GentleTiger.lua | 31 | 1775 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: GentleTiger
-- Type: Quest
-- @pos -203 -10 1
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
---... | gpl-3.0 |
zhoukk/skynet | test/testmongodb.lua | 62 | 2661 | local skynet = require "skynet"
local mongo = require "mongo"
local bson = require "bson"
local host, db_name = ...
function test_insert_without_index()
local db = mongo.client({host = host})
db[db_name].testdb:dropIndex("*")
db[db_name].testdb:drop()
local ret = db[db_name].testdb:safe_insert({test_key = 1});
... | mit |
AlexandreCA/darkstar | scripts/globals/items/prized_crab_stewpot.lua | 18 | 1979 | -----------------------------------------
-- ID: 5546
-- Item: Prized Crab Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 100
-- MP +20
-- Vitality +2
-- Agility +2
-- Mind +4
-- HP Recovered while healing +9
-- MP Recovered while healing +3
-- De... | gpl-3.0 |
heptal/hammerspoon | extensions/audiodevice/init.lua | 13 | 5102 | --- === hs.audiodevice ===
---
--- Manipulate the system's audio devices
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
local module = require("hs.audiodevice.internal")
module.watcher = require("hs.audiodevice.watcher")
local ... | mit |
AlexandreCA/darkstar | scripts/zones/Metalworks/TextIDs.lua | 15 | 3817 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6434; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6438; -- You cannot obtain the item <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED =... | gpl-3.0 |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/pregamescoreboardsort/server.lua | 1 | 3068 | Plugin.HasConfig = false
-- Plugin.ConfigName = "pregamescoreboardsort.json"
local md = TGNSMessageDisplayer.Create()
local teamWinRatesData = {}
function Plugin:PostJoinTeam(gamerules, player, oldTeamNumber, newTeamNumber, force, shineForce)
if TGNS.PlayerIsOnPlayingTeam(player) then
local client = TGNS.... | mit |
erfan7/bot1000 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | agpl-3.0 |
rigeirani/smp | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/mobskills/Trinary_Tap.lua | 32 | 2010 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
martolini/Vana | scripts/npcs/pirate3.lua | 1 | 10858 | --[[
Copyright (C) 2008-2015 Vana Development Team
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 distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Port_San_dOria/npcs/Portaure.lua | 5 | 1627 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Portaure
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
-------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.