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
garrysmodlua/wire
lua/entities/gmod_wire_textscreen.lua
3
6963
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Text Screen" ENT.WireDebugName = "Text Screen" function ENT:InitializeShared() self.text = "" self.chrPerLine = 5 self.textJust = 0 self.valign = 0 self.tfont = "Arial" self.fgcolor = Color(255,255,255) self.bgcolor = Color(0,0,0...
apache-2.0
mattyx14/otxserver
data/monster/elementals/massive_earth_elemental.lua
2
4038
local mType = Game.createMonsterType("Massive Earth Elemental") local monster = {} monster.description = "a massive earth elemental" monster.experience = 950 monster.outfit = { lookType = 285, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 455 monster.B...
gpl-2.0
mumuqz/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
26
1475
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2013 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ip6addr local tunlink, defaultroute, metric, ttl, mtu peeraddr = section:taboption("general", Value, "peerad...
apache-2.0
elemel/adam
Character.lua
1
9059
local Animation = require "Animation" local common = require "common" local Character = {} Character.__index = Character function Character.new(args) local character = {} setmetatable(character, Character) args = args or {} character.name = args.name character.tags = args.tags or {} character.x = args....
mit
fo369/luci-1505
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua
29
3928
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "nixio.util" local has_fscheck = fs.access("/usr/sbin/e2fsck") local block = io.popen("block info", "r") local ln, dev, devices = nil, nil, {} repeat ln =...
apache-2.0
nitheeshkl/kln_awesome
awesome_3.5/vicious/widgets/weather.lua
4
3807
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { popen = io.popen } local setmetatable = setmetatable ...
gpl-2.0
tgp1994/LiquidRP-tgp1994
gamemode/modules/doorsystem/sv_doors.lua
1
15865
local meta = FindMetaTable("Entity") local pmeta = FindMetaTable("Player") /*--------------------------------------------------------------------------- Functions ---------------------------------------------------------------------------*/ function meta:keysLock() self:Fire("lock", "", 0) if isfunction(self.Lock) t...
gpl-3.0
YangXin/awesome
theme/theme.lua
1
4654
local path = require "path" config_path = path.config() theme = {} theme.font = "Cantarell 10" theme.bg_normal = "#222222" theme.bg_focus = "#535d6c" theme.bg_urgent = "#ff0000" theme.bg_minimize = "#444444" theme.bg_systray = theme.bg_normal theme.fg_normal = "#aaaaaa" theme.fg_focu...
mit
110440/Tui-x
HelloTuiLua/DrawPrimitives.lua
57
12038
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = CCApplication:getInstance():getTargetPlatform() loca...
mit
dbltnk/macro-prototype
pl/import_into.lua
1
2746
--import_into.lua -------------- -- PL loader, for loading all PL libraries, only on demand. -- Whenever a module is implicitly accesssed, the table will have the module automaticaly injected. -- (e.g. `_ENV.tablex`) -- then that module is dynamically loaded. The submodules are all brought into -- the table that is pro...
mit
mattyx14/otxserver
data/monster/humans/vicious_squire.lua
2
3501
local mType = Game.createMonsterType("Vicious Squire") local monster = {} monster.description = "a vicious squire" monster.experience = 900 monster.outfit = { lookType = 131, lookHead = 97, lookBody = 24, lookLegs = 73, lookFeet = 116, lookAddons = 1, lookMount = 0 } monster.raceId = 1145 monster.Bestiary = { ...
gpl-2.0
mattyx14/otxserver
data/monster/elementals/fire_elemental.lua
2
2562
local mType = Game.createMonsterType("Fire Elemental") local monster = {} monster.description = "a fire elemental" monster.experience = 220 monster.outfit = { lookType = 49, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 49 monster.Bestiary = { class =...
gpl-2.0
CarabusX/Zero-K
LuaRules/Gadgets/unit_icongenerator.lua
6
34550
-- $Id: unit_icongenerator.lua 3909 2009-02-05 22:49:55Z jk $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_icongenerator.lua -- brief: -- author: jK -- -- Copyright (C) 2007. -- ...
gpl-2.0
CarabusX/Zero-K
units/chickenlandqueen.lua
4
12201
return { chickenlandqueen = { unitname = [[chickenlandqueen]], name = [[Chicken Queen]], description = [[Clucking Hell!]], acceleration = 3.0, activateWhenBuilt = true, autoHeal = 0, brakeRate = 18.0, buildCostEnergy ...
gpl-2.0
HeavenIsLost/cast
data/talkactions/scripts/deathlist.lua
43
2176
local function getArticle(str) return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a" end local function getMonthDayEnding(day) if day == "01" or day == "21" or day == "31" then return "st" elseif day == "02" or day == "22" then return "nd" elseif day == "03" or day == "23" then return "rd" else return "t...
gpl-2.0
cokeboL/gopher-lua
_lua5.1-tests/pm.lua
5
9577
print('testing pattern matching') function f(s, p) local i,e = string.find(s, p) if i then return string.sub(s, i, e) end end function f1(s, p) p = string.gsub(p, "%%([0-9])", function (s) return "%" .. (s+1) end) p = string.gsub(p, "^(^?)", "%1()", 1) p = string.gsub(p, "($?)$", "()%1", 1) local t = {str...
mit
CarabusX/Zero-K
LuaUI/Widgets/chili_old/Controls/image.lua
6
2917
--//============================================================================= Image = Button:Inherit{ classname= "image", defaultWidth = 64, defaultHeight = 64, padding = {0,0,0,0}, color = {1,1,1,1}, file = nil, file2 = nil, flip = true; flip2 = true; keepAspect = true; noFont = true,...
gpl-2.0
PeqNP/GameKit
specs/bridge.bridge_spec.lua
1
9601
require "lang.Signal" require "specs.busted" require "Logger" Log.setLevel(LogLevel.Severe) require "ad.Constants" local Bridge = require("bridge.Bridge") local BridgeCall = require("bridge.BridgeCall") local BridgeResponse = require("bridge.BridgeResponse") local BridgeAdaptorProtocol = require("bridge.BridgeAdapto...
mit
garrysmodlua/wire
lua/wire/cpulib.lua
1
65634
-------------------------------------------------------------------------------- -- ZCPU utility & support code -------------------------------------------------------------------------------- local INVALID_BREAKPOINT_IP = 2e7 CPULib = CPULib or {} if CLIENT then -- Sourcecode available as compiled binary CPULib.S...
apache-2.0
fo369/luci-1505
applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd.lua
6
5557
--[[ uHttpd Luci configuration module. Copyright (c) 2015, GuoGuo <gch981213@gmail.com> 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 ]]-- loca...
apache-2.0
garrysmodlua/wire
lua/entities/gmod_wire_expression2/core/custom/effects.lua
5
4150
E2Lib.RegisterExtension("effects", false, "Allows E2s to play arbitrary effects.") local wire_expression2_effect_burst_max = CreateConVar( "wire_expression2_effect_burst_max", 4, {FCVAR_ARCHIVE} ) local wire_expression2_effect_burst_rate = CreateConVar( "wire_expression2_effect_burst_rate", 0.1, {FCVAR_ARCHIVE} ) -- ...
apache-2.0
CarabusX/Zero-K
units/shiptorpraider.lua
1
3961
return { shiptorpraider = { unitname = [[shiptorpraider]], name = [[Hunter]], description = [[Torpedo Raider Ship (Anti-Sub)]], acceleration = 0.288, activateWhenBuilt = true, brakeRate = 0.516, buildCostMetal = 100, builder = false, ...
gpl-2.0
CarabusX/Zero-K
scripts/cloakskirm.lua
4
4833
include "constants.lua" local hips = piece 'hips' local chest = piece 'chest' local gun = piece 'gun' local muzzle = piece 'muzzle' local exhaust = piece 'exhaust' local turner = piece 'turner' local aimpoint = piece 'aimpoint' local gunemit = piece 'gunemit' local thigh = {piece 'lthigh', piece 'rthigh'} local shin ...
gpl-2.0
mattyx14/otxserver
data/monster/constructs/metal_gargoyle.lua
2
3508
local mType = Game.createMonsterType("Metal Gargoyle") local monster = {} monster.description = "a metal gargoyle" monster.experience = 1278 monster.outfit = { lookType = 601, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1039 monster.Bestiary = { cla...
gpl-2.0
CarabusX/Zero-K
gamedata/sounds.lua
3
4440
-- see http://springrts.com/wiki/Sounds.lua for help local Sounds = { SoundItems = { default = { }, IncomingChat = { --file = "sounds/talk.wav", file = nil, }, --MultiSelect = { -- file = "sounds/button9.wav", --}, MapPoint = { file = "sounds/beep4_decrackled.wav", maxconcurrent = 3, },...
gpl-2.0
luciouskami/YDWE
Development/Component/plugin/w3x2lni/script/core/slk/frontend_lml_v0.lua
2
2490
local lang = require 'lang' local w2l local wtg local wct local loader local function load_custom() wct.custom = { comment = loader('code.txt') or '', code = loader('code.j') or '', } end local function load_vars() wtg.vars = w2l:parse_lml(loader('variable.lml') or '') end local funct...
gpl-3.0
mattyx14/otxserver
data/scripts/spells/support/divine_dazzle.lua
2
2822
local function getDiagonalDistance(pos1, pos2) local dstX = math.abs(pos1.x - pos2.x) local dstY = math.abs(pos1.y - pos2.y) if dstX > dstY then return 14 * dstY + 10 * (dstX - dstY) else return 14 * dstX + 10 * (dstY - dstX) end end local function chain(player) local creatures = Game.getSpectators(player:get...
gpl-2.0
dinodeck/rpg_conversation_graph
nwn_dialog_advanced/code/XPSummaryState.lua
4
5851
XPSummaryState = {} XPSummaryState.__index = XPSummaryState function XPSummaryState:Create(stack, party, combatData) local this = { mStack = stack, mCombatData = combatData, mLayout = Layout:Create(), mXP = combatData.xp, mXPPerSec = 5.0, mXPCounter = 0, m...
mit
CarabusX/Zero-K
LuaRules/Gadgets/unit_windmill_control.lua
6
9551
if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Windmill Control", desc = "Controls windmill he...
gpl-2.0
CarabusX/Zero-K
LuaRules/Configs/StartBoxes/Ravaged_v2.lua
8
7187
return { [0] = { boxes = { { {4239.5439453125, 952.95397949219}, {3816.2067871094, 727.26159667969}, {3812.9736328125, 691.92926025391}, {3831.6794433594, 655.50103759766}, {3858.7185058594, 628.42718505859}, {3868.0451660156, 585.70172119141}, {3898.32421875, 529.91290283203}, {39...
gpl-2.0
vavrusa/luajit-bpf
examples/sock-parse-dns.lua
1
1092
-- Simple parsing example of UDP/DNS that counts frequency of QTYPEs. -- It shows how to parse packet variable-length packet structures. local ffi = require("ffi") local bpf = require("bpf") local S = require("syscall") -- Shared part of the program local map = assert(bpf.map('array', 256)) -- Kernel-space part of the...
bsd-2-clause
christopherjwang/rackspace-monitoring-agent
tests/test-check-fs.lua
3
2392
local los = require('los') local FileSystemCheck = require('../check').FileSystemCheck require('tap')(function(test) test('check filesystem valid', function(expect) local fs_target = '/' if los.type() == "win32" then fs_target = 'C:\\' end local onResult local check = FileSystemCheck:new({id='foo', p...
apache-2.0
fo369/luci-1505
applications/luci-app-n2n_v2/luasrc/model/cbi/n2n_v2.lua
13
1657
--[[ --N2N VPN(V2) configuration page. Made by 981213 -- ]]-- local fs = require "nixio.fs" m = Map("n2n_v2", translate("N2N VPN(V2)"), translatef("n2n is a layer-two peer-to-peer virtual private network (VPN) which allows users to exploit features typical of P2P applications at network instead of application...
apache-2.0
Makanam/CycloneTG
plugins/settings.lua
1
30606
do local function remove_message(extra, success, result) msg = backward_msg_format(result) delete_msg(msg.id, ok_cb, false) end local function set_group_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/chat_photo_'..msg.to.id..'.jpg' ...
gpl-2.0
xiexingguang/codis
extern/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
veyesys/opencvr
3rdparty/civetweb/src/third_party/lua-5.1.5/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
cho4036/package
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua
82
4185
-- ------ extra functions ------ -- function ruleCheck() -- determine if rule needs a protocol specified local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".src_port")) local destPort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".dest_port")) if sourcePort ~= "" or d...
gpl-2.0
luciouskami/YDWE
Development/Component/plugin/w3x2lni/script/share/lang.lua
2
2353
fs = require 'bee.filesystem' require 'utility' local root = require 'backend.w2l_path' local cache = {} local mt = {} setmetatable(mt, mt) local lang local function proxy(t) return setmetatable(t, { __index = function (_, k) t[k] = k return k end }) end local function split(buf) local li...
gpl-3.0
Guema/gCastBars
CastBarZ_Media/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua
35
8804
--[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]] local MAJOR, MINOR = "CallbackHandler-1.0", 6 local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR) if not CallbackHandler then return end -- No upgrade needed local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end} ...
unlicense
CarabusX/Zero-K
LuaRules/Utilities/isTargetReachable.lua
8
1054
--This function process result of Spring.PathRequest() to say whether target is reachable or not function Spring.Utilities.IsTargetReachable (moveID, ox,oy,oz,tx,ty,tz,radius) local result,lastcoordinate, waypoints local path = Spring.RequestPath( moveID,ox,oy,oz,tx,ty,tz, radius) if path then local waypoint = pat...
gpl-2.0
mumuqz/luci
applications/luci-app-radicale/luasrc/controller/radicale.lua
28
8642
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.radicale", package.seeall) local NX = require("nixio") local NXFS = require("nixio.fs") local DISP = require("luci.dispatcher") local HTTP = require("lu...
apache-2.0
mattyx14/otxserver
data/monster/quests/killing_in_the_name_of/esmeralda.lua
2
3376
local mType = Game.createMonsterType("Esmeralda") local monster = {} monster.description = "Esmeralda" monster.experience = 600 monster.outfit = { lookType = 305, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 800 monster.maxHealth = 800 monster.race = ...
gpl-2.0
CarabusX/Zero-K
LuaRules/Configs/StartBoxes/acidredux.lua
10
1343
return { [0] = { nameLong = "West", nameShort = "W", startpoints = { {2065,2912}, }, boxes = { { {2081, 1885}, {1749, 2487}, {1996, 3260}, {1834, 3525}, {2089, 3764}, {2487, 3745}, {2802, 3489}, {2959, 3052}, {2810, 2579}, {2635, 2424}, {2678, 2217}, {2084, 1882}, ...
gpl-2.0
nitheeshkl/kln_awesome
awesome_3.5/vicious/contrib/pulse.lua
10
3033
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, MrMagne <mr.magne@yahoo.fr> -- * (c) 2010, Mic92 <jthalheim@gmail.com> --------------------------------------------------- -- {{{ Grab environment local type = type local tonumber = tonumber local i...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c52098461.lua
2
1558
--ラス・オブ・ネオス function c52098461.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c52098461.target) e1:SetOperation(c52098461.activate) c...
gpl-2.0
Turttle/darkstar
scripts/globals/items/serving_of_karni_yarik_+1.lua
35
1394
----------------------------------------- -- ID: 5589 -- Item: serving_of_karni_yarik_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -1 -- Attack % 20 -- Attack Cap 65 ----------------------------------------- require("scripts/globals/status"); ----...
gpl-3.0
dickeyf/darkstar
scripts/zones/Mount_Kamihr/Zone.lua
30
1254
----------------------------------- -- -- Zone: Mount Kamihr -- ----------------------------------- package.loaded["scripts/zones/Mount_Kamihr/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Mount_Kamihr/TextIDs"); ----------------------------------- --...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c20436034.lua
2
1976
--磁力の指輪 function c20436034.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c20436034.target) e1:SetOperation(c20436034.operation) c:RegisterEffect(e1) ...
gpl-2.0
eugeneia/snabb
src/program/lwaftr/bench/bench.lua
9
2658
module(..., package.seeall) local app = require("core.app") local config = require("core.config") local lib = require("core.lib") local cpuset = require("lib.cpuset") local csv_stats = require("program.lwaftr.csv_stats") local setup = require("program.lwaftr.setup") local shm = require("core.shm") local S = require("...
apache-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c27191436.lua
7
1180
--バースト・リターン function c27191436.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c27191436.condition) e1:SetTarget(c27191436.target) e1:SetOperation(c27191436.activate) c:RegisterEffect(e1) ...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c14152862.lua
2
1496
--風紀宮司ノリト function c14152862.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),6,2) c:EnableReviveLimit() -- local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(14152862,0)) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE...
gpl-2.0
stupid-/tdm
gamemodes/tdm/entities/entities/ttt_flame.lua
3
5651
-- fire handler that does owned damage AddCSLuaFile() ENT.Type = "anim" --ENT.Model = Model("models/Gibs/metal_gib4.mdl") ENT.Model = Model("models/weapons/w_eq_flashbang_thrown.mdl") AccessorFunc(ENT, "dmgparent", "DamageParent") AccessorFunc(ENT, "die_explode", "ExplodeOnDeath") AccessorFunc(ENT, "dietime", "DieT...
mit
eugeneia/snabb
src/program/snabbnfv/neutron2snabb/neutron2snabb.lua
12
11107
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local json = require("lib.json") local usage = require("program.snabbnfv.neutron2snabb.README_inc") local neutron2snabb_schema = require("program.snabbnfv.neutron2snabb.neutron2s...
apache-2.0
Turttle/darkstar
scripts/globals/items/faerie_apple.lua
35
1211
----------------------------------------- -- ID: 4363 -- Item: faerie_apple -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -4 -- Intelligence 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- On...
gpl-3.0
dickeyf/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Cattah_Pamjah.lua
13
1065
----------------------------------- -- 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
fgenesis/Aquaria_experimental
game_scripts/scripts/maps/node_hint_natureformability.lua
6
1252
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
eugeneia/snabb
src/program/packetblaster/packetblaster.lua
2
3313
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local engine = require("core.app") local timer = require("core.timer") local lib = require("core.lib") local pci = require("lib.hardware.pci") local LoadGen = require("apps.intel_mp.loadgen"...
apache-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c9109991.lua
2
1380
--BF-鉄鎖のフェーン function c9109991.initial_effect(c) --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) --change pos local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(9109991,0)) e2:SetCategory(CATEGORY_POSITION) e2:Set...
gpl-2.0
dickeyf/darkstar
scripts/globals/items/soft-boiled_egg.lua
18
1174
----------------------------------------- -- ID: 4532 -- Item: soft-boiled_egg -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Turttle/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
SalvationDevelopment/Salvation-Scripts-TCG
c52639377.lua
6
1538
--魔界闘士 バルムンク function c52639377.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(52639377,0)) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CARD_...
gpl-2.0
dickeyf/darkstar
scripts/zones/East_Sarutabaruta/npcs/Signpost.lua
13
2116
----------------------------------- -- Area: East Sarutabaruta -- NPC: Signpost ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/zones/East_Sarutabaruta/TextIDs"); ----------------------------------- -- onTrade A...
gpl-3.0
Turttle/darkstar
scripts/zones/East_Ronfaure_[S]/npcs/qm5.lua
27
1615
----------------------------------- -- Area: East Ronfaure [S] -- NPC: qm5 "???" -- Involved in Quests: Steamed Rams -- @pos 380.015 -26.5 -22.525 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c19827717.lua
6
2042
--死者の生還 function c19827717.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c19827717.cost) e1:SetOperation(c19827717.activate) c:RegisterEffect(e1) end function c19827717.costfilter(c) return c:IsDiscardable() and c:IsAbleToGr...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c22419772.lua
7
1372
--ピクシーガーディアン function c22419772.initial_effect(c) --to deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(22419772,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCost(c22419772.cost) e1:SetTarget(c2...
gpl-2.0
dickeyf/darkstar
scripts/globals/spells/horde_lullaby_ii.lua
3
1270
----------------------------------------- -- Spell: Horde Lullaby ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,...
gpl-3.0
Turttle/darkstar
scripts/globals/items/bowl_of_yayla_corbasi.lua
35
1482
----------------------------------------- -- ID: 5579 -- Item: bowl_of_yayla_corbasi -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 20 -- Dexterity -1 -- Vitality 2 -- HP Recovered While Healing 3 -- MP Recovered While Healing 1 ----------------------------------------- req...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c65282484.lua
2
2931
--ダーク・ボルテニス function c65282484.initial_effect(c) --counter local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_CHAINING) e1:SetRange(LOCATION_HAND) e1:SetOperation(c65282484.chop1) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIEL...
gpl-2.0
Turttle/darkstar
scripts/globals/weaponskills/steel_cyclone.lua
30
1578
----------------------------------- -- Steel Cyclone -- Great Axe weapon skill -- Skill level: 240 -- Delivers a single-hit attack. Damage varies with TP. -- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c54512827.lua
2
2770
--ゴーストリック・ランタン function c54512827.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c54512827.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(54512827,0)) e2:Se...
gpl-2.0
Turttle/darkstar
scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua
17
1702
----------------------------------- -- Area: La Theine Plateau -- NPC: Narvecaint -- Involved in Mission: The Rescue Drill -- @pos -263 22 129 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c98494543.lua
4
1299
--魔法石の採掘 function c98494543.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c98494543.cost) e1:SetTarget(c98494543.target) e1:SetOperation(c98494543.operation) c:Re...
gpl-2.0
Turttle/darkstar
scripts/globals/spells/phalanx_ii.lua
25
1173
----------------------------------------- -- Spell: PHALANX -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Phalanx II value per point is '3' This is a constant set in the table 'merits' ----------------------------------------- require("scripts/globa...
gpl-3.0
hohogpb/hiberlite
premake4.lua
5
3714
local OS=os.get() local settings = { dir = { linux = "ls", windows = "dir" }, gcc_link = { linux = { "dl" , "pthread" }, windows = {} } } function print_table(t) print "-----------------" assert(type(t)=='table') for k,v in pairs(t) do print(k,v) end end function merge_tables(...) local t = {}...
bsd-3-clause
Turttle/darkstar
scripts/zones/Windurst_Woods/npcs/Millerovieunet.lua
17
1535
----------------------------------- -- Area: Windurst_Woods -- NPC: Millerovieunet -- Only sells when Windurst controlls Qufim Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- requ...
gpl-3.0
dickeyf/darkstar
scripts/zones/Metalworks/npcs/Franziska.lua
15
1120
----------------------------------- -- Area: Metalworks -- NPC: Franziska -- Type: Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); ----------------------------------- -- on...
gpl-3.0
Turttle/darkstar
scripts/globals/items/orange_kuchen.lua
35
1230
----------------------------------------- -- ID: 4393 -- Item: orange_kuchen -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic % 13 -- Magic Cap 75 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c95772051.lua
2
2499
--魔聖騎士ランスロット function c95772051.initial_effect(c) c:SetUniqueOnField(1,0,95772051) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(95772051,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetCost(c95772051....
gpl-2.0
dickeyf/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Yurim.lua
13
20071
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Yurim -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/zones/Tavnazian_Safehold/TextI...
gpl-3.0
SingingTree/linuxgsm
JustCause2/cfg/config.lua
5
5692
-- Welcome to the JC2-MP server configuration file! --[[ SERVER OPTIONS Server-related options. --]] Server = { -- The maximum number of players that can be on the server at any -- given time. Make sure your connection and server can handle it! -- Default value: 5000 MaxPlayers = 5000...
mit
dickeyf/darkstar
scripts/zones/Northern_San_dOria/npcs/Beadurinc.lua
53
1875
----------------------------------- -- Area: Northern San d'Oria -- NPC: Beadurinc -- Type: Smithing Synthesis Image Support -- @pos -182.300 10.999 146.650 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
dabo123148/WarlightMod
SimpleDiploMod/Client_SaveConfigureUI.lua
1
5622
function Client_SaveConfigureUI(alert) alert("This Mod is depreaced, please use the new version of this mod"); Mod.Settings.AllowAIDeclaration = AIDeclerationcheckbox.GetIsChecked(); if(Mod.Settings.AllowAIDeclaration == nil)then Mod.Settings.AllowAIDeclaration = true; end Mod.Settings.AIsdeclearAIs = AIsdecl...
mit
SalvationDevelopment/Salvation-Scripts-TCG
c12624008.lua
6
1068
--シャインスピリッツ function c12624008.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(12624008,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c12624008.condition) e1:SetTarget(c12624...
gpl-2.0
raffomania/ggj2016
src/lib/shine/scanlines.lua
8
4107
--[[ The MIT License (MIT) Copyright (c) 2015 Daniel Oaks 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,...
mit
galedric/Puzzle-Solvers
bimaru.lua
1
12382
--[[ Copyright (c) 2013 Bastien Clément 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...
unlicense
Turttle/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
SalvationDevelopment/Salvation-Scripts-TCG
c15605085.lua
2
2084
--ソーラー・ジェネクス function c15605085.initial_effect(c) --summon with 1 tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(15605085,0)) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c15605085.otcon) e...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c94119480.lua
6
1364
--終焉の守護者アドレウス function c94119480.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,5,2) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetDescription(aux.Stringid(94119480,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c78942513.lua
2
2699
--魂源への影劫回帰 function c78942513.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:Set...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c96381979.lua
2
5246
--魁炎星王-ソウコ function c96381979.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_BEASTWARRIOR),4,2) c:EnableReviveLimit() --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(96381979,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EV...
gpl-2.0
iskygame/skynet
service/gate.lua
8
1934
local skynet = require "skynet" local gateserver = require "snax.gateserver" local netpack = require "netpack" local watchdog local connection = {} -- fd -> connection : { fd , client, agent , ip, mode } local forwarding = {} -- agent -> connection skynet.register_protocol { name = "client", id = skynet.PTYPE_CLIEN...
mit
Riverlance/kingdom-age-game-windows
modules/corelib/ui/uiscrollarea.lua
1
5681
-- @docclass UIScrollArea = extends(UIWidget, "UIScrollArea") -- public functions function UIScrollArea.create() local scrollarea = UIScrollArea.internalCreate() scrollarea:setClipping(true) scrollarea.inverted = false scrollarea.alwaysScrollMaximum = false return scrollarea end function UIScrollArea:onStyl...
mit
Turttle/darkstar
scripts/zones/Southern_San_dOria/npcs/Diary.lua
17
2122
----------------------------------- -- Area: Northern San d'Oria -- NPC: Diary -- Involved in Quest: To Cure a Cough -- @zone 230 -- @pos -75 -12 65 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
fgenesis/Aquaria_experimental
game_scripts/scripts/entities/nudicommon.lua
1
5191
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c25704359.lua
2
3338
--憑依解放 function c25704359.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetCondition(c25704359.condition) c:RegisterEffect(e1) --indestructable local e2=...
gpl-2.0
Turttle/darkstar
scripts/zones/Carpenters_Landing/npcs/Beugungel.lua
19
1190
----------------------------------- -- Area: Carpenters' Landing -- NPC: Beugungel -- Type: Guild Merchant NPC (Woodworking Guild) -- @pos -333.729, -5.512, 475.647 2 ----------------------------------- package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
Turttle/darkstar
scripts/globals/items/elshimo_coconut.lua
35
1217
----------------------------------------- -- ID: 5187 -- Item: elshimo_coconut -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -1 -- Intelligence -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c30603688.lua
2
3046
--幻想の見習い魔導師 function c30603688.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(c30603688.spcon) e1:SetOperation(c30603688.spop) c:RegisterEffect(e1...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c15684835.lua
5
2631
--イービル・ブラスト function c15684835.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c15684835.target) e1:SetOperation(c15684835.operation) c:RegisterEf...
gpl-2.0
mimetic/DIG-corona-library
examples/slideviewer+textrender+accordion/scripts/dmc/dmc_corona/dmc_autostore.lua
4
16160
--====================================================================-- -- dmc_corona/dmc_autostore.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (C) 2013-2015 David McCuskey. All Rights Reserved....
mit