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 |
|---|---|---|---|---|---|
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 12 | 1309 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: mactodevinfo.lua 5448 2009-10-31... | gpl-2.0 |
jshackley/darkstar | scripts/globals/abilities/altruism.lua | 28 | 1176 | -----------------------------------
-- Ability: Altruism
-- Increases the accuracy of your next White Magic spell.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Ch... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Wajaom_Woodlands/npcs/qm3.lua | 30 | 1356 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Gotoh Zha the Redolent(ZNM T3))
-- @pos -337 -31 676 51
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextID... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pogigi.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pogigi
-- Type: Sealed Container
-- @zone: 94
-- @pos -29.787 -4.499 42.603
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
birkett/MCServer | Server/Plugins/APIDump/Hooks/OnExecuteCommand.lua | 36 | 2087 | return
{
HOOK_EXECUTE_COMMAND =
{
CalledWhen = [[
A player executes an in-game command, or the admin issues a console command. Note that built-in
console commands are exempt to this hook - they are always performed and the hook is not called.
]],
DefaultFnName = "OnExecuteCommand", -- also used as pagena... | apache-2.0 |
LiberatorUSA/GUCEF | tools/CMakeListGenerator/premake4.lua | 1 | 2631 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Bastok_Markets/npcs/Ulrike.lua | 53 | 1816 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Ulrike
-- Type: Goldsmithing Synthesis Image Support
-- @pos -218.399 -7.824 -56.203 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/st... | gpl-3.0 |
Keithenneu/Dota2-FullOverwrite | global_game_state.lua | 1 | 18732 | _G._savedEnv = getfenv()
module( "global_game_state", package.seeall )
require( GetScriptDirectory().."/buildings_status" )
require( GetScriptDirectory().."/debugging" )
local gHero = require( GetScriptDirectory().."/global_hero_data" )
local utils = require( GetScriptDirectory().."/utility" )
local enemyData = requir... | gpl-3.0 |
LiberatorUSA/GUCEF | dependencies/cegui/cegui/src/ScriptModules/Lua/support/tolua++bin/lua/typedef.lua | 15 | 1694 | -- tolua: typedef class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $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, support, updates,
-- enhancements, ... | apache-2.0 |
jshackley/darkstar | scripts/globals/items/serving_of_salmon_eggs.lua | 35 | 1340 | -----------------------------------------
-- ID: 5217
-- Item: serving_of_salmon_eggs
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-- Dexterity 2
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Mhaura/npcs/Explorer_Moogle.lua | 17 | 1783 | -----------------------------------
-- Area: Mhaura
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/tele... | gpl-3.0 |
botmohammad12344888/bot-888338888 | plugins/dic.lua | 2 | 1530 | do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local params = {
client = "t",
ie = "UTF-8",
oe = "UTF-8",
hl = "en",
dt = "t",
tl = target_lang or "en",
sl = source_lang or "auto",
... | gpl-2.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotarySpring.lua | 6 | 1379 |
--------------------------------
-- @module PhysicsJointRotarySpring
-- @extend PhysicsJoint
--------------------------------
-- @function [parent=#PhysicsJointRotarySpring] getDamping
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#Phys... | mit |
kodewulf/GenesisEngine | classes/cConsole.lua | 1 | 4116 | local B = require('cClass')
local C = B:extends()
C._NAME = 'Console'
C._ID = 'console'
C.__name = C._ID
-- CONSOLE._SIMULATOR = ("simulator" == system.getInfo("environment")) or false -- Only run in simulator
local function consoleParamCheck(paramCheck)
if (not paramCheck) then return end
local params = pa... | mit |
jshackley/darkstar | scripts/zones/Nashmau/npcs/Jajaroon.lua | 34 | 1593 | -----------------------------------
-- Area: Nashmau
-- NPC: Jajaroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Xarcabard/npcs/Kaya_IM.lua | 30 | 3036 | -----------------------------------
-- Area: Xarcabard
-- NPC: Kaya, I.M.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require(... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/homemade_rice_ball.lua | 35 | 1129 | -----------------------------------------
-- ID: 5224
-- Item: homemade_rice_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Upper_Delkfutts_Tower/mobs/Autarch.lua | 8 | 1583 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NM: Autarch
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
jshackley/darkstar | scripts/zones/North_Gustaberg/npcs/relic.lua | 38 | 1851 | -----------------------------------
-- Area: North Gustaberg
-- NPC: <this space intentionally left blank>
-- @pos -217 97 461 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/North_Gustaberg/TextIDs");
-... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/garpike.lua | 18 | 1256 | -----------------------------------------
-- ID: 5472
-- Item: Garpike
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Cloister_of_Flames/bcnms/trial_by_fire.lua | 19 | 1773 | -----------------------------------
-- Area: Cloister of Flames
-- BCNM: Trial by Fire
-- @pos -721 0 -598 207
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Port_San_dOria/npcs/Bonarpant.lua | 36 | 1375 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Bonarpant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Tex... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/tortilla_bueno.lua | 35 | 1193 | -----------------------------------------
-- ID: 5181
-- Item: tortilla_bueno
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 8
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
kjmac123/metabuilder | metabuilder/metabuilder.lua | 1 | 1244 | solution "metabuilder"
import "solution_windows.lua"
target "metabuilder"
target_type "app"
target_subsystem "console"
--build against Lua library
depends("lua", "../external/lua-5.2.2/metabuilder.lua")
defines
{
}
includedirs
{
"src",
"../external/dlmalloc-2.8.6",
"../external/e... | mit |
LiberatorUSA/GUCEF | platform/gucefMATH/premake4.lua | 1 | 2240 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of thi... | apache-2.0 |
jshackley/darkstar | scripts/zones/Attohwa_Chasm/mobs/Sargas.lua | 1 | 2177 | -----------------------------------
-- Area: Attohwa Chasm
-- NM: Sargas
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)... | gpl-3.0 |
DarkRainX/ufoai | base/ufos/ui/market.components.lua | 2 | 5256 | --!usr/bin/lua
require("ufox.lua")
-- Market category label
do
local MarketCategory = ufox.build_component({
name = "MarketCategory",
class = "panel",
size = {713, 28},
backgroundcolor = {0.56, 0.81, 0.76, 0.3},
on_mouseenter = function (sender)
sender:set_backgroundcolor(0.56, 0.81, 0.76, 0.4)
end,
... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Dynamis-Tavnazia/npcs/qm1.lua | 19 | 2211 | -----------------------------------
-- Area: Dynamis-Tavnazia
-- NPC: ???
-- @pos
-----------------------------------
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
---------... | gpl-3.0 |
HugoBDesigner/love.gradient | gradient.lua | 1 | 3645 | love.gradient = {}
love.gradient.types = {"linear", "radial", "angle", "rhombus", "square"}
love.gradient.images = {}
for _, v in ipairs(love.gradient.types) do
local img = love.image.newImageData(512, 512)
for x = 0, img:getWidth()-1 do
for y = 0, img:getHeight()-1 do
local r, g, b, a = 1, 1, 1, 0
if v == ... | unlicense |
anonymous12212020/mahdi0000 | plugins/anti_fosh.lua | 49 | 1591 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['antifosh'] then
lock_fos... | gpl-2.0 |
LiberatorUSA/GUCEF | plugins/GUI/guidriverCEGUI/premake5.lua | 1 | 5615 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Vunkerl_Inlet_[S]/npcs/Leadavox.lua | 31 | 1758 | -----------------------------------
-- Area: Vunkerl Inlet (S) (I-6)
-- NPC: Leadavox
-- Involved in Quests
-- @pos 206 -32 316
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
requir... | gpl-3.0 |
JoMiro/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Terestian.lua | 30 | 1165 | function Terestian_Shadow_Bolt(Unit, event, miscunit, misc)
print "Terestian Shadow Bolt"
Unit:FullCastSpellOnTarget(36868,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "I like shadow...")
end
function Terestian_Sacrifice(Unit, event, miscunit, misc)
print "Terestian Sacrifice"
Unit:FullCastSpellOnTarget(3... | agpl-3.0 |
lpiob/MTA-TokyoRPG | gamemode/RL_VEHICLE/vpanel_c.lua | 1 | 3614 | function convertNumber ( number )
local formatted = number
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
if ( k==0 ) then
break
end
end
return formatted
end
local sw, sh = guiGetScreenSize()
... | gpl-2.0 |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua | 10 | 3325 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: openvpn-ba... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_ir9.lua | 17 | 1491 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir9 (Iron Gate)
-- @pos 70 -1.5 140 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones... | gpl-3.0 |
gheinrich/lua-pb | pb/proto/scanner.lua | 4 | 4555 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-... | mit |
jshackley/darkstar | scripts/zones/Bastok_Markets/npcs/Peritrage.lua | 36 | 1558 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Peritrage
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
requir... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s7.lua | 17 | 1273 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -259 0 745 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cave... | gpl-3.0 |
birkett/MCServer | Server/Plugins/APIDump/Hooks/OnPlayerPlacedBlock.lua | 36 | 1637 | return
{
HOOK_PLAYER_PLACED_BLOCK =
{
CalledWhen = "After a player has placed a block. Notification only.",
DefaultFnName = "OnPlayerPlacedBlock", -- also used as pagename
Desc = [[
This hook is called after a {{cPlayer|player}} has placed a block in the {{cWorld|world}}. The block
is already added to th... | apache-2.0 |
jshackley/darkstar | scripts/zones/Chateau_dOraguille/npcs/Nachou.lua | 38 | 1046 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Nachou
-- Type: Standard NPC
-- @zone: 233
-- @pos -39.965 -3.999 34.292
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
---... | gpl-3.0 |
jshackley/darkstar | scripts/zones/RaKaznar_Inner_Court/npcs/HomePoint#1.lua | 4 | 1202 | -----------------------------------
-- Area: RaKaznar_Inner_Court
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/RaKaznar_Inner_Court/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RaKaznar_Inner_Court/TextIDs");
require("scripts/globals/h... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s5.lua | 17 | 1275 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -779 0 -454 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cav... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Port_Bastok/npcs/Raifa.lua | 38 | 1026 | -----------------------------------
-- Area: Port Bastok
-- NPC: Raifa
-- Type: Quest Giver
-- @zone: 236
-- @pos -166.416 -8.48 7.153
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Woods/npcs/Anillah.lua | 53 | 1829 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Anillah
-- Type: Clothcraft Image Support
-- @pos -34.800 -2.25 -119.950 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/runes/handlers.lua | 3 | 3652 | -- Use handlers for runes
-- Every handler must receive as arguments the default callback arguments and
-- as first argument the power level of the rune as a string which can be :
-- `minor` : Low level
-- `medium` : Medium level
-- `major` : High level
-- First, the functions
projection = function(runelevel, ... | unlicense |
jshackley/darkstar | scripts/zones/QuBia_Arena/mobs/Vangknok_of_Clan_Death.lua | 8 | 2652 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobFight
-----------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/tachi_hobaku.lua | 18 | 1659 | -----------------------------------
-- Tachi Hobaku
-- Great Katana weapon skill
-- Skill Level: 30
-- Stuns enemy. Chance of stun varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget.
-- Aligned with the Snow Belt.
-- Element: None
-- Modifiers: STR:60%
-- 100%TP 200%TP 300%... | gpl-3.0 |
JoMiro/arcemu | src/scripts/lua/LuaBridge/0Misc/0LCF_Includes/LCF_Extra.lua | 13 | 5292 | --[[
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2010 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Softwa... | agpl-3.0 |
jshackley/darkstar | scripts/zones/Metalworks/npcs/Moyoyo.lua | 38 | 1034 | -----------------------------------
-- Area: Metalworks
-- NPC: Moyoyo
-- Type: Standard NPC
-- @zone: 237
-- @pos 19.508 -17 26.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/M... | gpl-3.0 |
SpRoXx/GTW-RPG | [resources]/GTWcivilians/civ_c.lua | 1 | 13709 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
jshackley/darkstar | scripts/globals/items/berry_snowcone.lua | 39 | 1200 | -----------------------------------------
-- ID: 5710
-- Item: Berry Snowcone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 30 Cap 30
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Abdhaljs_Isle-Purgonorgo/Zone.lua | 34 | 1365 | -----------------------------------
--
-- Zone: Abdhaljs_Isle-Purgonorgo
--
-----------------------------------
package.loaded["scripts/zones/Abdhaljs_Isle-Purgonorgo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Abdhaljs_Isle-Purgonorgo/TextI... | gpl-3.0 |
asmagill/hs._asm.luathread | luaskin/modules/timer/init.lua | 9 | 14969 | --- === hs.timer ===
---
--- Execute functions with various timing rules
local module = require("hs.timer.internal")
local log=require'hs.logger'.new('timer',3)
module.setLogLevel=log.setLogLevel
local type,ipairs,tonumber,floor,date=type,ipairs,tonumber,math.floor,os.date
-- private variables and methods -----------... | mit |
tridge/ardupilot | libraries/AP_Scripting/examples/rgb_notify_patterns.lua | 19 | 1396 | -- This script is a test of led override
local count = 0
local num_leds = 16
-- constrain a value between limits
function constrain(v, vmin, vmax)
if v < vmin then
v = vmin
end
if v > vmax then
v = vmax
end
return v
end
--[[
Table of colors on a rainbow, red first
--]]
local rainbow = {
{ 255, ... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Waters/npcs/Panna-Donna.lua | 38 | 1038 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Panna-Donna
-- Type: Mission NPC
-- @zone: 238
-- @pos -57.502 -6 229.571
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/trilobite.lua | 18 | 1338 | -----------------------------------------
-- ID: 4317
-- Item: Trilobite
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense +16%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Selbina/npcs/Quelpia.lua | 33 | 1707 | -----------------------------------
-- 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 |
jshackley/darkstar | scripts/zones/Kazham-Jeuno_Airship/TextIDs.lua | 22 | 1072 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua | 29 | 4503 | -----------------------------------
-- Area: Periqia
-- NPC: Excaliace
-----------------------------------
require("scripts/zones/Periqia/IDs");
require("scripts/globals/pathfind");
local start = {-322,-16.5,380};
local startToChoice1 = {
-320.349548, -16.046591, 379.684570
-318.312317, -16.046591, 379.5798... | gpl-3.0 |
jshackley/darkstar | scripts/globals/mobskills/Antimatter.lua | 1 | 1134 | ---------------------------------------------------
-- Antimatter
--
-- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi.
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/g... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Kazham/npcs/Tsahbi_Ifalombo.lua | 15 | 1099 | -----------------------------------
-- Area: Kazham
-- NPC: Tsahbi Ifalombo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-------------------------... | gpl-3.0 |
Guard13007/Particle | src/Generate.lua | 1 | 1851 | require "Particle"
function Generate()
if world then world:destroy() end
world = love.physics.newWorld(0, 0, true)
require "physCallbacks"
world:setCallbacks(beginContact, endContact, preSolve, postSolve)
--particles = {}
if particles then
for i=1,#particles do
--particles[i].delete()
for k,_ in pairs(p... | gpl-2.0 |
Shrike78/Shilke2D | Shilke2D/Tween/TweenParallel.lua | 1 | 1424 | --[[---
A TweenParallel is a group of tween executed simultaneously.
@usage
p = Tween.parallel(t1,t2,t3)
where t1,t2,t3 are different tweens
--]]
local TweenParallel = class(Tween)
Tween.parallel = TweenParallel
---Constructor
--@param ... list of tweens to be parallelized
function TweenParallel:init(...)
Tween.i... | mit |
Ombridride/minetest-minetestforfun-server | mods/mobs/bee.lua | 7 | 4309 |
-- Bee by KrupnoPavel
mobs:register_mob("mobs:bee", {
-- animal, monster, npc, barbarian
type = "animal",
-- it is aggressive
passive = true,
-- health & armor
hp_min = 1,
hp_max = 2,
armor = 200,
-- textures and model
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
visual = "mesh",
mesh = "mobs_bee.x"... | unlicense |
jshackley/darkstar | scripts/globals/abilities/steal.lua | 18 | 3294 | -----------------------------------
-- Ability: Steal
-- Steal items from enemy.
-- Obtained: Thief Level 5
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-- these are the quadavs that the thf af1 item ca... | gpl-3.0 |
asmagill/hs._asm.luathread | luaskin/modules/styledtext/init.lua | 10 | 31621 | --- === hs.styledtext ===
---
--- This module adds support for controlling the style of the text in Hammerspoon.
---
--- More detailed documentation is being worked on and will be provided in the Hammerspoon Wiki at https://github.com/Hammerspoon/hammerspoon/wiki. The documentation here is a condensed version provided... | mit |
jshackley/darkstar | scripts/globals/abilities/pets/healing_breath_ii.lua | 18 | 1467 | ---------------------------------------------------
-- Healing Breath II
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbil... | gpl-3.0 |
sugiartocokrowibowo/Algorithm-Implementations | Catalan_Numbers/Lua/Yonaba/catalan_test.lua | 26 | 2016 | -- Tests for catalan.lua
local catalan = require 'catalan'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local... | mit |
LiberatorUSA/GUCEF | projects/premake5/targets/GUCEF_exe_UdpViaTcp/premake5.lua | 1 | 1113 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/globals/items/bowl_of_brain_stew.lua | 35 | 1482 | -----------------------------------------
-- ID: 4542
-- Item: Bowl of Brain Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 5
-- Intelligence 5
-- Mind 5
-- Health Regen While Healing 3
-- Magic Regen While Healing 3
-----------------------------------------
r... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Southern_San_dOria/npcs/Thadiene.lua | 34 | 1983 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Thadiene
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sho... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Konschtat_Highlands/npcs/qm2.lua | 19 | 1423 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: qm2 (???)
-- Involved in Quest: Forge Your Destiny
-- @pos -709 2 102 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests"... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Bastok_Mines/npcs/Titus.lua | 56 | 1742 | -----------------------------------
-- 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 |
lpiob/MTA-TokyoRPG | gamemode/RL_VEHICLES_SHOP/vehicles_s.lua | 1 | 7304 | function isPlayerInACL ( player, acl )
local account = getPlayerAccount ( player )
if ( isGuestAccount ( account ) ) then
return false
end
return isObjectInACLGroup ( "user."..getAccountName ( account ), aclGetGroup ( acl ) )
end
function give(playerSource,pcar,car,cost,km)
i... | gpl-2.0 |
wfxiang08/thrift | lib/lua/Thrift.lua | 74 | 6739 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
timse/thrift | lib/lua/Thrift.lua | 74 | 6739 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Ombridride/minetest-minetestforfun-server | mods/mobs/mff_menu.lua | 7 | 1637 | --Menu mobs spawner
mobs.shown_spawner_menu = function(player_name)
local formspec = {"size[8,9]label[2.7,0;Mobs Spawner]"}
if mobs["spawning_mobs"] ~= nil then
local Y = 1
local X = 1
for name, etat in pairs(mobs["spawning_mobs"]) do
table.insert(formspec, "item_image_button["..X..","..Y..";1,1;"..name..";"... | unlicense |
PUMpITapp/getsmart | src/newProfile.lua | 1 | 5079 | --- NewProfile
--
-- The new profile function for the app GetSmart
--
require "runState"
--- Checks if the file was called from a test file.
-- @return True or false depending on testing file
function checkTestMode()
--[[runFile = debug.getinfo(2, "S").source:sub(2,3)
if (runFile ~= './' ) then
underGoingTest ... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Mhaura/npcs/Felisa.lua | 17 | 1201 | -----------------------------------
-- Area: Mhaura
-- NPC: Felisa
-- Admits players to the dock in Mhaura.
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
-----------------------------------
-- onT... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Southern_San_dOria/npcs/Aubejart.lua | 14 | 1489 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aubejart
-- General Info NPC
-- @zone 230
-- @pos 3 -2 46
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextI... | gpl-3.0 |
ld-test/haricot | haricot.lua | 2 | 10748 | -- NOTES:
-- `job` format: {id=...,data=...}
--- low level
local default_cfg = function()
return {
max_job_size = 2^16,
}
end
local is_posint = function(x)
return ( (type(x) == "number") and (math.floor(x) == x) and (x >= 0) )
end
local hyphen = string.byte("-")
local valid_name = function(x)
local n = ... | mit |
pnorman/ClearTables | test-util.lua | 2 | 3153 | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015-2016 Paul Norman, MIT license
]]--
require ("util")
print("util.lua tests")
-- deepcompare is used in other tests, so test it first
print("TESTING: deepcompare")
local t1={}
assert(deepcompare(t1, t1), "test failed: ... | mit |
lichtl/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Misseulieu.lua | 17 | 1569 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Misseulieu
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
----------------------... | gpl-3.0 |
rydnr/radare2 | libr/lang/p/radare.lua | 5 | 16275 | --
-- radare lua api
--
-- 2008 pancake <youterm.com>
-- ========== --
-- --
-- Namespaces --
-- --
-- ========== --
Radare = {}
Radare.Analyze = {}
Radare.Print = {}
Radare.Search = {}
Radare.Config = {}
Radare.Code = {}
Radare.Hash = {}
Radare.Debugger = {}
Radar... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Port_Bastok/npcs/Synergy_Engineer.lua | 14 | 1051 | -----------------------------------
-- Area: Port Bastok
-- NPC: Synergy Engineer
-- Type: Standard NPC
-- @zone 236
-- @pos 37.700 -0.3 -50.500
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-------------... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Northern_San_dOria/npcs/Pirvidiauce.lua | 11 | 1367 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pirvidiauce
-- Conquest depending medicine seller
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/mobskills/soothing_aroma.lua | 12 | 1036 | ---------------------------------------------
-- Soothing Aroma
-- Family: Rafflesia
-- Description: Charms nearby players.
-- Type:
-- Utsusemi/Blink absorb:
-- Range:
-- Notes:
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Norg/npcs/Paito-Maito.lua | 15 | 2550 | -----------------------------------
-- Area: Norg
-- NPC: Paito-Maito
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-71.189713, -9.413510, 74.024879,
-71.674171, -9.317029, 73.054794,
-72.516525, -9.298064, 72.363213,
-73.432983, -9.220915, 71.773857,
-74... | gpl-3.0 |
lichtl/darkstar | scripts/globals/spells/bluemagic/eyes_on_me.lua | 31 | 1587 | -----------------------------------------
-- Spell: Eyes On Me
-- Deals dark damage to an enemy
-- Spell cost: 112 MP
-- Monster Type: Demons
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: HP-5, MP+15
-- Level: 61
-- Casting Time: 4.5 seconds
-- Recast Time: 29.25 seconds
-- Magic Bursts on: Compr... | gpl-3.0 |
cracker1375/mr-Error | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
RunAwayDSP/darkstar | scripts/commands/addweaponskillpoints.lua | 14 | 1753 | ---------------------------------------------------------------------------------------------------
-- func: addWeaponSkillPoints <slot> <points> {player}
-- desc: Adds weapon skill points to an equipped item.
---------------------------------------------------------------------------------------------------
require("s... | gpl-3.0 |
lichtl/darkstar | scripts/globals/spells/absorb-agi.lua | 17 | 1366 | --------------------------------------
-- Spell: Absorb-AGI
-- Steals an enemy's agility.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------... | gpl-3.0 |
ld-test/lluv | test/test-fs.lua | 3 | 2855 | local RUN = lunit and function()end or function ()
local res = lunit.run()
if res.errors + res.failed > 0 then
os.exit(-1)
end
return os.exit(0)
end
local lunit = require "lunit"
local TEST_CASE = assert(lunit.TEST_CASE)
local skip = lunit.skip or function() end
local uv = require "lluv"
loc... | mit |
dufferzafar/ShaR | v1.0 B2.lua | 1 | 9029 | Debug.Clear();
Debug.ShowWindow(true);
--[[
this is a table which contains all the alphabets in random order.
Sandeep, one of my friends helped me out with this.
]]--
tbl_SHAR = {"l","y","f","q","o","s","c","b","x","r","d","j","n","e","p","w","a","h","v","k","m","i","u","z","t","g"};
tbl_SHARCAPS = {"L"... | unlicense |
Startg/permag | plugins/fun.lua | 1 | 19335 |
--Special Thx To @SuDo_Star CH;@SkyTeaM
--------------------------------
local function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
--------------------------------
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
------------------... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Western_Adoulin/npcs/Kipligg.lua | 11 | 2005 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Kipligg
-- Type: Standard NPC and Mission NPC,
-- Involved with Missions: '...Into the Fire', 'Done and Delivered'
-- !pos -32 0 22 256
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
func... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/mobskills/tebbad_wing_air.lua | 11 | 1150 | ---------------------------------------------
-- 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 Ildebrann
----... | gpl-3.0 |
telergybot/5252265 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
UB12/powerlife | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.