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/Windurst_Woods/npcs/Dahjal.lua | 3 | 1051 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Dahjal
-- Type: Conquest Troupe
-- @zone 241
-- !pos 11.639 1.267 -57.706
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------------... | gpl-3.0 |
rns/libmarpa-bindings | lua/marpa.lua | 2 | 7551 | -- debug helpers
local inspect = require 'inspect'
local i = inspect
local p = print
-- libmarpa binding
local lib = require 'libmarpa'
local C = lib.C
local ffi = lib.ffi
-- components
local grammar = require 'grammar'
local recognizer = require 'recognizer'
local valuator = require 'valuator'
local marpa =... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/qm1.lua | 11 | 1036 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: ???
-- Involved In Quest: The Stars Of Ifrit
-- !pos -9 -5 -13 223
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/weather");
local ID = require("scripts/zo... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/North_Gustaberg/npcs/Lyco_Sparkles_1.lua | 9 | 1087 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Lycopodium Teleport 1
-- !pos -258.186 -3.231 204.774 106
-----------------------------------
local ID = require("scripts/zones/North_Gustaberg/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, np... | gpl-3.0 |
Craige/prosody-modules | mod_sms_clickatell/mod_sms_clickatell.lua | 32 | 21145 | -- mod_sms_clickatell
--
-- A Prosody module for sending SMS text messages from XMPP using the
-- Clickatell gateway's HTTP API
--
-- Hacked from mod_twitter by Phil Stewart, March 2011. Anything from
-- mod_twitter copyright The Guy Who Wrote mod_twitter. Everything else
-- copyright 2011 Phil Stewart. Licensed under ... | mit |
p00ria/pouria1379 | plugins/banhammer.lua | 22 | 13075 |
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 |
starlightknight/darkstar | scripts/zones/Davoi/npcs/Sedal-Godjal.lua | 9 | 3586 | -----------------------------------
-- Area: Davoi
-- NPC: Sedal-Godjal
-- Mini Quest used in : Whence Blows the Wind
-- !pos 185 -3 -116 149
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
local ID = require("scripts/zo... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Apollyon/mobs/Jidra.lua | 9 | 1875 | -----------------------------------
-- Area: Apollyon SW
-- Mob: Jidra
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobEngaged(mob,target)
local mobID = mob:getID();
-- print(mobID);
local mobX = mob:getXPos();
local mobY = mob:getYP... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Mhaura/npcs/Zexu.lua | 3 | 1290 | -----------------------------------
-- Area: Mhaura
-- NPC: Zexu
-- Involved in Quests: The Sand Charm
-- !pos 30 -8 25 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/se... | gpl-3.0 |
pravsingh/Algorithm-Implementations | Decimal_To_Fraction/Lua/Yonaba/dec2frac.lua | 25 | 1292 | -- Algorithm to convert A Decimal to A Fraction
-- Original paper, written by J. Kennedy, available at:
-- https://sites.google.com/site/johnkennedyshome/home/downloadable-papers/dec2frac.pdf
-- Returns the integer part of a given decimal number
local function int(arg) return math.floor(arg) end
-- Returns a fraction... | mit |
starlightknight/darkstar | scripts/zones/AlTaieu/npcs/qm3.lua | 12 | 1362 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Prudence Spawn)
-- Allows players to spawn the Jailer of Prudence by trading the Third Virtue, Deed of Sensibility, and High-Quality Hpemde Organ to a ???.
-- !pos , 706 -1 22
-----------------------------------
local ID = require("scripts/zo... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Garlaige_Citadel/npcs/_5k9.lua | 3 | 1392 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Banishing Gate #2
-- !pos -100 -2.949 81 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Garlaige_Citadel/TextIDs");
---------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Yuhtunga_Jungle/npcs/Luck_Rune.lua | 3 | 1060 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- !pos -95.486 11.188 418.153 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Yuht... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Anilla.lua | 9 | 1197 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Anilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos 8 0.1 61 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs");
require("scripts/globals/quests");
--------------------------------... | gpl-3.0 |
alihbs/S_NAKE | plugins/banhammer.lua | 214 | 11956 |
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 |
Relintai/Relintais-Enemy-Kooldown-Tracker-TBC | lib/CallbackHandler-1.0/CallbackHandler-1.0.lua | 4 | 8961 | --[[ $Id: CallbackHandler-1.0.lua 895 2009-12-06 16:28:55Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 5
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
-... | mit |
mydongistiny/external_chromium_org_third_party_skia | tools/lua/bitmap_statistics.lua | 207 | 1862 | function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
starlightknight/darkstar | scripts/zones/Southern_San_dOria/npcs/Exoroche.lua | 9 | 2580 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Exoroche
-- Involved in Quests: Father and Son, A Boy's Dream
-- !pos 72 -1 60 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/ques... | gpl-3.0 |
sudosurootdev/external_skia | tools/lua/scrape_dashing.lua | 160 | 2495 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
CAAP/Lua | carlos/dicom2.lua | 1 | 3891 | --module setup
local M = {}
-- Import section
local dcm = require'gdcm'
local sql = require'lsqlite3'
local fs = require'carlos.files'
local tb = require'carlos.tables'
local math = math
local table = table
local ipairs = ipairs
local print = print
local tonumber = tonumber
local assert = assert
-- No more external a... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/weaponskills/viper_bite.lua | 18 | 1699 | -----------------------------------
-- Viper Bite
-- Dagger weapon skill
-- Skill level: 100
-- Deals double damage and Poisons target. Duration of poison varies with TP.
-- Doubles attack and not damage.
-- Despite the animation showing two swings, this is a single-hit weapon skill.
-- Will stack with Sneak Attack.
--... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/horde_lullaby_ii.lua | 11 | 1417 | -----------------------------------------
-- Spell: Horde Lullaby II
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/handful_of_sunflower_seeds.lua | 12 | 1202 | -----------------------------------------
-- ID: 4505
-- Item: handful_of_sunflower_seeds
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Dexterity -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Middle_Delkfutts_Tower/npcs/Treasure_Chest.lua | 17 | 3792 | -----------------------------------
-- Area: Middle Delkfutt's Tower
-- NPC: Treasure Chest
-- Involved In Quest: Wings of Gold
-- @zone 157
-----------------------------------
package.loaded["scripts/zones/Middle_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
Relintai/Relintais-Enemy-Kooldown-Tracker-TBC | lib/AceHook-3.0/AceHook-3.0.lua | 4 | 19112 | --- **AceHook-3.0** offers safe Hooking/Unhooking of functions, methods and frame scripts.
-- Using AceHook-3.0 is recommended when you need to unhook your hooks again, so the hook chain isn't broken
-- when you manually restore the original function.
--
-- **AceHook-3.0** can be embeded into your addon, either explici... | mit |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu plugin diagram definition
(c) 2008 Freifunk Leipzig / 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
http://www.apache... | gpl-2.0 |
mahdib9/54 | plugins/plugins.lua | 88 | 6304 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Windurst_Walls/npcs/Kalupa-Tawalupa.lua | 9 | 1917 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-90 Y:-9 Z:109
-- NPC: Kalupa-Tawalupa
-- Working 100%
-- Involved in Quest: To Bee or Not to Bee?
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
---------------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/plate_of_flapanos_paella.lua | 11 | 1180 | -----------------------------------------
-- ID: 5975
-- Item: Plate of Flapano's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Vitality 6
-- Defense % 26 Cap 155
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status")
require("scrip... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Windurst/npcs/Kameel.lua | 30 | 1272 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kameel
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/QuBia_Arena/npcs/Armoury_Crate.lua | 9 | 19791 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Armoury Crate
-------------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/bcnm")
-------------------------------------
local loot =
{
-- BCNM Demolition Squad
[520] =
{
{
{itemid... | gpl-3.0 |
tst2005/lua-penlight | tests/test-seq.lua | 8 | 1439 | local input = require 'pl.input'
local seq = require 'pl.seq'
local asserteq = require('pl.test').asserteq
local utils = require 'pl.utils'
local stringio = require 'pl.stringio'
local unpack = utils.unpack
local L = utils.string_lambda
local S = seq.list
local C = seq.copy
local C2 = seq.copy2
asserteq (seq.sum(inp... | mit |
getzze/awesome_config | lib/calendar.lua | 1 | 36063 | ---------------------------------------------------------------------------
-- A calendar widget
--
-- This module defines two widgets: a month calendar and a year calendar
--
-- The two widgets have a `date` property, in the form of a string "[%d] [%m] %Y".
--
-- The `calendar.widget.year` widget date property is a st... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Bastok_Markets_[S]/npcs/GentleTiger.lua | 3 | 1782 | ----------------------------------
-- 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 |
gedads/Neodynamis | scripts/globals/mobskills/barbed_crescent.lua | 15 | 1039 | ---------------------------------------------------
-- Barbed Crescent
-- Slashing damage varies with TP. Additional effect: Accuracy Down.
-- Area of Effect is centered around caster.
-- The Additional Effect: Accuracy Down may not always process.
-- Duration: Three minutes ?
------------------------------------------... | gpl-3.0 |
hkuro/jit-construct | dynasm/dasm_ppc.lua | 39 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | bsd-2-clause |
pichina/skynet | service/launcher.lua | 51 | 3199 | local skynet = require "skynet"
local core = require "skynet.core"
require "skynet.manager" -- import manager apis
local string = string
local services = {}
local command = {}
local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK)
local function handle_to_address(handle)
retu... | mit |
starlightknight/darkstar | scripts/zones/Ship_bound_for_Selbina/IDs.lua | 12 | 1299 | -----------------------------------
-- Area: Ship_bound_for_Selbina
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.SHIP_BOUND_FOR_SELBINA] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/effects/companions_roll.lua | 12 | 2465 | -----------------------------------
--
-- Companions Roll
--
-----------------------------------
require("scripts/globals/status")
function onEffectGain(target,effect)
local effectregain = {20, 50, 20, 20, 30, 30, 30, 40, 40, 10, 60, 0}
local effectregen = {4, 20, 6, 8, 10, 12, 14, 16, 18, 3, 25, 0}
if... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Waughroon_Shrine/bcnms/grove_guardians.lua | 9 | 1065 | -----------------------------------
-- Grove Guardians
-- Waughroon Shrine BCNM30, Sky Orb
-- !additem 1552
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
end
function o... | gpl-3.0 |
mishin/Algorithm-Implementations | Average/Lua/Yonaba/average_test.lua | 26 | 1557 | -- Tests for average.lua
local mean = require 'average'
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
local st... | mit |
R-Lefebvre/ardupilot | libraries/AP_Scripting/examples/easter-egg.lua | 12 | 2145 | -- This script will select a random location (as defined from a lat long coordinate)
-- and will play a set of tunes to navigate you towards that point, and select a new once
-- once the point has been found.
--
-- This script primarily serves to demo how to work with Locations, as well as how to
-- use the tonealarm t... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/piece_of_kusamochi_+1.lua | 11 | 1875 | -----------------------------------------
-- ID: 6263
-- Item: kusamochi+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP + 30 (Pet & Master)
-- Vitality + 4 (Pet & Master)
-- Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-- Ranged Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120
-... | gpl-3.0 |
deathshadow85/max | plugins/spammer(2).lua | 5 | 15635 | do
function run(msg, matches)
local tex = matches[1]
local sps = matches[2]
local sp = ''
for i=1, tex, 1 do
sp = '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n... | gpl-2.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/libs/nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Dynamis-Xarcabard/mobs/Tombstone_Prototype.lua | 23 | 1257 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Tombstone Prototype
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zo... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/The_Eldieme_Necropolis/npcs/Cannau.lua | 3 | 1052 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Cannau
-- Type: Escort NPC
-- !pos 419.838 -56.999 -114.870 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldiem... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/bowl_of_sutlac.lua | 12 | 1268 | -----------------------------------------
-- ID: 5577
-- Item: Bowl of Sutlac
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +10
-- INT +1
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/jubaku_san.lua | 12 | 1924 | -----------------------------------------
-- Spell: Jubaku: San
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")... | gpl-3.0 |
XanDDemoX/ESOFasterTravel | FasterTravel/Campaign.lua | 1 | 11369 |
local Utils = FasterTravel.Utils
local Campaign = {}
local ZONE_INDEX_CYRODIIL = FasterTravel.Location.Data.ZONE_INDEX_CYRODIIL
local _campaignIcons = {
home = "EsoUI/Art/Campaign/campaignBrowser_homeCampaign.dds",
guest = "EsoUI/Art/Campaign/campaignBrowser_guestCampaign.dds",
joining = "EsoUI/Art/Cam... | unlicense |
Amorph/premake-stable | tests/actions/vstudio/cs2005/projectelement.lua | 1 | 1425 | --
-- tests/actions/vstudio/cs2005/projectelement.lua
-- Validate generation of <Project/> element in Visual Studio 2005+ .csproj
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_cs2005_projectelement = { }
local suite = T.vstudio_cs2005_projectelement
local cs2005 = premake.vstudio.cs2... | bsd-3-clause |
gedads/Neodynamis | scripts/globals/items/slice_of_ziz_meat.lua | 12 | 1349 | -----------------------------------------
-- ID: 5581
-- Item: Slice of Ziz Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Rabao/npcs/Scamplix.lua | 17 | 1532 | -----------------------------------
-- Area: Rabao
-- NPC: Scamplix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onTrade Action
---------... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/jar_of_remedy_ointment.lua | 5 | 1848 | -----------------------------------------
-- ID: 5356
-- Item: Remedy Ointment
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and plague.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
dimitarcl/premake-dev | tests/base/test_os.lua | 3 | 2766 | --
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
--
local suite = test.declare("base_os")
--
-- os.findlib() tests
--
function suite.findlib_FindSystemLib()
if os.is("windows") then
test.istrue(os.fi... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/RuLude_Gardens/npcs/Goggehn.lua | 3 | 3142 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Goggehn
-- Involved in Mission: Bastok 3-3, 4-1
-- @zone 243
-- !pos 3 9 -76
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
-------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Port_Bastok/npcs/Kaede.lua | 9 | 2066 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kaede
-- Start Quest: Ayame and Kaede
-- Involved in Quests: Riding on the Clouds
-- !pos 48 -6 67 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
local ... | gpl-3.0 |
TheArturZh/CC-ZhOS | init.lua | 1 | 3327 | --[[ZhOS : Init script]]
--[[by TheArturZh]]
if _G._G.OS_DATA ~= nil then
print("ERROR: table _G.OS_DATA found! System may be already initialized.")
return
end
setfenv(1,_G)
OS_DATA = {}
OS_DATA.OS_NAME = "ZhOS"
OS_DATA.OS_VER = "0.1-InDev"
OS_DATA.PATH = {
OSDIR = "/ZhOS/"
}
OS_DATA.PATH.APIDIR = OS... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Rabao/npcs/Agado-Pugado.lua | 9 | 5371 | -----------------------------------
-- Area: Rabao
-- NPC: Agado-Pugado
-- Starts and Finishes Quest: Trial by Wind
-- !pos -17 7 -10 247
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
require("scripts/globals/quests");
loc... | gpl-3.0 |
canhnt/ingress | rootfs/etc/nginx/lua/configuration.lua | 4 | 6889 | local cjson = require("cjson.safe")
local io = io
local ngx = ngx
local tostring = tostring
local string = string
local table = table
local pairs = pairs
-- this is the Lua representation of Configuration struct in internal/ingress/types.go
local configuration_data = ngx.shared.configuration_data
local certificate_da... | apache-2.0 |
gedads/Neodynamis | scripts/globals/items/sausage_roll.lua | 12 | 1759 | -----------------------------------------
-- ID: 4396
-- Item: sausage_roll
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 6 (cap 160)
-- Vitality 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
----------------------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/abilities/pets/slapstick.lua | 14 | 1247 | ---------------------------------------------------
-- Slapstick
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(targe... | gpl-3.0 |
danrl/lede-packages | net/smartsnmpd/files/mibs/interfaces.lua | 158 | 4833 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- 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 2 of the License, or
-- (at your optio... | gpl-2.0 |
gedads/Neodynamis | scripts/commands/send.lua | 8 | 15657 | ---------------------------------------------------------------------------------------------------
-- func: send <player1> (<player2) or zone)
-- desc: Teleport a player to:
-- A) The given zone
-- B) another player
---------------------------------------------------------------------------------------------------
cm... | gpl-3.0 |
pixeljetstream/zbstudio-graphicscodepack | graphicscodepack/api/hlsl/dx11.lua | 1 | 4758 | -- Copyright (C) 2008-2017 Christoph Kubisch. All rights reserved.
---------------------------------------------------------
local function fn (description)
local description2,returns,args = description:match("(.+)%-%s*(%b())%s*(%b())")
if not description2 then
return {type="function",description=description,
... | mit |
starlightknight/darkstar | scripts/globals/items/poison_arrow.lua | 12 | 1065 | -----------------------------------------
-- ID: 18157
-- Item: Poison Arrow
-- Additional Effect: Poison
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player,ta... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/East_Ronfaure/TextIDs.lua | 3 | 1413 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6408; -- Obtained: <item>.
GIL_OBTAINED = 6409; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6411; -- Obt... | gpl-3.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua | 74 | 2324 | --[[
LuCI - Lua Configuration Interface
Copyright 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
$Id$
]]--
lo... | gpl-2.0 |
mishin/Algorithm-Implementations | Gale_Shapely/Lua/Yonaba/gale_shapely_test.lua | 53 | 1896 | -- Tests for binary_search.lua
local binary_search = require 'binary_search'
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... | mit |
gedads/Neodynamis | scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua | 17 | 4280 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Treasure Chest
-- Involved In Quest: Signed In Blood and The Goblin Tailor
-- @zone 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/key... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/plate_of_ic_pilav_+1.lua | 12 | 1956 | -----------------------------------------
-- ID: 5585
-- Item: plate_of_ic_pilav_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 70
-- Strength 5
-- Vitality -2
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 70
-- Ranged ATT % ... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Mount_Zhayolm/mobs/Wamoura_Prince.lua | 11 | 1257 | -----------------------------------
-- Area: Mount Zhayolm
-- NM: Wamoura Prince
-----------------------------------
require("scripts/globals/status")
-----------------------------------
-- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. Morph into Wamoura.
function on... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/abilities/pets/stone_iv.lua | 11 | 1047 | ---------------------------------------------------
-- Stone 4
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/magic")
---------------------------------------------------
functi... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Western_Altepa_Desert/TextIDs.lua | 3 | 1562 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6386; ... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua | 12 | 1612 | -----------------------------------
-- Area: Mhaura
-- NPC: Dieh Yamilsiah
-- Reports the time remaining before boat arrival.
-- !pos 7.057 -2.364 2.489 249
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
-- Each boat comes every 1152 seconds/8 game hou... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/SearchableContainer.lua | 1 | 1305 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/12/05 14:47:20 $
$RCSfile: SearchableContainer.lua,v $
$Revision: 1.5 $
$Id: SearchableContainer.lua,v 1.5 2004/12/05 14:47:20 brpreiss Exp $
--]]
require "Container"
--{
-- Methods impl... | apache-2.0 |
Moodstocks/cutorch | Tensor.lua | 9 | 2651 | function torch.CudaTensor.apply(self, func)
local x = torch.FloatTensor(self:size()):copy(self)
x:apply(func)
self:copy(x)
return self
end
local function Tensor__type(self,type)
local current = torch.typename(self)
if not type then return current end
if type ~= current then
local new = torch... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Batallia_Downs/npcs/qm4.lua | 17 | 1589 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm4 (???)
--
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
require("scripts/globals/keyitems");
require("scrip... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua | 8 | 1533 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: The Horutoto Ruins Experiment
-- !pos 419 0 -27 192
-----------------------------------
local ID = require("scripts/zones/Inner_Horutoto_Ruins/IDs")
require("scripts/globals/missions")
----------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/Naruru.lua | 3 | 3864 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Naruru
-- Starts and Finishes Quests: Cook's Pride
-- !pos -56 0.1 -138 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Windurst_Walls/npcs/Rutango-Botango.lua | 9 | 1992 | -----------------------------------
-- 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 |
gedads/Neodynamis | scripts/zones/Mount_Zhayolm/npcs/Runic_Portal.lua | 3 | 1758 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Runic Portal
-- Mount Zhayolm Teleporter Back to Aht Urgan Whitegate
-- !pos 688 -23 349 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Moun... | gpl-3.0 |
ld-test/turbo | spec/web_spec.lua | 1 | 14683 | --- Turbo.lua Unit test
--
-- Copyright 2013 John Abrahamsen
--
-- 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 appl... | apache-2.0 |
O-P-E-N/CC-ROUTER | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua | 58 | 2299 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("network",
translate("Routes"),
translate("Routes specify over which interface and gateway a certain host or network " ..
"can ... | gpl-2.0 |
czegarram/rapid-troll | intro_scene.lua | 1 | 7365 |
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
local parallax = require ("parallax")
local json = require("json")
local GGTwitter = require("GGTwitter")
local twitter
local startB
local creditsB
local title
local bg
local myScene
local bottom
local troll
local GGFacebook = requi... | gpl-2.0 |
Maxsteam/4568584657657 | plugins/stats.lua | 49 | 3698 | do
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Al_Zahbi/npcs/Chayaya.lua | 17 | 1662 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Chayaya
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Al_Zahbi/TextIDs");
-------------------... | gpl-3.0 |
Base-Team/BaseBot | plugins/del.lua | 1 | 10786 |
local function pre_process(msg)
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderation.data)
local print_name = user_print_name(msg.from):gsub("", "") -- get rid of rtl in names
local n... | agpl-3.0 |
LuaDist2/c3 | src/c3.lua | 2 | 3978 | local Colors = require "ansicolors"
local Mt = {}
local C3 = setmetatable ({}, Mt)
local Error = {}
function Error.__tostring (e)
local explanation = {}
local heads = {}
for _, xx in ipairs (e.groups) do
heads [xx [#xx]] = true
end
for _, xx in ipairs (e.groups) do
local subexplanation... | mit |
gedads/Neodynamis | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longsword.lua | 17 | 1502 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Longsword
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobE... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Rabao/Zone.lua | 27 | 1541 | -----------------------------------
--
-- Zone: Rabao (247)
--
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Port_Windurst/npcs/Sigismund.lua | 9 | 1885 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sigismund
-- Starts and Finishes Quest: To Catch a Falling Star
-- !pos -110 -10 82 240
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
r... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/swift_etude.lua | 12 | 1611 | -----------------------------------------
-- Spell: Swift Etude
-- Static AGI Boost, BRD 68
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
teleowner/TELEOWNER | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
wolfnight/wolf | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Port_Jeuno/npcs/Gekko.lua | 5 | 1443 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Gekko
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/shop");
--------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Gusgen_Mines/npcs/qm2.lua | 9 | 1607 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm2 (???)
-- Involved In Mission: Bastok 3-2
-- !pos 206 -60 -101 196
-----------------------------------
local ID = require("scripts/zones/Gusgen_Mines/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/gl... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Amarefice.lua | 12 | 1345 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Amarefice
-- Type: Woodworking Synthesis Image Support
-- !pos -181.506 10.15 259.905 231
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Northern_San_d... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/bluemagic.lua | 1 | 14784 | require("scripts/globals/status")
require("scripts/globals/magic")
BLUE_SKILL = 43;
-- The type of spell.
SPELLTYPE_PHYSICAL = 0;
SPELLTYPE_MAGICAL = 1;
SPELLTYPE_RANGED = 2;
SPELLTYPE_BREATH = 3;
SPELLTYPE_DRAIN = 4;
SPELLTYPE_SPECIAL = 5;
-- The TP modifier
TPMOD_NONE = 0;
TPMOD_CRITICAL = 1;
TPMOD_DAMAGE = 2;
TPM... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Kazham-Jeuno_Airship/npcs/Joosef.lua | 30 | 2300 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Joosef
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Kazham-Jeuno_Airship/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.