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 |
|---|---|---|---|---|---|
HeavensSword/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Fossil_Rock.lua | 4 | 2263 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Fossil Rock
-- Used in Mission: Windurst Mission 2-1
-- !pos 17 18 184 198 + <many pos>
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/... | gpl-3.0 |
vmercierfr/kong | spec/unit/tools/migrations_spec.lua | 6 | 11549 | local spec_helper = require "spec.spec_helpers"
local Migrations = require "kong.tools.migrations"
local utils = require "kong.tools.utils"
local IO = require "kong.tools.io"
describe("Migrations", function()
local env = spec_helper.get_env()
local migrations
before_each(function()
migrations = Migrations(... | mit |
ld-test/lua-resty-http | lib/resty/http.lua | 6 | 20784 | local http_headers = require "resty.http_headers"
local ngx_socket_tcp = ngx.socket.tcp
local ngx_req = ngx.req
local ngx_req_socket = ngx_req.socket
local ngx_req_get_headers = ngx_req.get_headers
local ngx_req_get_method = ngx_req.get_method
local str_gmatch = string.gmatch
local str_lower = string.lower
local str_u... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/abilities/earth_shot.lua | 2 | 3247 | -----------------------------------
-- Ability: Earth Shot
-- Consumes a Earth Card to enhance earth-based debuffs. Deals earth-based magic damage
-- Rasp Effect: Enhanced DoT and DEX-, Slow Effect +10%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("... | gpl-3.0 |
mohammadclashclash/uzzbot | plugins/giphy.lua | 633 | 1796 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
loca... | gpl-2.0 |
natuan241/Algorithm-Implementations | Burrows_Wheeler_Transform/Lua/Yonaba/bwt.lua | 26 | 1501 | -- Burrows-Wheeler Transform algorithm implementation
-- See: http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform#Sample_implementation
-- Returns the Burrows-Wheeler transform of an input string
-- @str : the original string to be encoded
-- returns : the transform
-- returns : an index to be used for d... | mit |
birdbrainswagtrain/microcosm | gamemodes/microcosm/entities/entities/micro_item_collectable_food.lua | 1 | 1500 | --shameless copy-pasta of SkyLight's micro_item_armorkit.lua which was a copy-pasta of Parakeet's micro_item_medkit.lua
--gottem
AddCSLuaFile()
ENT.Base = "micro_item"
ENT.ItemName = "Exotic Food"
ENT.ItemModel = "models/Items/BoxMRounds.mdl"
ENT.MaxCount = 100
local sound_eat = Sound("npc/headcrab_fast/... | mit |
dlannan/webdruino | deps/turbo-1.0.0/turbo/3rdparty/middleclass/spec/Object_spec.lua | 3 | 2916 | require 'middleclass'
context('Object', function()
context('name', function()
test('is correctly set', function()
assert_equal(Object.name, 'Object')
end)
end)
context('tostring', function()
test('returns "class Object"', function()
assert_equal(tostring(Object), 'class Object')
en... | mit |
Wedmer/luci | applications/luci-app-freifunk-diagnostics/luasrc/controller/freifunk/diag.lua | 62 | 1809 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk@somakoma.de>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.diag", package.seeall)
function index()
local uci = require("luci.model... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Tahrongi_Canyon/Zone.lua | 4 | 4065 | -----------------------------------
--
-- Zone: Tahrongi_Canyon (117)
--
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tahrongi_Canyon/TextIDs");
require("scripts/zones/Tahrongi_Canyon/MobIDs");
require("scri... | gpl-3.0 |
Openarl/PathOfBuilding | Data/2_6/Rares.lua | 2 | 16307 | -- Item data (c) Grinding Gear Games
return {
-- Helmet
[[
Armour Helmet
Eternal Burgonet
Crafted: true
Prefix: LocalIncreasedPhysicalDamageReductionRating3
Prefix: LocalIncreasedPhysicalDamageReductionRatingPercent5
Prefix: IncreasedLife7
]],[[
Evasion Helmet
Lion Pelt
Crafted: true
Prefix: LocalIncreasedEvasionRatin... | mit |
LauriM/PropellerEngine | mac/premake4.lua | 1 | 2324 | solution { "PropellerEngine" }
premake.gcc.cc = 'clang'
premake.gcc.cxx = 'clang++'
configurations { "Release" }
configuration { "mac" }
defines "CORE_X86_62"
-- JsonCpp is amalgamated
defines { "_MAC" }
defines "JSON_IS_AMALGAMATION"
includedirs { "../thirdparty/boost_1_55_0/", "../thirdparty/JsonCpp... | bsd-2-clause |
qwook/dpsht | libs/loveframes/objects/list.lua | 1 | 19002 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- list object
local newobject = loveframes.NewObject("list", "loveframes_object_list", true)
--[[-------------------------... | mit |
HeavensSword/darkstar | scripts/zones/Dynamis-Valkurm/mobs/Avatar_Idol.lua | 30 | 1157 | -----------------------------------
-- Area: Dynamis Valkurm
-- MOB: Manifest_Idol
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/base/luasrc/http/protocol.lua | 23 | 18451 | --[[
HTTP protocol implementation for LuCI
(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.org/licen... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/mobskills/amon_drive.lua | 33 | 1211 | ---------------------------------------------
-- Amon Drive
--
-- Description: Performs an area of effect weaponskill. Additional effect: Paralysis + Petrification + Poison
-- Type: Physical
-- 2-3 Shadows?
-- Range: Melee range radial
-- Special weaponskill unique to Ark Angel TT. Deals ~100-400 damage.
--------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua | 5 | 1805 | -----------------------------------
-- Area: Horlias peak
-- Name: double_dragonian
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Norg/npcs/Edal-Tahdal.lua | 5 | 4203 | -----------------------------------
-- Area: Norg
-- NPC: Edal-Tahdal
-- Starts and Finishes Quest: Trial by Water
-- !pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Metalworks/npcs/Patt-Pott.lua | 5 | 2381 | -----------------------------------
-- Area: Metalworks
-- NPC: Patt-Pott
-- Type: Consulate Representative
-- !pos 23 -17 42 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
--------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Ehrhard.lua | 5 | 1040 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ehrhard
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/advancing_march.lua | 5 | 1422 | -----------------------------------------
-- Spell: Advancing March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
f... | gpl-3.0 |
Openarl/PathOfBuilding | Modules/CalcOffence-3_0.lua | 1 | 104901 | -- Path of Building
--
-- Module: Calc Offence
-- Performs offence calculations.
--
local calcs = ...
local pairs = pairs
local ipairs = ipairs
local unpack = unpack
local t_insert = table.insert
local m_floor = math.floor
local m_modf = math.modf
local m_min = math.min
local m_max = math.max
local m_sqrt = math.sqrt
... | mit |
HeavensSword/darkstar | scripts/globals/abilities/allies_roll.lua | 1 | 2858 | -----------------------------------
-- Ability: Allies's Roll
-- Enhances skillchain damage and skillchain accuracy for party members within area of effect.
-- Optimal Job: None
-- Lucky Number: 3
-- Unlucky Number: 10
-- Level: 89
-- Phantom Roll +1 Value: 1
--
-- Die Roll | Skillchain Bonus
-- -------- -------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/player.lua | 2 | 8820 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/drachen_roll.lua | 1 | 2844 | -----------------------------------
-- Ability: Drachen Roll
-- Enhances pet accuracy for party members within area of effect
-- Optimal Job: Dragoon
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 23
-- Phantom Roll +1 Value: 5
--
-- Die Roll |No DRG |With DRG
-- -------- ------- -----------
-- 1 |... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/RuAun_Gardens/mobs/Seiryu.lua | 3 | 1734 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NM: Seiryu
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
mixins = {require("scripts/mixins/job_special")};
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scri... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWgroups/s_colors.lua | 2 | 2673 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Sebbe (smart), Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.4... | bsd-2-clause |
hfjgjfg/yagop54 | plugins/location.lua | 625 | 1564 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
xtao/ntopng | scripts/lua/examples/interface.lua | 2 | 11169 | --
-- (C) 2013 - ntop.org
--
-- Ntop lua class example
-- Set package.path information to be able to require lua module
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
function printTable(table,key)
-- traceError(TRACE_DEBUG,TRACE_CONSOLE, "Extern\n")
if ... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Heavens_Tower/npcs/_6q2.lua | 5 | 3241 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Vestal Chamber (chamber of the Star Sibyl)
-- !pos 0.1 -49 37 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/smoldering_salisbury_steak.lua | 3 | 1398 | -----------------------------------------
-- ID: 5924
-- Item: Smoldering Salisbury Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP +30
-- Strength +7
-- Intelligence -5
-- Attack % 20 Cap 160
-- Ranged Attack %20 Cap 160
-- Dragon Killer +5
-------------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/West_Ronfaure/npcs/qm1.lua | 5 | 1158 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm1 (???)
-- Involved in Quest: The Dismayed Customer
-- !pos -453 -20 -230 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
imashiam/WORLD | plugins/invite.lua | 393 | 1225 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_egg_soup.lua | 3 | 1138 | -----------------------------------------
-- ID: 4417
-- Item: Bowl of Egg Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 30
-- Magic 5
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
arrayfire/arrayfire-lua | examples/benchmarks/pi.lua | 4 | 1592 | --[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/items/homura.lua | 7 | 1029 | -----------------------------------------
-- ID: 16973
-- Item: Homura
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(player,... | gpl-3.0 |
dlannan/webdruino | deps/turbo-1.0.0/turbo/3rdparty/middleclass/spec/classes_spec.lua | 3 | 3287 | require 'middleclass'
context('A Class', function()
context('Default stuff', function()
local AClass
before(function()
AClass = class('AClass')
end)
context('name', function()
test('is correctly set', function()
assert_equal(AClass.name, 'AClass')
end)
end)
cont... | mit |
thetanil/thetasynth-pi | lua/pl/comprehension.lua | 39 | 9077 | --- List comprehensions implemented in Lua.
--
-- See the [wiki page](http://lua-users.org/wiki/ListComprehensions)
--
-- local C= require 'pl.comprehension' . new()
--
-- C ('x for x=1,10') ()
-- ==> {1,2,3,4,5,6,7,8,9,10}
-- C 'x^2 for x=1,4' ()
-- ==> {1,4,9,16}
-- C '{x,x^2} for x=1,4' ()
-- ==... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/sonic_thrust.lua | 25 | 1367 | -----------------------------------
-- Sonic Thrust
-- Polearm weapon skill
-- Skill Level: 300
-- Delivers an area attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Element: None
-- Modifiers: STR:40% ; DEX:40%
-- 100%TP 200%TP 300%TP
-- 3.00 3.7 4.50
--------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/commands/addcurrency.lua | 22 | 1498 | ---------------------------------------------------------------------------------------------------
-- func: addcurrency <currency type> <amount> <target player>
-- desc: Adds the specified currency to the player
---------------------------------------------------------------------------------------------------
cmdpro... | gpl-3.0 |
DennisWG/CastModifier | Extensions/Mouseover/CT_RaidAssist.lua | 1 | 1499 | --[[
Author: Dennis Werner Garske (DWG)
License: MIT License
]]
local _G = _G or getfenv(0)
local Roids = _G.Roids or {}
Roids.mouseoverUnit = Roids.mouseoverUnit or nil;
local Extension = Roids.RegisterExtension("CT_RaidAssist");
Extension.RegisterEvent("ADDON_LOADED", "OnLoad");
function Extension.OnEnter()
loca... | mit |
HeavensSword/darkstar | scripts/globals/effects/debilitation.lua | 34 | 1335 | -----------------------------------
--
--
--
-----------------------------------
local stats_bits = {MOD_STR, MOD_DEX, MOD_VIT, MOD_AGI, MOD_INT, MOD_MND, MOD_CHR, MOD_HPP, MOD_MPP}
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Villion.lua | 5 | 1367 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Villion
-- Type: Adventurer's Assistant NPC
-- Involved in Quest: Flyers for Regine
-- @zone 231
-- !pos -157.524 4.000 263.818
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/sacrifice.lua | 4 | 1223 | -----------------------------------------
-- Spell: Sacrifice
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Jeuno/npcs/Narsha.lua | 3 | 1389 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Narsha
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
functi... | gpl-3.0 |
natuan241/Algorithm-Implementations | A_Star_Search/Lua/Yonaba/astar.lua | 26 | 3905 | -- Generic A* search algorithm implementation
-- See : http://en.wikipedia.org/wiki/A*_search_algorithm
-- Notes : this is a generic implementation of A star search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with a handler, which a... | mit |
Deiz/naev | dat/missions/sirius/heretic/heretic3.lua | 9 | 10584 | --[[misn title - the assault]]
--[[in this mission, the wringer is assaulted by a full assault fleet
sent in by the threatened sirius. the player attempts to defend,
when is instead ordered back to the wringer to escape sirius controlled
space. thanks to nloewen and viashimo for help!]]
include "dat/scripts/numst... | gpl-3.0 |
barbarubra/Don-t-know-What-i-m-doing. | lua/luasocket/etc/dispatch.lua | 57 | 10272 | -----------------------------------------------------------------------------
-- A hacked dispatcher module
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $$
-----------------------------------------------------------------------------
local base = _G
local table = require("table")
local socket = require("... | apache-2.0 |
vmercierfr/kong | kong/api/route_helpers.lua | 20 | 1124 | local stringy = require "stringy"
local _M = {}
function _M.get_hostname()
local f = io.popen ("/bin/hostname")
local hostname = f:read("*a") or ""
f:close()
hostname = string.gsub(hostname, "\n$", "")
return hostname
end
function _M.parse_status(value)
local result = {}
local parts = stringy.split(val... | mit |
HeavensSword/darkstar | scripts/globals/items/blackened_toad.lua | 3 | 1102 | -----------------------------------------
-- ID: 4599
-- Item: Blackened Toad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -1
-- Poison Resist 4
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lufaise_Meadows/mobs/Colorful_Leshy.lua | 3 | 1679 | -----------------------------------
-- Area: Lufaise Meadows
-- MOB: Colorful Leshy
-----------------------------------
function onMobSpawn(mob)
local Defoliate_Leshy = 16875763;
GetMobByID(Defoliate_Leshy):setLocalVar("1", os.time() + math.random((43200), (86400)));
end;
function onMobRoam(mob)
local De... | gpl-3.0 |
arrayfire/arrayfire-lua | wrapper/arrayfire/methods/constructors.lua | 4 | 5617 | --- Array constructors.
-- Standard library imports --
local assert = assert
local error = error
local select = select
local type = type
local unpack = unpack
-- Modules --
local af = require("arrayfire_lib")
local array = require("impl.array")
-- Imports --
local CallWrap = array.CallWrap
local IsArray = array.IsAr... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/weaponskills/skewer.lua | 25 | 1398 | -----------------------------------
-- Skewer
-- Polearm weapon skill
-- Skill Level: 200
-- Delivers a three-hit attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget & Thunder Gorget.
-- Aligned with the Light Belt & Thunder Belt.
-- Element: None
-- M... | gpl-3.0 |
msva/LDoc | ldoc/parse.lua | 3 | 13732 | -- parsing code for doc comments
local utils = require 'pl.utils'
local List = require 'pl.List'
local Map = require 'pl.Map'
local stringio = require 'pl.stringio'
local lexer = require 'ldoc.lexer'
local tools = require 'ldoc.tools'
local doc = require 'ldoc.doc'
local Item,File = doc.Item,doc.File
local unpack = ut... | mit |
HeavensSword/darkstar | scripts/globals/items/fulm-long_salmon_sub.lua | 3 | 1127 | -----------------------------------------
-- ID: 4266
-- Item: fulm-long_salmon_sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- DEX +2
-- VIT +1
-- AGI +1
-- INT +2
-- MND -2
-- Ranged Accuracy +3
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/divine_sword.lua | 7 | 1041 | -----------------------------------------
-- ID: 16549
-- Item: Divine Sword
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(... | gpl-3.0 |
haolly/slua_source_note | build/luajit-2.1.0-beta3/dynasm/dasm_arm.lua | 30 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
ignacio/LuaNode | test/simple/test-http-allow-req-after-204-res.lua | 2 | 1258 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
function test()
-- first 204 or 304 works, subsequent anything fails
local codes = { 204, 200 }
-- Methods don't really matter, but we put in something realistic.
local methods = {'DELETE', 'DELET... | mit |
HeavensSword/darkstar | scripts/zones/Metalworks/npcs/Baldric.lua | 5 | 1398 | -----------------------------------
-- Area: Metalworks
-- NPC: Baldric
-- Type: Quest Giver
-- @zone 237
-- !pos -50.858 1.777 -31.141
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")
require("scripts... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/steal.lua | 2 | 4217 | -----------------------------------
-- Ability: Steal
-- Steal items from enemy.
-- Obtained: Thief Level 5
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
-- these are the quadavs that... | gpl-3.0 |
HarpyWar/pvpgn | lua/quiz/records.lua | 7 | 2759 | --[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
-- Load total records from a text file into the table
function q_load_records()
local filename = config.vardir() .. "quiz_records.txt"
if not file_exi... | gpl-2.0 |
269724033/lor | lib/lor/lib/request.lua | 1 | 2324 | local error = error
local sfind = string.find
local pairs = pairs
local ipairs = ipairs
local type = type
local setmetatable = setmetatable
local utils = require("lor.lib.utils.utils")
local Request = {}
-- new request: init args/params/body etc from http request
function Request:new()
local body = {} -- body par... | mit |
HeavensSword/darkstar | scripts/globals/spells/valor_minuet.lua | 5 | 1468 | -----------------------------------------
-- Spell: Valor Minuet
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
e... | gpl-3.0 |
dkorolev/tarantool | test/wal_off/snapshot_stress.test.lua | 7 | 6835 | -- The test emulates account system. There are increasing number or accounts
-- and a lot of double entry transactions are made that moving random
-- ammount from random account to another random accont.
-- Snapshots are made every snapshot_interval seconds and then checked for consistency
-- Settings: You may increase... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/jet_stream.lua | 33 | 1738 | -----------------------------------------
-- Spell: Jet Stream
-- Delivers a threefold attack. Accuracy varies with TP
-- Spell cost: 47 MP
-- Monster Type: Birds
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: DEX+2
-- Level: 38
-- Casting Time: 0.5 seconds
-- Recast Time: 23 seconds
-- Skillcha... | gpl-3.0 |
dromozoa/dromozoa-http | dromozoa/http/parameters.lua | 3 | 1730 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-... | gpl-3.0 |
Wedmer/luci | libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua | 78 | 1086 | -- Copyright 2009 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local util = require "luci.util"
local rawget, setmetatable = rawget, setmetatable
local ipairs = ipairs
module "luci.rpcc.ruci"
local Proxy = util.class()
function factory(rpccl)
return {
cursor = functi... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Dedden_IM.lua | 3 | 2982 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Dedden, I.M.
-- Border Conquest Guards
-- !pos -252.454 -1.958 624.366 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
rpotor/LeeroyHillCatsPowerRevived | Localization.lua | 1 | 6685 | function LHCF_GetLocalizationTable(lang)
if not LHCFLocalization then
LHCFLocalization = {}
end
if lang =="huHU" then
LHCFLocalization["LHCF_CORE_TITLE"] = "Az OOW klán imba hangeffekt addonja"
LHCFLocalization["LHCF_HELP_TITLE"] = "|cffff9933" .. "SÚGÓ"
LHCFLocalization["LHCF_SETTINGS_TITLE"] = "|cffff9933... | mit |
Wedmer/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua | 68 | 7107 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
mp = Map("olsrd6", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "Loa... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Woods/npcs/Sariale.lua | 3 | 1637 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Sariale
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
f... | gpl-3.0 |
christakahashi/nodemcu-firmware | lua_modules/mcp23008/mcp23008.lua | 81 | 4973 | ---
-- @description Expands the ESP8266's GPIO to 8 more I/O pins via I2C with the MCP23008 I/O Expander
-- MCP23008 Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/21919e.pdf
-- Tested on NodeMCU 0.9.5 build 20150213.
-- @date March 02, 2015
-- @author Miguel
-- GitHub: https://github.com/AllAboutEE
-- ... | mit |
HeavensSword/darkstar | scripts/globals/mobskills/chains_of_envy.lua | 5 | 1321 | ---------------------------------------------
-- Chains of Envy
--
---------------------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
---------------------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/monstertpmoves");
req... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Tavnazia/npcs/qm1.lua | 5 | 2082 | -----------------------------------
-- Area: Dynamis-Tavnazia
-- NPC: ???
-- !pos
-----------------------------------
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/dynamis");
require("scripts/zones/Dynam... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Selbina/npcs/Quelpia.lua | 5 | 1503 | -----------------------------------
-- Area: Selbina
-- NPC: Quelpia
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
-----------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/pw_acheron_flame.lua | 33 | 1565 | ---------------------------------------------
-- Acheron Flame
--
-- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn
-- Type: Magical
--
--
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 20' radial
-- Notes: Only used when a cerberus's health is 25% or lower (may n... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Giaunne.lua | 5 | 1380 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Giaunne
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -13 0 36 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/N... | gpl-3.0 |
lu-zero/vlc | share/lua/playlist/googlevideo.lua | 113 | 2746 | --[[
$Id$
Copyright © 2007 the VideoLAN 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; either version 2 of the License, or
(at your option) any later version.
This program is distribut... | gpl-2.0 |
peymankhanas8487/Horror_Avatar | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
gwx/tome-grayswandir-illusion | overload/data/gfx/particles/mental_pressure.lua | 1 | 3163 | -- Gray's Illusions, for Tales of Maj'Eyal.
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/damnation_dive.lua | 15 | 1387 | ---------------------------------------------
-- Damnation Dive
--
-- Description: Dives into a single target. Additional effect: Knockback + Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadow
-- Range: Melee
-- Notes: Used instead of Gliding Spike by certain notorious monsters.
---------------------------------... | gpl-3.0 |
klokane/loxy | loxy/signal.lua | 1 | 1332 | require 'loxy.callback'
--[[
-- Marshaller has defined interface (contract)
-- m = marshaller() -> create marshaller instance
-- - m:add() - collect result if invocation
-- - m:res() - return marshallerd value(s)
--
-- preddefind two marshallers:
-- last - return last value
-- table - return all values col... | mit |
wsmith323/hammerspoon | extensions/urlevent/init.lua | 7 | 4228 | --- === hs.urlevent ===
---
--- Allows Hammerspoon to respond to URLs
--- Hammerspoon is configured to react to URLs that start with `hammerspoon://` when they are opened by OS X.
--- This extension allows you to register callbacks for these URL events and their parameters, offering a flexible way to receive events fro... | mit |
cogwerkz/gUI4 | gUI4/libs/GP_Ace3/GP_AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua | 1 | 3721 | --[[-----------------------------------------------------------------------------
BlizOptionsGroup Container
Simple container widget for the integration of AceGUI into the Blizzard Interface Options
-------------------------------------------------------------------------------]]
local Type, Version = "BlizOptionsG... | mit |
HeavensSword/darkstar | scripts/globals/mobskills/tidal_dive.lua | 33 | 1149 | ---------------------------------------------
-- Tidal Dive
--
-- Description: Dives at nearby targets. Additional effect: Weight and/or Bind (Status Effect)
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Only used over deep water.
--------------------------------------... | gpl-3.0 |
vmercierfr/kong | kong/dao/cassandra/plugins_configurations.lua | 6 | 2148 | local plugins_configurations_schema = require "kong.dao.schemas.plugins_configurations"
local query_builder = require "kong.dao.cassandra.query_builder"
local constants = require "kong.constants"
local BaseDao = require "kong.dao.cassandra.base_dao"
local cjson = require "cjson"
local PluginsConfigurations = BaseDao:e... | mit |
shahifaqeer/my-luci-bismark-0.11 | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | 12 | 2076 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
loc... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/fell_cleave.lua | 26 | 1424 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR: 60%
-- 100%T... | gpl-3.0 |
nimaghorbani/user102 | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
githubmereza/telejack | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
269724033/lor | lib/lor/lib/utils/path_to_regexp_lua.lua | 1 | 1545 | local sgsub = string.gsub
local smatch = string.match
local gmatch = string.gmatch
local function tappend(t, v) t[#t+1] = v end
local debug = require("lor.lib.debug")
-- pattern或是uri末尾为n个/,均忽略
local _M = {}
-- 去除多余的/
function _M.clear_slash(s)
s, _ = sgsub(s, "(/+)", "/")
return s
end
--
function _M.parse_pat... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/pollen.lua | 7 | 1690 | -----------------------------------------
-- Spell: Pollen
-- Restores HP
-- Spell cost: 8 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Light)
-- Blue Magic Points: 1
-- Stat Bonus: CHR+1, HP+5
-- Level: 1
-- Casting Time: 2 seconds
-- Recast Time: 5 seconds
--
-- Combos: Resist Sleep
----------------------------... | gpl-3.0 |
Wedmer/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 68 | 2884 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
res_config_mysql = module:opt... | apache-2.0 |
kwagdy/koding-1 | go/src/vendor/github.com/caglar10ur/lxc/src/lua-lxc/test/apitest.lua | 53 | 10249 | #!/usr/bin/env lua
--
-- test the lxc lua api
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License version 2, as
-- published by the Free Software Foundat... | apache-2.0 |
cogwerkz/gUI4 | gUI4_Chat/shared/emoticons.lua | 1 | 15560 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_Chat", true)
if not parent then return end
-- emoticon sources:
-- http://en.wikipedia.org/wiki/List_of_emoticons
-- http://pc.net/emoticons/
local M =... | mit |
Maliv/cyber | plugins/lock_eng.lua | 52 | 1075 |
antienglish = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_eng'] then
... | gpl-2.0 |
HeavensSword/darkstar | scripts/commands/setweather.lua | 8 | 1872 | ---------------------------------------------------------------------------------------------------
-- func: setweather
-- desc: Sets the current weather for the current zone.
---------------------------------------------------------------------------------------------------
require("scripts/globals/weather");
cmdpro... | gpl-3.0 |
hamed9898/power-max | plugins/xkcd.lua | 2 | 1365 | local PLUGIN = {}
PLUGIN.doc = [[
/xkcd [search]
This command returns an xkcd strip, its number, and its "secret" text. You may search for a specific strip or get a random one.
]]
PLUGIN.triggers = {
'^/xkcd'
}
function PLUGIN.action(msg)
local input = get_input(msg.text)
local url = 'http://xkcd.com/info.0.js... | gpl-2.0 |
Wedmer/luci | applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 30 | 1901 | -- Copyright 2012 Christian Gagneraud <chris@techworks.ie>
-- Licensed to the public under the Apache License 2.0.
m = Map("system",
translate("Watchcat"),
translate("Watchcat allows configuring a periodic reboot when the " ..
"Internet connection has been lost for a certain period of time."
))
s = m:secti... | apache-2.0 |
pd2-linux/tina | feeds/luci/protocols/relay/luasrc/model/cbi/admin_network/proto_relay.lua | 86 | 2148 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.