repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
Scavenge/darkstar | scripts/globals/items/inferno_axe.lua | 41 | 1069 | -----------------------------------------
-- ID: 16709
-- Item: Inferno Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------------... | gpl-3.0 |
ghoghnousteam/ghoghnous | plugins/banhammer.lua | 175 | 5896 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Korroloka_Tunnel/mobs/Clipper.lua | 14 | 1062 | -----------------------------------
-- Area: Korroloka Tunnel (173)
-- Mob: Clipper
-----------------------------------
require("scripts/zones/Korroloka_Tunnel/MobIDs");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDea... | gpl-3.0 |
ihcfan/NautiPlot | hmi-cocos2d-x/samples/Lua/TestLua/Resources/luaScript/ZwoptexTest/ZwoptexTest.lua | 4 | 4376 | local scheduler = cc.Director:getInstance():getScheduler()
--------------------------------------------------------------------
--
-- ZwoptexGenericTest
--
--------------------------------------------------------------------
local function ZwoptexGenericTest()
local ret = createTestLayer("Zwoptex Tests",
... | gpl-2.0 |
Kyklas/luci-proto-hso | applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua | 80 | 3231 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | apache-2.0 |
shayanchabok007/antispam_fox | plugins/torrent_search.lua | 223 | 1059 | local https = require ('ssl.https')
local ltn12 = require ("ltn12")
local function search_kickass(query)
local url = 'https://kat.cr/json.php?q='..URL.escape(query)
local resp = {}
local b,c = https.request
{
url = url,
protocol = "tlsv1",
sink = ltn12.sink.table(resp)
}
resp = table.concat(... | gpl-2.0 |
dani-sj/danievil | plugins/anti_spam.lua | 435 | 3886 |
--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 |
maksym1221/nlp-rnn | model/GRU.lua | 1 | 2230 |
local GRU = {}
--[[
Creates one timestep of one GRU
Paper reference: http://arxiv.org/pdf/1412.3555v1.pdf
]]--
function GRU.gru(input_size, rnn_size, n, dropout, embedding)
dropout = dropout or 0
-- there are n+1 inputs (hiddens on each layer and x)
local inputs = {}
table.insert(inputs, nn.Identity()()) -- ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Xarcabard/npcs/Jeantelas_RK.lua | 14 | 3333 | -----------------------------------
-- Area: Xarcabard
-- NPC: Jeantelas, R.K.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
taxler/radish | lua/parse/substitution/charset/csTIS620.lua | 1 | 4785 |
local byte = require 'parse.substitution.charset.byte'
return byte + {
['\xa1'] = '\u{e01}'; -- thai character ko kai
['\xa2'] = '\u{e02}'; -- thai character kho khai
['\xa3'] = '\u{e03}'; -- thai character kho khuat
['\xa4'] = '\u{e04}'; -- thai character kho khwai
['\xa5'] = '\u{e05}'; -- thai character kho kh... | mit |
Scavenge/darkstar | scripts/zones/Selbina/npcs/Raging_Tiger.lua | 17 | 1072 | -----------------------------------
-- Area: Selbina
-- NPC: Raging Tiger
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTrade Action
... | gpl-3.0 |
KKfo/gamecode4 | Assets/Scripts/DebugBrain.lua | 44 | 2420 | --========================================================================
-- DebugBrain.lua : A brain for debugging the AI
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by Mike McSha... | lgpl-3.0 |
Scavenge/darkstar | scripts/zones/Konschtat_Highlands/npcs/Stone_Monument.lua | 14 | 1306 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -102.355 7.981 253.706 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/PsoXja/npcs/_09f.lua | 14 | 2875 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09f (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 310.000 -1.925 -38.400 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
endlessm/chromium-browser | third_party/skia/tools/lua/count_dashes.lua | 15 | 1689 | --
-- Copyright 2016 Google Inc.
--
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
--
-- Dashed path scraping script.
-- This script is designed to count the total number of dashes in a dashed path
-- by computing the fill path and then counting how many individ... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Norg/npcs/Colleraie.lua | 14 | 1041 | -----------------------------------
-- Area: Norg
-- NPC: Colleraie
-- Type: Event Scene Replayer
-- @zone 252
-- @pos -24.684 0.097 -39.409
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Jugner_Forest/npcs/Chaplion_RK.lua | 14 | 3317 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Chaplion, R.K.
-- Outpost Conquest Guards
-- @pos 54 0 -11 104
-------------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest");
require("scrip... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/robert.lua | 25 | 5267 | -- robert_1
-- robert_1_1
-- robert_1_1_1
-- robert
return {
["robert_1"] = {
dust = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = ... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Talib.lua | 17 | 3033 | -----------------------------------
-- Area: Port Bastok
-- NPC: Talib
-- Starts Quest: Beauty and the Galka
-- Starts & Finishes Quest: Shady Business
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/harvesting.lua | 18 | 5916 | -------------------------------------------------
-- Harvesting functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Harvesting
-------------------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
----------------... | gpl-3.0 |
mortezamosavy999/monsterTG | plugins/info.lua | 1 | 5223 | do
local function scan_name(extra, success, result)
local founds = {}
for k,member in pairs(result.members) do
if extra.name then
gp_member = extra.name
fields = {'first_name', 'last_name', 'print_name'}
elseif extra.user then
gp_member = string.gsub(extra.user, '@', '')
... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Windurst-Jeuno_Airship/npcs/Gabriele.lua | 30 | 2313 | -----------------------------------
-- Area: Windurst-Jeuno Airship
-- NPC: Gabriele
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Windurst-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Windurst-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade ... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua | 68 | 1140 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
AliKhodadad/Telewild | plugins/Map.lua | 87 | 1499 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
omidtarh/botnew | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
roboplus12/roboplus | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
Scavenge/darkstar | scripts/commands/godmode.lua | 15 | 2834 | ---------------------------------------------------------------------------------------------------
-- func: godmode
-- desc: Toggles god mode on the player, granting them several special abilities.
---------------------------------------------------------------------------------------------------
cmdprops =
{
per... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Al_Zahbi/npcs/Dabigo.lua | 14 | 1043 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Dabigo
-- Type: Delivery Box Manager
-- @zone 48
-- @pos -34.289 -1 -129.141
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
ihcfan/NautiPlot | hmi-cocos2d-x/samples/Lua/TestLua/Resources/luaScript/CocoStudioTest/CocoStudioTest.lua | 3 | 2989 | require "luaScript/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest"
require "luaScript/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest"
require "luaScript/CocoStudioTest/CocoStudioArmatureTest/CocoStudioArmatureTest"
local LINE_SPACE = 40
local ITEM_TAG_BASIC = 1000
local cocoStudioTestItemNames =
{
{
... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Utilities/GiveStateOrderToUnit.lua | 18 | 1991 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
-- Author: Rafal
-------------------------------------------------------------------------------------
--------------------------------------------... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Arva.lua | 17 | 1295 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Arva
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Cape_Teriggan/npcs/Orukeke_WW.lua | 14 | 3316 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Orukeke, W.W.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scri... | gpl-3.0 |
PredatorMF/Urho3D | bin/Data/LuaScripts/Utilities/2D/Mover.lua | 14 | 3506 | -- Mover script object class
-- - Handles entity (enemy, platform...) translation along a path (set of Vector2 points)
-- - Supports looping paths and animation flip
-- - Default speed is 0.8 if 'Speed' property is not set in the tmx file objects
Mover = ScriptObject()
function Mover:Start()
self.speed =... | mit |
Zero-K-Experiments/Zero-K-Experiments | units/corak.lua | 3 | 4402 | unitDef = {
unitname = [[corak]],
name = [[Bandit]],
description = [[Medium-Light Raider Bot]],
acceleration = 0.5,
brakeRate = 0.4,
buildCostEnergy = 75,
buildCostMetal = 75,
buildPic = [[CORAK.png]],
build... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Mesachedeau_RK.lua | 14 | 3350 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mesachedeau, R.K.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
PredatorMF/Urho3D | Source/Urho3D/LuaScript/pkgs/ToZerobraneStudioHook.lua | 2 | 10973 | -- Copyright (c) 2008-2022 the Urho3D project
-- License: MIT
-- Highly based on "ToDoxHook.lua", adjusted for Zerobrane Studio API format.
-- Compatible with Zerobrane Studio 0.41+ (Zerobrane Studio 0.40 and below may have issues)
--[[ Copy result in your Zerobrane Studio's folder "api/lua" and set it in your
"... | mit |
scs/uclinux | user/lua/lua-5.1.4/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Ranpi-Pappi.lua | 13 | 1060 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Ranpi-Pappi
-- Type: Standard NPC
-- @zone 234
-- @pos -4.535 -1.044 49.881
--
-- Auto-Script: Requires Verification (Verified by Brando)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("script... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fayeewah.lua | 17 | 1184 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fayeewah
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts... | gpl-3.0 |
kankaristo/premake-core | tests/actions/vstudio/vc2010/test_project_refs.lua | 9 | 2391 | --
-- tests/actions/vstudio/vc2010/test_project_refs.lua
-- Validate project references in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
T.vstudio_vs2010_project_refs = { }
local suite = T.vstudio_vs2010_project_refs
local vc2010 = premake.vstudio.vc2010
--... | bsd-3-clause |
Brenin/PJ-3100 | Working Launchers/Games/Stepmania/StepMania 5/Themes/_fallback/Scripts/02 Colors.lua | 1 | 9982 | -- xxx: everything below the big line of ...========... needs to be redone
Color = {
-- Color Library
-- These colors are pure swatch colors and are here purely to be used
-- on demand without having to type color("stuff") or dig through
-- a palette to get the color you want.
Black = color("0,0,0,1"),
White = col... | mit |
tarikgwa/nfd | lua/libs/dbhandler.lua | 1 | 4105 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2014 Star2Billing S.L.
--
--... | mpl-2.0 |
Scavenge/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n1.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
Kyklas/luci-proto-hso | libs/nixio/lua/nixio/fs.lua | 184 | 3723 | --[[
nixio - Linux I/O library for lua
Copyright 2009 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$
]]--
local... | apache-2.0 |
Scavenge/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_MR.lua | 23 | 1601 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel MR
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
----... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/mages_ballad.lua | 27 | 1156 | -----------------------------------------
-- Spell: Mage's Ballad
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targ... | gpl-3.0 |
uriah0/void-packages | srcpkgs/prosody/files/prosody.cfg.lua | 97 | 7823 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | bsd-2-clause |
Scavenge/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_Basement.lua | 35 | 1202 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_Base]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1301),T... | gpl-3.0 |
mortezamosavy999/monsterTG | plugins/Bot_on_off.lua | 1 | 1594 | local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if not _config.disabled_channels then
_config.d... | gpl-2.0 |
Dyaxler/SpartanUI | Modules/Artwork/Themes/Classic/Style.lua | 1 | 13861 | local SUI = SUI
local L = SUI.L
local Artwork_Core = SUI:GetModule('Artwork_Core')
local module = SUI:GetModule('Style_Classic')
----------------------------------------------------------------------------------------------------
if SUI.DB.Styles.Classic.BuffLoc == nil then
SUI.DB.Styles.Classic.BuffLoc = true
... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Al_Zahbi/npcs/Biyaada.lua | 14 | 1048 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Biyaada
-- Type: Rughadjeen's Attendant
-- @zone 48
-- @pos -65.802 -6.999 69.273
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
----------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Kalsu-Kalasu.lua | 29 | 1786 | -----------------------------------
-- Area: Crawlers Nest [S]
-- NPC: Kalsu-Kalasu
-- @pos 304.768 -33.519 -19.168 171
-- Notes: Gives Green Letter required to start "Snake on the plains"
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
1yvT0s/luvit | deps/core.lua | 2 | 9430 | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Monarch_Linn/mobs/Ouryu.lua | 9 | 2480 | -----------------------------------
-- Area:
-- MOB: Ouryu
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:SetMobSkillAttack(0); -- resetting so it doesn't respawn in ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Nashmau/TextIDs.lua | 7 | 1841 | -- 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_CANNOT_BE_OBTAINEDX = 6378; -- You cannot obtain the
ITEM_OBTAINED = 6385; -- Obtained: <item>
ITEM_OBTAINEDX = 6394; -- You obtai... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/missile.lua | 25 | 5590 | -- missile_tag_white_10
-- missile_hit_sphere_120
-- missile_hit_pikes_160
-- missile_tag_white_40
return {
["missile_tag_white_10"] = {
smoketrail = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water... | gpl-2.0 |
Brenin/PJ-3100 | Working Launchers/Games/Stepmania/StepMania 5/Themes/default/BGAnimations/ScreenEvaluation overlay/original.lua | 1 | 3473 | local ss = STATSMAN:GetCurStageStats();
local pss = ss:GetPlayerStageStats('PlayerNumber_P1');
local misscount = pss:GetTapNoteScores('TapNoteScore_Miss');
local boocount = pss:GetTapNoteScores('TapNoteScore_W5');
local goodcount = pss:GetTapNoteScores('TapNoteScore_W4');
local greatcount = pss:GetTapNoteScores('TapNot... | mit |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/unit_resurrect_congregate.lua | 12 | 5513 | local versionNumber = "v0.92 "
function widget:GetInfo()
return {
name = "Resurrect Congregate",
desc = versionNumber .. "Automatically send resurrected unit to nearby blob of allied units. (1 Blob = 5 ground units within 300 elmo radius, Congregating range: 3000 elmo)",
author = "msafwan",
... | gpl-2.0 |
ghoghnousteam/ghoghnous | plugins/plugins.lua | 257 | 4732 | 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 |
roboplus12/roboplus | plugins/plugins.lua | 257 | 4732 | 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 |
Scavenge/darkstar | scripts/globals/items/pumpkin_pie_+1.lua | 12 | 1365 | -----------------------------------------
-- ID: 4447
-- Item: pumpkin_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 45
-- Intelligence 4
-- Charisma -1
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Lower_Delkfutts_Tower/Zone.lua | 12 | 3734 | -----------------------------------
--
-- Zone: Lower_Delkfutts_Tower (184)
--
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/globals/miss... | gpl-3.0 |
Brenin/PJ-3100 | Working Launchers/Games/Stepmania/StepMania 5/Themes/default/BGAnimations/ScreenWithMenuElements background/default.lua | 1 | 1597 | local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame {
FOV=90;
InitCommand=cmd(Center);
Def.Quad {
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
OnCommand=cmd(diffuse,color("#FFCB05");diffusebottomedge,color("#F0BA00"));
};
Def.ActorFrame {
InitCommand=cmd(hide_if,hideFancyElements;);
Loa... | mit |
Scavenge/darkstar | scripts/zones/Lower_Jeuno/npcs/Faursel.lua | 14 | 7472 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Faursel
-- Type: Aht Urhgan Quest NPC
-- Involved in Quests: The Road to Aht Urhgan
-- @pos 37.985 3.118 -45.208 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
smanolache/kong | kong/plugins/response-transformer/handler.lua | 6 | 1330 | local BasePlugin = require "kong.plugins.base_plugin"
local body_filter = require "kong.plugins.response-transformer.body_transformer"
local header_filter = require "kong.plugins.response-transformer.header_transformer"
local is_body_transform_set = header_filter.is_body_transform_set
local is_json_body = header_filte... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Metalworks/npcs/Hungry_Wolf.lua | 14 | 2150 | -----------------------------------
-- Area: Metalworks
-- NPC: Hungry Wolf
-- Type: Quest Giver
-- @pos -25.861 -11 -30.172 237
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-- Updated for "Smoke on the Mountain" by EccentricAnata 03.22.13
-----------------------------------
package.loaded["script... | gpl-3.0 |
PredatorMF/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/enumerate.lua | 27 | 2526 | -- tolua: enumerate class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: enumerate.lua,v 1.3 2000/01/24 20:41:15 celes Exp $
-- 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 pr... | mit |
yrpen/lua-scripts | directions.lua | 1 | 1447 | local direction =
{
["north"] = DIRECTION_NORTH,
["east"] = DIRECTION_EAST,
["south"] = DIRECTION_SOUTH,
["west"] = DIRECTION_WEST,
["southwest"] = DIRECTION_SOUTHWEST,
["southeast"] = DIRECTION_SOUTHEAST,
["northwest"] = DIRECTION_NORTHWEST,
["northeast"] = DIRECTION_NORTHEAST
}
-- -- ... | mit |
haiderqwwq2/-haiderqwwq | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/apkallu_egg.lua | 12 | 1182 | -----------------------------------------
-- ID: 5568
-- Item: Apkallu Egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Northern_San_dOria/npcs/Calovour.lua | 17 | 1452 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Calovour
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Deegis.lua | 17 | 1734 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Deegis
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/pets/healing_breath_iv.lua | 25 | 1748 | ---------------------------------------------------
-- Healing Breath IV
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCheck(p... | gpl-3.0 |
MOSAVI17/ABCD | plugins/groupmanager.lua | 21 | 17308 | -- data saved to data/moderation.json
do
local function export_chat_link_cb(extra, success, result)
local msg = extra.msg
local data = extra.data
if success == 0 then
return send_large_msg(get_receiver(msg), 'Cannot generate invite link for this group.\nMake sure you are an admin or a sudoer.')
... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Western_Adoulin/npcs/Vaulois.lua | 14 | 1919 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Vaulois
-- Type: Standard NPC and Quest Giver
-- Starts, Involved with, and Finishes Quest: 'Transporting'
-- @zone 256
-- @pos 20 0 85 256
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/La_Theine_Plateau/npcs/Telepoint.lua | 17 | 1697 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/La_Theine_Plateau/TextIDs");
----------... | gpl-3.0 |
mahdib9/mahdi4 | plugins/owners.lua | 1467 | 12478 |
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)]['setting... | gpl-2.0 |
ArchonTeam/Soft_TG | plugins/owners.lua | 1467 | 12478 |
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)]['setting... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Lokpix.lua | 12 | 2164 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Lokpix
-- Starts Quest "Open Sesame"
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");
require("s... | gpl-3.0 |
PredatorMF/Urho3D | bin/Data/LuaScripts/27_Physics2D.lua | 2 | 7979 | -- Urho2D and Physics2D sample.
-- This sample demonstrates:
-- - Creating both static and moving 2D physics objects to a scene
-- - Displaying physics debug geometry
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
SampleStart()
-- Create the scene... | mit |
nmacs/lm3s-uclinux | lib/liblua/bitstring-1.0/tests/test_bindump.lua | 1 | 7685 | require "os"
require "test_helpers"
require "bitstring"
print = function(...) end
local test1 = function()
local expected =
[[00000000: 00000000 00000001 00000010 00000011 ....
00000004: 00000100 00000101 00000110 00000111 ....
00000008: 00001000 00001001 00001010 00001011 ....
0000000c: 00001100 000... | gpl-2.0 |
tarikgwa/nfd | lua/listener.lua | 1 | 11593 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2014 Star2Billing S.L.
--
--... | mpl-2.0 |
ArchonTeam/Soft_TG | plugins/mstick.lua | 6 | 1100 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'bot/'..msg.from.id..'.webp'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_document(get_receiver(msg), file, ok_cb, false)
redis:de... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/game_share_mode.lua | 4 | 12477 | function gadget:GetInfo()
return {
name = "Share mode",
desc = "Allows one to share control of resources and units with other players.",
author = "_Shaman",
date = "6-23-2016",
license = "Do whatever you want with it, just give credit",
layer = 0,
enabled = true,
}
end
-- Remove unsync and remov... | gpl-2.0 |
jchuang1977/openwrt | package/diy/luci-app-diskman/luasrc/model/cbi/diskman/disks.lua | 1 | 12496 | --[[
LuCI - Lua Configuration Interface
Copyright 2019 lisaac <https://github.com/lisaac/luci-app-diskman>
]]--
require "luci.util"
require("luci.tools.webadmin")
local dm = require "luci.model.diskman"
-- Use (non-UCI) SimpleForm since we have no related config file
m = SimpleForm("diskman", translate("DiskMan"), tr... | gpl-2.0 |
alisako/TabChi2 | tdcli.lua | 12 | 80423 | --[[
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it wi... | gpl-3.0 |
hughperkins/torch7 | CmdLine.lua | 62 | 7104 | local CmdLine = torch.class('torch.CmdLine')
local function strip(str)
return string.match(str, '%-*(.*)')
end
local function pad(str, sz)
return str .. string.rep(' ', sz-#str)
end
function CmdLine:error(msg)
print('')
io.stderr:write(msg)
print('')
self:help()
os.exit(1)
end
function CmdLine:... | bsd-3-clause |
Scavenge/darkstar | scripts/globals/items/bowl_of_cursed_soup.lua | 12 | 1604 | -----------------------------------------
-- ID: 4235
-- Item: Bowl of Cursed Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength -7
-- Dexterity -7
-- Agility -7
-- Vitality -7
-- Intelligence -7
-- Mind -7
-- Charisma -7
-----------------------------------------
require("scri... | gpl-3.0 |
Dens0n/Conv_Music | generator.lua | 2 | 3527 | require 'midigen'
require 'midiparse'
require 'torch'
require 'nn'
require 'rnn'
json = require 'json'
require 'cltorch'
cmd = torch.CmdLine()
cmd:option('-o', '', 'Output file name')
cmd:option('-model', '', 'Model file name')
cmd:option('-temperature', 0, 'Temperature')
cmd:option('-firstnote', 41, 'First note index... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/dbg_dcicon.lua | 17 | 4357 | -- $Id: dbg_dcicon.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---------------... | gpl-2.0 |
flux-framework/flux-core | t/shell/initrc/tests/0001-shell-info.lua | 4 | 3360 | require 'fluxometer' -- pull in Test.More
local saved = shell.verbose
shell.verbose = false
ok (not shell.verbose,
"shell.verbose works and returns last value (false)")
shell.verbose = true
ok (shell.verbose,
"shell.verbose works and returns last value (true)")
shell.verbose = 1
ok (shell.verbose,
"shell.v... | lgpl-3.0 |
Arashbrsh/lifemaic | plugins/translate.lua | 674 | 1637 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/armpb.lua | 11 | 4639 | include "constants.lua"
--pieces
local concrete, belt = piece('Concrete','Belt');
local wheel, arm, hand, cannon = piece('Wheel', 'Arm','Hand', 'Cannon');
local barrel1, barrel2, barrel3, muzzle = piece("Barrel1","Barrel2","Barrel3","Muzzle");
local lidLeft, lidRight = piece("lidLeft","lidRight");
local aimProxy = pie... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Davoi/npcs/qm1.lua | 14 | 1416 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm1)
-- Involved in Quest: To Cure a Cough
-- @pos -115.830 -0.427 -184.289 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/pets/sand_breath.lua | 29 | 1337 | ---------------------------------------------------
-- Sand Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/ability");
------------------------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Virnage.lua | 14 | 2415 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Virnage
-- Starts Quest: Altana's Sorrow
-- @zone 234
-- @pos 0 0 51
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
Grade-A-Software/Comcast-DASH-VLC | share/lua/playlist/extreme.lua | 80 | 3883 | --[[
$Id$
Copyright © 2011 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.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 Software Foundation; either version 2 of the License, or
(at your opt... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p3.lua | 17 | 1069 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Notes: Entrance to Misareaux Coast
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Woods/npcs/Erpolant.lua | 14 | 1051 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Erpolant
-- Type: Standard NPC
-- @zone 241
-- @pos -63.224 -0.749 -33.424
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------------... | gpl-3.0 |
nmacs/lm3s-uclinux | lib/liblua/xavante-2.2.1/src/xavante/httpd.lua | 1 | 12409 | -----------------------------------------------------------------------------
-- Xavante HTTP handler
--
-- Authors: Javier Guerra and Andre Carregal
-- Copyright (c) 2004-2007 Kepler Project
--
-- $Id: httpd.lua,v 1.45 2009/08/10 20:00:59 mascarenhas Exp $
--------------------------------------------------------------... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.