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 |
|---|---|---|---|---|---|
ASHRAF97/ASHRAFKASPER | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | gpl-2.0 |
abosalah22/zak | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | gpl-2.0 |
Inorizushi/DDR-SN1HD | BGAnimations/ScreenPlayerOptionsPopUp underlay/default.lua | 1 | 1481 | return Def.ActorFrame {
Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,1"));
OnCommand=cmd(diffusealpha,0;linear,0.5;diffusealpha,0.5);
OffCommand=cmd(linear,0.5;diffusealpha,0);
};
LoadActor( THEME:GetPathG("ScreenWithMenuElements","header/regular/top"))..{
InitCommand=cmd(x,SCREEN_LEFT;halign,0;... | gpl-3.0 |
scan-bot/scan-bot | plugins/weather.lua | 351 | 1443 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
local b, c, h = http.request(url)
if c ~= 200 then return nil end
local weather = ... | gpl-2.0 |
xboybigcampishere/Full | plugins/id.lua | 31 | 6231 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ยท__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Rattling_Rain_IM.lua | 3 | 2986 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Rattling Rain, I.M.
-- Type: Border Conquest Guards
-- !pos -227.956 -81.475 260.442 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
neofob/sile | lua-libraries/imagesize/format/swf.lua | 9 | 1697 | local MIME_TYPE = "application/x-shockwave-flash"
local function _bytes_to_bits (s)
local bits = ""
for i = 1, s:len() do
local c = s:byte(i)
bits = bits .. (c >= 0x80 and "1" or "0")
.. ((c % 0x80) >= 0x40 and "1" or "0")
.. ((c % 0x40) >= 0x20 ... | mit |
rigeirani/sgyt | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
BooM-amour/bomb | plugins/ingroup.lua | 1 | 57462 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/npcs/Panoquieur_TK.lua | 5 | 2532 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Panoquieur, T.K.
-- !pos -60 0 -31 241
-- 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 Start S... | gpl-3.0 |
dragoonreas/Timeless-Answers | Locales/zhTW.lua | 1 | 1470 | --[[
Traditional Chinese localisation strings for Timeless Answers.
Translation Credits: http://wow.curseforge.com/addons/timeless-answers/localization/translators/
Please update http://www.wowace.com/addons/timeless-answers/localization/zhTW/ for any translation additions or changes.
Once reviewed, the transla... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/mandalic_stab.lua | 5 | 1630 | -----------------------------------
-- Mandalic Stab
-- Dagger weapon skill
-- Skill Level: N/A
-- Damage Varies with TP. Vajra: Aftermath effect varies with TP.
-- Multiplies attack by 1.66
-- Available only after completing the Unlocking a Myth (Thief) quest.
-- Will stack with Sneak Attack.
-- Aligned with the Shado... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/foe_lullaby.lua | 5 | 1274 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/desperate_flourish.lua | 3 | 2943 | -----------------------------------
-- Ability: Desperate Flourish
-- Weighs down a target with a low rate of success. Requires one Finishing Move.
-- Obtained: Dancer Level 30
-- Finishing Moves Used: 1
-- Recast Time: 00:20
-- Duration: ??
-----------------------------------
require("scripts/globals/weaponskills");
r... | gpl-3.0 |
jamiepg1/MCServer | lib/tolua++/src/bin/lua/basic.lua | 2 | 9073 | -- tolua: basic utility functions
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- Last update: Apr 2003
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance... | apache-2.0 |
DarkRing/TeleDarkRing | plugins/gif.lua | 1 | 1657 | 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
local i = math.random(#images)
local image = images[i] -- A random one
if image.images.do... | gpl-2.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Hooks/OnPlayerJoined.lua | 44 | 1244 | return
{
HOOK_PLAYER_JOINED =
{
CalledWhen = "After Login and before Spawned, before being added to world. ",
DefaultFnName = "OnPlayerJoined", -- also used as pagename
Desc = [[
This hook is called whenever a {{cPlayer|player}} has completely logged in. If authentication is
enabled, this function is cal... | apache-2.0 |
bluetomatoes/ExploreTimelines | Code/timelinechooser.lua | 1 | 13705 | display.setStatusBar( display.HiddenStatusBar )
local widget = require "widget"
widget.setTheme( "theme_ios" )
local sbHeight = 0
local tbHeight = 44
local top = sbHeight + tbHeight
local toolbarGradient = graphics.newGradient( {168, 181, 198, 255 }, {139, 157, 180, 255}, "down" )
local divider = display.newLine(320... | mit |
neofob/sile | languages/my.lua | 3 | 3266 | local function charclass(u)
if (u >= 0x1000 and u <= 0x102A) or u == 0x104E or u == 0x25CC or u == 0x2d then return "CI" end
if u == 0x1039 then return "VI" end
if u >= 0x103B and u <= 0x103E then return "ME" end
if u == 0x1031 then return "EV" end
if u == 0x102F or u == 0x1030 then return "LV" end
if u == ... | mit |
imashkan/seedfire | plugins/plugins.lua | 1 | 5936 | 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 |
Igalia/skia | tools/lua/scrape_dashing_full.lua | 159 | 4610 | local canvas -- holds the current canvas (from startcanvas())
--[[
startcanvas() is called at the start of each picture file, passing the
canvas that we will be drawing into, and the name of the file.
Following this call, there will be some number of calls to accumulate(t)
where t is a tabl... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Upper_Jeuno/npcs/Theraisie.lua | 5 | 1601 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Theraisie
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/shop");
function ... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 5 | 1374 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -9 -13 -151 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_... | gpl-3.0 |
dmekersa/create2Dmobilegames | TextAdvanced/main.lua | 1 | 1784 | -- The options table will be used later to store text attributes
local options
-- Create a background rectangle for the title
local titleBackground = display.newRect(
display.contentCenterX,
50,
display.actualContentWidth,
50 )
titleBackground:setFillColor( .2, .2, .4 )
-- Create the label for the title at th... | unlicense |
Ninjistix/darkstar | scripts/globals/mobskills/chains_of_rage.lua | 5 | 1329 | ---------------------------------------------
-- Chains of Rage
--
---------------------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
---------------------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/monstertpmoves");
req... | gpl-3.0 |
hvbommel/domoticz | dzVents/runtime/device-adapters/evohome_device.lua | 2 | 5055 | local TimedCommand = require('TimedCommand')
return {
baseType = 'device',
name = 'Evohome device adapter',
matches = function (device, adapterManager)
local res = (
device.hardwareTypeValue == 39 or
device.hardwareTypeValue == 40 or
device.hardwareTypeValue == 106 or
device.hardwareTypeValue == 75... | gpl-3.0 |
EliasOenal/blobby | data/scripts/old/hyp09.lua | 4 | 9122 | g=0.28
pg=0.88
v0=14.5
v_p=4.5
pj=0.44
r1=31.5
p0=0
p1=0.5
p2=1
h=31.5+19+25
estt=0
nettime=0
touch=0
est=0
p=0.4
esto=10
function yb(y,vy,t)
return y+(vy-g/10)*t-1/2*g*t^2
end
function move(x)
if (posx()<x) and (math.abs(posx()-x)>2.26) then right()
elseif (posx()>x) and (math.abs(posx()-x)>2.26) then left(... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/La_Theine_Plateau/npcs/Coumaine.lua | 3 | 1345 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Coumaine
-- Type: Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
dafei2015/hugular_cstolua | Client/Assets/uLua/Source/LuaJIT/src/jit/dis_mips.lua | 88 | 13222 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | mit |
Ninjistix/darkstar | scripts/zones/Port_San_dOria/npcs/Milva.lua | 5 | 1641 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Milva
-- only sells when San d'Oria has control of Sarutabaruta
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
req... | gpl-3.0 |
kazupon/kyototycoon | lab/docrefine.lua | 11 | 1090 | --
-- refine the documents
--
INDEXFILE = "doc/luadoc/index.html"
MODULEFILE = "doc/luadoc/modules/kyototycoon.html"
CSSFILE = "doc/luadoc/luadoc.css"
TMPFILE = INDEXFILE .. "~"
OVERVIEWFILE = "luaoverview.html"
ofd = io.open(TMPFILE, "wb")
first = true
for line in io.lines(INDEXFILE) do
if first and string.match(... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Ship_bound_for_Mhaura/npcs/Chhaya.lua | 5 | 1024 | -----------------------------------
-- Area: Ship Bound for Mhaura
-- NPC: Chhaya
-- Standard Merchant NPC
-- !pos -1.139 -2.101 -9.000 221
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/foe_requiem_iv.lua | 5 | 1802 | -----------------------------------------
-- Spell: Foe Requiem IV
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end... | gpl-3.0 |
premake/premake-4.x | tests/actions/vstudio/vc200x/debugdir.lua | 57 | 2243 | --
-- tests/actions/vstudio/vc200x/debugdir.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs200x_debugdir = { }
local suite = T.vstudio_vs200x_debugdir
local vc200x = premake.vstudio.vc200x
--
-- Setup
--
local sln, prj... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm2.lua | 5 | 1141 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: qm2 (???)
-- Notes: Used to spawn Bomb Queen
-- !pos 18 20 -104 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ifrits_Cauldron/TextID... | gpl-3.0 |
ogahara/esp8266-devkit | Espressif/examples/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
-- ... | gpl-3.0 |
dan-cleinmark/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 |
chroteus/clay | class/upgrade.lua | 1 | 2362 | Upgrade = Button:subclass "Upgrade"
function Upgrade:initialize(arg)
self.name = tostring(arg.name) or "Undefined name"
self.text = self.name -- text to be displayed on the button
self.desc = tostring(arg.desc) or "Undefined desc"
self.cost = tonumber(arg.cost) or error("No cost defined")
self.upg_func = functi... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Metalworks/npcs/Ferghus.lua | 5 | 1339 | -----------------------------------
-- Area: Metalworks
-- NPC: Ferghus
-- Starts Quest: Too Many Chefs (1,86)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/status")... | gpl-3.0 |
draekko/keys | Build/VSCOKeys.lrplugin/halfway_server/socket/smtp.lua | 142 | 7961 | -----------------------------------------------------------------------------
-- SMTP client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: smtp.lua,v 1.46 2007/03/12 04:08:40 diego Exp $
-----------------------------------------------------------------------------
---------... | gpl-2.0 |
devnulllabs/xmpp.devnulllabs.io | modules/mod_carbons.lua | 1 | 5146 | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:2";
local xmlns_carbons_old = "urn:xmpp:carbons:1";
local xmlns_carbons_real... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/bludgeon.lua | 33 | 1690 | -----------------------------------------
-- Spell: Bludgeon
-- Delivers a threefold attack. Accuracy varies with TP
-- Spell cost: 16 MP
-- Monster Type: Arcana
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: STR+1
-- Level: 18
-- Casting Time: 0.5 seconds
-- Recast Time: 11.75 seconds
-- Skillc... | gpl-3.0 |
amirb8/telepersian | plugins/owners.lua | 194 | 23755 | local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['settings'... | gpl-2.0 |
scan-bot/scan-bot | 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 |
neofob/sile | vendor/luafilesystem/tests/test.lua | 2 | 6099 | #!/usr/bin/env lua5.1
local tmp = "/tmp"
local sep = string.match (package.config, "[^\n]+")
local upper = ".."
local lfs = require"lfs"
print (lfs._VERSION)
io.write(".")
io.flush()
function attrdir (path)
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
... | mit |
neofob/sile | packages/background.lua | 2 | 1697 | SILE.require("packages/color")
local outputBackground = function(color)
local page = SILE.getFrame("page")
local backgroundColor = SILE.colorparser(color)
SILE.outputter:pushColor(backgroundColor)
SILE.outputter.rule(page:left(), page:top(), page:right(), page:bottom())
SILE.outputter:popColor()
end
SILE.re... | mit |
kbullaughey/lstm-play | toys/toy/variable_width_2-4-direct.lua | 1 | 2214 | #!/usr/bin/env th
-- This toy variant is designed to test MemoryChainDirect and so it is
-- simulating a one-to-one sequence problem.
tablex = require 'pl.tablex'
nn = require 'nn'
toy = require './toy'
-- Allow for command-line control over the seed and number of examples.
cmd = torch.CmdLine()
cmd:text()
cmd:text(... | mit |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/npcs/Roberta.lua | 5 | 1933 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Roberta
-- !pos 21 -4 -157 241
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local BlueRibbonBlues = player:get... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Thierride.lua | 5 | 2810 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Thierride
-- @zone 80
-- !pos -124 -2 14
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
-----------------------------------
-- Item 1019 = Lufet Salt
-- Had to us... | gpl-3.0 |
pombredanne/duktape | perf-testcases/test-string-compare.lua | 19 | 1069 | function test()
local a, b, c, d, e, f, g
local ign
local function mk(n)
local res = {}
for i=1,n do table.insert(res, 'x') end
res = table.concat(res)
print(#res)
return res
end
a = mk(0)
b = mk(1)
c = mk(16)
d = mk(256)
e = mk(4096)
f =... | mit |
mohammad25253/persianguard12 | plugins/service_entergroup.lua | 279 | 2147 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = chat_name or ''
chat_id = "chat#id" .. (... | gpl-2.0 |
blackman1380/antispam | plugins/txtsticker.lua | 8 | 1950 | do
local function run(msg, matches)
--Created by @LionTeam
local lionteam = URL.escape(matches[1])
local size = '150'
if matches[2] == 'big' then
size = '400'
elseif matches[2] == 'normal' then
size = '100'
elseif matches[2] == '300' then
size = '300'
els... | gpl-2.0 |
ehrenbrav/FCEUX_Learning_Environment | output/luaScripts/SMB2U.lua | 9 | 6222 | -- Super Mario Bros. 2 USA - Grids & Contents (Unfinished)
-- Super Mario Bros. 2 (U) (PRG0) [!].nes
-- Written by QFox
-- 31 July 2008
-- shows (proper!) grid and contents. disable grid by setting variable to false
-- shows any non-air grid's tile-id
-- Slow! Will be heavy on lighter systems
local angry... | gpl-2.0 |
abosalah22/zak | DevProx/DevProx.lua | 2 | 8671 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./DevProx/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function... | gpl-2.0 |
aqasaeed/hesambot | 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 |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/terrain_warning.lua | 22 | 1780 | -- height above terrain warning script
-- min altitude above terrain, script will warn if lower than this
local terrain_min_alt = 20
-- warning is only enabled further than this distance from home
local home_dist_enable = 25
-- must have climbed at least this distance above terrain since arming to enable warning
loc... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Western_Adoulin/npcs/Dangueubert.lua | 7 | 1338 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dangueubert
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- !pos 5 0 -136 256
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
... | gpl-3.0 |
vovochka404/eiskaltdcpp | data/luascripts/adccommands.lua | 7 | 1061 | --// adccommands.lua: rev005/20080510
--// adccommands.lua: Let you change your nick on ADC hubs
local adccommands = {}
function adccommands.tokenize(text)
local ret = {}
string.gsub(text, "([^ ]+)", function(s) table.insert(ret, s) end )
return ret
end
function adccommands.changeNick(hub, newnick)
l... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/bowl_of_humpty_soup.lua | 3 | 1034 | -----------------------------------------
-- ID: 4521
-- Item: Bowl of Humpty Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 35
-- Magic 5
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
Ninjistix/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 |
Ninjistix/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Mandragora_Warden.lua | 5 | 1727 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: Mandragora Warden
-- Type: Mission NPC
-- !pos 81.981 7.593 139.556 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
function onTrade(player,npc,trade)
local... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Titus.lua | 3 | 1395 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Titus
-- Alchemy Synthesis Image Support
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
require(... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/porcupine_pie.lua | 3 | 1702 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- HP recovered while healing 2
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/regen_ii.lua | 5 | 1480 | -----------------------------------------
-- Spell: Regen II
-- Gradually restores target's HP.
-----------------------------------------
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status")... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/magic_fruit.lua | 7 | 1612 | -----------------------------------------
-- Spell: Magic Fruit
-- Restores HP for the target party member
-- Spell cost: 72 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1 HP+5
-- Level: 58
-- Casting Time: 3.5 seconds
-- Recast Time: 6 seconds
--
-- Combos: Resis... | gpl-3.0 |
codedash64/Urho3D | bin/Data/LuaScripts/15_Navigation.lua | 8 | 22136 | -- Navigation example.
-- This sample demonstrates:
-- - Generating a navigation mesh into the scene
-- - Performing path queries to the navigation mesh
-- - Rebuilding the navigation mesh partially when adding or removing objects
-- - Visualizing custom debug geometry
-- - Raycasting drawable... | mit |
Ninjistix/darkstar | scripts/globals/items/bowl_of_miso_ramen+1.lua | 3 | 1571 | -----------------------------------------
-- ID: 6461
-- Item: bowl_of_miso_ramen_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +105
-- STR +6
-- VIT +6
-- DEF +11% (cap 175)
-- Magic Evasion +11% (cap 55)
-- Magic Def. Bonus +6
-- Resist Slow +15
----------------------------------... | gpl-3.0 |
Xagul/forgottenserver | data/migrations/13.lua | 58 | 2963 | function onUpdateDatabase()
print("> Updating database to version 14 (account_bans, ip_bans and player_bans)")
db.query("CREATE TABLE IF NOT EXISTS `account_bans` (`account_id` int(11) NOT NULL, `reason` varchar(255) NOT NULL, `banned_at` bigint(20) NOT NULL, `expires_at` bigint(20) NOT NULL, `banned_by` int(11) NOT... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/slice_of_diatryma_meat.lua | 3 | 1199 | -----------------------------------------
-- ID: 5290
-- Item: Slice of Diatryma Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +3
-- Intelligence -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
dragoonreas/Timeless-Answers | Locales/zhCN.lua | 1 | 1468 | --[[
Simplified Chinese localisation strings for Timeless Answers.
Translation Credits: http://wow.curseforge.com/addons/timeless-answers/localization/translators/
Please update http://www.wowace.com/addons/timeless-answers/localization/zhCN/ for any translation additions or changes.
Once reviewed, the translat... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/exuviation.lua | 7 | 1674 | -----------------------------------------
-- Spell: Exuviation
-- Restores HP and removes one detrimental magic effect
-- Spell cost: 40 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 4
-- Stat Bonus: HP+5 MP+5 CHR+1
-- Level: 75
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
--
-... | gpl-3.0 |
dafei2015/hugular_cstolua | Client/Assets/uLua/Source/LuaJIT/dynasm/dasm_arm.lua | 120 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
Ninjistix/darkstar | scripts/globals/mobskills/sable_breath.lua | 35 | 1160 | ---------------------------------------------
-- Sable Breath
--
-- Description: Deals darkness damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Vrtra and Azdaja
---------------------------------------------
require... | gpl-3.0 |
chroteus/clay | states/fighterScr.lua | 1 | 1482 | -- not to be confused with "fightersScr", which is plural "fighters"
fighterScr = {}
function fighterScr.set(fighter)
fighterScr.fighter = fighter
end
function fighterScr:enter()
if fighterScr.fighter == nil then
error("Set fighter to display with fighterScr.set")
end
end
function fighterScr:up... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Port_San_dOria/npcs/Albinie.lua | 5 | 1113 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Albinie
-- Standard Merchant NPC
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_San_dO... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/mistral_axe.lua | 25 | 1597 | -----------------------------------
-- Mistral Axe
-- Axe weapon skill
-- Skill level: 225 (Beastmasters and Warriors only.)
-- Delivers a single-hit ranged attack at a maximum distance of 15.7'. Damage varies with TP.
-- Despite being able to be used from a distance it is considered a melee attack and can be stacked w... | gpl-3.0 |
DEVll190ll/DEV_HR | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
ASHRAF97/ASHRAFKASPER | plugins/banhammer.lua | 8 | 14076 | --[[
โโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ โโ โโ โโ
โโ โโ BY MOHAMMED HISHAM โโ โโ
โโ โโ BY MOHAMMEDHISHAM (@TH3BOSS) โโ โโ
โโ โโ JUST WRITED BY MOHAMMED HISHA โโ โโ
โโ โโ ban hammer : ุงูุทุฑุฏ ูุงูุญุธุฑ โโ โโ
โโโโ... | gpl-2.0 |
anonbyte/pvpgn | lua/handle_command.lua | 1 | 1976 | --[[
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.
]]--
-- List of available lua commands
-- (To create a new command - create a new file in directory "commands")
local lua_command_table = {
[1] = {
["/w... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/Zone.lua | 5 | 2806 | -----------------------------------
--
-- Zone: Windurst_Waters (238)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Waters/TextIDs");
require("scripts/globals/events/harvest_festivals");
require("... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/slice_of_karakul_meat.lua | 3 | 1198 | -----------------------------------------
-- ID: 5571
-- Item: Slice of Karakul Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +2
-- Intelligence -4
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
wounds1/zaza2 | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/bowl_of_zoni_broth.lua | 3 | 1828 | -----------------------------------------
-- ID: 5618
-- Item: bowl_of_zoni_broth
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 10
-- MP 10
-- Strength 1
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- Accuracy +1
-- Ranged Accuracy +1
-- Attack +1
-- Ranged Attack +1
-- Evasion +1
-- HP ... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Sacrarium/npcs/Treasure_Chest.lua | 5 | 2566 | -----------------------------------
-- Area: Sacrarium
-- NPC: Treasure Chest
-- @zone 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Sac... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Western_Adoulin/TextIDs.lua | 3 | 3039 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the <item>. Come back after sorting your inventory.
ITEM_CANNOT_BE_OBTAINED_2 = 6380; -- You cannot obtain the #. Come back after sorting your inventory.
ITEM_CANNOT_BE_OBTAINED_3 = 6380; -- You cannot obta... | gpl-3.0 |
THEGENRRAL/GENERAL | plugins/wlc.lua | 2 | 3047 | --[[ ูุชุงุจู ุงูู
ุทูุฑ :- -- ุชู
ุงูุชุนุฏูู ู ุงูุชุนุฑูุจ ุจูุงุณุทู @KNSLTHM
--[[
Dev @KNSLTHM
Dev @NAHAR2_BOT
CH > @NENO_CH
--]]
do
local function run(msg, matches, callback, extra)
local data = load_data(_config.mode... | gpl-3.0 |
amir1213/tamir | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
garlick/flux-sched | rdl/RDL/uuid.lua | 5 | 7861 | ---------------------------------------------------------------------------------------
-- Copyright 2012 Rackspace (original), 2013 Thijs Schreijer (modifications)
--
-- 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... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Western_Altepa_Desert/npcs/relic.lua | 5 | 1567 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: <this space intentionally left blank>
-- !pos -152 -16 20 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_Des... | gpl-3.0 |
jamiepg1/MCServer | MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua | 8 | 2855 | return
{
HOOK_CHUNK_GENERATED =
{
CalledWhen = "After a chunk was generated. Notification only.",
DefaultFnName = "OnChunkGenerated", -- also used as pagename
Desc = [[
This hook is called when world generator finished its work on a chunk. The chunk data has already
been generated and is about to be stor... | apache-2.0 |
dragoonreas/Timeless-Answers | Locales/ruRU.lua | 1 | 1446 | --[[
Russian localisation strings for Timeless Answers.
Translation Credits: http://wow.curseforge.com/addons/timeless-answers/localization/translators/
Please update http://www.wowace.com/addons/timeless-answers/localization/ruRU/ for any translation additions or changes.
Once reviewed, the translations will b... | gpl-3.0 |
carnalis/Urho3D | bin/Data/LuaScripts/10_RenderToTexture.lua | 24 | 10107 | -- Render to texture example
-- This sample demonstrates:
-- - Creating two 3D scenes and rendering the other into a texture
-- - Creating rendertarget textures and materials programmatically
require "LuaScripts/Utilities/Sample"
local rttScene_ = nil
local rttCameraNode = nil
function Start()
... | mit |
Ninjistix/darkstar | scripts/globals/spells/phalanx.lua | 5 | 1169 | -----------------------------------------
-- Spell: PHALANX
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
fu... | gpl-3.0 |
garlick/flux-sched | rdl/RDL.lua | 2 | 6082 | --/***************************************************************************\
-- Copyright (c) 2014 Lawrence Livermore National Security, LLC. Produced at
-- the Lawrence Livermore National Laboratory (cf, AUTHORS, DISCLAIMER.LLNS).
-- LLNL-CODE-658032 All rights reserved.
--
-- This file is part of the Flux res... | gpl-2.0 |
carnalis/Urho3D | bin/Data/LuaScripts/23_Water.lua | 11 | 9914 | -- Water example.
-- This sample demonstrates:
-- - Creating a large plane to represent a water body for rendering
-- - Setting up a second camera to render reflections on the water surface
require "LuaScripts/Utilities/Sample"
local reflectionCameraNode = nil
local waterNode = nil
local waterPlane = Plane()
... | mit |
Igalia/skia | tools/lua/dump_clipstack_at_restore.lua | 147 | 1096 | function sk_scrape_startcanvas(c, fileName)
canvas = c
clipstack = {}
restoreCount = 0
end
function sk_scrape_endcanvas(c, fileName)
canvas = nil
end
function sk_scrape_accumulate(t)
if (t.verb == "restore") then
restoreCount = restoreCount + 1;
-- io.write("Clip Stack at restore #... | bsd-3-clause |
Ninjistix/darkstar | scripts/commands/npchere.lua | 8 | 1607 | ---------------------------------------------------------------------------------------------------
-- func: npchere <npcId>
-- desc: Spawns an NPC and then moves it to the current position, if in same zone.
-- Errors will despawn the NPC unless "noDepop" was specified (any value works).
-------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Lower_Jeuno/npcs/Mataligeat.lua | 7 | 1466 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Mataligeat
-- Standard Info NPC
-- !pos -24 0 -60 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/tachi_goten.lua | 25 | 1476 | -- ---------------------------------
-- Tachi Goten
-- Great Katana weapon skill
-- Skill Level: 70
-- Deals lightning elemental damage to enemy. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget / Thunder Gorget.
-- Aligned with the Light Belt / Thunder Belt.
-- Element: Thunder... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/coffeecake_muffin_+1.lua | 3 | 1108 | -----------------------------------------
-- ID: 5656
-- Item: coffeecake_muffin_+1
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- Mind 2
-- Strength -1
-- MP % 10 (cap 90)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.