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 |
|---|---|---|---|---|---|
gedads/Neodynamis | scripts/zones/Spire_of_Mea/bcnms/ancient_flames_backon.lua | 29 | 4265 | -----------------------------------
-- Area: Spire_of_Mea
-- Name: ancient_flames_backon
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/g... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Attohwa_Chasm/npcs/Jakaka.lua | 9 | 1943 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Jakaka
-- Type: ENM
-- !pos -144.711 6.246 -250.309 7
-----------------------------------
local ID = require("scripts/zones/Attohwa_Chasm/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
---------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/_l11.lua | 3 | 2849 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -8 0 12 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Selbina/npcs/Graegham.lua | 3 | 1160 | -----------------------------------
-- Area: Selbina
-- NPC: Graegham
-- Guild Merchant NPC: Fishing Guild
-- !pos -12.423 -7.287 8.665 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua | 3 | 2113 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Hume Bones
-- Involved in Quests: Blue Ribbon Blues
-- !pos 299 0.1 19 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Abyssea-Konschtat/npcs/qm5.lua | 3 | 1347 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm5 (???)
-- Spawns Keratyrannos
-- !pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
Base-Team/BaseBot | BaseTeam/libs/redis.lua | 7 | 1146 | local Redis = (loadfile "./TeleDiamond/libs/lua-redis.lua")()
local FakeRedis = (loadfile "./TeleDiamond/libs/fakeredis.lua")()
local params = {
host = '127.0.0.1',
port = 6379,
}
-- Overwrite HGETALL
Redis.commands.hgetall = Redis.command('hgetall', {
response = function(reply, command, ...)
local new_repl... | agpl-3.0 |
tst2005/lua-penlight | lua/pl/lexer.lua | 7 | 14594 | --- Lexical scanner for creating a sequence of tokens from text.
-- `lexer.scan(s)` returns an iterator over all tokens found in the
-- string `s`. This iterator returns two values, a token type string
-- (such as 'string' for quoted string, 'iden' for identifier) and the value of the
-- token.
--
-- Versions specializ... | mit |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/modules/base/luasrc/model/network.lua | 47 | 33988 | --[[
LuCI - Network model
Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.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.0
Unless required by app... | gpl-2.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/modules/base/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... | gpl-2.0 |
Relintai/Relintais-Enemy-Kooldown-Tracker-TBC | lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua | 4 | 16945 | --[[ $Id: AceGUIWidget-DropDown.lua 81438 2008-09-06 13:44:36Z nevcairiel $ ]]--
local min, max, floor = math.min, math.max, math.floor
local AceGUI = LibStub("AceGUI-3.0")
local function fixlevels(parent,...)
local i = 1
local child = select(i, ...)
while child do
child:SetFrameLevel(parent:GetFrameLevel()+1)
... | mit |
gedads/Neodynamis | scripts/zones/Mhaura/npcs/Keshab-Menjab.lua | 3 | 1047 | -----------------------------------
-- Area: Mhaura
-- NPC: Keshab-Menjab
-- Type: Standard NPC
-- !pos -15.727 -9.032 54.049 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
Jamanno/Zero-K-Infrastructure | MissionEditor/MissionEditor2/MissionBase/LuaUI/Widgets/gui_api_hide_hax.lua | 7 | 1693 | function widget:GetInfo()
return {
name = "GUI Hide Hax",
desc = "Allows hiding of non-registered GUI elements",
author = "KingRaptor (L.J. Lim)",
date = "2012.10.26",
license = "GNU GPL v2",
layer = -math.huge,
enabled = true,
handler = true,
api = true,
}
end
local... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Windurst_Waters/npcs/Cochal-Monchal.lua | 3 | 1601 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Cochal-Monchal
-- Involved in Quest: Dark Legacy
-- @zone 238
-- !pos -52 -6 110
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/orange_snow_cone.lua | 12 | 1388 | -----------------------------------------
-- ID: 5713
-- Item: orange_snow_cone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP +20% (cap 20)
-- AGI -1
-- INT +1
-- Wind resistance +5
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/commands/addkeyitem.lua | 8 | 1662 | ---------------------------------------------------------------------------------------------------
-- func: addkeyitem <ID> <player>
-- desc: Adds a key item to the player.
---------------------------------------------------------------------------------------------------
require("scripts/globals/keyitems");
cmdprop... | gpl-3.0 |
hyee/dbcli | lua/history.lua | 1 | 5999 | local env,os,console=env,os,console
local event,cfg,grid=env.event,env.set,env.grid
local history={}
local keys={}
history.keys=keys
local lastcommand,last_line
function history:show(key)
local index=tonumber(key)
if not index then
if key and key:lower()=="last" then
print(lastcommand.text)... | mit |
teleowner/TELEOWNER | plugins/insta.lua | 11 | 3938 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key
local function instagramUser(msg, query)
local receiver = get_receiver(msg)
local url = "https://api.instagram.com/v1/users/search?q="..URL.escape(query).."&access_token="..a... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Xarcabard/npcs/Magumo-Yagimo_WW.lua | 3 | 3329 | -----------------------------------
-- Area: Xarcabard
-- NPC: Magumo-Yagimo, W.W.
-- Type: Outpost Conquest Guards
-- !pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
libmoon/libmoon | examples/pktgen.lua | 4 | 4598 | --- A simple UDP packet generator
local lm = require "libmoon"
local device = require "device"
local stats = require "stats"
local log = require "log"
local memory = require "memory"
local arp = require "proto.arp"
local server = require "webserver"
-- set addresses here
local DST_MAC = nil -- resolve... | mit |
gedads/Neodynamis | scripts/zones/Bastok_Mines/npcs/Medicine_Eagle.lua | 3 | 1458 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Medicine Eagle
-- Involved in Mission: Bastok 6-1, 8-1
-- !pos -40 0 38 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
requir... | gpl-3.0 |
ABrandau/OpenRA | mods/d2k/maps/harkonnen-06b/harkonnen06b.lua | 4 | 8700 | --[[
Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/carbuncles_pole.lua | 12 | 1361 | -----------------------------------------
-- ID: 18581
-- Item: Carbuncle's Pole
-- Item Effect: Restores 160-220 HP
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
function onAdditionalEffect(player,target,damage)
local ch... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/OrderedListAsArray.lua | 1 | 6244 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/12/05 14:47:20 $
$RCSfile: OrderedListAsArray.lua,v $
$Revision: 1.8 $
$Id: OrderedListAsArray.lua,v 1.8 2004/12/05 14:47:20 brpreiss Exp $
--]]
require "OrderedList"
require "Array"
requ... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Northern_San_dOria/npcs/Malfine.lua | 3 | 1036 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Malfine
-- Type: Standard Dialogue NPC
-- @zone 231
-- !pos 136.943 0.000 132.305
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
-... | gpl-3.0 |
Base-Team/BaseBot | plugins/mute-all.lua | 1 | 1449 | -- by @PvSuDo
-- channel : @BaseTeam
do
local function pre_process(msg)
local hash = 'muteall:'..msg.to.id
if redis:get(hash) and msg.to.type == 'channel' and not is_momod(msg) then
delete_msg(msg.id, ok_cb, false)
end
return msg
end
local function run(msg, matches)
if matches[1] == 'muteall' a... | agpl-3.0 |
gedads/Neodynamis | scripts/zones/AlTaieu/mobs/Ru_aern.lua | 2 | 2344 | -----------------------------------
-- Area: Al'Taieu
-- MOB: Ru_aern
-----------------------------------
require("scripts/zones/AlTaieu/MobIDs");
require("scripts/globals/missions");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Xarcabard/npcs/Pelogrant.lua | 3 | 1870 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pelogrant
-- Type: Outpost Vendor
-- !pos 210 -22 -201 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest"... | gpl-3.0 |
gedads/Neodynamis | scripts/commands/delitem.lua | 8 | 1602 | ---------------------------------------------------------------------------------------------------
-- func: delitem
-- desc: Deletes a single item held by a player, if they have it.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
pedro-andrade-inpe/terrame | test/packages/depend/tests/alternative/Utils.lua | 30 | 1661 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
pedro-andrade-inpe/terrame | test/packages/depend2/tests/alternative/Utils.lua | 30 | 1661 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
gedads/Neodynamis | scripts/zones/Mhaura/npcs/Yabby_Tanmikey.lua | 3 | 1167 | -----------------------------------
-- Area: Mhaura
-- NPC: Yabby Tanmikey
-- Guild Merchant NPC: Goldsmithing Guild
-- !pos -36.459 -16.000 76.840 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/The_Garden_of_RuHmet/bcnms/when_angels_fall.lua | 9 | 1414 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- Name: When Angels Fall
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/missions")
-----------------------------------
function onBattlefieldTick(battlefield, tick)
dsp.battlefield.onBattlefieldT... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua | 9 | 10499 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohbiru-Dohbiru
-- Involved in quest: Food For Thought, Say It with Flowers
-- Starts and finishes quest: Toraimarai Turmoil
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/titles");
require("scripts/gl... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Diorama_Abdhaljs-Ghelsba/Zone.lua | 17 | 1127 | -----------------------------------
--
-- Zone: Diorama_Abdhaljs-Ghelsba
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"] = nil;
require("scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs");
-----------------------------------
... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Western_Adoulin/npcs/Nikkhail.lua | 9 | 1596 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Nikkhail
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'A Thirst for the Ages'
-- !pos -101 3 9 256
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/ke... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Gustav_Tunnel/mobs/Goblin_Reaper.lua | 3 | 1165 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Reaper
-- Note: Place holder Goblinsavior Heronox
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/frostreaper.lua | 12 | 1065 | -----------------------------------------
-- ID: 16784
-- Item: Frostreaper
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Batallia_Downs/npcs/qm3.lua | 17 | 1887 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm3 (???)
-- Involved in Mission 9-1 (San dOria)
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
require("scrip... | gpl-3.0 |
ABrandau/OpenRA | mods/d2k/maps/harkonnen-06b/harkonnen06b-AI.lua | 4 | 2696 | --[[
Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
jackkkk21/botjack | 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 |
gedads/Neodynamis | scripts/zones/Al_Zahbi/npcs/Shihu-Danhu.lua | 3 | 2284 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Shihu-Danhu
-- Warp NPC
-- !pos 62.768 -1.98 -51.299 48
-----------------------------------
require("scripts/globals/besieged");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
raymondtfr/forgottenserver | data/actions/scripts/other/potions.lua | 3 | 4305 | local berserk = Condition(CONDITION_ATTRIBUTES)
berserk:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000)
berserk:setParameter(CONDITION_PARAM_SKILL_MELEE, 5)
berserk:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10)
berserk:setParameter(CONDITION_PARAM_BUFF_SPELL, true)
local mastermind = Condition(CONDITION_ATTRIBUT... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Temenos/mobs/Enhanced_Pugil.lua | 23 | 1034 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Pugil
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/commands/promote.lua | 22 | 1862 | ---------------------------------------------------------------------------------------------------
-- func: promote
-- desc: Promotes the player to a new GM level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Bibiki_Bay/TextIDs.lua | 3 | 2478 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6389; -- Obt... | gpl-3.0 |
alomina007/asli | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Southern_San_dOria_[S]/npcs/CeraneIVirgaut1.lua | 3 | 1059 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Cerane I Virgaut
-- @zone 80
-- !pos -268 -4 100
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
---------------------------------... | gpl-3.0 |
Lymia/MPPatch | src/patch/ui/hooks/ingame/ingame_chatcommands.lua | 3 | 2437 | -- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com>
--
-- 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, co... | mit |
dimitarcl/premake-dev | tests/actions/vstudio/vc2010/test_filter_ids.lua | 3 | 2476 | --
-- tests/actions/vstudio/vc2010/test_filter_ids.lua
-- Validate generation of filter unique identifiers.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_filter_ids")
local vc2010 = premake.vstudio.vc2010
--
-- Setup/teardown
--
local sln, prj
function s... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Cloister_of_Tremors/mobs/Titan_Prime.lua | 23 | 2778 | -----------------------------------
-- Area: Cloister of Tremors
-- MOB: Titan Prime
-- Involved in Quest: Trial by Earth
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status")... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/Ghebi_Damomohe.lua | 3 | 4492 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ghebi Damomohe
-- Type: Standard Merchant
-- Starts and Finishes Quest: Tenshodo Membership
-- @zone 245
-- !pos 16 0 -5
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settin... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua | 3 | 1944 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: _0q1 (Sewer Entrance)
-- !pos 28 -12 44 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_Safehold/TextIDs");
require("scri... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua | 23 | 1524 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Apocalyptic_Beast
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
requir... | gpl-3.0 |
bigrpg/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
yaukeywang/2DPlatformer-SLua | Assets/StreamingAssets/Lua/LPeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
telergybot/zspam | 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 |
gedads/Neodynamis | scripts/zones/Mhaura/npcs/Jikka-Abukka.lua | 3 | 1530 | -----------------------------------
-- 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 |
starlightknight/darkstar | scripts/commands/haskeyitem.lua | 14 | 1634 | ---------------------------------------------------------------------------------------------------
-- func: haskeyitem <ID> <player>
-- desc: Checks if player has specified KeyItem.
-- Can use either of number or the variable string from keyitems.lua
--------------------------------------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Phomiuna_Aqueducts/npcs/_0rn.lua | 3 | 1655 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rn (Oil lamp)
-- !pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Port_Bastok/npcs/Agapito.lua | 11 | 1462 | -----------------------------------
-- Area: Port Bastok
-- NPC: Agapito
-- Start & Finishes Quest: The Stars of Ifrit
-- !pos -72.093 -3.097 9.309 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globa... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Eastern_Altepa_Desert/Zone.lua | 11 | 4037 | -----------------------------------
--
-- Zone: Eastern_Altepa_Desert (114)
--
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Eastern_Altepa_Dese... | gpl-3.0 |
shkan/Super517 | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
MmxBoy/mmx-bot | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
pravsingh/Algorithm-Implementations | Counting_Sort/Lua/Yonaba/countsort_test.lua | 27 | 1206 | -- Tests for countsort.lua
local countsort = require 'countsort'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
... | mit |
laino/luakit | lib/cmdhist.lua | 6 | 2219 | ------------------------------------------------------
-- Enables command history in modes that support it --
-- © 2010 Mason Larobina <mason.larobina@gmail.com> --
------------------------------------------------------
-- Input bar history binds, these are only present in modes with a history
-- table so we can make ... | gpl-3.0 |
Amorph/premake-stable | tests/actions/vstudio/vc2010/test_mfc.lua | 55 | 1565 | --
-- tests/actions/vstudio/vc2010/test_mfc.lua
-- Validate MFC support in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_mfc = { }
local suite = T.vstudio_vs2010_mfc
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local sln, prj, cfg
fu... | bsd-3-clause |
zzzaaiidd/TCHUKY | plugins/zzaiddd3.lua | 2 | 2364 |
do
function mohammed(msg, matches)
local reply_id = msg['id']
local S = [[
❗️ أوامر الحماية في المجموعة
➖🔹➖🔹➖🔹➖🔹➖🔹
▫️ قفل الروابط :: لقفل الروابط
▫️ قفل اعاده توجيه :: لقفل التوجيه
▫️ قفل الملصقات :: لقفل الملصقات
▫️ قفل الفيديو :: لقفل الفيديو
▫️ قفل الصوت :: لقفل الصوت
▫️ قفل الكلايش :: لقفل الكلايش
▫️ قفل ال... | gpl-2.0 |
dantezhu/neon | examples/tpl/src/cocos/framework/extends/UICheckBox.lua | 57 | 1436 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | mit |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/modules/base/luasrc/sgi/cgi.lua | 87 | 2260 | --[[
LuCI - SGI-Module for CGI
Description:
Server Gateway Interface for CGI
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.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... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Bastok_Mines/npcs/Conrad.lua | 3 | 1916 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Conrad
-- Outpost Teleporter NPC
-- !pos 94.457 -0.375 -66.161 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scripts... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/mobskills/poison_pick.lua | 11 | 1078 | ---------------------------------------------
-- Poison Pick
--
-- Description: Deals damage to a single target. Additional effect: poison
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings")
require("scrip... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/barspell.lua | 12 | 1478 | -----------------------------------------
-- Implementation of Bar-spells
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
function calculateBarspellPower(caster,enhanceSkill)
local meritBonus = caster:getMerit(dsp.merit.BAR_SPELL_EFFECT)
local equipB... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Kazham/npcs/Lalapp.lua | 9 | 3190 | -----------------------------------
-- Area: Kazham
-- NPC: Lalapp
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
-----------------------------------
local path =
{
-63.243702, -11.000023, -97.916130,
-63.970551, -11.000027, -97.229286,
-64.771614, -11.000030... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/zebra_eel.lua | 11 | 1129 | -----------------------------------------
-- ID: 4288
-- Item: Zebra Eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-------------------------... | gpl-3.0 |
puretekniq/batterytech | src/bt-luaengine/assets/scripts/uifactory.lua | 1 | 1087 |
function makeButton(left, top, width,height, label)
local sLeft, sTop = scaleXY(left,top)
local sWidth, sHeight = scaleForUI(width,height)
local button = UIButton.new(sLeft, sTop, sWidth, sHeight)
button.normalAsset = "ui/button1_tex.png"
button.pressedAsset = "ui/button1_pressed_tex.png"
button.selectedA... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Wajaom_Woodlands/mobs/Lesser_Colibri.lua | 3 | 1056 | -----------------------------------
-- Area: Wajaom Woodlands
-- MOB: Lesser Colibri
-- Note: Place holder Zoraal Ja's Pkuucha
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDea... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Macuillie.lua | 12 | 2161 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Macuillie
-- Type: Guildworker's Union Representative
-- !pos -191.738 11.001 138.656 231
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Northern_San... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Windurst_Walls/Zone.lua | 9 | 2709 | -----------------------------------
--
-- Zone: Windurst_Walls (239)
--
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs")
require("scripts/globals/conquest")
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scri... | gpl-3.0 |
thel3l/kali-nethunter | nethunter-installer/update/system/bin/scripts/emul2html.lua | 27 | 1676 | -- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
bin = require('bin')
dumplib = require('html_dumplib')
example = "script run emul2html -o dumpdata.eml "
author = "Martin Holst Swende"
usage = "script run htmldump [-i <file>] [-o <file>]"
des... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Lufaise_Meadows/npcs/Yoram_IM.lua | 3 | 3330 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Yoram, I.M.
-- Outpost Conquest Guards
-- !pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
soccermitchy/heroku-lapis | opt/src/luarocks/src/luarocks/tools/tar.lua | 11 | 4827 |
--- A pure-Lua implementation of untar (unpacking .tar archives)
--module("luarocks.tools.tar", package.seeall)
local tar = {}
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
local blocksize = 512
local function get_typeflag(flag)
if flag == "0" or flag... | gpl-2.0 |
alomina007/asli | plugins/vote.lua | 3 | 2178 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
andywingo/snabbswitch | src/core/packet.lua | 13 | 3204 | module(...,package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local counter = require("core.counter")
local freelist_add, freelist_remove, freelist_nfree = ... | apache-2.0 |
czfshine/Don-t-Starve | data/DLC0001/scripts/prefabs/petals_evil.lua | 1 | 1518 | local assets =
{
Asset("ANIM", "anim/flower_petals_evil.zip"),
}
local function oneaten(inst, eater)
if eater and eater.components.sanity then
eater.components.sanity:DoDelta(-TUNING.SANITY_TINY)
end
end
local function fn(Sim)
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddA... | gpl-2.0 |
CrazyEddieTK/Zero-K | scripts/energysingu.lua | 16 | 1497 |
-- by Chris Mackey
include "constants.lua"
--pieces
local base = piece "base"
local toroid = piece "toroid"
local energyball = piece "energyball"
local nexus = piece "nexus"
local arm1 = piece "arm1"
local arm2 = piece "arm2"
local arm3 = piece "arm3"
local smokePiece = { piece "base", piece "arm1", piece "arm2", pi... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/chili_new/controls/layoutpanel.lua | 9 | 28081 | --//=============================================================================
--// This control is the base of any auto-layout panel, this includes:
--// grid, stackpanel, tables, itemlistview, listbox, radiogroups, ...
--//
--// Internal all childrens/items are handled via cells, which can be
--// freely aligned... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/chili/Handlers/texturehandler.lua | 25 | 3354 | --//=============================================================================
--//
TextureHandler = {}
--//=============================================================================
--//TWEAKING
local timeLimit = 0.2/15 --//time per second / desiredFPS
--//==================================================... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/behaviours/attackwall.lua | 1 | 1395 | AttackWall = Class(BehaviourNode, function(self, inst)
BehaviourNode._ctor(self, "AttackWall")
self.inst = inst
end)
function AttackWall:__tostring()
return string.format("target %s", tostring(self.target))
end
function AttackWall:Visit()
if self.status == READY then
local radius... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/map/static_layouts/skeleton_winter_hard.lua | 1 | 1905 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 8,
height = 8,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
image ... | gpl-2.0 |
omidtarh/fire | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/gui_unitgroups.lua | 4 | 34084 | function widget:GetInfo()
return {
name = "UnitGroups",
desc = "v5.1 Unit Group Icons, fixed bug",
author = "gunblob, original by tinnun",
date = "Aug 8, 2007",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false -- loaded by default?
}
end
---------... | gpl-2.0 |
ranisalt/forgottenserver | data/lib/core/creature.lua | 6 | 4102 | function Creature.getClosestFreePosition(self, position, maxRadius, mustBeReachable)
maxRadius = maxRadius or 1
-- backward compatability (extended)
if maxRadius then
maxRadius = 2
end
local checkPosition = Position(position)
for radius = 0, maxRadius do
checkPosition.x = checkPosition.x - math.min(1, radiu... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/plantables.lua | 1 | 3253 | require "prefabutil"
local notags = {'NOBLOCK', 'player', 'FX'}
local function test_ground(inst, pt)
local tiletype = GetGroundTypeAtPosition(pt)
local ground_OK = tiletype ~= GROUND.ROCKY and tiletype ~= GROUND.ROAD and tiletype ~= GROUND.IMPASSABLE and
tiletype ~= GROUND.UNDERROCK and tiletype ~= GROUND.WOOD... | gpl-2.0 |
acinonyx/openwrt-packages | utils/yunbridge/files/usr/bin/pretty-wifi-info.lua | 106 | 2067 | #!/usr/bin/lua
local function get_basic_net_info(network, iface, accumulator)
local net = network:get_network(iface)
local device = net and net:get_interface()
if device then
accumulator["uptime"] = net:uptime()
accumulator["iface"] = device:name()
accumulator["mac"] = device:mac()
accumulator["... | gpl-2.0 |
StoneDot/luasocket | src/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | mit |
tst2005/lua-aio | src/aio/modlua.lua | 1 | 1674 |
--[[--------------------------------------------------------------------------
-- Dragoon Framework - A Framework for Lua/LOVE --
-- Copyright (c) 2014-2015 TsT worldmaster.fr <tst2005@gmail.com> --
--]]--------------------------------------------------------------------------
local core = require "aio.core"
local ... | mit |
CrazyEddieTK/Zero-K | effects/opticblast.lua | 17 | 3409 | return {
["opticblast_charge"] = {
charge = {
air = true,
class = [[CSimpleParticleSystem]],
ground = true,
water = true,
properties = {
airdrag = .95,
alwaysvisible = true,
colormap ... | gpl-2.0 |
czfshine/Don-t-Starve | ZeroBraneStudio/t/6-path.lua | 1 | 3165 | local LPATH = os.getenv('LUA_PATH')
local LCPATH = os.getenv('LUA_CPATH')
local LCPATH52 = os.getenv('LUA_CPATH_5_2')
local mainpath = GetPathWithSep(ide.editorFilename)
-- LUA_(C)PATH is specified, no ;; is added
wx.wxSetEnv('LUA_PATH', 'foo')
wx.wxSetEnv('LUA_CPATH', 'bar')
ide.test.setLuaPaths(mainpath, 'Windows')
... | gpl-2.0 |
luvit/lit | commands/ls.lua | 4 | 1087 | local uv = require('uv')
local pathJoin = require('luvi').path.join
local getInstalled = require('get-installed')
return function ()
local source = uv.cwd()
if args[2] then
source = pathJoin(source, args[2])
end
local fs
fs, source = require('vfs')(source)
local deps = getInstalled(fs, source)
loca... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.