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
MkNiz/LOSS
classes/forms.lua
1
8740
--[CONTAINER] Container = Class{ -- pos - { x, y, w, h } -- padding - internal padding space, num or { top, bottom, left, right } -- margin - margin between elements within container, num or { top, bottom, left, right } -- flow - true or false: do elements "take up space"? -- flowDir - ...
mit
Mohammadrezar/DarkDiamond
TeleDiamond/libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
agpl-3.0
Devul/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/freeze/cl_init.lua
10
1858
FAdmin.StartHooks["Freeze"] = function() FAdmin.Messages.RegisterNotification{ name = "freeze", hasTarget = true, message = {"instigator", " froze ", "targets", " ", "extraInfo.1"}, readExtraInfo = function() local time = net.ReadUInt(16) return {time == 0 an...
mit
thedraked/darkstar
scripts/zones/Al_Zahbi/npcs/Mihli_Aliapoh.lua
14
1047
----------------------------------- -- Area: Al Zahbi -- NPC: Mihli Aliapoh -- Type: Waterserpent General -- @zone 48 -- @pos -22.615 -7 78.907 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -----------------...
gpl-3.0
CCAAHH/1p
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
alirezanj1/AntiSpam
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
thedraked/darkstar
scripts/zones/Palborough_Mines/npcs/_3z7.lua
34
1087
----------------------------------- -- Elevator in Palborough -- Notes: Used to operate Elevator @3z0 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Palborough_Mines/TextIDs"); require("scripts/globals/status...
gpl-3.0
pevers/OpenRA
mods/d2k/maps/atreides-01b/atreides01b.lua
18
4800
HarkonnenReinforcements = { } HarkonnenReinforcements["Easy"] = { { "rifle", "rifle" } } HarkonnenReinforcements["Normal"] = { { "rifle", "rifle" }, { "rifle", "rifle", "rifle" }, { "rifle", "trike" }, } HarkonnenReinforcements["Hard"] = { { "rifle", "rifle" }, { "trike", "trike" }, { "rifle", "rifle", "rifle...
gpl-3.0
thedraked/darkstar
scripts/zones/Abyssea-Konschtat/npcs/qm3.lua
10
1344
----------------------------------- -- Zone: Abyssea-Konschtat -- NPC: qm3 (???) -- Spawns Hexenpilz -- @pos ? ? ? 15 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --[...
gpl-3.0
horizonrz/DBTeam
bot/permissions.lua
43
1333
local sudos = { "plugins", "rank_admin", "bot", "lang_install", "set_lang", "tosupergroup", "gban_installer" } local admins = { "rank_mod", "gban", "ungban", "setrules", "setphoto", "creategroup", "setname", "addbots", "setlink", "rank_guest", "description", "export_...
gpl-2.0
jhasse/wxFormBuilder
build/premake/4.3/src/base/validate.lua
70
2531
-- -- validate.lua -- Tests to validate the run-time environment before starting the action. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- -- -- Performs a sanity check of all of the solutions and projects -- in the session to be sure they meet some minimum requirements. -- function premake.c...
gpl-2.0
mtroyka/Zero-K
LuaRules/Utilities/GetEffectiveWeaponRange.lua
10
5625
local function GetRangeModType(weaponDef) local modType = 0 --weapon targeting mod type if (weaponDef.type == "Cannon") or (weaponDef.type == "EmgCannon") or (weaponDef.type == "DGun" and weaponDef.gravityAffected) or (weaponDef.type == "AircraftBomb") then --Ballistic modType = 0 elseif (weaponDef.type == "...
gpl-2.0
mtroyka/Zero-K
units/chicken_spidermonkey.lua
3
6010
unitDef = { unitname = [[chicken_spidermonkey]], name = [[Spidermonkey]], description = [[All-Terrain Support]], acceleration = 0.36, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic ...
gpl-2.0
cjp39/naev
ai/tpl/merchant.lua
1
2276
include("ai/include/basic.lua") -- Variables mem.enemy_close = 500 -- Distance enemy is too close for comfort -- Required control rate control_rate = 2 -- Required "control" function function control () task = ai.taskname() enemy = ai.getenemy() -- Runaway if enemy is near if task ~= "runaway" and e...
gpl-3.0
thedraked/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Pettette.lua
14
1062
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Pettette -- Type: Standard NPC -- @zone 94 -- @pos 164.026 -0.001 -26.690 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; --...
gpl-3.0
OpenNMT/OpenNMT
tools/tokenize.lua
4
2970
require('torch') require('onmt.init') local threads = require 'threads' local tokenizer = require('tools.utils.tokenizer') local cmd = onmt.utils.ExtendedCmdLine.new('tokenize.lua') tokenizer.declareOpts(cmd) cmd:text('') cmd:text('Other options') cmd:text('') cmd:option('-nparallel', 1, [[Number of parallel thread...
mit
ukoloff/rufus-lua-win
vendor/lua/lib/lua/logging/sql.lua
3
2625
------------------------------------------------------------------------------- -- Saves the logging information in a table using luasql -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2011 Kepler Project -- ------------------------------------------------------------------------------- r...
mit
SnabbCo/snabbswitch
lib/luajit/testsuite/test/lib/ffi/jit_struct.lua
6
4085
local ffi = require("ffi") ffi.cdef[[ typedef struct { int a, b, c; } jit_struct_foo_t; typedef struct { int a, b, c; } jit_struct_foo2_t; typedef struct { int a[10]; int b[10]; } jit_struct_sarr_t; typedef struct jit_struct_chain_t { struct jit_struct_chain_t *next; int v; } jit_struct_chain_t; ]] do --- iterati...
apache-2.0
mtroyka/Zero-K
LuaUI/Widgets/api_grabinput.lua
4
2524
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Grab Input", desc = "Implements grab input option", author = "GoogleFrog", date = "11 N...
gpl-2.0
thedraked/darkstar
scripts/zones/Port_San_dOria/npcs/Portaure.lua
17
1666
----------------------------------- -- Area: Port San d'Oria -- NPC: Portaure -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); --...
gpl-3.0
kumpuu/factorio-helicopters
logic/heliPad.lua
1
2569
function getHeliPadIndexFromBaseEntity(ent) for i, v in ipairs(global.heliPads) do if v.baseEnt == ent then return i end end return nil end heliPad = { new = function(placementEnt) local obj = { valid = true, surface = placementEnt.surface, replacedTiles = {}, baseEnt = placementEnt.sur...
mit
thedraked/darkstar
scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua
28
3110
----------------------------------- -- Area: LaLoff Amphitheater -- Name: Ark Angels 1 (Hume) ----------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); require("scripts/globals/mission...
gpl-3.0
rjeli/luvit
bench/http-cluster/app.lua
14
1034
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
thedraked/darkstar
scripts/globals/items/strip_of_sheep_jerky.lua
18
1379
----------------------------------------- -- ID: 4518 -- Item: strip_of_sheep_jerky -- Food Effect: 60Min, All Races ----------------------------------------- -- Strength 3 -- Intelligence -1 -- Attack % 22 -- Attack Cap 35 ----------------------------------------- require("scripts/globals/status"); -----------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Quicksand_Caves/TextIDs.lua
7
1486
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
mtroyka/Zero-K
scripts/corrad.lua
16
2147
include "constants.lua" local base = piece 'base' local ground = piece 'ground' local head = piece 'head' local smokePiece = {head} local SCANNER_PERIOD = 1000 local on = false --[[ local function TargetingLaser() while on do Turn(emit1, x_axis, math.rad(-50)) Turn(emit2, x_axis, math.rad(-40)) Turn(emit...
gpl-2.0
thedraked/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5cc.lua
14
1067
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5cc (Gate of Ice) -- @pos -228 0 99 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs"); -------...
gpl-3.0
thedraked/darkstar
scripts/globals/items/plate_of_coeurl_sautee.lua
18
1759
----------------------------------------- -- ID: 4548 -- Item: plate_of_coeurl_sautee -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 5 -- Agility 1 -- Intelligence -2 -- Attack % 20 -- Attack Cap 75 -- Ranged ATT % 20 -- Ranged ATT Cap 75 -- Stun Resist 5 -----------------------...
gpl-3.0
thedraked/darkstar
scripts/globals/spells/valor_minuet.lua
27
1497
----------------------------------------- -- Spell: Valor Minuet -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,ta...
gpl-3.0
pevers/OpenRA
mods/cnc/maps/gdi04b/gdi04b.lua
29
5792
BhndTrigger = { CPos.New(39, 21), CPos.New(40, 21), CPos.New(41, 21) } Atk1Trigger = { CPos.New(35, 37) } Atk2Trigger = { CPos.New(9, 44), CPos.New(10, 44), CPos.New(11, 44), CPos.New(12, 44), CPos.New(13, 44) } AutoTrigger = { CPos.New(5, 30), CPos.New(6, 30), CPos.New(7, 30), CPos.New(8, 30), CPos.New(9, 30), CPos.Ne...
gpl-3.0
filug/nodemcu-firmware
lua_modules/bh1750/bh1750.lua
89
1372
-- *************************************************************************** -- BH1750 module for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-22 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** loca...
mit
mason-larobina/luakit
tests/async/test_clib_luakit.lua
4
4241
--- Test luakit clib functionality. -- -- @copyright 2012 Mason Larobina <mason.larobina@gmail.com> local assert = require "luassert" local test = require "tests.lib" local T = {} T.test_luakit = function () assert.is_table(luakit) -- Check metatable local mt = getmetatable(luakit) assert.is_function...
gpl-3.0
thedraked/darkstar
scripts/zones/Kazham/npcs/Vah_Keshura.lua
17
1073
----------------------------------- -- Area: Kazham -- NPC: Vah Keshura -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ----------------------------------- fun...
gpl-3.0
joyhuang-game/OpenRA
mods/ra/maps/soviet-05/AI.lua
26
4192
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = Map.ActorsInBox(NWIdlePoint.CenterPosition, Map.BottomRight, function(actor) return actor.HasProperty("Hunt") and (actor.Owner == GoodGuy or actor.Owner == Greece) end) Utils.Do(laz...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok_Mines/npcs/Mariadok.lua
59
1037
----------------------------------- -- Area: Bastok Mines -- NPC: Mariadok -- Type: Weather Reporter ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bastok_Mines/TextIDs"); -...
gpl-3.0
thedraked/darkstar
scripts/globals/abilities/pets/gust_breath.lua
29
1334
--------------------------------------------------- -- Gust Breath --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/ability"); ------------------------------------------------...
gpl-3.0
SnabbCo/snabbswitch
src/program/snabbvmx/query/query.lua
9
4331
module(..., package.seeall) local counter = require("core.counter") local ffi = require("ffi") local lib = require("core.lib") local ipv4 = require("lib.protocol.ipv4") local ethernet = require("lib.protocol.ethernet") local lwutil = require("apps.lwaftr.lwutil") local shm = require("core.shm") local keys, file_exist...
apache-2.0
nicholas-leonard/dp
objectid.lua
7
1062
------------------------------------------------------------------------ --[[ ObjectID ]]-- -- An identifier than can be used to save files, objects, etc. -- Provides a unique name. ------------------------------------------------------------------------ local ObjectID = torch.class("dp.ObjectID") ObjectID.isObjectID =...
bsd-3-clause
gowadbd/gowad
plugins/s_type.lua
2
1610
--[[ _____ ____ ____ ___ _____ |_ _| _ \ | __ ) / _ \_ _| | | | |_) | | _ \| | | || | | | | __/ | |_) | |_| || | |_| |_| |____/ \___/ |_| KASPER TP (BY @kasper_dev) _ __ _ ____ ____ _____ ____ _____ ____ | |/ / / \ / ___|| _ \| ...
gpl-2.0
latenitefilms/hammerspoon
extensions/ipc/ipc.lua
3
22359
--- === hs.ipc === --- --- Provides Hammerspoon with the ability to create both local and remote message ports for inter-process communication. --- --- The most common use of this module is to provide support for the command line tool `hs` which can be added to your terminal shell environment with [hs.ipc.cliInstall](#...
mit
thedraked/darkstar
scripts/globals/items/puk_egg.lua
18
1158
----------------------------------------- -- ID: 5569 -- Item: puk_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 6 -- Magic 6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------------...
gpl-3.0
lyzardiar/RETools
PublicTools/bin/tools/bin/ios/x86_64/jit/v.lua
78
5755
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
brimworks/zile
src/buffer.lua
1
10218
-- Buffer-oriented functions -- -- Copyright (c) 2010-2011 Free Software Foundation, Inc. -- -- This file is part of GNU Zile. -- -- GNU Zile 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,...
gpl-3.0
mtroyka/Zero-K
LuaUI/Widgets/chili/simple examples/Widgets/gui_chiligui.lua
18
2737
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "chiliGUI", desc = "hot GUI Framework", author = "jK & quantum", date = "WIP", ...
gpl-2.0
kumpuu/factorio-helicopters
prototypes/style/style.lua
1
3234
--[[data.raw["gui-style"].default["heli-listbox_button"] = { type = "button_style", parent = "button", font = "default-bold", align = "left", scalable = true, --maximal_height = 33, minimal_height = 33, --maximal_width = 33, minimal_width = 33, left_click_sound = { ...
mit
thedraked/darkstar
scripts/globals/items/persikos.lua
18
1174
----------------------------------------- -- ID: 4274 -- Item: persikos -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -7 -- Intelligence 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------...
gpl-3.0
dmolina/my-config
awesome/.config/awesome/themes/multicolor/theme.lua
4
4294
--[[ Multicolor Awesome WM config 2.0 github.com/copycat-killer --]] theme = {} theme.confdir = os.getenv("HOME") .. "/.config/awesome/themes/multicolor" theme.wallpap...
gpl-3.0
thedraked/darkstar
scripts/zones/Metalworks/npcs/Ayame.lua
14
2996
----------------------------------- -- Area: Metalworks -- NPC: Ayame -- Involved in Missions -- Starts and Finishes Quest: True Strength -- @pos 133 -19 34 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sta...
gpl-3.0
X-Coder/wire
lua/entities/gmod_wire_gimbal.lua
10
2231
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Gimbal" ENT.WireDebugName = "Gimbal" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:GetPhysicsObject():...
gpl-3.0
thedraked/darkstar
scripts/globals/items/serving_of_herb_crawler_eggs.lua
18
1526
----------------------------------------- -- ID: 4552 -- Item: serving_of_herb_crawler_eggs -- Food Effect: 180Min, All Races ----------------------------------------- -- Health % 6 -- Health Cap 80 -- Magic 10 -- Agility 3 -- Vitality -1 -- Evasion 8 ----------------------------------------- require("scripts/globals/...
gpl-3.0
thedraked/darkstar
scripts/globals/items/dish_of_spaghetti_melanzane_+1.lua
17
1375
----------------------------------------- -- ID: 5214 -- Item: dish_of_spaghetti_melanzane_+1 -- Food Effect: 1Hr, All Races ----------------------------------------- -- HP % 25 (cap 105) -- Vitality 2 -- Store TP 4 ----------------------------------------- require("scripts/globals/status"); -------------------------...
gpl-3.0
mtroyka/Zero-K
units/corcrw.lua
3
8848
unitDef = { unitname = [[corcrw]], name = [[Krow]], description = [[Flying Fortress]], acceleration = 0.09, activateWhenBuilt = true, airStrafe = 0, bankingAllowed = false, brakeRate = 0.04, buildCostEnergy ...
gpl-2.0
thedraked/darkstar
scripts/zones/Southern_San_dOria/npcs/Machielle.lua
17
1881
----------------------------------- -- Area: Southern San d'Oria -- NPC: Machielle -- Only sells when Bastok controls Norvallen Region ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextI...
gpl-3.0
128technology/protobuf_dissector
modules/generic/proto.lua
1
2070
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
mit
thedraked/darkstar
scripts/globals/items/leremieu_salad.lua
18
1674
----------------------------------------- -- ID: 5185 -- Item: leremieu_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- Defense Cap 160 ----------------------------------------- require...
gpl-3.0
thedraked/darkstar
scripts/zones/Stellar_Fulcrum/mobs/Kam_lanaut.lua
23
1461
----------------------------------- -- Area: Stellar Fulcrum -- MOB: Kam'lanaut -- Zilart Mission 8 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); local blades = {823, 826, 828, 825, 824, 827}; ------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua
17
1731
----------------------------------- -- Area: Bastok Mines -- NPC: Explorer Moogle -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/teleports"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,t...
gpl-3.0
thedraked/darkstar
scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua
29
1200
----------------------------------- -- Area: Abyssea - Konschatat -- NPC: Cavernous Maw -- @pos 159.943 -72.109 -839.986 15 -- Teleports Players to Konschatat Highlands ----------------------------------- package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
NPLPackages/main
script/ide/gui_helper.lua
1
25576
--[[ Title: GUI helper functions for ParaEngine Author(s): LiXizhi, WangTian Date: 2005/10 desc: To enable helper call: ------------------------------------------------------ NPL.load("(gl)script/ide/gui_helper.lua"); ------------------------------------------------------ ]] if(_guihelper==nil) then _guihelper={} end ...
gpl-2.0
thedraked/darkstar
scripts/zones/Bhaflau_Thickets/npcs/qm1.lua
30
1349
----------------------------------- -- Area: Bhaflau Thickets -- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2)) -- @pos 334 -10 184 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bhaflau_Thickets/TextIDs"); ...
gpl-3.0
thedraked/darkstar
scripts/zones/Riverne-Site_A01/npcs/Spatial_Displacement.lua
17
3365
----------------------------------- -- Area: Riverne Site #A01 -- NPC: Spacial Displacement ----------------------------------- ----------------------------------- -- onTrade ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- onTrigger --------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Xarcabard/npcs/Tememe_WW.lua
14
3321
----------------------------------- -- Area: Xarcabard -- NPC: Tememe, W.W. -- Type: Border Conquest Guards -- @pos -133.678 -22.517 112.224 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require...
gpl-3.0
sharklinux/shark
samples/bpf/net_skb_recv.lua
2
1188
#!/usr/bin/env shark local bpf = require("bpf") bpf.cdef[[ #include <linux/skbuff.h> #include <linux/netdevice.h> #include <uapi/linux/bpf.h> #include "bpf_helpers.h" #define _(P) ({typeof(P) val = 0; bpf_probe_read(&val, sizeof(val), &P); val;}) SEC("kprobe/__netif_receive_skb_core") int bpf_prog1(struct pt_regs *...
lgpl-2.1
telergybot/1984joorge
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
master041/tele-master-asli
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
thedraked/darkstar
scripts/globals/homepoint.lua
4
17850
require("scripts/globals/settings"); local homepoints = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25, 26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50, 51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75, 76,77,78,79,80,81...
gpl-3.0
alalazo/wesnoth
data/lua/wml/role.lua
2
2840
local helper = wesnoth.require "helper" local utils = wesnoth.require "wml-utils" function wesnoth.wml_actions.role(cfg) -- role= and type= are handled differently than in other tags, -- so we need to remove them from the filter local role = cfg.role local filter = helper.shallow_literal(cfg) if role == nil then...
gpl-2.0
thedraked/darkstar
scripts/globals/items/holy_maul_+1.lua
41
1077
----------------------------------------- -- ID: 17114 -- Item: Holy Maul +1 -- Additional Effect: Light Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ------------------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Dynamis-Jeuno/Zone.lua
21
2379
----------------------------------- -- -- Zone: Dynamis-Jeuno -- ----------------------------------- package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Dynamis-Jeuno/TextIDs"); -----------------------------------...
gpl-3.0
mtroyka/Zero-K
scripts/spideraa.lua
11
4807
include "spider_walking.lua" include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local turret = piece 'turret' local barrel = piece 'barrel' local...
gpl-2.0
Devul/DarkRP
gamemode/libraries/disjointset.lua
11
1972
/*--------------------------------------------------------------------------- Disjoint-set forest implementation Inspired by the book Introduction To Algorithms (third edition) by FPtje Atheos Running time per operation (Union/FindSet): O(a(n)) where a is the inverse of the Ackermann function. -----------------------...
mit
thedraked/darkstar
scripts/zones/Port_San_dOria/npcs/Ambleon.lua
14
1059
----------------------------------- -- Area: Port San d'Oria -- NPC: Ambleon -- Type: NPC World Pass Dealer -- @zone 232 -- @pos 71.622 -17 -137.134 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; -----...
gpl-3.0
NPLPackages/main
script/ide/System/Encoding/base64.lua
1
2740
--[[ Title: base64 Author(s): LiXizhi Desc: Use Lib: ------------------------------------------------------- NPL.load("(gl)script/ide/System/Encoding/base64.lua"); local Encoding = commonlib.gettable("System.Encoding"); assert(Encoding.base64("hello world")=="aGVsbG8gd29ybGQ="); assert(Encoding.unbase64("aGVsbG8gd29y...
gpl-2.0
thedraked/darkstar
scripts/globals/mobskills/Necrobane.lua
43
1075
--------------------------------------------- -- Necrobane --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------- function onMobSkillCheck(target,mob,skill) if(mob:g...
gpl-3.0
thedraked/darkstar
scripts/zones/Kazham/npcs/Mamerie.lua
17
1410
----------------------------------- -- Area: Kazham -- NPC: Mamerie -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -------...
gpl-3.0
mtroyka/Zero-K
units/shiparty.lua
2
3415
unitDef = { unitname = [[shiparty]], name = [[Ronin]], description = [[Cruiser (Artillery)]], acceleration = 0.0417, activateWhenBuilt = true, brakeRate = 0.142, buildCostEnergy = 850, buildCostMetal = 850, builder ...
gpl-2.0
thedraked/darkstar
scripts/zones/Nashmau/npcs/Fhe_Maksojha.lua
14
2276
----------------------------------- -- Area: Nashmau -- NPC: Fhe Maksojha -- Type: Standard NPC -- @pos 19.084 -7 71.287 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/sett...
gpl-3.0
thedraked/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Gavrie.lua
17
1534
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Gavrie -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); require("scripts/g...
gpl-3.0
thedraked/darkstar
scripts/zones/Dynamis-Valkurm/Zone.lua
7
2472
----------------------------------- -- -- Zone: Dynamis-Valkurm -- ----------------------------------- package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Dynamis-Valkurm/TextIDs"); ---------------------------...
gpl-3.0
X-Coder/wire
lua/entities/gmod_wire_sensor.lua
10
6626
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Beacon Sensor" ENT.WireDebugName = "Beacon Sensor" if CLIENT then return end -- No more client local MODEL = Model( "models/props_lab/huladoll.mdl" ) function ENT:Initialize() self:SetModel( MODEL ) self:PhysicsInit( SOLID_VPHYSICS )...
gpl-3.0
mtroyka/Zero-K
LuaRules/Gadgets/unit_jumpjet_pilot_2.lua
11
4195
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if (not gadgetHandler:IsSyncedCode()) then return false end function gadget:GetInfo() return { name = "Jumpjet Pilot 2014", desc = "St...
gpl-2.0
thedraked/darkstar
scripts/zones/Upper_Jeuno/npcs/Monberaux.lua
14
5908
----------------------------------- -- Area: Upper Jeuno -- NPC: Monberaux -- Starts and Finishes Quest: The Lost Cardian (finish), The kind cardian (start) -- Involved in Quests: Save the Clock Tower -- @pos -43 0 -1 244 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; pac...
gpl-3.0
NPLPackages/main
script/sqlite/lunit.lua
1
18237
--[[ use the lib: ------------------------------------------------------------ NPL.load("(gl)script/sqlite/lunit.lua"); ------------------------------------------------------------ ]] --[[-------------------------------------------------------------------------- This file is part of lunit 0.4pre (alpha). For...
gpl-2.0
rjeli/luvit
tests/test-instanceof.lua
14
1312
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
SnabbCo/snabbswitch
lib/ljsyscall/syscall/freebsd/constants.lua
6
31735
-- tables of constants for NetBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select local abi =...
apache-2.0
alalazo/wesnoth
data/ai/micro_ais/cas/ca_hunter.lua
2
8201
local H = wesnoth.require "helper" local W = H.set_wml_action_metatable {} local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local M = wesnoth.map local function hunter_attack_weakest_adj_enemy(ai, hunter) -- Attack the enemy with the fewest ...
gpl-2.0
thedraked/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Beastmen_s_Banner.lua
14
1037
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Beastmen_s_Banner -- @pos -172.764 25.119 93.640 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pashhow_Marshlands/TextIDs"); --...
gpl-3.0
thedraked/darkstar
scripts/zones/Western_Altepa_Desert/npcs/relic.lua
14
1892
----------------------------------- -- Area: Western Altepa Desert -- NPC: <this space intentionally left blank> -- @pos -152 -16 20 125 ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Western_Altepa_De...
gpl-3.0
thedraked/darkstar
scripts/globals/items/kusamochi_+1.lua
35
2086
----------------------------------------- -- ID: 6263 -- Item: kusamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120 -- Ranged Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120 -...
gpl-3.0
thedraked/darkstar
scripts/zones/Northern_San_dOria/npcs/Taulenne.lua
16
5134
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taulenne -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; package.loaded["scripts/globals/armorstorage"] = nil; ----------------------------------- require("scripts/zones/No...
gpl-3.0
thedraked/darkstar
scripts/zones/La_Theine_Plateau/npcs/Dimensional_Portal.lua
17
1389
----------------------------------- -- Area: La Theine Plateau -- NPC: Dimensional Portal ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/...
gpl-3.0
thedraked/darkstar
scripts/zones/Windurst_Waters/npcs/Naiko-Paneiko.lua
25
3850
----------------------------------- -- Area: Windurst Waters -- NPC: Naiko-Paneiko -- Involved In Quest: Making Headlines, Riding on the Clouds -- @zone 238 -- @pos -246 -5 -308 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; package.loaded["scripts/globals/settings"]...
gpl-3.0
thedraked/darkstar
scripts/globals/mobskills/Fulmination.lua
27
1503
--------------------------------------------- -- Fulmination -- -- Description: Deals heavy magical damage in an area of effect. Additional effect: Paralysis + Stun -- Type: Magical -- Utsusemi/Blink absorb: Wipes Shadows -- Range: 30 yalms --------------------------------------------- require("scripts/globals/set...
gpl-3.0
Alittlemurkling/Noct
awesome/freedesktop/menu.lua
8
3706
-- Grab environment local utils = require("freedesktop.utils") local io = io local string = string local table = table local os = os local ipairs = ipairs local pairs = pairs module("freedesktop.menu") all_menu_dirs = { '/usr/share/applications/', '/usr/local/share/applications/', '~/.local/share/applicat...
gpl-3.0
mtroyka/Zero-K
effects/mary_sue.lua
25
5718
-- mary_sue_fireball1 -- mary_sue_fireball3 -- mary_sue -- mary_sue_fireball2 return { ["mary_sue_fireball1"] = { wezels = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, ...
gpl-2.0
thedraked/darkstar
scripts/zones/Windurst_Woods/npcs/Nalta.lua
14
1046
----------------------------------- -- Area: Windurst Woods -- NPC: Nalta -- Type: Conquest Troupe -- @zone 241 -- @pos 19.140 1 -51.297 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ------------------...
gpl-3.0
mohammadclashclash/dark98
plugins/ingroup.lua
202
31524
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostring(msg.to.id)] = { ...
gpl-2.0
latenitefilms/hammerspoon
extensions/doc/hsdocs/init.lua
4
30798
--- === hs.doc.hsdocs === --- --- Manage the internal documentation web server. --- --- This module provides functions for managing the Hammerspoon built-in documentation web server. Currently, this is the same documentation available in the Dash docset for Hammerspoon, but does not require third party software for v...
mit
thedraked/darkstar
scripts/zones/Western_Adoulin/npcs/Dangueubert.lua
14
1682
----------------------------------- -- Area: Western Adoulin -- NPC: Dangueubert -- Type: Standard NPC and Quest NPC -- Involved with Quest: 'A Certain Substitute Patrolman' -- @zone 256 -- @pos 5 0 -136 256 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/quests")...
gpl-3.0
mtroyka/Zero-K
units/factoryshield.lua
2
3425
unitDef = { unitname = [[factoryshield]], name = [[Shield Bot Factory]], description = [[Produces Tough Robots, Builds at 10 m/s]], acceleration = 0, brakeRate = 0, buildCostEnergy = 600, bui...
gpl-2.0