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 |
|---|---|---|---|---|---|
starlightknight/darkstar | scripts/zones/Cloister_of_Gales/mobs/Garuda_Prime.lua | 8 | 1457 | -----------------------------------
-- Area: Cloister of Gales
-- Mob: Garuda Prime
-- Involved in Quest: Trial by Wind, Trial Size Trial by Wind
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/settings")
require("scr... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Empyreal_Paradox/IDs.lua | 8 | 1043 | -----------------------------------
-- Area: Empyreal_Paradox
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.EMPYREAL_PARADOX] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/weaponskills/death_blossom.lua | 10 | 2640 | -----------------------------------
-- Death Blossom
-- Sword weapon skill (RDM main only)
-- Description: Delivers a threefold attack that lowers target's magic evasion. Chance of lowering target's magic evasion varies with TP. Murgleis: Aftermath effect varies with TP.
-- Lowers magic evasion by up to 10.
-- Effect l... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Western_Adoulin/npcs/Jorin.lua | 3 | 2278 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Jorin
-- Type: Standard NPC and Quest Giver
-- Starts, Involved with, and Finishes Quest: 'The Old Man and the Harpoon'
-- @zone 256
-- !pos 92 32 152 256
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"... | gpl-3.0 |
zzzaaiidd/TCHUKY | plugins/getlink.lua | 11 | 28101 | --[[
โโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ โโ โโ โโ
โโ โโ BY MOHAMMED HISHAM โโ โโ
โโ โโ BY MOHAMMEDHISHAM (@TH3BOSS) โโ โโ
โโ โโ JUST WRITED BY MOHAMMED HISHAM โโ โโ
โโ โโ A SPECiAL LINK : ุงูุฑุงุจุท ุฎุงุต โโ โโ
โโ... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Port_San_dOria/npcs/Meinemelle.lua | 9 | 1078 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Meinemelle
-- !pos -8.289 -9.3 -146.093 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
-----------------------------------
function... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Palborough_Mines/npcs/HomePoint#1.lua | 3 | 1270 | -----------------------------------
-- Area: Palborough_Mines
-- NPC: HomePoint#1
-- !pos 109 -38.5 -147 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
require("scripts/glo... | gpl-3.0 |
soccermitchy/heroku-lapis | opt/src/luarocks/src/luarocks/install.lua | 15 | 8077 | --- Module implementing the LuaRocks "install" command.
-- Installs binary rocks.
--module("luarocks.install", package.seeall)
local install = {}
package.loaded["luarocks.install"] = install
local path = require("luarocks.path")
local repos = require("luarocks.repos")
local fetch = require("luarocks.fetch")
local util... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Promyvion-Dem/mobs/Memory_Receptacle.lua | 2 | 2382 | -----------------------------------
-- Area: Promyvion-Dem
-- MOB: Memory Receptacle
-----------------------------------
package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil;
package.loaded["scripts/zones/Promyvion-Dem/MobIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Dem/Text... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Kazham/npcs/Kukupp.lua | 2 | 5591 | -----------------------------------
-- Area: Kazham
-- NPC: Kukupp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
43.067505, -11.000000, -177.214966,
43.583324, ... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Windurst/npcs/Ohruru.lua | 3 | 4928 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohruru
-- Starts & Finishes Repeatable Quest: Catch me if you can
-- Involved in Quest: Wonder Wands
-- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyways.
-- !pos -108 -5 94 2... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/weaponskills/refulgent_arrow.lua | 10 | 1449 | -----------------------------------
-- Refulgent Arrow
-- Archery weapon skill
-- Skill level: 290
-- Delivers a twofold attack. Damage varies with TP.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: None
-- Modifiers: STR: 60% http://www.bg-wiki.com/bg/Refulgent_... | gpl-3.0 |
strava/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/Susu.lua | 17 | 1634 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Susu
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrade Ac... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Cape_Teriggan/TextIDs.lua | 2 | 1536 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the #. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6386; ... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 11 | 1150 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onT... | gpl-3.0 |
czegarram/rapid-troll | multipartForm.lua | 1 | 7290 | -------------------------------------------------
--
-- class_MultipartFormData.lua
-- Author: Brill Pappin, Sixgreen Labs Inc.
--
-- Generates multipart form-data for http POST calls that require it.
--
-- Caution:
-- In Corona SDK you have to set a string as the body, which means that the
-- entire POST needs to be... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/The_Garden_of_RuHmet/mobs/Ix_aern_drg_s_Wynav.lua | 17 | 1753 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- MOB: Ix'aern (drg)'s Wynav
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
---------------... | gpl-3.0 |
dantezhu/neon | examples/tpl/src/cocos/extension/DeprecatedExtensionFunc.lua | 61 | 1351 | if nil == cc.Control then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.ad... | mit |
dantezhu/neon | examples/demo1/src/cocos/extension/DeprecatedExtensionFunc.lua | 61 | 1351 | if nil == cc.Control then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.ad... | mit |
gedads/Neodynamis | scripts/commands/goto.lua | 8 | 1425 | ---------------------------------------------------------------------------------------------------
-- func: goto
-- desc: Goes to the target player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"
};
function e... | gpl-3.0 |
nathanaeljones/weaver-nodelua | default_universe/terra/town.lua | 1 | 3277 | center_ = "Go to the Town Center (c)"
function center()
p "You are standing in the center of a busy town. Smells of rotten fruit attack your nostrils."
p ("You have been here " .. inc("user.town.center.visits",1) .. " times.")
choose({
"market",
"world.house.outside",
"world.test.rabbithole.rabbit... | apache-2.0 |
starlightknight/darkstar | scripts/zones/Riverne-Site_B01/mobs/Bahamut.lua | 9 | 5477 | -----------------------------------
-- Area: Riverne - Site B01 (BCNM)
-- NM: Bahamut
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_B01/IDs")
require("scripts/globals/quests");
require("scripts/globals/status");
function onMobInitialise(mob)
mob:setMobMod(dsp.mobMod.HP_STAND... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Rolanberry_Fields/Zone.lua | 9 | 4607 | -----------------------------------
--
-- Zone: Rolanberry_Fields (110)
--
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Rolanberry_Fields/TextIDs");
require("scripts/globals/icanheararainbow");
require("s... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/base/lua/CellularSpace.lua | 1 | 59488 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
Amorph/premake-stable | src/actions/make/make_solution.lua | 23 | 2363 | --
-- make_solution.lua
-- Generate a solution-level makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
function premake.make_solution(sln)
-- create a shortcut to the compiler interface
local cc = premake[_OPTIONS.cc]
-- build a list of supported target platforms that also includes ... | bsd-3-clause |
ironjade/DevStack | LanCom/DesignPattern/LUA/Experiment1.lua | 1 | 1107 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/12/03 02:47:07 $
$RCSfile: Experiment1.lua,v $
$Revision: 1.1 $
$Id: Experiment1.lua,v 1.1 2004/12/03 02:47:07 brpreiss Exp $
--]]
require "Example"
require "Timer"
-- Provides experimen... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 17 | 1820 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/abilities/elemental_siphon.lua | 3 | 2832 | -----------------------------------
-- Ability: Elemental Siphon
-- Drains MP from your summoned spirit.
-- Obtained: Summoner level 50
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
r... | gpl-3.0 |
mishin/Algorithm-Implementations | Egyptian_Fractions/Lua/Yonaba/egyptian_fractions_test.lua | 26 | 1335 | -- Tests for egyptian_fractions.lua
local egypt = require 'egyptian_fractions'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass =... | mit |
pravsingh/Algorithm-Implementations | Egyptian_Fractions/Lua/Yonaba/egyptian_fractions_test.lua | 26 | 1335 | -- Tests for egyptian_fractions.lua
local egypt = require 'egyptian_fractions'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass =... | mit |
mishin/Algorithm-Implementations | Monty_Hall_Problem/Lua/Yonaba/monty_hall.lua | 26 | 1033 | -- Monty-Hall problem implementation
-- See : http://en.wikipedia.org/wiki/Monty_Hall_problem
-- Create a range of values as a list
local function range(n)
local t = {}
for i = 1,n do t[i] = i end
return t
end
-- Simulates Monty Hall problem
-- ndoors : number of doors
-- switch : whether or not the player want... | mit |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 55 | 8246 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2011 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
htt... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Nyzul_Isle/instances/path_of_darkness.lua | 9 | 2307 | -----------------------------------
--
-- TOAU-42: Path of Darkness
--
-----------------------------------
local ID = require("scripts/zones/Nyzul_Isle/IDs")
require("scripts/globals/instance")
require("scripts/globals/keyitems");
-----------------------------------
function afterInstanceRegister(player)
local ins... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/plate_of_patlican_salata_+1.lua | 12 | 1365 | -----------------------------------------
-- ID: 5583
-- Item: plate_of_patlican_salata_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 5
-- Vitality -2
-- Evasion +7
-- hHP +3
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Bastok_Markets_[S]/npcs/Porter_Moogle.lua | 3 | 1538 | -----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- !zone 87
-- !pos TODO
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/Text... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/mobskills/gigaflare.lua | 37 | 1686 | ---------------------------------------------
-- Gigaflare
-- Family: Bahamut
-- Description: Deals massive Fire damage to enemies within a fan-shaped area.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range:
-- Notes: Used by Bahamut when at 10% of its HP, and can use anytime afterwards at will... | gpl-3.0 |
CrazyEddieTK/Zero-K | scripts/turrettorp.lua | 16 | 2934 | include "constants.lua"
local base = piece 'base'
local arm1 = piece 'arm1'
local arm2 = piece 'arm2'
local turret = piece 'turret'
local firepoint = piece 'firepoint'
local waterFire = false
local smokePiece = {base}
-- Signal definitions
local SIG_AIM = 2
local function Bob(rot)
while true do
Turn(base, ... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Widgets/gfx_dynamic_metal.lua | 5 | 1812 | function widget:GetInfo()
return {
name = "Lua Metal Decals",
desc = "Draws a decal on each metal spot",
author = "Bluestone (based on the Lua Metal Spots widget by Cheesecan)",
date = "April 2014",
license = "GPL v3 or later",
layer = 5,
enabled = true -- loaded by default?
... | gpl-2.0 |
alexgrist/NutScript | gamemode/languages/sh_polish.lua | 1 | 21546 | -- Autorzy: zgredinzyyy (Poprawki + Brakujฤ
ce rzeczy) || Veran120, Michaล, Lechu2375 https://github.com/lechu2375/helix-polishlocalization/blob/master/sh_polish.lua
NAME = "Polski"
LANGUAGE = {
helix = "Helix",
introTextOne = "fist industries prezentuje",
introTextTwo = "w wspรณลpracy z %s",
introContinue = "wciล... | mit |
czfshine/Don-t-Starve | data/DLC0001/scripts/components/inventorymoisture.lua | 1 | 2410 | local InventoryMoisture = Class(function(self, inst)
self.inst = inst
self.itemList = {}
self.itemIndex = 1
self.inst:StartUpdatingComponent(self)
end)
function InventoryMoisture:GetLastUpdate(item)
if not item then return nil end
if not item.components.moisturelistener then return nil end
return item.compon... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Gadgets/unit_turn_without_interia.lua | 12 | 1401 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/events.lua | 1 | 1082 | local EventHandler = Class(function(self, event, fn, processor)
self.event = event
self.fn = fn
self.processor = processor
end)
function EventHandler:Remove()
self.processor:RemoveHandler(self)
end
------------------------
EventProcessor = Class(function(self)
self.events = {}
end)
function Even... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/maxwellhead.lua | 1 | 2843 | local assets =
{
Asset("ANIM", "anim/maxwell_floatinghead.zip"),
Asset("SOUND", "sound/maxwell.fsb"),
}
local SPEECH =
{
NULL_SPEECH=
{
--appearanim = "appear",
idleanim= "idle_loop",
--dialogpreanim = "dialog_pre",
dialoganim="dialog_loop",
--dialogpostanim = "dialog_pst",
disappearanim = "disappear"... | gpl-2.0 |
EMCTEAM-IRAN/superflux-bot | plugins/boobs.lua | 1 | 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-3.0 |
rzh/mongocraft | world/Plugins/APIDump/Hooks/OnKilling.lua | 36 | 1190 | return
{
HOOK_KILLING =
{
CalledWhen = "A player or a mob is dying.",
DefaultFnName = "OnKilling", -- also used as pagename
Desc = [[
This hook is called whenever a {{cPawn|pawn}}'s (a player's or a mob's) health reaches zero. This
means that the pawn is about to be killed, unless a plugin "revives" them... | apache-2.0 |
CrazyEddieTK/Zero-K | units/shieldriot.lua | 4 | 5987 | unitDef = {
unitname = [[shieldriot]],
name = [[Outlaw]],
description = [[Riot Bot]],
acceleration = 0.25,
activateWhenBuilt = true,
brakeRate = 0.75,
buildCostMetal = 250,
buildPic = [[shieldriot.png]],
canGu... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/prefabs/resurrectionstone.lua | 1 | 3569 | local assets =
{
Asset("ANIM", "anim/resurrection_stone.zip"),
}
local prefabs =
{
"rocks",
"marble",
"nightmarefuel",
}
local function OnActivate(inst)
inst.components.resurrector.active = true
ProfileStatsSet("resurrectionstone_activated", true)
inst.AnimState:PlayAnimation("activate")
inst.AnimState:Pus... | gpl-2.0 |
TimSimpson/Macaroni | Next/Tests/Bugs/6/manifest.lua | 2 | 1723 | upper = getUpperLibrary();
id =
{
group=upper.Group,
name= upper.Name .. ".4",
version="0.1.0.20",
author="Tim Simpson"
}
dependency {group="Macaroni", name="Boost-smart_ptr", version="1.46.1"}
dependency {group="Macaroni", name="CppStd", version="2003"}
description= [[
Its not possible to use two... | apache-2.0 |
project-asap/IReS-Platform | resources/unusedAsapLibraryComponents/Maxim/operators/WIND_Join_test_VORONOI_Spark/WIND_Join_test_VORONOI_Postgres.lua | 3 | 1247 | -- General configuration of the operators belonging to Wind_Demo_o_Postgres workflow
BASE = "${JAVA_HOME}/bin/java -Xms64m -Xmx128m com.cloudera.kitten.appmaster.ApplicationMaster"
TIMEOUT = -1
MEMORY = 1024
CORES = 1
LABELS = "postgres"
EXECUTION_NODE_LOCATION = "hdp1"
-- Specific configuration of operator
OPERATOR =... | apache-2.0 |
StoneDot/luasocket | test/urltest.lua | 30 | 17349 | local socket = require("socket")
socket.url = require("socket.url")
dofile("testsupport.lua")
local check_build_url = function(parsed)
local built = socket.url.build(parsed)
if built ~= parsed.url then
print("built is different from expected")
print(built)
print(expected)
os.exi... | mit |
CrazyEddieTK/Zero-K | effects/gundam_dirt.lua | 24 | 11215 | -- dirt3
-- dirt
-- dirt2
return {
["dirt3"] = {
poof01 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
properties = {
airdrag = 1.0,
alwaysvisible = false,
col... | gpl-2.0 |
CrazyEddieTK/Zero-K | scripts/energywind.lua | 5 | 3246 | local base, fan, cradle, flaot = piece('base', 'fan', 'cradle', 'flaot')
include "constants.lua"
local baseDirection
local smokePiece = {base}
local tau = math.pi*2
local pi = math.pi
local hpi = math.pi*0.5
local pi34 = math.pi*1.5
local UPDATE_PERIOD = 1000
local BUILD_PERIOD = 500
local turnSpeed = math.rad(20)... | gpl-2.0 |
czfshine/Don-t-Starve | data/scripts/components/childspawner.lua | 1 | 10322 | local trace = function() end
-- local trace = function(inst, ...)
-- if inst.prefab == "beebox" then
-- print(inst, ...)
-- end
-- end
--- Spawns and tracks child entities in the world
-- For setup the following params should be set
-- @param childname The prefab name of the default child to be spawned. This can b... | gpl-2.0 |
rzh/mongocraft | world/Plugins/Core/spawn.lua | 5 | 2174 | function HandleSpawnCommand(Split, Player)
local WorldIni = cIniFile()
WorldIni:ReadFile(Player:GetWorld():GetIniFileName())
local SpawnX = WorldIni:GetValue("SpawnPosition", "X")
local SpawnY = WorldIni:GetValue("SpawnPosition", "Y")
local SpawnZ = WorldIni:GetValue("SpawnPosition", "Z")
local flag = 0
if... | apache-2.0 |
matthewhesketh/mattata | plugins/movies.lua | 2 | 2736 | --[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local movies = {}
local mattata = require('mattata')
local https = require('ssl.https')
local http = require('socket.http')
local url = require('socket.url')
local json = require('d... | mit |
CrazyEddieTK/Zero-K | LuaRules/Configs/tactical_ai_defs.lua | 2 | 33450 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local function Union(t1, t2)
local ret = {}
for i, v in pairs(t1) do
ret[i] = v
end
for i, v in pairs(t2) do
ret[i] = v
end
return ret
end
local f... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaUI/Configs/clippy.lua | 13 | 4709 | local THRESHOLD_EXPENSIVE = 1200
INCOME_TO_SPLURGE = 20 -- ignore expensive warning if you have this much income
METAL_PER_NANO = 8 -- suggested nanos per metal ^ -1
MIN_PULL_FOR_NANOS = -10 -- don't make more nanos if our pull is already this low --unused
NANO_DEF_ID = UnitDefNames.staticcon.id
ENERGY_TO_METAL_RATIO ... | gpl-2.0 |
CrazyEddieTK/Zero-K | LuaRules/Gadgets/CAI/PathfinderGenerator.lua | 9 | 13785 | --[[ Handles Pathfinding
* Use this file to create pathfinding objects with movetypes.
* This ojbect can generate paths between two points or return
false when there is no path.
* Can be passed heatmaps which weight the nodes.
--]]
---------------------------------------------------------------
-- Configuration an... | gpl-2.0 |
CrazyEddieTK/Zero-K | units/staticjammer.lua | 5 | 2429 | unitDef = {
unitname = [[staticjammer]],
name = [[Cornea]],
description = [[Area Cloaker/Jammer]],
activateWhenBuilt = true,
buildCostMetal = 420,
builder = false,
buildingGroundDecalDecaySpeed... | gpl-2.0 |
timroes/awesome | lib/awful/rules.lua | 1 | 16538 | ---------------------------------------------------------------------------
--- Apply rules to clients at startup.
--
-- All existing `client` properties can be used in rules. It is also possible
-- to add random properties that will be later accessible as `c.property_name`
-- (where `c` is a valid client object)
--
--... | gpl-2.0 |
mercury233/ygopro-scripts | c5220687.lua | 4 | 1235 | --็ด ๆฉใใใใฐใใ ในใฟใผ
function c5220687.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5220687,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetTarget(c5220687.target)
e1:Set... | gpl-2.0 |
wenhuizhang/MoonGen | examples/ipsec/ah-gmac.lua | 6 | 4384 | local dpdk = require "dpdk"
local ipsec = require "ipsec"
local memory = require "memory"
local device = require "device"
local ffi = require "ffi"
local stats = require "stats"
function master(txPort, rxPort)
if not txPort or not rxPort then
return print("Usage: txPort rxPort")
end
local txDev = device.config(tx... | mit |
mercury233/ygopro-scripts | c1918087.lua | 9 | 1223 | --ใดใใชใณใฎๅฐๅฝนไบบ
function c1918087.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetCondition(c1918087.actcon)
c:RegisterEffect(e1)
--damage
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Str... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/items/plate_of_beef_paella_+1.lua | 36 | 1429 | -----------------------------------------
-- ID: 5973
-- Item: Plate of Beef Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Strength 6
-- Attack % 19 Cap 95
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
sudhaMR/Animal_Book | mainMenu.lua | 1 | 4735 | ----------------------------------------------------------------------------------
--
-- scenetemplate.lua
--
----------------------------------------------------------------------------------
local widget = require "widget"
local composer = require( "composer" )
local scene = composer.newScene()
require "sqlite3"
----... | mit |
mercury233/ygopro-scripts | c25669282.lua | 2 | 3570 | --ๅฎๅ
จ็็ผ
function c25669282.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,25669282+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c25669282.cost)
e1:SetTarget(c25669282.target)
e1:SetOperat... | gpl-2.0 |
mercury233/ygopro-scripts | c77421977.lua | 2 | 2907 | --Aiใทใฃใใผ
function c77421977.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetCondition(aux.dscon)
e1:SetTarget(c77421977.target)
e1:SetOpe... | gpl-2.0 |
AntonioModer/fuccboiGDX | fuccboi/world/Query.lua | 1 | 8147 | local Class = require (fuccboi_path .. '/libraries/classic/classic')
local Query = Class:extend()
function Query:queryNew()
end
function Query:getEntitiesBy(key, value, object_types)
local entities = {}
if object_types then
for _, type in ipairs(object_types) do
for _, group in ipairs(se... | mit |
Zenny89/darkstar | scripts/globals/items/silken_sash.lua | 36 | 1212 | -----------------------------------------
-- ID: 5632
-- Item: Silken Sash
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +3
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
---... | gpl-3.0 |
mercury233/ygopro-scripts | c12332865.lua | 2 | 1251 | --่ๅบงๅคฉๅฃในใใณ
function c12332865.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12332865,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATIO... | gpl-2.0 |
bryancall/trafficserver | plugins/lua/example/test_fetch.lua | 17 | 1604 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | apache-2.0 |
valhallaGaming/uno | branches/2_0_3_STABLE/vgscoreboard/scoreboard_client.lua | 1 | 9360 | local columnByName = {}
local scoreboardColumns = {}
local scoreboardRows = {}
local scoreboardGrid
local updateInterval = 1000 --ms
local visibilityCheckInterval = 500 --ms
local indent = ' '
local playerCount
local localPlayer = getLocalPlayer()
local playerTeam = getPlayerTeam(localPlayer)
local player... | bsd-3-clause |
Zenny89/darkstar | scripts/zones/Crawlers_Nest/npcs/qm12.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm12 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 99.326 -0.126 -188.869 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
mercury233/ygopro-scripts | c76981308.lua | 2 | 3974 | --ใกใซใใฃใผใจใซใใใฃใ
function c76981308.initial_effect(c)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRan... | gpl-2.0 |
XavierCHN/dota-hexagons | utils/class.lua | 1 | 9810 | -- class.lua
-- Compatible with Lua 5.1 (not 5.0).
--
--[[
Usage:
-- Define a class A
A = class(
-- First parameter to class function is a table with properties and
-- constructor method. Error if not specified or not a table
--
{
-- Define o... | mit |
mercury233/ygopro-scripts | c97053215.lua | 2 | 2621 | --Gใดใผใฌใ ใปในใฟใใณใปใกใณใใซ
function c97053215.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkAttribute,ATTRIBUTE_EARTH),2,2)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(97053215,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_... | gpl-2.0 |
mercury233/ygopro-scripts | c54100561.lua | 2 | 2654 | --ใใกใใฌใใณใผใใปใใกใณใทใข
function c54100561.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--cannot disable spsummon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_DISABLE_SPSUMMON)
e1:SetProperty(EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_SET_AVAILABLE)
e1:SetRange... | gpl-2.0 |
mercury233/ygopro-scripts | c38737148.lua | 2 | 1991 | --ใฉใคใใฌใค ใใคใใญใน
function c38737148.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c38737148.spcon)
... | gpl-2.0 |
ajayk/kong | kong/plugins/key-auth/handler.lua | 2 | 3290 | local cache = require "kong.tools.database_cache"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local BasePlugin = require "kong.plugins.base_plugin"
local KeyAuthHandler = BasePlugin:extend()
KeyAuthHandler.PRIORITY = 1000
-- Fast lookup for credential retrieval dependi... | apache-2.0 |
mercury233/ygopro-scripts | c81278754.lua | 3 | 1825 | --่ฃใฌใจใซ
function c81278754.initial_effect(c)
--turn set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(81278754,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c81278754.target)
e1:SetOperation(c81278754.operation)
c:RegisterEffect(... | gpl-2.0 |
ArchiveTeam/toshiba-grab | urlcode.lua | 58 | 3476 | ----------------------------------------------------------------------------
-- Utility functions for encoding/decoding of URLs.
--
-- @release $Id: urlcode.lua,v 1.10 2008/01/21 16:11:32 carregal Exp $
----------------------------------------------------------------------------
local ipairs, next, pairs, tonumber, ty... | unlicense |
Shockah/IB-Raid-Loot | Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua | 3 | 10822 | --[[
Name: DBIcon-1.0
Revision: $Rev: 25 $
Author(s): Rabbit (rabbit.magtheridon@gmail.com)
Description: Allows addons to register to recieve a lightweight minimap icon as an alternative to more heavy LDB displays.
Dependencies: LibStub
License: GPL v2 or later.
]]
--[[
Copyright (C) 2008-2011 Rabbit
This program is ... | apache-2.0 |
openwrt-stuff/openwrt-extra | luci/applications/luci-ngrokc/luasrc/model/cbi/ngrokc/detail.lua | 2 | 2817 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
-- Copyright 2014-2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local UCI... | gpl-2.0 |
rouing/FHLG-BW | entities/entities/bigbomb/init.lua | 1 | 11550 | /* ======================================
bigbomb
the big bomb
====================================== */
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:SpawnFunction( ply, tr )
if ( !tr.Hit ) then return end
local SpawnPos = tr.HitPos + tr.HitNormal * 20
loc... | unlicense |
mercury233/ygopro-scripts | c22454453.lua | 2 | 1144 | --่ฌ่ใช็ถ
function c22454453.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c22454453.target)
e1:SetOperation(c22454453.activate)
c:Re... | gpl-2.0 |
un1q/oLua | OLuaArgsValidator.lua | 1 | 3296 | ------------------------------------------------------------------------------
-- OLuaArgsValidator
-- Validator of arguments
declare('OLuaArgsValidator').inherit('OLuaValidator')
function OLuaArgsValidator:constructor(...)
self.expectedArgs = {...}
table.insert(self.expectedArgs, 1, 'table') --we expect self ... | mit |
mercury233/ygopro-scripts | c91228233.lua | 2 | 2839 | --่ฟทใ่ฑใฎๆฃฎ
function c91228233.initial_effect(c)
aux.AddCodeList(c,3285552)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetR... | gpl-2.0 |
mjssw/cuberite | lib/tolua++/src/bin/lua/compat.lua | 23 | 4095 | -------------------------------------------------------------------
-- Real globals
-- _ALERT
-- _ERRORMESSAGE
-- _VERSION
-- _G
-- assert
-- error
-- metatable
-- next
-- print
-- require
-- tonumber
-- tostring
-- type
-- unpack
-------------------------------------------------------------------
-- collectgarbage
--... | apache-2.0 |
Cavitt/vanilla-ot | data/movements/scripts/tiles.lua | 1 | 3374 | local config = {
increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063},
decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062},
maxLevel = getConfigInfo('maximumDoorLevel')
}
local checkCreature = {isPlayer, isMonster, isNpc}... | agpl-3.0 |
mercury233/ygopro-scripts | c15462014.lua | 2 | 2210 | --้พ้ฆฌ่บๅณ
function c15462014.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c15462014.actcon)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DISABLE)
e2:Set... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Kazham/npcs/Thali_Mhobrum.lua | 15 | 1696 | -----------------------------------
-- Area: Kazham
-- NPC: Thali Mhobrum
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
local path = {
55.816410, -11.000000, -43.992680,
54.761787, -11.000000, -44.0461... | gpl-3.0 |
gibtang/CCNSCoding | scripting/lua/script/CCBReaderLoad.lua | 1 | 5162 | ccb = ccb or {}
function CCBReaderLoad(strFilePath,proxy,owner)
if nil == proxy then
return
end
local ccbReader = proxy:createCCBReader()
local node = ccbReader:load(strFilePath)
local rootName = ""
--owner set in readCCBFromFile is proxy
if nil ~= owner then
--Callb... | mit |
EasonYi/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
SuperAwesomeLTD/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Zenny89/darkstar | scripts/zones/Garlaige_Citadel_[S]/npcs/Randecque.lua | 21 | 1805 | -----------------------------------
-- Area: Garlaige Citadel [S]
-- NPC: Randecque
-- @pos 61 -6 137 164
-- Notes: Gives Red Letter required to start "Steamed Rams"
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
mercury233/ygopro-scripts | c67797569.lua | 2 | 3099 | --ใฉใดใกใซใใซใปใตใฉใใณใใผ
function c67797569.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsAttribute,ATTRIBUTE_FIRE),1)
c:EnableReviveLimit()
--Draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(67797569,0))
e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE)
e1:SetType(... | gpl-2.0 |
mercury233/ygopro-scripts | c36429703.lua | 2 | 3340 | --RR๏ผใฏใคใบใปในใใชใฏใน
function c36429703.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,c36429703.matfilter,2,2)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(36429703,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_T... | gpl-2.0 |
mercury233/ygopro-scripts | c92142169.lua | 2 | 1769 | --ใใฏใใฐ
function c92142169.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c92142169.spcon)
e1:SetValue(SUMMON_VALUE_SELF)
c:RegisterEffect(e1)
--a... | gpl-2.0 |
notcake/gcompute | lua/gcompute/interop/epoe.lua | 1 | 1236 | local self = {}
GCompute.EPOE = GCompute.MakeConstructor (self)
function self:ctor ()
self.LineBuffer =
{
{
Text = ""
}
}
hook.Add ("EPOE", "GCompute.EPOE",
function (message, colorId, color)
if not color then
if colorId == 2 then
color = GLib.Colors.IndianRed
elseif colorId == 4 then
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.