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 |
|---|---|---|---|---|---|
AresTao/darkstar | scripts/globals/items/bowl_of_sprightly_soup.lua | 36 | 1326 | -----------------------------------------
-- ID: 5930
-- Item: Bowl of Sprightly Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP 30
-- Mind 4
-- HP Recovered While Healing 4
-- Enmity -4
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Aivedoir.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aivedoir
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -123.119 7.999 134.490
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/foe_requiem_iii.lua | 18 | 1625 | -----------------------------------------
-- Spell: Foe Requiem III
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/chili/simple examples/Widgets/gui_chiliguidemo.lua | 17 | 8506 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "chiliGUIDemo",
desc = "GUI demo for robocracy",
author = "quantum",
date = "WI... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Throne_Room/npcs/_4l4.lua | 51 | 1172 | -----------------------------------
-- Area: Throne Room
-- NPC: Ore Door
-------------------------------------
require("scripts/globals/bcnm");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:ge... | gpl-3.0 |
tysonliddell/OpenRA | mods/cnc/maps/gdi05b/gdi05b.lua | 4 | 5131 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
hiddenvirus/hiddenblaster | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
AresTao/darkstar | scripts/globals/spells/voidstorm.lua | 31 | 1154 | --------------------------------------
-- Spell: Voidstorm
-- Changes the weather around target party member to "gloomy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/abilities/light_maneuver.lua | 35 | 1609 | -----------------------------------
-- Ability: Light Maneuver
-- Enhances the effect of light attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Caedarva_Mire/TextIDs.lua | 7 | 1342 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6383; -- Obtained: <item>.
GIL_OBTAINED = 6384; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6386; -- Obtained... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n0.lua | 17 | 1491 | -----------------------------------
-- Area: Spire of Vahzl
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/gl... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 53 | 1909 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Fishing Adv. Image Support
-- @pos -194.499 -3 58.692 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
three2one/Atlas | lib/admin-bak.lua | 37 | 3379 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Apollyon/Zone.lua | 17 | 11954 | -----------------------------------
--
-- Zone: Apollyon
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
-----------------------------------
-- ... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Woods/npcs/Nikkoko.lua | 53 | 1835 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nikkoko
-- Type: Clothcraft Image Support
-- @pos -32.810 -3.25 -113.680 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Metalworks/npcs/Karst.lua | 19 | 1867 | -----------------------------------
-- Area: Metalworks
-- NPC: Karst
-- Type: President
-- Involved in Bastok Missions 5-2
-- @pos 106 -21 0 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requi... | gpl-3.0 |
killme/koh | generalProcessor.lua | 1 | 4854 | local mq = require "koh.mq"
local base64 = require "luautil.base64"
local JSON = require "luvit.json"
mq.exchange("generalProcessor")
mq.listen({mq.QUEUE.GENERAL_PROCESSING}, function(consumer_tag, tag, data)
if tag == mq.TAG.PRE_FETCH_ALL or tag == mq.TAG.PRE_FETCH_PROFILE then
mq.publish(mq.QUEUE.MOJANG... | mit |
bluebarnacles/vlc-2.1 | share/lua/meta/fetcher/tvrage.lua | 48 | 2571 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 2010 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 l... | gpl-2.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_instant_self_destruct.lua | 5 | 2078 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Instant Self Destruct",
desc = "Replaces engine self-d behaviour for a set of units such that ... | gpl-2.0 |
matthewbauer/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
omidas77/speedbot | plugins/help.lua | 1 | 2030 | do
function run(msg, matches)
return [[
لیست دستورات :) :
صاحب
صاحب گروه
______
لیست مدیران
لیست مدیران معمولی
______
اخراج [ایدی|ریپلای]
کیک کردن اعضا از گروه
______
ایدی
دریافت ایدی گروه
______
اخراجم کن
دستور خروج از گروه
______
تنظیم سازنده [ایدی|ریپلای]
انتخاب صاحب و خریدار گروه
______
ترفیع [ایدی|ریپلای]
مد... | gpl-2.0 |
ArduPilot/ardupilot | libraries/AP_Scripting/applets/SmartAudio.lua | 24 | 3510 | --------------------------------------------------
--------------------------------------------------
--------- VTX LUA for SMARTAUDIO 2.0 -------------
------------based on work by----------------------
---------Craig Fitches 07/07/2020 ----------------
-------------Mods by H. Wurzburg -----------------
--------... | gpl-3.0 |
smclements/the-collector | util/hump/class.lua | 35 | 2925 | --[[
Copyright (c) 2010-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
shrimpz/slua | build/luajit-2.0.4/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | mit |
small-Wood/FlappyBird | src/AtlasLoader.lua | 3 | 1593 | --AtlasLoader
AtlasLoader = class("AtlasLoader")
AtlasLoader.__index = AtlasLoader
AtlasLoader._sharedAtlasLoader = nil
function AtlasLoader:ctor()
end
function AtlasLoader:getInstance()
if AtlasLoader._sharedAtlasLoader == nil then
AtlasLoader._sharedAtlasLoader = AtlasLoader.new()
AtlasLoader._sharedAtlasL... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Port_San_dOria/npcs/Nimia.lua | 36 | 1942 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Nimia
-- Only sells when San d'Oria controlls Elshimo Lowlands
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sho... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Mordion_Gaol/Zone.lua | 32 | 1433 | -----------------------------------
--
-- Zone: Mordion_Gaol
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mordion_Gaol/TextIDs"] = nil;
require("scripts/zones/Mordion_Gaol/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
Jmainguy/docker_images | prosody/prosody/lib/prosody/net/server.lua | 3 | 2502 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local use_luaevent = prosody and require "core.configmanager".get("*", "use_libevent");
if use_luaevent ... | gpl-2.0 |
shrimpz/slua | build/luajit-2.1.0/dynasm/dasm_ppc.lua | 33 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
AresTao/darkstar | scripts/globals/abilities/wind_shot.lua | 22 | 2984 | -----------------------------------
-- Ability: Wind Shot
-- Consumes a Wind Card to enhance wind-based debuffs. Deals wind-based magic damage
-- Choke Effect: Enhanced DoT and VIT-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
NeoRaider/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
soroushwilson/soroush | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
thess/OpenWrt-luci | applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua | 79 | 1554 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("coovachilli")
-- radius server
s1 = m:section(TypedSection, "radius")
s1.anonymous = true
s1:option( Value, "radiusserver1" )
s1:option( Value, "rad... | apache-2.0 |
NeoRaider/luci | applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua | 79 | 1554 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("coovachilli")
-- radius server
s1 = m:section(TypedSection, "radius")
s1.anonymous = true
s1:option( Value, "radiusserver1" )
s1:option( Value, "rad... | apache-2.0 |
qwook/spacesloth | entities/flag.lua | 2 | 1580 |
BaseEntity = require("entities.core.baseentity")
Flag = class("Flag", BaseEntity)
Flag.spritesheet1 = SpriteSheet:new("sprites/Flag_blue.png", 32, 32)
Flag.spritesheet2 = SpriteSheet:new("sprites/Flag_green.png", 32, 32)
function Flag:initialize()
BaseEntity.initialize(self)
end
function Flag:fixSpawnPosition()... | mit |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Galahad.lua | 38 | 1031 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Galahad
-- Type: Consulate Representative NPC
-- @zone: 231
-- @pos -51.984 -2.000 -15.373
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/Tex... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Lower_Jeuno/npcs/Zauko.lua | 17 | 5107 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zauko
-- Involved in Quests: Save the Clock Tower, Community Service
-- @zone 245
-- @pos -3 0 11
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/breath_mantle.lua | 43 | 1422 | -----------------------------------------
-- ID: 15486
-- Item: Breath Mantle
-- Item Effect: HP+18 / Enmity+3
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/pestle.lua | 41 | 1123 | -----------------------------------------
-- ID: 18599
-- Item: Pestle
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
fun... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Southern_San_dOria/npcs/Dahjal.lua | 34 | 1231 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Dahjal
-- first in conquest Npc
-- @zone 230
-- @pos
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/T... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Bastok_Mines/npcs/Abd-al-Raziq.lua | 42 | 2636 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Abd-al-Raziq
-- Type: Alchemy Guild Master
-- @pos 126.768 1.017 -0.234 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("... | gpl-3.0 |
AresTao/darkstar | scripts/globals/mobskills/Trinary_Tap.lua | 13 | 2016 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
Sithil-F/OpenRA | mods/cnc/maps/nod01/nod01.lua | 8 | 3139 | InitialForcesA = { "bggy", "e1", "e1", "e1", "e1" }
InitialForcesB = { "e1", "e1", "bggy", "e1", "e1" }
RifleInfantryReinforcements = { "e1", "e1" }
RocketInfantryReinforcements = { "e3", "e3", "e3", "e3", "e3" }
SendInitialForces = function()
Media.PlaySpeechNotification(nod, "Reinforce")
Reinforcements.Reinforce... | gpl-3.0 |
DeinFreund/Zero-K | effects/storm.lua | 25 | 4672 | -- stormback
-- stormmuzzle
return {
["stormback"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
properties = {
airdrag = 0.6,
co... | gpl-2.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_grass_cutter.lua | 1 | 1424 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
prosody-modules/import | mod_service_directories/mod_service_directories.lua | 32 | 5943 | -- Prosody IM
-- Copyright (C) 2011 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- An implementation of [XEP-0309: Service Directories]
-- Imports and defines
local st = require "util.stanza";
local jid_split = require "util.jid"... | mit |
ruohoruotsi/Wavelet-Tree-Synth | nnet/keeper_johnglover-sound-rnn-MDN-torch/train.lua | 1 | 5621 | local torch = require 'torch'
local nn = require 'nn'
require 'nngraph'
require 'optim'
local signal = require 'signal'
local data = require 'data'
local MDN = require 'mdn'
local model = require 'model'
local model_utils = require 'model_utils'
local cmd = torch.CmdLine()
cmd:option('-audio', 'audio.wav', 'path to th... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/plate_of_patlican_salata_+1.lua | 35 | 1224 | -----------------------------------------
-- ID: 5583
-- Item: plate_of_patlican_salata_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 4
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
jsphweid/.finale-macros | lua/expression_create-bold-above.lua | 2 | 1916 | function plugindef()
finaleplugin.Author = "Joseph Weidinger"
finaleplugin.Version = "1.0"
finaleplugin.Date = "July 05, 2015"
finaleplugin.RequireSelection = false
finaleplugin.CategoryTags = "create expression"
return "Expression - Create Bold Above", "Expression - Create Bold Above", "Expression... | mit |
codelua/TabliqGar | 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-3.0 |
tysonliddell/OpenRA | mods/ra/maps/allies-02/allies02.lua | 4 | 7742 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
DeinFreund/Zero-K | units/amphtele.lua | 1 | 2080 | unitDef = {
unitname = [[amphtele]],
name = [[Djinn]],
description = [[Amphibious Teleport Bridge]],
acceleration = 0.25,
activateWhenBuilt = true,
brakeRate = 0.75,
buildCostMetal = 750,
buildPic = [[amphtele.png]... | gpl-2.0 |
AresTao/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_2.lua | 21 | 2309 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_2)
-- @pos 263.600 -6.512 40.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Sacrarium/npcs/Treasure_Chest.lua | 19 | 2554 | -----------------------------------
-- Area: Sacrarium
-- NPC: Treasure Chest
-- @zone 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Sa... | gpl-3.0 |
ld-test/prosody | net/http.lua | 1 | 5013 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local b64 = require "util.encodings".base64.encode;
local url = require "socket.url"
local httpstream_new ... | mit |
AresTao/darkstar | scripts/globals/items/kitron.lua | 36 | 1151 | -----------------------------------------
-- ID: 4273
-- Item: Kitron
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
bbalu/kong | kong/tools/faker.lua | 11 | 3216 | local Object = require "classic"
local Faker = Object:extend()
function Faker:new(dao_factory)
self.dao_factory = dao_factory
end
-- Generate a fake entity.
-- @param `type` Type of the entity to generate.
-- @return An valid entity (a table) complying to the defined schema.
function Faker:fake_entity(type... | mit |
minijack/SiriusL2D | old.lua | 2 | 2727 | require "core"
require "menu"
local Unit = class("Unit", ge.Node)
function Unit:init(x, y, player, sprite, type)
self.position = ge.Vector2(x, y)
self.origin = self.position
self.sprite = sprite
self.player = player
self.type = type
self.inHand = true
self.health = 7
self.attack = 4
end
local Game = ge.State(... | gpl-3.0 |
DeinFreund/Zero-K | scripts/cloakjammer.lua | 15 | 2991 | local head = piece 'head'
local hips = piece 'hips'
local chest = piece 'chest'
local rthigh = piece 'rthigh'
local lthigh = piece 'lthigh'
local lshin = piece 'lshin'
local rshin = piece 'rshin'
local rfoot = piece 'rfoot'
local lfoot = piece 'lfoot'
local disc = piece 'disc'
local cloaker = piece 'cloaker' ... | gpl-2.0 |
kidaa/luvit | bench/http-cluster/app.lua | 14 | 1034 | --[[
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 |
tysonliddell/OpenRA | mods/d2k/maps/harkonnen-07/harkonnen07-AI.lua | 4 | 3574 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
smclements/the-collector | util/audio.lua | 1 | 1054 | do
-- will hold the currently playing sources
local sources = {}
-- check for sources that finished playing and remove them
-- add to love.update
function love.audio.update()
local remove = {}
for _,s in pairs(sources) do
if s:isStopped() then
remove[#rem... | mit |
qwook/spacesloth | assets/maps/test.lua | 1 | 85389 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "collision",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
AresTao/darkstar | scripts/globals/gear_sets.lua | 3 | 26501 | -----------------------------------
-- Gear sets
-- Allows the use of gear sets with modifiers
-----------------------------------
require("scripts/globals/status");
-----------------------------------
local matchtype = {
any = 0,
earring_weapon = 1,
weapon_weapon = 2
}
-- placehol... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Cattah Pamjah
-- Type: Title Changer
-- @zone: 94
-- @pos -13.564 -2 10.673
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Bastok_Mines/npcs/Mariadok.lua | 59 | 1037 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Mariadok
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Bastok_Mines/TextIDs");
-... | gpl-3.0 |
AresTao/darkstar | scripts/globals/effects/addendum_black.lua | 74 | 1952 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect... | gpl-3.0 |
qwook/spacesloth | assets/maps/hyperspace.lua | 2 | 248745 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "collision",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
DeinFreund/Zero-K | scripts/hoverraid.lua | 11 | 1979 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local gun = piece 'gun'
local flare = piece 'flare'
local ground = piece 'ground01'
local wakes = {}
for i = 1, 8 do
wakes[i] = piece('wake0' .. i)
end
local function WobbleUnit()
local wobble = true
while true do
if wobble == true t... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Commojourt.lua | 17 | 1525 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Commojourt
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ques... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Boneyard_Gully/bcnms/like_the_wind.lua | 17 | 1655 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: like_the_wind
-- BCNM: 673
-- Mask: 1
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyite... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/alchemists_belt.lua | 30 | 1200 | -----------------------------------------
-- ID: 15450
-- Item: Alchemist's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Alchemy Skill +3
-----------------------------------------
requir... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Bastok_Mines/npcs/Vaghron.lua | 38 | 1396 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Vaghron
-- Type: Adventurer's Assistant
-- @pos -39.162 -1 -92.147 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("s... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm13.lua | 34 | 1386 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm13 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -194.166 -5.500 139.969 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
resetnow/premake-core | src/base/detoken.lua | 5 | 4751 | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | bsd-3-clause |
DeinFreund/Zero-K | units/spideranarchid.lua | 6 | 3732 | unitDef = {
unitname = [[spideranarchid]],
name = [[Anarchid]],
description = [[Riot EMP Spider]],
acceleration = 0.26,
brakeRate = 0.78,
buildCostMetal = 250,
buildPic = [[spideremp.png]],
canGuard = t... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/serving_of_mille_feuille.lua | 36 | 1426 | -----------------------------------------
-- ID: 5559
-- Item: Serving of Mille Feuille
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +15
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
----------------------------------... | gpl-3.0 |
gsage/engine | Tests/resources/specs/ogre/camera_eal_spec.lua | 1 | 2524 | require 'factories.camera'
require 'lib.eal.manager'
local async = require 'lib.async'
describe("test camera eal #ogre", function()
local ninja = data:createEntity({
id = 'ninja',
render = {
resources = {
Ninja = {
"Zip;bundles/models/v1/packs/ninja.zip"
}
},
root ... | mit |
AresTao/darkstar | scripts/globals/weaponskills/full_break.lua | 18 | 2387 | -----------------------------------
-- Full Break
-- Great Axe weapon skill
-- Skill level: 225 (Warriors only.)
-- Lowers enemy's attack, defense, params.accuracy, and evasion. Duration of effect varies with TP.
-- Lowers attack and defense by 12.5%, evasion by 20 points, and estimated to also lower params.accura... | gpl-3.0 |
u20024804/fbcunn | test/test_DataParallelComprehensive.lua | 8 | 4447 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'optim'
require 'cunn'
require 'fbcunn' -- For nn.DataParallel
require 'fbnn' -- For nn.Optim
local base_gpu = 1 -- Primary GPU to use
local num_gpus = 2 -- We will use {base_gpu, base_gpu+1, etc} with modulus
torch.setdefaulttensortype('torch.Doubl... | bsd-3-clause |
mehulsbhatt/ntopng | scripts/lua/get_flow_data.lua | 10 | 1804 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "flow_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
local debug = debug_flow_data
flow_key = _GET["flow_key"]
if(flow_key == nil) then
flow ... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Prince_Seere.lua | 16 | 1253 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Prince Seere
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function... | gpl-3.0 |
ld-test/prosody | core/rostermanager.lua | 1 | 11219 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local log = require "util.logger".init("rostermanager");
local pairs = pairs;
local tostring = tostrin... | mit |
DeinFreund/Zero-K | lups/ParticleClasses/SphereDistortion.lua | 5 | 6289 | -- $Id: SphereDistortion.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local SphereDistortion = {}
Sp... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua | 17 | 2538 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Leypoint
-- Teleport point, Quest -- NAVIGATING THE UNFRIENDLY SEAS RELATED --
-- @pos -200.027 -8.500 80.058 51
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require("scripts/globals/settings");
re... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Ghelsba_Outpost/npcs/Logging_Point.lua | 29 | 1107 | -----------------------------------
-- Area: Ghelsba Outpost
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Ghelsba_Outpost/TextIDs");
... | gpl-3.0 |
DeinFreund/Zero-K | effects/annabelle.lua | 25 | 4477 | -- annabelle
-- annabelle_smokejet
return {
["annabelle"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = [[0 i1]],
... | gpl-2.0 |
mortezam1234/kkdfjkfl- | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Xarcabard/npcs/Trail_Markings.lua | 17 | 2473 | -----------------------------------
-- Area: Xarcabard
-- NPC: Trail Markings
-- Dynamis-Xarcabard Enter
-- @pos 570 0 -272 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
mehulsbhatt/ntopng | scripts/lua/modules/persistence.lua | 19 | 5650 | -- Internal persistence library
--[[ Provides ]]
-- persistence.store(path, ...): Stores arbitrary items to the file at the given path
-- persistence.load(path): Loads files that were previously stored with store and returns them
--[[ Limitations ]]
-- Does not export userdata, threads or most function values
-- Func... | gpl-3.0 |
NeoRaider/luci | modules/luci-base/luasrc/tools/status.lua | 3 | 5212 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.status", package.seeall)
local uci = require "luci.model.uci".cursor()
local function dhcp_leases_common(family)
local rv = { }
local nfs = require "nixio.fs"
local leasefile = "/tmp/dhcp... | apache-2.0 |
bestvivi/Atlas | lib/proxy/tokenizer.lua | 41 | 6215 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Adelbrecht.lua | 53 | 4980 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Adelbrecht
-- Starts Quests: The Fighting Fourth
-- Involved in Missions: Back to the Beginning
-- CS IDs:
-- 139 = 0x008B = Greetings, civilian. The Seventh Cohors of the Republican Legion's Fourth Division is currently recruiting new troops.
-- ... | gpl-3.0 |
AresTao/darkstar | scripts/commands/addeffect.lua | 24 | 1711 | ---------------------------------------------------------------------------------------------------
-- func: addeffect
-- desc: Adds the given effect to the given player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
par... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Waters/npcs/Anja-Enja.lua | 37 | 1052 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Anja-Enja
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs");
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Southern_San_dOria/npcs/Phillone.lua | 34 | 1434 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Phillone
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quest... | gpl-3.0 |
DeinFreund/Zero-K | scripts/commsupport.lua | 12 | 16403 | include "constants.lua"
local spSetUnitShieldState = Spring.SetUnitShieldState
-- pieces
local base = piece 'base'
local pelvis = piece 'pelvis'
local turret = piece 'turret'
local torso = piece 'torso'
local head = piece 'head'
local armhold = piece 'armhold'
local ruparm = piece 'ruparm'
local rarm = piece '... | gpl-2.0 |
ld-test/prosody | net/websocket/frames.lua | 1 | 5518 | -- Prosody IM
-- Copyright (C) 2012 Florian Zeitz
-- Copyright (C) 2014 Daurnimator
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local softreq = require "util.dependencies".softreq;
local log = require "util.logger".init "websocket.frames";
local... | mit |
DeinFreund/Zero-K | gamedata/modularcomms/weapons/disruptor.lua | 5 | 1481 | local name = "commweapon_disruptor"
local weaponDef = {
name = [[Disruptor Pulse Beam]],
areaOfEffect = 32,
beamdecay = 0.9,
beamTime = 1/30,
beamttl = 30,
coreThickness = 0.25,
craterBoost = 0,
craterMult ... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Uleguerand_Range/npcs/Fissure.lua | 19 | 1692 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Fissure
-- Teleports players from underground to surface
-- @pos 380.267 34.859 -179.655 5
-- @pos 460.339 -29.137 220.311 5
-- @pos 180.207 -77.147 500.276 5
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/T... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.