repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
geanux/darkstar | scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua | 35 | 1549 | -----------------------------------------
-- ID: 4601
-- Item: Bowl of Sopa de Pez Blanco
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 12
-- Dexterity 6
-- Mind -4
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
requir... | gpl-3.0 |
bakert0/SuperSuperTux | TestHeuristics.lua | 1 | 7423 | function printBoard(board)
returnString = ""
for y=1,#board,1 do
for x=1,#board[1],1 do
if isBlock(board[y][x]) then
returnString = returnString .. "1"
else
returnString = returnString .. "0"
end
end
returnString = returnString .."\n"
end
return returnString
end
function copyBoard(board)
... | mit |
geanux/darkstar | scripts/globals/spells/hojo_ni.lua | 18 | 1160 | -----------------------------------------
-- Spell: Hojo:Ni
-- Description: Inflicts Slow on target.
-- Edited from slow.lua
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------------... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/pl/luabalanced.lua | 49 | 8024 | --- Extract delimited Lua sequences from strings.
-- Inspired by Damian Conway's Text::Balanced in Perl. <br/>
-- <ul>
-- <li>[1] <a href="http://lua-users.org/wiki/LuaBalanced">Lua Wiki Page</a></li>
-- <li>[2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm</li>
-- </ul> <br/>
-- <pre class=example... | gpl-2.0 |
geanux/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 17 | 2884 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- @zone 235
-- @pos 0 0 0
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"]... | gpl-3.0 |
geanux/darkstar | scripts/globals/weaponskills/frostbite.lua | 30 | 1231 | -----------------------------------
-- Frostbite
-- Great Sword weapon skill
-- Skill Level: 70
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: Ice
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 ... | gpl-3.0 |
jiangzhhhh/slua | build/luajit-2.1.0-beta3/dynasm/dasm_x86.lua | 32 | 71256 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
kaen/Zero-K | effects/gundam_vert_explosion.lua | 26 | 3091 | -- vert_explosion
return {
["vert_explosion"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.9,
circlegrowth = 25,
flashalpha = 0.9,
flashsize = 500,
ground = true,
ttl ... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/boiled_crayfish.lua | 35 | 1248 | -----------------------------------------
-- ID: 4535
-- Item: Boiled Crayfish
-- Food Effect: 30Min, All Races
-----------------------------------------
-- defense % 30
-- defense % 25
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
geanux/darkstar | scripts/zones/Beadeaux/TextIDs.lua | 7 | 1373 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6383; -- Obtained: <item>.
GIL_OBTAINED = 6384; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6386; -- Obtained... | gpl-3.0 |
geanux/darkstar | scripts/zones/Mhaura/npcs/Kotan-Purutan.lua | 19 | 2416 | -----------------------------------
-- Area: Mhaura
-- NPC: Kotan-Purutan
-- Involved in Quest: Overnight Delivery
-- @pos 40.323 -8.999 44.242 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- o... | gpl-3.0 |
geanux/darkstar | scripts/globals/weaponskills/numbing_shot.lua | 18 | 1513 | -----------------------------------
-- Numbing Shot
-- Marksmanship weapon skill
-- Skill level: 290
-- Main of sub must be Ranger or Corsair
-- Aligned with the Thunder & Breeze Gorget.
-- Aligned with the Thunder Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: AGI 80%
-- 100%TP 200%TP 300%TP
-- 3.00... | gpl-3.0 |
geanux/darkstar | scripts/zones/Arrapago_Reef/npcs/qm1.lua | 16 | 1170 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Lil'Apkallu(ZNM T1))
-- @pos 488 -1 166 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
---------------... | gpl-3.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/lexer.lua | 2 | 71168 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[=[ This comment is for LuaDoc.
---
-- Lexes Scintilla documents with Lua and LPeg.
--
-- ## Overview
--
-- Lexers highlight the syntax of source code. Scintilla (the editing component
-- behind [Textadept][] and [SciTE][]) traditio... | apache-2.0 |
kaen/Zero-K | LuaRules/Configs/MetalSpots/Grts_Messa_008.lua | 17 | 1312 | return {
spots = {
-- Four metal spots in center
{x = 6162, z = 6750, metal = 3},
{x = 5546, z = 6128, metal = 3},
{x = 6138, z = 5562, metal = 3},
{x = 6747, z = 6152, metal = 3},
-- 12 starting spots (2x3 on each side)
{x = 1093, z = 9286, metal = 3},
{x = 1174, z = 7125, metal = 3},
{x = 1208, z =... | gpl-2.0 |
kaen/Zero-K | LuaUI/Widgets/unit_auto_reclaim_heal_assist.lua | 10 | 3191 | -----------------------------------
-- Author: Johan Hanssen Seferidis
--
-- Comments: Sets all idle units that are not selected to fight. That has as effect to reclaim if there is low metal
-- , repair nearby units and assist in building if they have the possibility.
-- If you select the unit while it is bei... | gpl-2.0 |
girishramnani/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
kobreu/compiler | testinput/lua5.1-tests/events.lua | 10 | 8646 | print('testing metatables')
X = 20; B = 30
setfenv(1, setmetatable({}, {__index=_G}))
collectgarbage()
X = X+10
assert(X == 30 and _G.X == 20)
B = false
assert(B == false)
B = nil
assert(B == 30)
assert(getmetatable{} == nil)
assert(getmetatable(4) == nil)
assert(getmetatable(nil) == nil)
a={}; setmetatable(a, {__... | gpl-3.0 |
SurenaTeam/TeleSurena | plugins/msg_checks.lua | 6 | 11264 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
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.moderatio... | agpl-3.0 |
forward619/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 29 | 2536 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.interface", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- traffic diagram
--
local traffic = {
-- draw this diag... | apache-2.0 |
tonylauCN/tutorials | lua/debugger/lualibs/dist/constraints.lua | 6 | 9241 | -- Note: the code of this module is borrowed from the original LuaDist project
--- LuaDist version constraints functions
-- Peter Drahoš, LuaDist Project, 2010
-- Original Code borrowed from LuaRocks Project
--- Version constraints handling functions.
-- Dependencies are represented in LuaDist through strings with
... | apache-2.0 |
kaen/Zero-K | LuaRules/Gadgets/unit_script.lua | 4 | 24595 | -- Author: Tobi Vollebregt
--[[
Please, think twice before editing this file. Compared to most gadgets, there
are some complex things going on. A good understanding of Lua's coroutines is
required to make nontrivial modifications to this file.
In other words, HERE BE DRAGONS =)
Known issues:
- {Query,AimFrom,Aim,Fi... | gpl-2.0 |
geanux/darkstar | scripts/zones/FeiYin/npcs/Treasure_Chest.lua | 19 | 3069 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Treasure Chest
-- @zone 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/trea... | gpl-3.0 |
h0tw1r3/mame | 3rdparty/genie/tests/base/test_api.lua | 54 | 11362 | --
-- tests/base/test_api.lua
-- Automated test suite for the project API support functions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
T.api = { }
local suite = T.api
local sln
function suite.setup()
sln = solution "MySolution"
end
--
-- premake.getobject() tests
--
function suite... | gpl-2.0 |
geanux/darkstar | scripts/globals/mobskills/Benthic_Typhoon.lua | 25 | 1031 | ---------------------------------------------
-- Benthic Typhoon
--
-- Description: Delivers an area attack that lowers target's defense and magic defense. Damage varies with TP.
-- Type: Physical (Piercing)
--
--
---------------------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/plate_of_tentacle_sushi.lua | 14 | 1878 | -----------------------------------------
-- ID: 5215
-- Item: plate_of_tentacle_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Mind -1
-- Accuracy % 19 (cap 18)
-- Ranged Accuracy % 19 (cap 18)
-- Double Attack 1
--------------------... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/gfx_BloomShader.lua | 6 | 15267 | -- $Id: BloomShader.lua 3171 2008-11-06 09:06:29Z det $
function widget:GetInfo()
return {
name = "BloomShader (v0.31a)",
desc = "Sets Spring In Bloom (do not use with < 7xxx geforce series or non-latest ATI cards!)",
author = "Kloot", --Updated by Shadowfury333
date = "28-5-2008",
license ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Bastok_Markets/npcs/Yafafa.lua | 36 | 1619 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Yafafa
-- Only sells when Bastok controls Kolshushu
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loade... | gpl-3.0 |
vgire/rnn | LinearNoBias.lua | 11 | 1886 | ------------------------------------------------------------------------
--[[ LinearNoBias ]]--
-- Subclass of nn.Linear with no bias term
------------------------------------------------------------------------
nn = require 'nn'
local LinearNoBias, Linear = torch.class('nn.LinearNoBias', 'nn.Linear')
function LinearN... | bsd-3-clause |
geanux/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h4.lua | 17 | 3614 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Great Hall
-- Involved in Missions: 3-3, 5-2, 6-1, 8-2, 9-1
-- @pos 0 -1 13 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
------... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/reishi_mushroom.lua | 35 | 1195 | -----------------------------------------
-- ID: 4449
-- Item: reishi_mushroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -6
-- Mind 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
kaen/Zero-K | LuaUI/utility_two.lua | 17 | 1410 | -- Utility function for ZK
-- Will try to read LUA content from target file and create BACKUP if have a successful read (in user's Spring folder) OR DELETE them if have a failure read
-- This prevent corrupted file from being used.
-- Note: currently only a "table" is considered a valid file
function CheckLUAFileAndBa... | gpl-2.0 |
forward619/luci | libs/luci-lib-json/luasrc/json.lua | 47 | 11035 | -- 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.
local nixio = require "nixio"
local util = require "luci.util"
local table = require "table"
local string = require "string"
local coroutine = ... | apache-2.0 |
geanux/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua | 38 | 1044 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Chemioue
-- Type: NPC Quest
-- @zone: 26
-- @pos 82.041 -34.964 67.636
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----... | gpl-3.0 |
PhearNet/scanner | bin/nmap-openshift/nselib/dns.lua | 3 | 53327 | ---
-- Simple DNS library supporting packet creation, encoding, decoding,
-- and querying.
--
-- The most common interface to this module are the <code>query</code> and
-- <code>reverse</code> functions. <code>query</code> performs a DNS query,
-- and <code>reverse</code> prepares an ip address to have a reverse query
... | mit |
geanux/darkstar | scripts/globals/mobskills/Tebbad_Wing_Air.lua | 25 | 1091 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Tiamat, Smok and Ildebra... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/gui_chili_display_keys.lua | 8 | 8743 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Display Keys",
desc = "Displays the current key combination.",
author = "GoogleFrog",
date ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Al_Zahbi/npcs/Falzuuk.lua | 29 | 2711 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Falzuuk
-- Type: Imperial Gate Guard
-- @pos -60.486 0.999 105.397 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/global... | gpl-3.0 |
shayan-soft/virus | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
geanux/darkstar | scripts/globals/effects/prowess_killer.lua | 34 | 2312 | -----------------------------------
--
-- EFFECT_PROWESS : "Killer" effects bonus
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_VERMIN_KILLER, effect:getPower()... | gpl-3.0 |
mullikine/vlc | share/lua/sd/jamendo.lua | 58 | 6732 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
Rémi Duraffort <ivoire at videolan dot org>
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 So... | gpl-2.0 |
serl/vlc | share/lua/sd/jamendo.lua | 58 | 6732 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
Rémi Duraffort <ivoire at videolan dot org>
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 So... | gpl-2.0 |
sami2448/a | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
sepehrpk/bot1 | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
geanux/darkstar | scripts/zones/Port_Bastok/npcs/_6k9.lua | 34 | 1073 | -----------------------------------
-- Area: Port Bastok
-- NPC: Door: Arrivals Entrance
-- @pos -80 1 -26 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Ba... | gpl-3.0 |
blackops97/SAJJAD.iq | plugins/ar-info.lua | 1 | 10383 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD HUSSIEN ▀▄ ▄▀
▀▄ ▄▀ BY SAJJADHUSSIEN (@sajjad_iq98) ▀▄ ▄▀
▀▄ ▄ JUST WRITED BY SAJJAD HUSSIEN ▀▄ ▄▀
▀▄ ▄▀ I NFO USER : معلوماتي ▀▄ ▄▀ ... | gpl-2.0 |
kaen/Zero-K | scripts/striderhub.lua | 20 | 1377 | include "constants.lua"
include "nanoaim.h.lua"
--pieces
local body = piece "body"
local aim = piece "aim"
local emitnano = piece "emitnano"
--local vars
local smokePiece = { piece "aim", piece "body" }
local nanoPieces = { piece "aim" }
local nanoTurnSpeedHori = 0.5 * math.pi
local nanoTurnSpeedVert = 0.3 * math.pi... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/pipin_hot_popoto.lua | 35 | 1291 | -----------------------------------------
-- ID: 4282
-- Item: pipin_hot_popoto
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP 25
-- Vitality 3
-- HP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
girishramnani/Algorithm-Implementations | Depth_Limited_Search/Lua/Yonaba/dls.lua | 26 | 3110 | -- Generic Depth-Limited search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Depth-limited_search
-- Notes : this is a generic implementation of Depth-Limited 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... | mit |
PhearNet/scanner | bin/nmap-openshift/nselib/tftp.lua | 4 | 9608 | --- Library implementing a minimal TFTP server
--
-- Currently only write-operations are supported so that script can trigger
-- TFTP transfers and receive the files and return them as result.
--
-- The library contains the following classes
-- * <code>Packet</code>
-- ** The <code>Packet</code> classes contain one cla... | mit |
geanux/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia.lua | 35 | 1800 | -----------------------------------------
-- ID: 5193
-- Item: dish_of_spaghetti_nero_di_seppia
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 130)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
-------------... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/luarocks/rocks/luasocket/3.0rc1-2/etc/forward.lua | 43 | 2066 | -- load our favourite library
local dispatch = require("dispatch")
local handler = dispatch.newhandler()
-- make sure the user knows how to invoke us
if #arg < 1 then
print("Usage")
print(" lua forward.lua <iport:ohost:oport> ...")
os.exit(1)
end
-- function to move data from one socket to the other
lo... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/colored_egg.lua | 35 | 1274 | -----------------------------------------
-- ID: 4487
-- Item: colored_egg
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Attack 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
geanux/darkstar | scripts/globals/abilities/drain_samba.lua | 18 | 1464 | -----------------------------------
-- Ability: Drain Samba
-- Inflicts the next target you strike with Drain daze, allowing all those engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 5
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("... | gpl-3.0 |
geanux/darkstar | scripts/zones/Lufaise_Meadows/TextIDs.lua | 7 | 1194 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6383; -- Obtained: <item>.
GIL_OBTAINED = 6384; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6... | gpl-3.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/coxpcall/coxpcall.lua | 4 | 2272 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | apache-2.0 |
tonylauCN/tutorials | lua/debugger/lualibs/coxpcall/coxpcall.lua | 4 | 2272 | -------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... | apache-2.0 |
kaen/Zero-K | lups/ParticleClasses/UnitCloaker.lua | 9 | 8552 | -- $Id: UnitCloaker.lua 3871 2009-01-28 00:09:23Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitCloaker = {}
UnitCloaker._... | gpl-2.0 |
PhearNet/scanner | bin/nmap-openshift/nselib/tls.lua | 4 | 53890 | ---
-- A library providing functions for doing TLS/SSL communications
--
-- These functions will build strings and process buffers. Socket communication
-- is left to the script to implement.
--
-- @author "Daniel Miller <bonsaiviking@gmail.com>"
local stdnse = require "stdnse"
local bin = require "bin"
local math = r... | mit |
dani-sj/capitan01 | 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 |
geanux/darkstar | scripts/zones/Upper_Jeuno/npcs/Paya-Sabya.lua | 17 | 1335 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Paya-Sabya
-- Involved in Mission: Magicite
-- @zone 244
-- @pos 9 1 70
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
geanux/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua | 12 | 3434 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Adamantking Effigy
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/greedie.lua | 18 | 1317 | -----------------------------------------
-- ID: 4500
-- Item: greedie
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/cream_puff.lua | 35 | 1313 | -----------------------------------------
-- ID: 5718
-- Item: Cream Puff
-- Food Effect: 30 mintutes, All Races
-----------------------------------------
-- Intelligence +7
-- HP -10
-- Resist Slow
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Castle_Oztroja/npcs/_m70.lua | 19 | 1199 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m70 (Torch Stand)
-- Involved in Mission: Magicite
-- @pos -97.134 24.250 -105.979 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/key... | gpl-3.0 |
girishramnani/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua | 27 | 1151 | -- Tests for bresenham.lua
local supercover_line = require 'bresenham_based_supercover'
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 ... | mit |
kaen/Zero-K | LuaRules/Gadgets/game_lagmonitor.lua | 4 | 16109 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
bungle/lua-resty-nettle | lib/resty/nettle/streebog.lua | 1 | 2045 | local types = require "resty.nettle.types.common"
local context = require "resty.nettle.types.streebog"
local lib = require "resty.nettle.library"
local ffi = require "ffi"
local ffi_new = ffi.new
local ffi_str = ffi.string
local lower = string.lower
local setmetatable = setmetatable
local hashes = {
streebog256 = {... | bsd-2-clause |
Aarhus-BSS/Aarhus-Research-Rebuilt | lib/luaj-3.0.1/test/lua/vm.lua | 7 | 10643 |
print( '-------- basic vm tests --------' )
print( '-- boolean tests' )
local function booleantests()
t = true
f = false
n = nil
s = "Hello"
z = 0
one = 1
print(t)
print(f)
print(not t)
print(not f)
print(not n)
print(not z)
print(not s)
print(not(not(t)))
print(not(not(z)))
print(not(not(n)))
... | apache-2.0 |
geanux/darkstar | scripts/zones/Waughroon_Shrine/bcnms/on_my_way.lua | 19 | 1883 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 7-2 (Bastok)
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/bunch_of_wild_pamamas.lua | 36 | 2224 | -----------------------------------------
-- ID: 4596
-- Item: Bunch of Wild Pamamas
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Intelligence 1
-- Additional Effect with Opo-Opo Crown
-- HP 50
-- MP 50
-- CHR 14
-- Additional Effect with Kinkobo or
-- Primate Staff
-- D... | gpl-3.0 |
tahashakiba/zz | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
vvtam/vlc | share/lua/modules/dkjson.lua | 95 | 25741 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | gpl-2.0 |
geanux/darkstar | scripts/globals/abilities/building_flourish.lua | 28 | 2817 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your nex... | gpl-3.0 |
geanux/darkstar | scripts/zones/Northern_San_dOria/npcs/Chapal-Afal_WW.lua | 30 | 4774 | -----------------------------------
-- Area: Northern Sand Oria
-- NPC: Chapal-Afal, W.W.
-- @pos -55 -2 31 231
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X St... | gpl-3.0 |
jcjohnson/torch-rnn | LSTM.lua | 13 | 8765 | require 'torch'
require 'nn'
local layer, parent = torch.class('nn.LSTM', 'nn.Module')
--[[
If we add up the sizes of all the tensors for output, gradInput, weights,
gradWeights, and temporary buffers, we get that a SequenceLSTM stores this many
scalar values:
NTD + 6NTH + 8NH + 8H^2 + 8DH + 9H
For N = 100, D = 51... | mit |
olszak94/forgottenserver | data/talkactions/scripts/buyhouse.lua | 16 | 1163 | function onSay(player, words, param)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE)
if housePrice == -1 then
return true
end
if not player:isPremium() then
player:sendCancelMessage("You need a premium account.")
return false
end
local position = player:getPosition()
position:getNextPo... | gpl-2.0 |
forward619/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-users.lua | 146 | 5623 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | apache-2.0 |
geanux/darkstar | scripts/globals/items/serving_of_golden_royale.lua | 36 | 1429 | -----------------------------------------
-- ID: 5558
-- Item: Serving of Golden Royale
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- Intelligence +2
-- HP Recoverd while healing 2
-- MP Recovered while healing 2
---------------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua | 19 | 1200 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: HomePoint#1
-- @pos -63 50 81 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
dani-sj/capitan01 | 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 |
Shayan123456/shayanhallaji | 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 |
mirkix/ardupilot | libraries/AP_Scripting/tests/math.lua | 26 | 25303 | -- $Id: math.lua,v 1.77 2016/06/23 15:17:20 roberto Exp roberto $
--[[
*****************************************************************************
* Copyright (C) 1994-2016 Lua.org, PUC-Rio.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... | gpl-3.0 |
mohammadrezatitan/parsol | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Qulun_Dome/npcs/Magicite.lua | 19 | 1569 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @pos 11 25 -81 148
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua | 29 | 1495 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- @pos -118 -8 -518 104
-- Teleports Players to Jugner Forest [S]
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/chocobo_digging.lua | 46 | 7397 | -- chocobo_digging.lua
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/settings");
-----------------------------------
-- DIG REQUIREMENTS
-----------------------------------
DIGREQ_NONE = 0;
DIGREQ_BURROW = 1;
DIGREQ_BORE = 2;
DIGREQ_MODIFIER = 4;
DIGREQ_NIGHT ... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Port_Bastok/npcs/Silver_Owl.lua | 34 | 1328 | -----------------------------------
-- Area: Port Bastok
-- NPC: Silver Owl
-- Type: Tenshodo Merchant
-- @pos -99.155 4.649 23.292 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/icanheararainbow.lua | 29 | 7834 | -- Functions below used in quest: I Can Hear a Rainbow
require( "scripts/globals/status");
require( "scripts/globals/quests");
require( "scripts/globals/weather");
colorsAvailable = { 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123, 124, 125}; -- Zone IDs
--... | gpl-3.0 |
ynohtna92/SlideNinjaSlide | game/dota_addons/slideninjaslide/scripts/vscripts/abilities.lua | 1 | 33968 | --[[
Abilities
]]
--[[
Leap of Faith
]]
--[[Stop loop sound
Author: chrislotix
Date: 6.1.2015.]]
function LeapOfFaithStopSound ( keys )
local sound_name = "Hero_Chen.TeleportLoop"
local target = keys.target
StopSoundEvent(sound_name, target)
if target.lofdummy ~= nil then
-- StopEffect(target, "particles/un... | mit |
Sonicrich05/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Zauko.lua | 17 | 5107 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zauko
-- Involved in Quests: Save the Clock Tower, Community Service
-- @zone 245
-- @pos -3 0 11
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/abilities/light_arts.lua | 2 | 1315 | -----------------------------------
-- Ability: Light Arts
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
if player:hasS... | gpl-3.0 |
kyroskoh/kong | spec/plugins/logging_spec.lua | 2 | 6605 | local IO = require "kong.tools.io"
local utils = require "kong.tools.utils"
local cjson = require "cjson"
local stringy = require "stringy"
local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local TCP_PORT = spec_helper.fi... | apache-2.0 |
Sonicrich05/FFXI-Server | scripts/globals/items/senroh_skewer.lua | 36 | 1404 | -----------------------------------------
-- ID: 5982
-- Item: Senroh Skewer
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Dexterity 2
-- Vitality 3
-- Mind -1
-- Defense % 25 Cap 150
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
FelixPe/nodemcu-firmware | lua_modules/gossip/gossip.lua | 6 | 7585 | -- Gossip protocol implementation
-- https://github.com/alexandruantochi/
local gossip = {};
local constants = {};
local utils = {};
local network = {};
local state = {};
-- Utils
utils.contains = function(list, element)
for k in pairs(list) do if list[k] == element then return true; end end
return false;
end
ut... | mit |
RavenX8/osIROSE-new | scripts/mobs/ai/hunter_clown.lua | 2 | 1950 | registerNpc(186, {
walk_speed = 170,
run_speed = 700,
scale = 110,
r_weapon = 1042,
l_weapon = 0,
level = 50,
hp = 23,
attack = 228,
hit = 144,
def = 131,
res = 70,
avoid ... | apache-2.0 |
premake/premake-core | tests/base/test_tree.lua | 16 | 4592 | --
-- tests/base/test_tree.lua
-- Automated test suite source code tree handling.
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("base_tree")
local tree = p.tree
--
-- Setup/teardown
--
local tr
function suite.setup()
tr = tree.new()
end
l... | bsd-3-clause |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/bowl_of_jack-o-soup.lua | 3 | 1449 | -----------------------------------------
-- ID: 4522
-- Item: Bowl of Jack-o'-Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 2
-- Agility 3
-- Vitality -1
-- Health Regen While Healing 5
-- Ranged ACC % 8
-- Ranged ACC Cap 25
-----------------------------------------
requ... | gpl-3.0 |
jow-/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
Sonicrich05/FFXI-Server | scripts/globals/mobskills/Randgrith.lua | 19 | 1028 | ---------------------------------------------
-- Randgrith
--
-- Description: Lowers target's evasion.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.