repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
NiLSPACE/Login | Info.lua | 1 | 2172 |
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "Login",
Version = "3",
Date = "2015-12-29", -- yyyy-mm-dd
SourceLocation = "https://github.com/NiLSPACE/Login",
Description = [[
Login is a security plugin for MCServer.
It requires a player to log in before they c... | apache-2.0 |
b03605079/darkstar | scripts/zones/Apollyon/mobs/Ice_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua | 9 | 1026 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Moblin Showman - Bugbear Matman
-- @pos 124.544 19.988 -60.670 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalp... | gpl-3.0 |
runner-mei/hindsight | gen_gh_pages.lua | 2 | 1833 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
require "os"
require "io"
require "string"
local function output_menu(output_dir, version)
local fh = assert(io... | mpl-2.0 |
FlightControl-Master/MOOSE_MISSIONS | TAD - Task Dispatching/A2A - Air 2 Air Task Dispatching/TAD-A2A-000 - AREAS - Detection test/TAD-A2A-000 - AREAS - Detection test.lua | 1 | 2419 | ---
-- Name: TAD-A2A-001 - A2A - AREAS detection test
-- Author: FlightControl
-- Date Created: 17 May 2017
--
-- # Situation:
--
-- This mission demonstrates the dynamic task dispatching for Air to Air operations.
-- Intruders are flying towards the EWR units.
-- The detection method used is the DETECTION_A... | gpl-3.0 |
raymond-w-ko/vim-lua-indent | tests/nmap/pop3.ok.lua | 2 | 5775 | ---
-- POP3 functions.
--
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
local base64 = require "base64"
local comm = require "comm"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
_ENV = stdnse.module("pop3", stdnse.seeall)
local HAVE_SSL, openssl = ... | mit |
Aquanim/Zero-K | scripts/chickenflyerqueen.lua | 5 | 7346 | include "constants.lua"
local spGetUnitHealth = Spring.GetUnitHealth
--pieces
local body, head, tail, leftWing1, rightWing1, leftWing2, rightWing2 = piece("body","head","tail","lwing1","rwing1","lwing2","rwing2")
local leftThigh, leftKnee, leftShin, leftFoot, rightThigh, rightKnee, rightShin, rightFoot = piece("lthig... | gpl-2.0 |
Aquanim/Zero-K | LuaUI/Widgets/ignore.lua | 6 | 1631 | function widget:GetInfo()
return {
name = "In-game Ignore",
desc = "Adds ignore/unignore commands.",
author = "Shaman",
date = "8-1-2016",
license = "PD",
layer = 0,
enabled = true,
}
end
local function ProcessString(str)
local strtbl = {}
for w in string.gmatch(str, "%S+") do
strtbl[#strtbl+1] = w... | gpl-2.0 |
romain-intel/bcc | tests/lua/test_clang.lua | 3 | 8177 | local suite = require("test_helper")
local TestClang = {}
function TestClang:test_probe_read1()
local text = [[
#include <linux/sched.h>
#include <uapi/linux/ptrace.h>
int count_sched(struct pt_regs *ctx, struct task_struct *prev) {
pid_t p = prev->pid;
return (p != -1);
}
]]
local b = BPF:new{text=text, d... | apache-2.0 |
b03605079/darkstar | scripts/globals/weaponskills/skullbreaker.lua | 30 | 1486 | -----------------------------------
-- Skullbreaker
-- Club weapon skill
-- Skill level: 150
-- Lowers enemy's INT. Chance of lowering INT varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aqua Belt.
-- Element: None
-- Modifiers: ST... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua | 12 | 1272 | -----------------------------------
-- Area: Cloister of Gales
-- NPC: Ogmios
-- Involved in Quest: Carbuncle Debacle
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- OnMobSpawn Action
--------------------------------... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/chili/Controls/combobox.lua | 2 | 5063 | --// =============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1", "item2", ...} items table of items in the ComboBox, (default {"items"})
-- @int[opt = 1] selected id of ... | gpl-2.0 |
imashkan/telefire | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
arychen/GlobalCall | feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua | 46 | 3168 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("RRDTool Plugin Configuration"),
translate(
"The rrdtool plugin stores the collected data in rrd database " ..
"files, the foundation of the diagrams... | gpl-2.0 |
Sakura-Winkey/LuCI | applications/luci-app-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 3 of the License, or
... | apache-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_thrower.lua | 6 | 18812 |
function gadget:GetInfo()
return {
name = "Teleport Throw",
desc = "Implements teleportation thrower unit",
author = "Google Frog",
date = "12 Janurary 2018",
license = "GNU GPL, v2 or later",
layer = -1,
enabled = true -- loaded by default?
}
end
--------------------------... | gpl-2.0 |
Wingless-Archangel/haka | lib/haka/lua/lua/class.lua | 3 | 5307 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local module = {}
local function iter_class_hierarchy(topcls, cls)
if cls then return rawget(cls, 'super')
else re... | mpl-2.0 |
Aquanim/Zero-K | LuaRules/Configs/StartBoxes/Lonely Oasis v1.lua | 19 | 5097 | local boxes = {
[0] = {
boxes = {
{
{5486, 2151},
{5537, 2426},
{5583, 2551},
{5648, 2630},
{5748, 2676},
{5924, 2680},
{6078, 2669},
{6165, 2687},
{6272, 2746},
{6420, 2777},
{6541, 2769},
{6668, 2694},
{6734, 2594},
{6765, 2447},
{6757, 2289},
{671... | gpl-2.0 |
Aquanim/Zero-K | scripts/hovercon.lua | 2 | 2536 | include "constants.lua"
local base = piece "base"
local body = piece "cube1_sep2"
local beam = piece "beam"
local boom = piece "boom"
local neck = piece "neck"
local gun = piece "gun"
local ground1 = piece "ground1"
local wakes = {}
for i = 1, 8 do
wakes[i] = piece ("wake"..i)
end
local curTerrainType = 0
local wobb... | gpl-2.0 |
cjbrigato/kigiv-for-proxmark3 | client/scripts/test_t55x7_ask.lua | 11 | 2705 | local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local utils = require('utils')
local format=string.format
local floor=math.floor
example =[[
1. script run test_t55x7_ask
]]
author = "Iceman"
usage = "script run test_t55x7_ask"
desc =[[
This script will program a T55x7 TAG... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/strip_of_bison_jerky.lua | 35 | 1398 | -----------------------------------------
-- ID: 5207
-- Item: strip_of_bison_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 5
-- Mind -2
-- Attack % 18
-- Attack Cap 70
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
yetanotherusernamebecausegithubisbugged/minetest_hardcorebrix | init_white_firebrick.lua | 1 | 17209 | -- When you need to change node name, changing a string.sub parameters
-- cause a lot of troubles and inconveniences. That's why I decided to
-- put these numbers in constants.
local NODEBOXNUMPOS = string.len("minetest_hardcorebrix:node_white_firebrick_dry_damaged_X_nodeboxY")
---------------------------------------... | agpl-3.0 |
b03605079/darkstar | scripts/zones/Quicksand_Caves/mobs/Centurio_IV-VII.lua | 10 | 1426 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Centurio IV-VII
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Quicksand_Caves/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
immibis/wiremod | lua/entities/gmod_wire_egp/lib/egplib/materials.lua | 10 | 1677 | --------------------------------------------------------
-- Materials (And fonts)
--------------------------------------------------------
local EGP = EGP
-- Valid fonts table
EGP.ValidFonts_Lookup = {}
EGP.ValidFonts = {}
EGP.ValidFonts[1] = "WireGPU_ConsoleFont"
EGP.ValidFonts[2] = "Coolvetica"
EGP.ValidFonts[3] = "... | apache-2.0 |
cubeslinger/CuT | _cut_minimapbutton.lua | 1 | 1799 | --
-- Addon _cut_minimapbutton.lua
-- Author marcob@marcob.org
-- StartDate 07/09/2017
--
local addon, cut = ...
function cut.createminimapbutton()
-- avoid creating multiple minimap buttons...
if not cut.gui.mmbtnobj then
-- print(string.format("cut.createMiniMapButton: cut.gui.mmbtno... | mit |
b03605079/darkstar | scripts/globals/spells/bluemagic/grand_slam.lua | 3 | 1043 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/endpoints/Snapshot/CreateRepository.lua | 2 | 1946 | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local SnapshotEndpoint = require "elasticsearch.endpoints.Snapshot.SnapshotEndpoint"
-----------------------------------------------------... | gpl-2.0 |
Aquanim/Zero-K | units/striderscorpion.lua | 2 | 9400 | return { striderscorpion = {
unitname = [[striderscorpion]],
name = [[Scorpion]],
description = [[Cloaked Infiltration Strider]],
acceleration = 0.78,
brakeRate = 4.68,
buildCostMetal = 3000,
builder = false,
buildP... | gpl-2.0 |
hfjgjfg/grt12 | plugins/antispam.lua | 30 | 4161 |
do
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end... | gpl-2.0 |
Aquanim/Zero-K | LuaRules/Gadgets/weapon_timed_replace.lua | 7 | 2950 | function gadget:GetInfo()
return {
name = "Weapon Timed Replace",
desc = "Replaces a projectile with another projectile a certain time after firing.",
author = "Google Frog",
date = "10 June 2014",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
... | gpl-2.0 |
larsnorbergofficial/DiabolicUI | modules/unitframes/elements/health.lua | 2 | 4173 | local _, Engine = ...
local Handler = Engine:GetHandler("UnitFrame")
local C = Engine:GetDB("Data: Colors")
local F = Engine:GetDB("Library: Format")
-- Lua API
local _G = _G
local math_floor = math.floor
local pairs = pairs
local tonumber = tonumber
local tostring = tostring
local unpack = unpack
-- WoW API
local Un... | mit |
bjubes/ProjectPorcupine | Assets/StreamingAssets/LUA/Overlay.lua | 8 | 1991 | -- Example of overlay function
-- Input: tile, the current tile for which the
-- overlay wants to display the data
-- Input: world, world class
-- Return: an integer (by default should be scaled between 0 and 255)
function oxygenValueAt(tile)
if tile == nil then
return 0
end
room = tile.room
if ... | gpl-3.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/luarocks/pack.lua | 3 | 7035 |
--- Module implementing the LuaRocks "pack" command.
-- Creates a rock, packing sources or binaries.
local pack = {}
package.loaded["luarocks.pack"] = pack
local unpack = unpack or table.unpack
local path = require("luarocks.path")
local repos = require("luarocks.repos")
local fetch = require("luarocks.fetch")
local... | mit |
Radseq/otclient | modules/corelib/keyboard.lua | 9 | 7246 | -- @docclass
g_keyboard = {}
-- private functions
function translateKeyCombo(keyCombo)
if not keyCombo or #keyCombo == 0 then return nil end
local keyComboDesc = ''
for k,v in pairs(keyCombo) do
local keyDesc = KeyCodeDescs[v]
if keyDesc == nil then return nil end
keyComboDesc = keyComboDesc .. '+' .... | mit |
b03605079/darkstar | scripts/globals/items/serving_of_cilbir.lua | 35 | 1562 | -----------------------------------------
-- ID: 5642
-- Item: serving_of_cilbir
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 5
-- MP % 5
-- HP recovered while healing 3
-- MP recovered while healing 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
b03605079/darkstar | scripts/zones/West_Sarutabaruta/npcs/Stone_Monument.lua | 32 | 1299 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -205.593 -23.210 -119.670 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/api_game_analytics.lua | 8 | 5934 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Game Analytics Handler",
desc = "Handles game analytics events",
author = "GoogleFrog",
date... | gpl-2.0 |
cs-willian-silva/vlc | share/lua/playlist/pluzz.lua | 105 | 3740 | --[[
$Id$
Copyright © 2011 VideoLAN
Authors: Ludovic Fauvet <etix at l0cal dot com>
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 |
Aquanim/Zero-K | units/turretheavylaser.lua | 2 | 4418 | return { turretheavylaser = {
unitname = [[turretheavylaser]],
name = [[Stinger]],
description = [[High-Energy Laser Tower]],
buildCostMetal = 450,
builder = false,
buildingGroundDecalDecaySpeed = 30,
buil... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm2.lua | 9 | 1416 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: qm2 (???)
-- Notes: Used to spawn Bomb Queen
-- @pos 18 20 -104 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ifrits_Cauld... | gpl-3.0 |
kikito/sha1.lua | src/sha1/init.lua | 1 | 6027 | local common = require "sha1.common"
local sha1 = {
_VERSION = "sha.lua 0.5.0",
_URL = "https://github.com/kikito/sha.lua",
_DESCRIPTION = [[
SHA-1 secure hash computation, and HMAC-SHA1 signature computation in Lua (5.1)
Based on code originally by Jeffrey Friedl (http://regex.info/blog/lua/sh... | mit |
Aquanim/Zero-K | gamedata/modularcomms/weapons/sonicgun.lua | 6 | 1439 | local name = "commweapon_sonicgun"
local weaponDef = {
name = [[Sonic Blaster]],
areaOfEffect = 70,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 0,
craterMult = 0,
customParams = {... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Windurst_Woods/npcs/Apururu.lua | 11 | 5650 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Apururu
-- Involved in Quests: The Kind Cardian, Can Cardians Cry?
-- @zone 241
-- @pos -11 -2 13
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = ni... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 36 | 1731 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Stone_Monument.lua | 32 | 1291 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -499.189 12.600 373.592 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
FlightControl-Master/MOOSE_MISSIONS | AIC - AI Cargo/HEL - Helicopter/AIC-HEL-010 - Blue Helicopter/AIC-HEL-000 - Helicopter.lua | 2 | 1316 | ---
-- Name: AIC-HEL-000 - Helicopter
-- Author: FlightControl
-- Date Created: 13 Apr 2018
-- Date Checked: 01 Jan 2021
-- Updated Moose, needs fix #1417 to work
--
BASE:TraceClass("AI_CARGO")
BASE:TraceClass("AI_CARGO_HELICOPTER")
BASE:TraceOn()
WorkerCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):F... | gpl-3.0 |
moteus/luacov-coveralls | src/luacov/coveralls/utils.lua | 1 | 4626 |
local function prequire(...)
local ok, mod = pcall(require, ...)
if not ok then return nil, mod end
return mod, ...
end
local function vrequire(...)
local errors = {}
for i, n in ipairs{...} do
local mod, err = prequire(n)
if mod then return mod, err end
errors[#errors + 1] = err
e... | mit |
b03605079/darkstar | scripts/zones/Port_Jeuno/npcs/Challoux.lua | 37 | 1148 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Challoux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/hellsteak.lua | 35 | 1725 | -----------------------------------------
-- ID: 5609
-- Item: hellsteak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 6
-- Intelligence -2
-- Health Regen While Healing 2
-- Attack % 19
-- Ranged ATT % 19
-- Dragon Killer 5
-- Demon Killer 5
---------... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/modules/luci-base/luasrc/dispatcher.lua | 31 | 19783 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local util = require "luci.util"
local http = require "luci.http"
local nixio = require "nixio", require "nixio.util"
module("luci.dispatcher", packa... | gpl-2.0 |
Aquanim/Zero-K | scripts/cloakjammer.lua | 6 | 3017 | 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'
local SIG... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Bhaflau_Remnants/Zone.lua | 36 | 1125 | -----------------------------------
--
-- Zone: Bhaflau_Remnants
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bhaflau_Remnants/TextIDs"] = nil;
require("scripts/zones/Bhaflau_Remnants/TextIDs");
-----------------------------------
-- onInitial... | gpl-3.0 |
Aquanim/Zero-K | units/striderdetriment.lua | 2 | 13943 | return { striderdetriment = {
unitname = [[striderdetriment]],
name = [[Detriment]],
description = [[Ultimate Assault Strider (Undersea Fire)]],
acceleration = 0.328,
activateWhenBuilt = true,
autoheal = 100,
brakeRate = ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Grounds_Tome.lua | 34 | 1151 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTr... | gpl-3.0 |
sdgdsffdsfff/lua-conf | conf.lua | 3 | 2457 | local core = require "conf.core"
local type = type
local next = next
local rawget = rawget
local conf = {}
conf.host = {
new = core.new,
delete = core.delete,
getref = core.getref,
markdirty = core.markdirty,
}
local meta = {}
local isdirty = core.isdirty
local index = core.index
local needupdate = core.needupd... | mit |
Aquanim/Zero-K | units/plateamph.lua | 2 | 3030 | return { plateamph = {
unitname = [[plateamph]],
name = [[Amphbot Plate]],
description = [[Parallel Unit Production]],
buildCostMetal = Shared.FACTORY_PLATE_COST,
buildDistance = Shared.FACTORY_PLATE_RANGE,
builde... | gpl-2.0 |
b03605079/darkstar | scripts/globals/weaponskills/swift_blade.lua | 30 | 1389 | -----------------------------------
-- Swift Blade
-- Sword weapon skill
-- Skill Level: 225
-- Delivers a three-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifie... | gpl-3.0 |
PHYsicalAttack/Interest | newBMP.lua | 1 | 6136 | #! /usr/bin/env lua
-- fileheader 14bytes
-- infoheader 40bytes
-- 数据用小端储存方式
-- local fileheader =
-- {
-- bfType = 2 byte,
-- bfSize = 4 byte,
-- bfReserved1 = 2 byte, must = 0,
-- bfReserved2 = 2 byte, must = 0,
-- bfOffBits = 4 byte,
-- }
-- local infoheader =
-- {
-- biSize = 4 byte, ... | gpl-3.0 |
imashkan/telefire | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
PicassoCT/Journeywar | LuaUI/widgets/chili/controls/imagelistview.lua | 10 | 6831 | --//=============================================================================
--- ImageListView module
--- ImageListView fields.
-- Inherits from LayoutPanel.
-- @see layoutpanel.LayoutPanel
-- @table ImageListView
-- @string[opt=""] dir initial directory
-- @tparam {func1,func2,...} OnDirChange table of function... | gpl-3.0 |
b03605079/darkstar | scripts/globals/excavation.lua | 2 | 4823 | -------------------------------------------------
-- Author: Ezekyel
-- Excavation functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Excavation
-------------------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/se... | gpl-3.0 |
arcemu/arcemu | src/scripts/lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Aran.lua | 30 | 3347 | function Aran_Water_Elementals(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 40 and Didthat == 0 then
Unit:SpawnCreature(21160, -11167.2, -1914.13, 232.009, 0, 18, 96000000);
Unit:SpawnCreature(21160, -11163.2, -1910.13, 232.009, 0, 18, 96000000);
Unit:SpawnCreature(21160, -11165.2, -1916.13, 232.009, 0,... | agpl-3.0 |
just-another-one-timmy/wireshark | test/lua/gregex.lua | 29 | 8743 |
-- Tests for GLib Regex functions
-- written by Hadriel Kaplan, based on Lrexlib's test suite
-- This is a test script for tshark/wireshark.
-- This script runs inside tshark/wireshark, so to run it do:
-- tshark -r empty.cap -X lua_script:<path_to_testdir>/lua/gregex.lua -X lua_script1:glib
--
-- if you have to give ... | gpl-2.0 |
PicassoCT/Journeywar | units/journey/jSempreSequoia.lua | 1 | 2120 | local unitName = "jsempresequoia"
local unitDef = {
name = "Sequoia ",
Description = "ground dominating Tree Ship <Air Fortress Unit>",
objectName = "jsequoia.s3o",
script = "sequoiascript.lua",
buildPic = "jsempresequoia.png",
--cost
buildCostMetal = 10000,
buildCostEnergy = 5000,
buildTime =1,
--Health
ma... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 50 | 4887 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | gpl-2.0 |
Sakura-Winkey/LuCI | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 50 | 4887 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
Aquanim/Zero-K | lups/ParticleClasses/UnitSmoke.lua | 8 | 7800 | -- $Id: UnitSmoke.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitSmoke = {}
UnitSmoke.__inde... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Apollyon/mobs/Bardha.lua | 17 | 1397 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Act... | gpl-3.0 |
lyn0328/FrameSynchro | Trunk/Client/src/app/Protocol/person_pb.lua | 6 | 3534 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('person_pb')
local PERSON = protobuf.Descriptor();
local PERSON_ID_FIELD = protobuf.FieldDescriptor();
local PERSON_NAME_FIELD = protobuf.FieldDescriptor();
local PERSON_EMAIL_FIELD = protobuf.FieldDescriptor();
local PHONE = protob... | gpl-3.0 |
PicassoCT/Journeywar | scripts/jsungodcattlescript.lua | 1 | 15130 | include "createCorpse.lua"
include "lib_OS.lua"
include "lib_UnitScript.lua"
include "lib_Animation.lua"
include "lib_Build.lua"
include "lib_jw.lua"
RateOfDecrease = 65
_, MAGICRESPAWNNUMBER = Spring.GetUnitHealth(unitID)
REPRODUCTION_DAMAGE= MAGICRESPAWNNUMBER *2 -- Damage necessary for the Unit to spawn a new SungG... | gpl-3.0 |
ahmedalobaidyshado/dev_ahm3d | plugins/msg_checks.lua | 5 | 10927 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @Th3_BOOS
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderation... | gpl-2.0 |
FlightControl-Master/MOOSE_MISSIONS | MEN - Menu Options/Normandy/MEN-001 - Menu Client/MEN-001 - Menu Client.lua | 1 | 2271 |
do
-- This demo creates a menu structure for the two clients of planes.
-- Each client will receive a different menu structure.
-- To test, join the planes, then look at the other radio menus (Option F10).
-- Then switch planes and check if the menu is still there.
-- And play with the Add and Remove m... | gpl-3.0 |
PicassoCT/Journeywar | LuaRules/Gadgets/jw_miniMission8.lua | 1 | 3733 |
gaiaTeam = Spring.GetGaiaTeamID()
GooSizeSquare = 280
tickEverynthSecond = 15
tickEveryNthFrame = 30* tickEverynthSecond
x_GridSize,z_GridSize = math.ceil(Game.mapSizeX/GooSizeSquare)-1, math.ceil(Game.mapSizeZ/GooSizeSquare)-1
local grid_instance={}
total=0
local cell_alive = {alive = true, unitID = nil}
local cel... | gpl-3.0 |
tst2005/LuaMinify | RobloxPlugin/Minify.lua | 2 | 40322 |
--
-- Minify.lua
--
-- A compilation of all of the neccesary code to Minify a source file, all into one single
-- script for usage on Roblox. Needed to deal with Roblox' lack of `require`.
--
function lookupify(tb)
for _, v in pairs(tb) do
tb[v] = true
end
return tb
end
function CountTable(tb)
local c = 0
for... | mit |
Anubhav652/GTW-RPG | [misc]/scoreboard/dxscoreboard_client.lua | 2 | 57740 | -- THESE CAN BE CHANGED
triggerKey = "tab" -- default button to open/close scoreboard
settingsKey = "F7" -- default button to open the settings window
drawOverGUI = true -- draw scoreboard over gui?
seperationSpace = 80 -- the space between top/bottom screen and scoreboard top/bottom in pixels
-- BUT DON'T TOUCH THESE... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/gui_reclaiminfo.lua | 6 | 6391 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_ReclaimInfo.lua
-- brief: Shows the amount of metal/energy when using area reclaim.
-- original author: Janis Lukss
--
-- Co... | gpl-2.0 |
latach/desktop | vicious/widgets/cpu_freebsd.lua | 4 | 1758 | -- {{{ Grab environment
local helpers = require("vicious.helpers")
local tonumber = tonumber
local setmetatable = setmetatable
local math = { floor = math.floor }
local string = { gmatch = string.gmatch }
-- }}}
-- Cpu: provides CPU usage for all available CPUs/cores
-- vicious.widgets.cpu_freebsd
local cpu_freebsd =... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Caedarva_Mire/npcs/Kwadaaf.lua | 23 | 1347 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Kwadaaf
-- Type: Entry to Alzadaal Undersea Ruins
-- @pos -639.000 12.323 -260.000 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitem... | gpl-3.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/moonmint/deps/secure-socket/biowrap.lua | 6 | 2843 | --[[
Copyright 2016 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... | mit |
PicassoCT/Journeywar | LuaUI/widgets/chili/dbg_chili_profiler.lua | 2 | 3816 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "ChiliProfiler",
desc = "",
author = "",
date = "2013",
license = "GPLv2"... | gpl-3.0 |
immibis/wiremod | lua/wire/server/debuggerlib.lua | 15 | 5802 | local formatPort = {}
WireLib.Debugger = { formatPort = formatPort } -- Make it global
function formatPort.NORMAL(value)
return string.format("%.3f",value)
end
function formatPort.STRING(value)
return '"' .. value .. '"'
end
function formatPort.VECTOR(value)
return string.format("(%.1f,%.1f,%.1f)", value[1], value... | apache-2.0 |
b03605079/darkstar | scripts/zones/Metalworks/npcs/Vicious_Eye.lua | 19 | 1162 | -----------------------------------
-- Area: Metalworks
-- NPC: Vicious Eye
-- Type: Guild Merchant (Blacksmithing Guild)
-- @pos -106.132 0.999 -28.757 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm4.lua | 37 | 1033 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm4 (???)
-- Involved in quest: Pirate's Chart
-- @pos -160 4 -131 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Valkurm_Dunes/TextIDs");... | gpl-3.0 |
Sakura-Winkey/LuCI | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua | 72 | 2039 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, peeraddr, ip6addr, tunnelid, username, password
local defaultroute, metric, ttl, mtu
ipaddr = s:taboption("general", Value, "ipaddr",
translate("Local IPv4 ad... | apache-2.0 |
WoWZon/GuildManager | libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | gpl-2.0 |
geoffleyland/rima | lua/rima/func.lua | 1 | 2718 | -- Copyright (c) 2009-2012 Incremental IP Limited
-- see LICENSE for license information
local object = require("rima.lib.object")
local lib = require("rima.lib")
local core = require("rima.core")
local scope = require("rima.scope")
local index = require("rima.index")
------------------------------------------------... | mit |
FlightControl-Master/MOOSE_MISSIONS | AIC - AI Cargo/APC - Armoured Personnel Carrier/AIC-APC-011 - APC Pickup and Deploy/AI_Cargo.lua | 1 | 20369 | --- **AI** -- (R2.4) - Models the intelligent transportation of infantry and other cargo.
--
-- ===
--
-- ### Author: **FlightControl**
--
-- ===
--
-- @module AI.AI_Cargo
-- @image Cargo.JPG
--- @type AI_CARGO
-- @extends Core.Fsm#FSM_CONTROLLABLE
--- Base class for the dynamic cargo handlin... | gpl-3.0 |
stevedonovan/Penlight | lua/pl/Date.lua | 1 | 18511 | --- Date and Date Format classes.
-- See @{05-dates.md|the Guide}.
--
-- NOTE: the date module is deprecated! see
-- https://github.com/lunarmodules/Penlight/issues/285
--
-- Dependencies: `pl.class`, `pl.stringx`, `pl.utils`
-- @classmod pl.Date
-- @pragma nostrip
local class = require 'pl.class'
local os_time, os_d... | mit |
arychen/GlobalCall | feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | 57 | 1951 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.processes", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
{
title = "%H: Processes",
vlabel = "Proce... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/TextField.lua | 7 | 12195 |
--------------------------------
-- @module TextField
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- brief Toggle attach with IME.<br>
-- param attach True if attach with IME, false otherwise.
-- @function [parent=#TextField] setAttachWithIME
-- @param self
-- @param #bool attach
-- @re... | mit |
arychen/GlobalCall | feeds/luci/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 68 | 7091 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
mp = Map("olsrd", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "Load... | gpl-2.0 |
Radseq/otclient | modules/client_entergame/entergame.lua | 5 | 13348 | EnterGame = { }
-- private variables
local loadBox
local enterGame
local motdWindow
local motdButton
local enterGameButton
local clientBox
local protocolLogin
local motdEnabled = true
-- private functions
local function onError(protocol, message, errorCode)
if loadBox then
loadBox:destroy()
loadBox = nil
... | mit |
b03605079/darkstar | scripts/zones/Nashmau/npcs/Yoyoroon.lua | 34 | 1613 | -----------------------------------
-- Area: Nashmau
-- NPC: Yoyoroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
felipeprov/premake-core | src/_manifest.lua | 2 | 2108 | --
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
-- The master list of built-in scripts. Order is important! If you want to
-- build a new script into Premake, add it to this list.
return
{
-- core files
"base/_foundation.lua... | bsd-3-clause |
felipeprov/premake-core | tests/actions/make/cpp/test_wiidev.lua | 5 | 1198 | --
-- tests/actions/make/cpp/test_wiidev.lua
-- Tests for Wii homebrew support in makefiles.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_wiidev")
local make = premake.make
local project = premake.project
--
-- Setup
--
local cfg
function suite.setup()
... | bsd-3-clause |
kostik1337/Urho3D | bin/Data/LuaScripts/50_Urho2DPlatformer.lua | 5 | 15845 | -- Urho2D platformer example.
-- This sample demonstrates:
-- - Creating an orthogonal 2D scene from tile map file
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard to move a character and zoom 2D camera
-- - Generating physics shapes from the tmx file's objects
-- - Mixing ph... | mit |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/MenuItem.lua | 7 | 1678 |
--------------------------------
-- @module MenuItem
-- @extend Node
-- @parent_module cc
--------------------------------
-- Enables or disables the item.
-- @function [parent=#MenuItem] setEnabled
-- @param self
-- @param #bool value
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
--------... | mit |
Aquanim/Zero-K | LuaUI/Widgets/chili_old/Controls/screen.lua | 13 | 7772 | Screen = Object:Inherit{
--Screen = Control:Inherit{
classname = 'screen',
x = 0,
y = 0,
width = 0,
height = 0,
preserveChildrenOrder = true,
activeControl = nil,
focusedControl = nil,
hoveredControl = nil,
currentTooltip = nil,
_lastHoveredControl = nil,
_lastClicked =... | gpl-2.0 |
larsnorbergofficial/DiabolicUI | modules/maps/worldmap.lua | 2 | 68124 | local _, Engine = ...
local Module = Engine:NewModule("Worldmap")
local L = Engine:GetLocale()
local C = Engine:GetDB("Data: Colors")
-- Lua API
local _G = _G
local math_ceil = math.ceil
local setmetatable = setmetatable
local string_format = string.format
local string_match = string.match
local string_split = string... | mit |
b03605079/darkstar | scripts/zones/Davoi/npcs/Storage_Hole.lua | 19 | 1560 | -----------------------------------
-- Area: Davoi
-- NPC: Storage Hole
-- Involved in Quest: The Crimson Trial
-- @pos -51 4 -217 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("sc... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.