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 |
|---|---|---|---|---|---|
Scavenge/darkstar | scripts/zones/Abyssea-Konschtat/npcs/qm1.lua | 14 | 1358 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm1 (???)
-- Spawns Ashtaerth the Gallavexd
-- @pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/armcybr.lua | 4 | 3082 | include "constants.lua"
include "bombers.lua"
include "fixedwingTakeOff.lua"
local flare1 = piece 'flare1'
local flare2 = piece 'flare2'
local base = piece 'base'
local wing1 = piece 'wing1'
local wing2 = piece 'wing2'
local rearthrust = piece 'rearthrust'
local wingthrust1 = piece 'wingthrust1'
local wingthru... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/empmissile_explosion.lua | 16 | 4084 | -- empmissile_explosion
-- based on gundam_powerplant_explosion.lua
return {
["empmissile_explosion"] = {
electric1 = {
air = true,
class = [[heatcloud]],
count = 3,
ground = true,
water = true,
properties = {
... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/orange_kuchen_+1.lua | 12 | 1319 | -----------------------------------------
-- ID: 4332
-- Item: orange_kuchen_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP % 13 (cap 80)
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Misareaux_Coast/npcs/HomePoint#1.lua | 9 | 1272 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: HomePoint#1
-- @pos -65 -17.5 563 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Misareaux_Coast/TextIDs");
require("scripts/globals/... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/carnage_elegy.lua | 22 | 1590 | -----------------------------------------
-- Spell: Carnage Elegy
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
cyclonetm/XmakanX | plugins/sticker_lock.lua | 3 | 19167 | do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
return 'Group '... | gpl-2.0 |
mortezamosavy999/monsterTG | plugins/Google_image.lua | 42 | 3165 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Utilities/clusterTool.lua | 17 | 25515 | ---------------------------------------------------------------------------------
-----------C L U S T E R D E T E C T I O N T O O L --------------------------
---------------------------------------------------------------------------------
--[[
Regular usage:
local unitList = Spring.GetAllUnits()
local received... | gpl-2.0 |
BlockMen/minetest_next | mods/bones/init.lua | 2 | 6567 | local bones_enabled = core.setting_getbool("enable_bones") ~= false
bones = {}
local function is_owner(pos, name)
local owner = minetest.get_meta(pos):get_string("owner")
if owner == "" or owner == name then
return true
end
return false
end
bones.bones_formspec =
"size[8,9]"..
default.gui_bg..
default.gui_b... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/La_Vaule_[S]/Zone.lua | 17 | 1635 | -----------------------------------
--
-- Zone: La_Vaule_[S] (85)
--
-----------------------------------
package.loaded["scripts/zones/La_Vaule_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/La_Vaule_[S]/TextIDs");
require("scripts/globals/quests");... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/blastwing.lua | 3 | 2080 |
-- by Chris Mackey
include "constants.lua"
--pieces
local base = piece "base"
local missile = piece "missile"
local l_wing = piece "l_wing"
local l_fan = piece "l_fan"
local r_wing = piece "r_wing"
local r_fan = piece "r_fan"
local side = 1
local forward = 3
local up = 2
local RIGHT_ANGLE = math.rad(90)
local smo... | gpl-2.0 |
smanolache/kong | kong/tools/responses.lua | 1 | 6587 | --- Kong helper methods to send HTTP responses to clients.
-- Can be used in the proxy (core/resolver), plugins or Admin API.
-- Most used HTTP status codes and responses are implemented as helper methods.
--
-- local responses = require "kong.tools.responses"
--
-- -- In an Admin API endpoint handler, or in one ... | apache-2.0 |
PaulBatchelor/Soundpipe | modules/data/jcrev.lua | 4 | 1140 | sptbl["jcrev"] = {
files = {
module = "jcrev.c",
header = "jcrev.h",
example = "ex_jcrev.c",
},
func = {
create = "sp_jcrev_create",
destroy = "sp_jcrev_destroy",
init = "sp_jcrev_init",
compute = "sp_jcrev_compute",
},
params = {
},
... | mit |
smanolache/kong | kong/plugins/response-ratelimiting/access.lua | 1 | 2576 | local singletons = require "kong.singletons"
local timestamp = require "kong.tools.timestamp"
local responses = require "kong.tools.responses"
local utils = require "kong.tools.utils"
local pairs = pairs
local tostring = tostring
local _M = {}
local RATELIMIT_REMAINING = "X-RateLimit-Remaining"
local function get_i... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria/npcs/Faulpie.lua | 9 | 2889 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Faulpie
-- Type: Leathercraft Guild Master
-- @pos -178.882 -2 9.891 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/piscators_skewer.lua | 12 | 1386 | -----------------------------------------
-- ID: 5983
-- Item: Piscator's Skewer
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 4
-- Defense % 26 Cap 155
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/East_Ronfaure_[S]/Zone.lua | 12 | 1656 | -----------------------------------
--
-- Zone: East_Ronfaure_[S] (81)
--
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/East_Ronfaure_[S]/TextIDs");
require("scripts/gl... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/bluemagic/dimensional_death.lua | 33 | 1738 | -----------------------------------------
-- Spell: Dimensional Death
-- Damage varies with TP
-- Spell cost: 48 MP
-- Monster Type: Undead
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 5
-- Stat Bonus: DEX+1, CHR+1, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 23.75 seconds
-- Skillchain Prop... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Upper_Jeuno/npcs/Collet.lua | 14 | 2380 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Collet
-- Involved in Quests: A Clock Most Delicate, Save the Clock Tower
-- @zone 244
-- @pos -44 0 107
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
seblindfors/ConsolePort | ConsolePort_Bar/Core/Lookup.lua | 1 | 15938 | local name, env = ...;
--------------------------------------------------------
env.db = ConsolePort:GetData()
env.bar = ConsolePortBar;
env.libs = { acb = LibStub('CPActionButton') };
--------------------------------------------------------
local r, g, b = CPAPI.NormalizeColor(CPAPI.GetClassColor())
---------------... | artistic-2.0 |
Scavenge/darkstar | scripts/zones/Apollyon/mobs/Proto-Omega.lua | 16 | 3336 | -----------------------------------
-- Area: Apollyon (Central)
-- MOB: Proto-Omega
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/titl... | gpl-3.0 |
Scavenge/darkstar | scripts/commands/mobhere.lua | 13 | 1275 | ---------------------------------------------------------------------------------------------------
-- func: mobhere <mobId>
-- desc: Spawns a MOB and then moves it to the current position, if in same zone.
-- Errors will despawn the MOB unless "noDepop" was specified (any value works).
--------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Palborough_Mines/npcs/qm1.lua | 14 | 1287 | -----------------------------------
-- Area: Palborough Mines
-- NPC: ???
-- Involved In Quest: The Talekeeper's Truth
-- @zone 143
-- @pos 15 -31 -94
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/FeiYin/npcs/Dry_Fountain.lua | 14 | 1467 | -----------------------------------
-- Area: FeiYin
-- NPC: Dry Fountain
-- Involved In Quest: Peace for the Spirit
-- @pos -17 -16 71 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
Water-Flow/TTTFairTraitorSelection | lua/fairselection/sv_init.lua | 1 | 5988 | FairSelection.Version = "1.1.0"
function FairSelection:LoadConfig()
CONFIG = {}
CONFIG.DB = {}
include("fairselection/sv_config.lua")
FairSelection.CFG = CONFIG
end
function FairSelection:VersionCheck()
http.Fetch("https://raw.githubusercontent.com/Water-Flow/TTTFairTraitorSelection/release/VERSION", function(... | mit |
taxler/radish | lua/parse/substitution/charset/alias_list.lua | 1 | 12710 |
return {
csUTF8 = 'UTF-8';
csUTF16 = 'UTF-16'; csUTF16BE = 'UTF-16BE'; csUTF16LE = 'UTF-16LE';
csUTF32 = 'UTF-32'; csUTF32BE = 'UTF-32BE'; csUTF32LE = 'UTF-32LE';
-- in a list, the first entry is the primary name
csASCII = {'US-ASCII','us',
'iso-ir-6','ANSI_X3.4-1968','ANSI_X3.4-1986','ISO_646.irv:1991','ISO... | mit |
devwawi/VIP-TEAM_Wawi8 | 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'... | agpl-3.0 |
roboplus12/roboplus | 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 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Patient_Wheel.lua | 14 | 1439 | -----------------------------------
-- Area: Port Bastok
-- NPC: Patient Wheel
-- Type: Quest NPC
-- @pos -107.988 3.898 52.557 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/... | gpl-3.0 |
smanolache/kong | spec/plugins/ssl/fixtures.lua | 29 | 1779 | return {
cert = [[-----BEGIN CERTIFICATE-----
MIICSTCCAbICCQDZ7lxm1iUKmDANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJV
UzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEN
MAsGA1UECgwES29uZzELMAkGA1UECwwCSVQxETAPBgNVBAMMCHNzbDEuY29tMB4X
DTE1MDUxOTAwNTAzNloXDTE1MDYxODAwNTAzNlowaTELMAkGA1UEBhMCVVMxEzAR
BgNVBAgMCkNh... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 14 | 3803 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- @pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | units/arm_venom.lua | 3 | 4900 | unitDef = {
unitname = [[arm_venom]],
name = [[Venom]],
description = [[Lightning Riot Spider]],
acceleration = 0.26,
brakeRate = 0.78,
buildCostEnergy = 200,
buildCostMetal = 200,
buildPic = [[arm_venom.png]]... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm15.lua | 14 | 1453 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm15 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos 19.893 -5.500 325.767 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Zauberstuhl/gem_diaspora-prosody-config | modules/mod_diaspora_contacts.lua | 1 | 8754 | -- Prosody module to import diaspora contacts into a users roster.
-- Inspired by mod_auth_sql and mod_groups of the Prosody software.
--
-- As with mod_groups the change is not permanent and thus any changes
-- to the imported contacts will be lost.
--
-- The MIT License (MIT)
--
-- Copyright (c) <2014> <Jonne Haร <me... | gpl-3.0 |
mcvella/indexedRingBuffer | src/indexedRingBuffer.lua | 1 | 14403 | local indexedRingBuffer = {_TYPE='module', _NAME='indexedRingBuffer' }
local dictCache = require "dictCache"
local localCache = require "cache"
local cjson = require "cjson"
cjson.encode_sparse_array(false,0,0)
local ID_SEP = ';;'
function indexedRingBuffer.new( params )
local shared = localCache
-- if we ... | mit |
Scavenge/darkstar | scripts/globals/mobskills/Tidal_Dive.lua | 33 | 1149 | ---------------------------------------------
-- Tidal Dive
--
-- Description: Dives at nearby targets. Additional effect: Weight and/or Bind (Status Effect)
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Only used over deep water.
--------------------------------------... | gpl-3.0 |
jchuang1977/openwrt | package/diy/OpenAppFilter/luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua | 1 | 5554 |
local ds = require "luci.dispatcher"
local nxo = require "nixio"
local nfs = require "nixio.fs"
local ipc = require "luci.ip"
local sys = require "luci.sys"
local utl = require "luci.util"
local dsp = require "luci.dispatcher"
local uci = require "luci.model.uci"
local lng = require "luci.i18n"
local jsc = require "lu... | gpl-2.0 |
raymoo/artifice | player/talent_test.lua | 1 | 2234 |
local tt = artifice.talent_tree
local tree = tt.new_tree(8, 8, "default_stone.png")
local function dumb_learn(name)
return function(p_name)
minetest.chat_send_player(p_name, "You learned " .. name)
end
end
tree:add("wood", {
description = "Wood",
icon = "default_tree.png",
x = 1.5,
y = 0.5,
parents = {},... | gpl-3.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/heroes/orochimaru/orochimaru_seneijashu.lua | 1 | 4193 | --[[
Author: PicoleDeLimao
Date: 09.17.2016
Implement Orochimaru Sen'eijashu ability
]]
function SpellStart(event)
local caster = event.caster
local ability = event.ability
local target = event.target_points[1]
local range = ability:GetCastRange()
local damagePerInt = ability:GetLevelSpecialValueFor("dmg_per_... | apache-2.0 |
Scavenge/darkstar | scripts/globals/weaponskills/fell_cleave.lua | 26 | 1424 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR: 60%
-- 100%T... | gpl-3.0 |
jchuang1977/openwrt | package/lean/luci-app-nps/luasrc/model/cbi/nps.lua | 4 | 1785 | m=Map("nps")
m.title=translate("Nps Setting")
m.description=translate("Nps is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.")
m:section(SimpleSection).template="nps/nps_status"
s=m:section(TypedSection,"nps")
s.addremove=false
s.anonymous=true
s:tab("basic",translat... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | units/damagesink.lua | 3 | 1248 | unitDef = {
unitname = [[damagesink]],
name = [[Damage Sink thing]],
description = [[Does not care if you shoot at it.]],
acceleration = 0,
autoHeal = 500000,
buildCostEnergy = 10,
buildCostMetal = 10,
builder ... | gpl-2.0 |
PredatorMF/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/typedef.lua | 44 | 1696 | -- 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... | mit |
mahdib9/mahdi4 | 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 |
Brenin/PJ-3100 | Working Launchers/Games/Stepmania/StepMania 5/Themes/default/Graphics/ScreenQuickSetupOverview icon/default.lua | 1 | 1379 | local gc = Var "GameCommand";
local c = {};
c.X = THEME:GetMetric( Var "LoadingScreen", "Icon" .. gc:GetName() .. "X");
c.Y = THEME:GetMetric( Var "LoadingScreen", "Icon" .. gc:GetName() .. "Y");
local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame {
Condition=( gc:GetName() ~= "Back" );
InitCommand=cmd(x,c.X;y,c.... | mit |
Scavenge/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm4.lua | 30 | 1358 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Wulgaru(ZNM T2))
-- @pos -22 -4 204 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ruins/Te... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Castle_Zvahl_Baileys/Zone.lua | 12 | 3391 | -----------------------------------
--
-- Zone: Castle_Zvahl_Baileys (161)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Castle_Z... | gpl-3.0 |
Joker-Developer/jokersuper | plugins/wether.lua | 4 | 2180 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
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..'&APPID=eedbc... | gpl-2.0 |
nmacs/lm3s-uclinux | lib/liblua/lsqlite3_svn08/examples/order.lua | 8 | 2868 |
require("lsqlite3")
local db = assert( sqlite3:open_memory() )
assert( db:exec[[
CREATE TABLE customer (
id INTEGER PRIMARY KEY,
name VARCHAR(40)
);
CREATE TABLE invoice (
id INTEGER PRIMARY KEY,
customer INTEGER NOT NULL,
title VARCHAR(80) NOT NULL,
article1 VARCHAR(40) NOT NULL,... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Configs/zk_keys.lua | 2 | 5901 | return {
-- yyyymmdd
-- if newer than user's, overwrite ALL zir zk_keys
-- else just add any that are missing from local config
["date"] = 20130630,
-- all default ZK keybinds.
["keybinds"] = {
{ "togglecammode", "Ctrl+backspace",},
{ "togglecammode", "Shift+backspace",},
{ "edit_backspace", "Any+backsp... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Western_Adoulin/Zone.lua | 17 | 1708 | -----------------------------------
--
-- Zone: Western Adoulin
-- @zone 256
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
require("scripts/zones/Western_Adoulin/TextIDs");
-----------------------------------
-- onInitializ... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/weapon_trail_burnout.lua | 12 | 5169 | function gadget:GetInfo()
return {
name = "Trail Burnout",
desc = "Provide ability to changes weapon trail CEG after a customParam-specified time, or change specific weapon into customParam-specified weapon when underwater",
author = "Anarchid",
date = "14.01.2013",
license = "Public domain",
layer = -1, -... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | gamedata/planetwars/pw_unitdefgen.lua | 12 | 3630 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: pw_unitdefgen.lua
-- brief: procedural generation of unitdefs for planetwars
-- author: GoogleFrog
--
-----------------------------------... | gpl-2.0 |
Escaton615/SelfCensorship | DuduTree.lua | 1 | 1655 | DuduTree = {}
function DuduTree:Filter(raw)
ret = ""
current = self.tree
matching = false
censored = ""
original = ""
for uchar in string.gfind(raw, "([%z\1-\127\194-\244][\128-\191]*)") do
if not matching then
if current[uchar] ~= nil then
matching = true
current = current[uchar]
c... | mit |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/unit_decloak_range.lua | 4 | 1843 | function widget:GetInfo()
return {
name = "Decloak Range",
desc = "Display decloak range around cloaked units. v2",
author = "banana_Ai, dahn",
date = "15 Jul 2016",
license = "GNU GPL v2",
layer = 0,
enabled = true,
}
end
VFS.Include("LuaRules/Utilities/glVolumes.lua")
local... | gpl-2.0 |
GabrielGanne/vpp-flowtable | src/vpp-api/lua/bench.lua | 2 | 1998 | --[[
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 appl... | apache-2.0 |
1yvT0s/luvit | deps/stream/init.lua | 6 | 1341 | --[[
Copyright 2014-2015 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 o... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/YrvaulairSCousseraux1.lua | 14 | 1204 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Yrvaulair S Cousseraux
-- @zone 80
-- @pos 0 1 -78
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-------------------------------... | gpl-3.0 |
RuiShu/cvae | utils/evaluate.lua | 1 | 1183 | require 'hdf5'
require 'torch'
require 'nn'
require 'nngraph'
require 'cunn'
require 'cutorch'
nngraph.setDebug(false)
-- load custom modules
require 'load'
require 'Sampler'
require 'image'
-- load init data
f = hdf5.open('animate/ghost.h5', 'r')
init = f:read("init"):all():double():cuda()
-- cvae
sampler = nn.Sampler... | mit |
taxler/radish | packaging/extensions/platform_win32/lua/exports/mswindows/resources.lua | 1 | 9622 |
local lib = {
VS_FF_DEBUG = 0x1,
VS_FF_PRERELEASE = 0x2,
VS_FF_PATCHED = 0x4,
VS_FF_PRIVATEBUILD = 0x8,
VS_FF_INFOINFERRED = 0x10,
VS_FF_SPECIALBUILD = 0x20,
VS_FFI_SIGNATURE = 0xfeef04bd,
VS_FFI_STRUCVERSION = 0x00010000,
VOS__WINDOWS16 = 0x1,
VOS__PM16 = 0x2,
VOS__PM32 = 0x3,... | mit |
Scavenge/darkstar | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 13 | 1660 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone 247
-- @pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Port_San_dOria/npcs/Altiret.lua | 13 | 3167 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Altiret
-- NPC for Quest "The Pickpocket"
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Woods/npcs/Roberta.lua | 14 | 2324 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Roberta
-- Working 100%
-- @zone 241
-- @pos 21 -4 -157
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Cloister_of_Tides/Zone.lua | 30 | 1736 | -----------------------------------
--
-- Zone: Cloister_of_Tides (211)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Tides/TextIDs");
-----------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Gudav.lua | 16 | 2000 | -----------------------------------
-- Area: Port Bastok
-- NPC: Gudav
-- Starts Quests: A Foreman's Best Friend
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Jakoh_Wahcondalo.lua | 14 | 1783 | -----------------------------------
-- Area: Kazham
-- NPC: Jakoh Wahcondalo
-- @pos 101 -16 -115 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Kazham/TextIDs");
-----------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | units/armcsa.lua | 3 | 3962 | unitDef = {
unitname = [[armcsa]],
name = [[Athena]],
description = [[Airborne SpecOps Engineer, Builds at 7.5 m/s]],
acceleration = 0.1,
airStrafe = 0,
autoHeal = 20,
brakeRate = 0.08,
buildCostEnergy = 500,
buildCostMetal ... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Kyun_Magopiteh.lua | 17 | 1072 | -----------------------------------
-- Area: Kazham
-- NPC: Kyun Magopiteh
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
cohadar/tanks-of-harmony-and-love | server.lua | 1 | 5474 | -------------------------------------------------------------------------------
-- embedded game server for "_tanks of Harmony and Love"
-- can NOT be run as standalone Lua app!
-- TODO: figure out how to call this in love2d console mode!
-------------------------------------------------------------------------------
r... | mit |
Scavenge/darkstar | scripts/globals/items/marinara_pizza_+1.lua | 12 | 1596 | -----------------------------------------
-- ID: 5744
-- Item: marinara_pizza +1
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Health Points 25
-- Attack +21% (cap 55)
-- Accuracy +11% (cap 58)
-- Undead Killer
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Mhaura/npcs/Celestina.lua | 14 | 2721 | -----------------------------------
-- Area: Mhaura
-- NPC: Celestina
-- Finish Quest: The Sand Charm
-- Involved in Quest: Riding on the Clouds
-- Guild Merchant NPC: Goldsmithing Guild
-- @pos -37.624 -16.050 75.681 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
packag... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Markets/npcs/Fatimah.lua | 53 | 2085 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Fatimah
-- Type: Goldsmithing Adv. Synthesis Image Support
-- @pos -193.849 -7.824 -56.372 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/warrior.lua | 25 | 3166 | -- warmuzzle
return {
["warmuzzle"] = {
bitmapmuzzleflame = {
air = true,
class = [[CBitmapMuzzleFlame]],
count = 1,
ground = true,
underwater = 1,
water = true,
properties = {
colormap ... | gpl-2.0 |
jchuang1977/openwrt | package/lean/mt/luci-app-mtwifi/root/usr/lib/lua/mtkwifi.lua | 2 | 37008 | #!/usr/bin/env lua
--[[
* A lua library to manipulate mtk's wifi driver. used in luci-app-mtk.
*
* Hua Shao <nossiac@163.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Fou... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Configs/tipconfig.lua | 12 | 6628 | local THRESHOLD_EXPENSIVE = 800
--seconds
TIMER_EXPENSIVE_UNITS = 60 * 10
TIMER_ADV_FACTORY = 60 * 15
TIMER_SUPERWEAPON = 60 * 30
stringExpensiveUnits = "That <name> is particularly expensive; at this point, cheaper units offer far more flexibility. You should probably save that for later."
stringAdvFactory = "That <... | gpl-2.0 |
Youka/NyuFX | templates/Fun/border_pixels.lua | 2 | 1996 | -- Line to convert to pixels
local line = lines[1]
-- Text fill shape
local text_shape = convert.text_to_shape(line.text, line.styleref)
-- Shift text fill shape by text position subpixel offset (for correct antialiasing calculation by pixel conversion)
local x_shift, y_shift = math.floor(line.left % 1 * 8), math.floo... | lgpl-3.0 |
Grade-A-Software/Comcast-DASH-VLC | share/lua/playlist/joox.lua | 113 | 1637 | --[[
$Id$
Copyright ยฉ 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distribut... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/bean_daifuku_+1.lua | 12 | 2204 | -----------------------------------------
-- ID: 6342
-- Item: bean_daifuku_+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +30
-- VIT +4
-- Accuracy +11% (cap 54)
-- Ranged Accuracy +11% (cap 54)
-- Pet:
-- HP +30
-- VIT +4
-- Accuracy +11% (cap 81)
-- Ranged Accuracy +11% (cap 81)... | gpl-3.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/addon_game_mode.lua | 1 | 5977 | -- This is the entry-point to your game mode and should be used primarily to precache models/particles/sounds/etc
require('internal/util')
require('gamemode')
-- Library containing some utilitary functions
require('mechanics/hud')
require('mechanics/players')
require('mechanics/units')
require('mechanics/particles')... | apache-2.0 |
seblindfors/ConsolePort | ConsolePort_Config/Bindings/Combo.lua | 1 | 4726 | local _, env = ...; local db = env.db;
---------------------------------------------------------------
-- Combinations (abbrev. combos)
---------------------------------------------------------------
local Combos, Combo = CreateFromMixins(env.DynamicMixin), CreateFromMixins(CPIndexButtonMixin, env.BindingInfoMixin, {
... | artistic-2.0 |
Scavenge/darkstar | scripts/globals/items/plate_of_homemade_risotto.lua | 12 | 1869 | -----------------------------------------
-- ID: 5229
-- Item: plate_of_homemade_risotto
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
--------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/North_Gustaberg/npcs/Kuuwari-Aori_WW.lua | 14 | 3343 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Kuuwari-Aori, W.W.
-- Type: Outpost Conquest Guards
-- @pos -584.687 39.107 54.281 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
PaulBatchelor/Soundpipe | modules/data/trand.lua | 3 | 1081 | sptbl["trand"] = {
files = {
module = "trand.c",
header = "trand.h",
example = "ex_trand.c",
},
func = {
create = "sp_trand_create",
destroy = "sp_trand_destroy",
init = "sp_trand_init",
compute = "sp_trand_compute",
},
params = {
op... | mit |
Scavenge/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Enaremand.lua | 14 | 1060 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Enaremand
-- Type: Standard NPC
-- @zone 26
-- @pos 95.962 -42.003 51.613
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
----... | gpl-3.0 |
cyclonetm/XmakanX | 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 |
lingmann/dcos | packages/adminrouter/extra/src/lib/auth/common.lua | 3 | 4814 | local cjson = require "cjson"
local cookiejar = require "resty.cookie"
local jwt = require "resty.jwt"
local jwt_validators = require "resty.jwt-validators"
local util = require "util"
local errorpages_dir_path = os.getenv("AUTH_ERROR_PAGE_DIR_PATH")
if errorpages_dir_path == nil then
ngx.log(ngx.WARN, "AUTH_ERR... | apache-2.0 |
kankaristo/premake-core | tests/actions/vstudio/vc2010/test_config_props.lua | 9 | 8064 | --
-- tests/actions/vstudio/vc2010/test_config_props.lua
-- Validate generation of the configuration property group.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_config_props")
local vc2010 = premake.vstudio.vc2010
local project = premake.project
-... | bsd-3-clause |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/dbg_ceg_spawner.lua | 11 | 3062 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "CEG Spawner",
desc = "v0.031 Spawn CEGs",
author = "CarRepairer",
date = "2010... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Windurst/npcs/Milma-Hapilma_WW.lua | 13 | 5582 | -----------------------------------
-- Area: Port Windurst
-- NPC: Milma-Hapilma, W.W.
-- 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 Supply Run Missions ... | gpl-3.0 |
rm-code/lofivi | lib/graphoon/Graphoon/init.lua | 4 | 1526 | return {
_VERSION = 'Graphoon v1.0.1',
_DESCRIPTION = 'A force directed graph algorithm written in Lua.',
_URL = 'https://github.com/rm-code/Graphoon',
_LICENSE = [[
Copyright (c) 2015 - 2016 Robert Machmer
Permission is hereby granted, free of charge, to any person obtaining
... | mit |
raymoo/artifice | spell/registration.lua | 1 | 2629 |
-- "spell_env" refers to a table holding these fields:
-- - player - casting player's name. Could be nil if not a player.
-- - owner - Creator of the spell
-- - spell_id - Unique numerical ID of the spell
-- - cast_mode - Either 1, 2, or 3
-- - quality - Build quality. A nonnegative integer.
-- "shape_inout... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Quicksand_Caves/npcs/_5sc.lua | 14 | 1273 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -410 0 662 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Crawlers_Nest/npcs/Grounds_Tome.lua | 26 | 1094 | -----------------------------------
-- Area: Crawlers Nest
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
1yvT0s/luvit | tests/test-http-client.lua | 6 | 2125 | --[[
Copyright 2015 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/Al_Zahbi/npcs/Kahah_Hobichai.lua | 17 | 1360 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Kahah Hobichai
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onTrade A... | gpl-3.0 |
gmorishere/i | 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 |
Scavenge/darkstar | scripts/zones/Port_Windurst/npcs/Hohbiba-Mubiba.lua | 17 | 1716 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hohbiba-Mubiba
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs"... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/bomberstrike.lua | 12 | 3448 | include "constants.lua"
include "bombers.lua"
local fuselage = piece 'fuselage'
local wingl = piece 'wingl'
local wingr = piece 'wingr'
local enginel = piece 'enginel'
local enginer = piece 'enginer'
local head = piece 'head'
local turretbase = piece 'turretbase'
local turret = piece 'turret'
local sleevel = p... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/gui_point_tracker.lua | 7 | 8398 | -- $Id$
local versionNumber = "v2.3"
function widget:GetInfo()
return {
name = "Point Tracker",
desc = versionNumber .. " Tracks recently placed map points.",
author = "Evil4Zerggin",
date = "29 December 2008",
license = "GNU LGPL, v2.1 or later",
layer = 0,
enable... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.