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
DiNaSoR/Angel_Arena
game/angel_arena/scripts/vscripts/heroes/hero_invoker/invoker_retro_firebolt.lua
1
2267
--[[ ============================================================================================================ Author: Rook Date: March 6, 2015 Called when Firebolt is cast. Additional parameters: keys.ProjectileMovementSpeed =======================================================================================...
mit
MrClash/Monsterb0t
plugins/supergroup.lua
1
73034
--Begin supergrpup.lua --Check members #Add supergroup local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "Promote me to admin first!") end for k,v in pairs(result...
gpl-3.0
RavenX8/osIROSE-new
scripts/mobs/ai/kaiman_ranger.lua
2
1074
registerNpc(144, { walk_speed = 220, run_speed = 700, scale = 152, r_weapon = 1045, l_weapon = 0, level = 61, hp = 28, attack = 255, hit = 144, def = 133, res = 139, avoid...
apache-2.0
AdUki/Grapedit
scripts/libs/pl/List.lua
8
15758
--- Python-style list class. -- -- **Please Note**: methods that change the list will return the list. -- This is to allow for method chaining, but please note that `ls = ls:sort()` -- does not mean that a new copy of the list is made. In-place (mutable) methods -- are marked as returning 'the list' in this documentati...
mit
Sonicrich05/FFXI-Server
scripts/zones/The_Shrine_of_RuAvitau/npcs/Grounds_Tome.lua
34
1144
----------------------------------- -- Area: Shrine of Ru'Avitau -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onT...
gpl-3.0
rory/osm2pgsql
flex-config/attributes.lua
1
2656
-- This config example file is released into the Public Domain. -- This config shows how to access the attributes of OSM objects: the version, -- changeset id, timestamp, user id and user name. For this to work the -- command line option --extra-attributes/-x must be set, otherwise those -- fields will be empty. -- S...
gpl-2.0
Sonicrich05/FFXI-Server
scripts/globals/weaponskills/vorpal_blade.lua
30
1435
----------------------------------- -- Vorpal Blade -- Sword weapon skill -- Skill Level: 200 -- Delivers a four-hit attack. Chance of params.critical varies with TP. -- Stacks with Sneak Attack. -- Aligned with the Soil Gorget & Thunder Gorget. -- Aligned with the Soil Belt & Thunder Belt. -- Element: None --...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/items/plate_of_fin_sushi.lua
3
1367
----------------------------------------- -- ID: 5665 -- Item: plate_of_fin_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Intelligence 5 -- Accuracy % 16 -- Ranged Accuracy % 16 ----------------------------------------- require("scripts/globals/status"); -------------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/abilities/meditate.lua
18
1307
----------------------------------- -- Ability: Meditate -- Gradually charges TP. -- Obtained: Samurai Level 30 -- Recast Time: 3:00 (Can be reduced to 2:30 using Merit Points) -- Duration: 15 seconds ----------------------------------- require("scripts/globals/status"); ----------------------------------- --...
gpl-3.0
RavenX8/osIROSE-new
scripts/mobs/ai/king_hook.lua
2
1072
registerNpc(517, { walk_speed = 300, run_speed = 650, scale = 240, r_weapon = 0, l_weapon = 0, level = 155, hp = 38, attack = 773, hit = 446, def = 428, res = 569, avoid ...
apache-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Batallia_Downs/npcs/Stone_Monument.lua
3
1202
----------------------------------- -- Area: Batallia Downs -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" ----------------------------------- package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Batallia_Downs/TextIDs"); --...
gpl-3.0
adobe-apiplatform/api-gateway-request-validation
test/unit-tests/api-gateway/validation/redisApiKeyValidatorTest.lua
1
11776
--- --- Created by purcarea. --- DateTime: 30/03/2018 --- local cjson = require "cjson" local BaseValidatorMock, RedisConnectionProviderMock local EXPECTED_RESPONSES = { MISSING_KEY = { error_code = "403000", message = '{"message":"Api KEY is missing","error_code":"403000"}' }, UNKNOWN_ERROR = { error_code =...
mit
Dual-Boxing/Jamba
Modules/Jamba-Purchase/Locales/JambaPurchase-Locale-enUS.lua
1
1274
--[[ Jamba - Jafula's Awesome Multi-Boxer Assistant Copyright 2008 - 2015 Michael "Jafula" Miller License: The MIT License ]]-- local L = LibStub("AceLocale-3.0"):NewLocale( "Jamba-Purchase", "enUS", true ) L["Slash Commands"] = true L["Merchant"] = true L["Purchase"] = true L["Push Settings"] = true L["Push the purch...
mit
Sonicrich05/FFXI-Server
scripts/zones/Windurst_Walls/npcs/Yoriri.lua
38
1403
----------------------------------- -- Area: Windurst Walls -- NPC: Yoriri -- Type: Standard NPC -- @pos 65.268 -8.5 -58.309 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua
2
1026
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: Iron Gate -- @pos -65 0 60 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Phomiuna_Aqueducts...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/North_Gustaberg/MobIDs.lua
36
1422
----------------------------------- -- Area: North Gustaberg -- Comments: -- posX, posY, posZ --(Taken from 'mob_spawn_points' table) ----------------------------------- -- Stinging Sophie Stinging_Sophie=17211561; Stinging_Sophie_PH={ [17211532] = '1', -- 352.974, -40.359, 472.914 [17211534] = '1', -- ...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Lower_Jeuno/npcs/Yatniel.lua
19
1797
----------------------------------- -- Area: Lower Jeuno -- NPC: Yatniel -- Type: Standard NPC -- @zone: 245 -- @pos -66.817 -7 -126.594 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; --------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Norg/npcs/Heiji.lua
17
3132
----------------------------------- -- Area: Norg -- NPC: Heiji -- Starts and Ends Quest: Like a Shining Subligar -- @pos -1 -5 25 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Davoi/npcs/Hide_Flap.lua
4
2618
----------------------------------- -- Area: Davoi -- NPC: Hide Flap -- Involved in Quest: The Doorman, The First Meeting -- @zone 149 -- @pos 293 3 -213 (WAR)(K-9) @pos -124 3 -43 (MNK)(F-7) ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/The_Eldieme_Necropolis/TextIDs.lua
4
2071
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6534; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6537; -- Obtained: <item> GIL_OBTAINED = 6538; -- Obtained <number> gil KEYITEM_OBTAINED = 6540; -- Obtain...
gpl-3.0
paulWatt526/wattageRegionManagerExample
analogControlStick.lua
1
6330
local TileEngine = require "plugin.wattageTileEngine" local Utils = TileEngine.Utils -- Localize external function calls. local sqrt = math.sqrt local min = math.min local AnalogControlStick = {} AnalogControlStick.new = function(params) Utils.requireParams({ "parentGroup", "centerX", "cen...
mit
Sonicrich05/FFXI-Server
scripts/zones/RoMaeve/Zone.lua
16
2428
----------------------------------- -- -- Zone: RoMaeve (122) -- ----------------------------------- package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/RoMaeve/TextIDs"); require("scripts/globals/zone"); --...
gpl-3.0
epinter/pcars-addon-pinglimit
epinter_pinglimit.lua
1
8099
--[[ PingLimit Addon for Project Cars Dedicated Server Copyright (C) 2016 Emerson Pinter <dev@pinter.com.br> 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 3 of the ...
gpl-3.0
henriquemoody/LuaValidation
spec/rules/key_spec.lua
1
1859
local key = require("validation.rules.key") local context = require("validation.context") local dummy = require("validation.rules.dummy") describe("Validation using key rule", function() it("must validate when key exists", function() local input = {some = true} local context = {input = input} key("some...
mit
nimaghorbani/newbot
plugins/chat.lua
28
1195
local function run(msg) if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then return "و علی...
gpl-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/summon.lua
2
9299
require("scripts/globals/common"); require("scripts/globals/status"); SUMMONING_MAGIC_SKILL = 38 MSG_NONE = 0; -- display nothing MSG_NO_EFFECT = 189; MSG_DAMAGE = 185; -- player uses, target takes 10 damage. DEFAULT MSG_MISS = 188; MSG_RESIST = 85; function AvatarPhysicalMove(avatar,target,skill,numberofhits,accmo...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Metalworks/npcs/Hungry_Wolf.lua
4
2041
----------------------------------- -- Area: Metalworks -- NPC: Hungry Wolf -- Type: Quest Giver -- @pos: -25.861 -11 -30.172 237 -- -- Auto-Script: Requires Verification (Verified by Brawndo) -- Updated for "Smoke on the Mountain" by EccentricAnata 03.22.13 ----------------------------------- package.loaded["scr...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua
19
2053
----------------------------------- -- Area: Cloister of Flames -- BCNM: Trial-size Trial by Fire -- @pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/glo...
gpl-3.0
kans/zirgo
tests/crash-dump/init.lua
1
1533
local fs = require('fs') local table = require('table') local timer = require('timer') local string = require('string') local path = require('path') local os = require('os') local async = require('async') local helper = require('../helper') local fixtures = require('../fixtures') local Endpoint = require('/endpoint')...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Metalworks/npcs/Karst.lua
19
1867
----------------------------------- -- Area: Metalworks -- NPC: Karst -- Type: President -- Involved in Bastok Missions 5-2 -- @pos 106 -21 0 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requi...
gpl-3.0
fruitwasp/DarkRP
gamemode/modules/positions/sv_database.lua
1
5090
--[[--------------------------------------------------------------------------- Loading ---------------------------------------------------------------------------]] local teamSpawns = {} local jailPos = {} local function onDBInitialized() local map = MySQLite.SQLStr(string.lower(game.GetMap())) MySQLite.query(...
mit
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Misareaux_Coast/npcs/_0p0.lua
2
2424
----------------------------------- -- Area: Misareaux Coast -- NPC: Dilapidated Gate -- @pos 260 9 -435 25 ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Misareaux_Coast...
gpl-3.0
SnakeSVx/spacebuild
lua/caf/core/shared/caf_tools.lua
4
10661
-- -- Custom Addon Framework TOOLS HAPPY-FUN TIME-SAVER FUNCTIONS -- if ( SERVER ) then AddCSLuaFile( "vgui/caf_gui.lua" ) AddCSLuaFile( "vgui/caf_gui_button.lua" ) -- Global list of callbacks CAF_CallbackFuncs = {} --DO NOT register this function with the duplication, you MUST wrap this function in anot...
apache-2.0
Servius/tfa-sw-weapons-repository
Live Addons/servius_uploader_legacy/tfa_swrp_expanded_weapons_pack/lua/weapons/npc_sw_sparks_wristpurple/ai_translations.lua
11
11326
/*--------------------------------------------------------- Name: SetupWeaponHoldTypeForAI Desc: Mainly a Todo.. In a seperate file to clean up the init.lua ---------------------------------------------------------*/ function SWEP:SetupWeaponHoldTypeForAI( t ) self.ActivityTranslateAI = {} if ( t == "smg" )...
apache-2.0
Servius/tfa-sw-weapons-repository
Live Addons/servius_uploader_legacy/tfa_swrp_expanded_weapons_pack/lua/weapons/npc_sw_sparks_wristyellow/ai_translations.lua
11
11326
/*--------------------------------------------------------- Name: SetupWeaponHoldTypeForAI Desc: Mainly a Todo.. In a seperate file to clean up the init.lua ---------------------------------------------------------*/ function SWEP:SetupWeaponHoldTypeForAI( t ) self.ActivityTranslateAI = {} if ( t == "smg" )...
apache-2.0
Servius/tfa-sw-weapons-repository
Live Addons/servius_uploader/[TFA] Extended Pack/lua/weapons/tfa_bowcaster/shared.lua
1
6084
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "Bowcaster" SWEP.Author = "TFA, Servius" SWEP.ViewModelFOV = 50 SWEP.Slot = 2 SWEP.SlotPos = 3 end SWEP.Base = "tfa_3dscoped_base" SWEP.Category = "TFA Star Wars" SWEP.Spawnable = true SWEP.AdminSpawn...
apache-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Bastok_Mines/npcs/Phara.lua
4
2463
----------------------------------- -- Area: Bastok Mines -- NPC: Phara -- Starts and Finishes Quest: The doorman (start) -- Involved in Quest: The Talekeeper's Truth -- @zone 234 -- @pos 75 0 -80 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; --------------------------...
gpl-3.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/zones/Windurst_Waters/npcs/Jatan-Paratan.lua
6
3141
----------------------------------- -- Area: Windurst Waters -- NPC: Jatan-Paratan -- Starts and Finished Quest: Wondering Minstrel -- Working 100% -- @zone = 238 -- @pos = -59 -4 22 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; -----------------------------------...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/items/tavnazian_salad.lua
35
1678
----------------------------------------- -- ID: 4279 -- Item: tavnazian_salad -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- Defense Cap 150 ------------------------------------...
gpl-3.0
projectbismark/luci-bismark
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
30
5877
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- f...
apache-2.0
everslick/awesome
lib/awful/widget/keyboardlayout.lua
4
3431
--------------------------------------------------------------------------- -- @author Aleksey Fedotov &lt;lexa@cfotr.com&gt; -- @copyright 2015 Aleksey Fedotov -- @release @AWESOME_VERSION@ -- @classmod wibox.widget.keyboardlayout --------------------------------------------------------------------------- local capi ...
gpl-2.0
kidaa/ffxinfinity
FFXI Server-Development/Build Files/scripts/globals/spells/regen.lua
2
1213
----------------------------------------- -- Spell: Regen -- Gradually restores target's HP. ----------------------------------------- -- Cleric's Briault enhances the effect -- Scale down duration based on level -- Composure increases duration 3x ----------------------------------------- require("scripts/globals/stat...
gpl-3.0
rlowrance/re
equalObjectValues_test.lua
1
1474
-- equalObjectValues_test.lua -- unit test require 'equalObjectValues' require 'makeVp' require 'NamedMatrix' local vp = makeVp(0, 'tester') local function assertEqual(a, b) local vp = makeVp(0, 'assertEqual') vp(1, 'a', a, 'b', b) local result, whynot = equalObjectValues(a, b) vp(2, 'result', result, 'w...
gpl-3.0
Servius/tfa-sw-weapons-repository
In Development/servius_development/tfa_swrp_imperial_era_weapons_pack/lua/effects/vox_sw_laser_white/init.lua
2
2921
TRACER_FLAG_USEATTACHMENT = 0x0002; SOUND_FROM_WORLD = 0; CHAN_STATIC = 6; EFFECT.Speed = 6500; EFFECT.Length = 64; //EFFECT.WhizSound = Sound( "nomad/whiz.wav" ); -- by Robinhood76 (http:--www.freesound.org/people/Robinhood76/sounds/96556/) EFFECT.WhizDistance = 72; local MaterialMain = Material(...
apache-2.0
Sonicrich05/FFXI-Server
scripts/zones/Port_San_dOria/npcs/Teilsa.lua
34
1795
----------------------------------- -- Area: Port San d'Oria -- NPC: Teilsa -- Adventurer's Assistant -- Only recieving Adv.Coupon and simple talk event are scrited -- This NPC participates in Quests and Missions ------------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ...
gpl-3.0
daVoodooShuffle/OpenRA
mods/d2k/maps/ordos-04/ordos04.lua
5
5410
Base = { Harkonnen = { HRefinery, SHeavyFactory, SLightFactory, HGunTurret1, HGunTurret2, HGunTurret3, HGunTurret4, HGunTurret5, SBarracks, HPower1, HPower2, HPower3, HPower4 }, Smugglers = { SOutpost, SHeavyFactory, SLightFactory, SGunTurret1, SGunTurret2, SGunTurret3, SGunTurret4, SBarracks, SPower1, SPower2, SPow...
gpl-3.0
Sonicrich05/FFXI-Server
scripts/globals/mobskills/Glacial_Breath.lua
1
1287
--------------------------------------------- -- Glacial Breath -- -- Description: Deals Ice damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Jormungand and Isgebind -----------------------------------------...
gpl-3.0
javierguerragiraldez/snabbswitch
src/program/snabbnfv/fuzz/fuzz.lua
15
5108
module(...,package.seeall) local lib = require("core.lib") local usage = require("program.snabbnfv.fuzz.README_inc") function run (args) if #args ~= 2 then print(usage) main.exit(1) end local spec_path, output_path = unpack(args) local conf = fuzz_connective_ports(lib.load_conf(spec_path)) lib.store_conf...
apache-2.0
comedinha/New-Poke-Lite
data/migrations/8.lua
57
3350
function onUpdateDatabase() print("> Updating database to version 9 (global inbox)") db.query("CREATE TABLE IF NOT EXISTS `player_inboxitems` (`player_id` int(11) NOT NULL, `sid` int(11) NOT NULL, `pid` int(11) NOT NULL DEFAULT '0', `itemtype` smallint(6) NOT NULL, `count` smallint(5) NOT NULL DEFAULT '0', `attribute...
gpl-2.0
aspiraboo/kappa
vc14/data/migrations/8.lua
57
3350
function onUpdateDatabase() print("> Updating database to version 9 (global inbox)") db.query("CREATE TABLE IF NOT EXISTS `player_inboxitems` (`player_id` int(11) NOT NULL, `sid` int(11) NOT NULL, `pid` int(11) NOT NULL DEFAULT '0', `itemtype` smallint(6) NOT NULL, `count` smallint(5) NOT NULL DEFAULT '0', `attribute...
gpl-2.0
dunn/ntopng
third-party/LuaJIT-2.0.3/dynasm/dynasm.lua
60
30989
------------------------------------------------------------------------------ -- DynASM. A dynamic assembler for code generation engines. -- Originally designed and implemented for LuaJIT. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- See below for full copyright notice. ----------------------------...
gpl-3.0
Silencer2K/wow-lib-s2k-misc
LibS2kMisc-1.0.lua
1
2080
local MAJOR, MINOR = "LibS2kMisc-1.0", 201807181 local lib, oldMinor = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end -- table extensions function table.s2k_is_empty(tab) for _ in pairs(tab) do return false end return true end function table.s2k_len(tab) local count = 0 for ...
mit
xurenlu/tokyo-family
usherette.lua
1
9321
-- -- Inverted index by the Lua extension of Tokyo Tyrant -- -- constants DELIMS = " \t\r\n" -- delimiters of tokenizing LIMNUM = 2000 -- limit number of kept occurrence DEFMAX = 10 -- default maximum number of search IDPREFIX = "\t#" -- prefix to get the ID from the URI URIPREFIX = "\t@" -- ...
lgpl-2.1
robertbrook/lib
lustache/context.lua
7
1285
local string_find, string_split, tostring, type = string.find, string.split, tostring, type local context = {} function context:clear_cache() self.cache = {} end function context:push(view) return self:new(view, self) end function context:lookup(name) local value = self.cache[name] if...
bsd-3-clause
robertbrook/lib
pl/Date.lua
12
17716
--- Date and Date Format classes. -- See @{05-dates.md|the Guide}. -- -- Dependencies: `pl.class`, `pl.stringx` -- @classmod pl.Date -- @pragma nostrip local class = require 'pl.class' local os_time, os_date = os.time, os.date local stringx = require 'pl.stringx' local utils = require 'pl.utils' local assert_arg,asse...
bsd-3-clause
Lockeid/cargBags_Gnomed
layout.lua
1
25962
--[[ TODO -- One empty icon]]-- -- Install the config local db = cargBags_Gnomed.Config cargBags_Gnomed.Frames = {} -- Localization -- Esaier than requesting every localization local L = {} L.Weapon, L.Armor, L.Container, L.Consumables, L.Glyph, L.Trades, L.Projectile, L.Quiver, L.Recipe, L.Gem, L.Misc, L.Quest = Ge...
mit
adonaac/yaoui
examples/anime/yaoui/UI/mlib/spec.lua
11
44108
-- run using 'lua tsc -f spec.lua' require 'telescope' local _ = require 'mlib' context( 'mlib', function() before( function() end ) after( function() end ) local function check_fuzzy( a, b ) return ( a - .00001 <= b and b <= a + .00001 ) end local function DeepCompare( Table1, Table2 ) if type( Table1 ...
mit
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/weapons/weapon_mad_ak47/shared.lua
1
1647
// Variables that are used on both client and server SWEP.Base = "weapon_mad_base" SWEP.ViewModelFlip = true SWEP.ViewModel = "models/weapons/v_rif_ak47.mdl" SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl" SWEP.Spawnable = true SWEP.AdminSpawnable = false SWEP.Primary.Sound = Sound("Weapo...
gpl-3.0
jiangzhw/QSanguosha
lua/ai/maneuvering-ai.lua
6
24978
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
zchengquan/nn
CosineDistance.lua
26
2154
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function CosineDistance:updateOutput(input) local input1, input2 = input[1], input[2] if input1:dim() == 1 then i...
bsd-3-clause
resistor58/deaths-gmod-server
wire/lua/weapons/gmod_tool/stools/wire_cd_disk.lua
1
4772
TOOL.Category = "Wire - Data" TOOL.Name = "CD Disk" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if (CLIENT) then language.Add("Tool_wire_cd_disk_name", "CD Disk Tool (Wire)") language.Add("Tool_wire_cd_disk_desc", "Spawns a CD Disk.") language.Add("Tool_wire_cd_disk_0", "Prima...
gpl-3.0
team-smart/smart_team
plugins/reqgroup.lua
1
1203
--[[ 🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱 #:[[ #For info file #Developer : #JOker < @lua_3 > #JoZef < @jozef3 > #our channel: @Smart_Team #File type : (طلب كروب) 🔱➖➖➖➖➖➖➖➖➖➖➖➖➖➖🔱 —]] do function run(msg, matches) local ch = '190385827'..msg.to.id--هنا حط ايديك local fuse = 'طلب احدهم مجموعه🌚\n\n❤️ايديه ' .. msg.from.id .. '\n\...
gpl-2.0
chewi/Aquaria
files/scripts/entities/loper.lua
6
3665
-- 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
resistor58/deaths-gmod-server
SCars/lua/entities/sent_Sakarias_Car_Comet/init.lua
1
5945
--Copyright (c) 2010 Sakarias Johansson AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') --[[ //Models resource.AddFile( "models/dean/gtaiv/vehicles/comet.mdl" ) resource.AddFile( "models/dean/gtaiv/vehicles/comet_sep.mdl" ) resource.AddFile( "models/dean/gtaiv/vehicles/cometwheel....
gpl-3.0
comedinha/New-Poke-Lite
data/spells/scripts/monster/undead dragon curse.lua
20
1111
local combat = {} for i = 30, 50 do combat[i] = Combat() combat[i]:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SMALLCLOUDS) combat[i]:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH) local condition = Condition(CONDITION_CURSED) condition:se...
gpl-2.0
TestMaster12/Dynamic
libs/dkjson.lua
31
26560
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global value...
gpl-2.0
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/weapons/weapon_mad_admin/shared.lua
1
4490
// Variables that are used on both client and server local Automatic = CreateConVar ("mad_admin_automatic", "true", {FCVAR_REPLICATED, FCVAR_ARCHIVE}) local PrimarySound = CreateConVar ("mad_admin_sound", "NPC_Sniper.FireBullet", {FCVAR_REPLICATED, FCVAR_ARCHIVE}) local Shell = CreateConVar ("mad_admin_shel...
gpl-3.0
adonaac/yaoui
examples/anime/yaoui/Dropdown.lua
4
4408
local yui_path = (...):match('(.-)[^%.]+$') local Object = require(yui_path .. 'UI.classic.classic') local Dropdown = Object:extend('Dropdown') function Dropdown:new(yui, settings) self.yui = yui self.timer = self.yui.Timer() self.x, self.y = 0, 0 self.name = settings.name self.size = settings.size...
mit
prashantabmc/meter-plugin-spark
init.lua
1
5751
-- Copyright 2015 BMC Software, Inc. -- -- 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 agreed ...
apache-2.0
maxmax1/fooniks
resources/scoreboard/scoreboard_client.lua
2
9184
local columnByName = {} local scoreboardColumns = {} local scoreboardRows = {} local scoreboardGrid local updateInterval = 1000 --ms local visibilityCheckInterval = 500 --ms local indent = ' ' local localPlayer = getLocalPlayer() local playerTeam = getPlayerTeam(localPlayer) local playerParent = getElementPa...
gpl-3.0
resistor58/deaths-gmod-server
Ultimate Vehicle Pack/lua/autorun/VP_HL2.lua
1
10184
//HL2 and CSS vehicles. local Category = "Half-Life 2" local V = { // Required information Name = "Piranesi APC", Class = "prop_vehicle_jeep", Category = Category, // Optional information Author = "VALVe", Information = "Piranesi APC", Model = "models/pirapc/pirapc.m...
gpl-3.0
mamadtnt/bot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
AdiAddons/LibPlayerSpells-1.0
data/Shaman.lua
1
12889
--[[ LibPlayerSpells-1.0 - Additional information about player spells. (c) 2013-2021 Adirelle (adirelle@gmail.com) This file is part of LibPlayerSpells-1.0. LibPlayerSpells-1.0 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 Softwar...
gpl-3.0
lujingwei002/erhzb
server/3rd/tolua++/lua/operator.lua
1
5741
-- tolua: operator class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancement...
apache-2.0
tehran980/https-github.com-uziins-uzzbot
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
tehran980/https-github.com-uziins-uzzbot
bot/bot.lua
34
7073
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
NogsIoT/Nogs-IDE
Templates/Projects/Default/socket/headers.lua
133
3698
----------------------------------------------------------------------------- -- Canonic header field capitalization -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- local socket = require("socket") socket.headers = {} local _M = socket.headers ...
gpl-2.0
ChanningDuan/annotated_redis_source
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...
bsd-3-clause
squilter/ardupilot
libraries/AP_Scripting/applets/SmartAudio.lua
24
3510
-------------------------------------------------- -------------------------------------------------- --------- VTX LUA for SMARTAUDIO 2.0 ------------- ------------based on work by---------------------- ---------Craig Fitches 07/07/2020 ---------------- -------------Mods by H. Wurzburg ----------------- --------...
gpl-3.0
chewi/Aquaria
files/scripts/entities/collectiblearnassistatue.lua
6
1427
-- 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
resistor58/deaths-gmod-server
NPC_Control2/lua/weapons/gmod_tool/stools/npc_spawner.lua
1
4827
TOOL.Category = "NPC Control 2" TOOL.Name = "NPC Spawner" TOOL.Command = nil TOOL.ConfigName = "" include("shared_cl.lua") include("shared.lua") TOOL.ClientConVar["npctospawn"] = "gman" TOOL.ClientConVar["wep"] = "" TOOL.ClientConVar["autoselect"] = "1" TOOL.ClientConVar["facing"] = "0" if (CLIENT) then...
gpl-3.0
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/NodeAnchors.lua
3
5625
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
mit
danielmiw/marshal_123
plugins/admin.lua
4
1919
local function run(msg, matches) if is_sudo then if matches[1] == 'import' then tg.importChatInviteLink('https://telegram.me/joinchat/'..matches[2]) elseif matches[1] == 'setbotname' then if matches[3] then text = "نام ربات به "..matches[2]..matches[3].." تغییر یافت." tg.sendMessage(msg.chat_id_, 0, 1, text, 1,...
gpl-3.0
petrkr/nodemcu-firmware
lua_examples/email/read_email_imap.lua
82
4543
--- -- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc -- @author Miguel (AllAboutEE.com) -- @description This example will read the first email in your inbox using IMAP and -- display it through serial. The email server must provided unecrypted access. The code -- was tested with an AOL and Time Warner c...
mit
Nottinghster/OTServ_SVN-0.6.4
src/data/npc/scripts/cityguard.lua
2
2226
local target = 0 local prevTarget = 0 local maxChaseDistance = 20 local origPos = 0 local origDir = NORTH local lastAttack = 0 local followTimeout = 10 local function isSkulled(cid) local skullType = getPlayerSkullType(cid) if(skullType >= 3) then return true end return false end local function goToOrigPos()...
gpl-2.0
pramukta/LaunchKey-Mini-Duplex
Configurations/LaunchKeyMini_Recorder.lua
1
2046
--[[---------------------------------------------------------------------------- -- Duplex.LaunchKeyMini ----------------------------------------------------------------------------]]-- -- default configuration of the R-control --============================================================================== duplex_c...
bsd-2-clause
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc/ogdf/energybased/FMMMLayout.lua
3
4195
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
mit
oratory/wago.io
backend/api/lua/libs/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua
46
4441
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 23 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
mit
team-smart/smart_team
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
NOVAR1/DEV_NOVAR
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
TeleGram-Real/RealBot
plugins/commands.lua
4
36971
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
oddlydrawn/flapShmup
main.lua
1
2952
function love.load() hero = require "hero" camera = require "camera" ground = require "ground" ceiling = require "ceiling" buildings = require "buildings" enemies = require "enemies" local FONT_LOC = "assets/Amble-Bold.ttf" local size = 30 font = love.graphics.newFont(FONT_LOC, size) decoder = lo...
mit
lsmoura/dtb
Options.lua
1
47951
-- -- DruidTimerBars - Druid ability and debuff tracker -- Options - Stuff for the options panel, addon defaults. -- Gilbert - Tichondrius US -- -- Stop now if the player isn't a Druid. if select(2, UnitClass('player')) ~= "DRUID" then DisableAddOn("DTB") return end local L = LibStub("AceLocale-3....
unlicense
fitoria/mongrel2
examples/bbs/engine.lua
96
1958
local print = print local pcall = pcall local coroutine = coroutine local ui = require 'ui' local db = require 'db' module 'engine' local STATE = {} function run(conn, engine) while true do -- Get a message from the Mongrel2 server local good, request = pcall(conn.recv_json, conn) if goo...
bsd-3-clause
cyrillePrigent/kmod-ng
umod/command/client/putallies.lua
1
1378
-- Put player to allies team. -- From kmod script. -- params is parameters passed from et_ClientCommand function. -- * params["arg1"] => client function execute_command(params) params.say = "chat" if params.nbArg < 2 then printCmdMsg(params, "Useage: putallies [partname/id#]\n") else cli...
gpl-2.0
chewi/Aquaria
game_scripts/_mods/aquariaeditortutorial/scripts/node_entities02.lua
6
2081
-- 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
ruvolof/telegram-bot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
tehran980/tele_HSN
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
zchengquan/nn
MM.lua
46
2695
--[[ Module to perform matrix multiplication on two minibatch inputs, producing a minibatch. ]] local MM, parent = torch.class('nn.MM', 'nn.Module') --[[ The constructor takes two optional arguments, specifying whether or not transpose any of the input matrices before perfoming the multiplication. ]] functi...
bsd-3-clause
rickyHong/dptorchLib
preprocess/zca.lua
7
3334
----------------------------------------------------------------------- --[[ ZCA ]]-- -- Performs Zero Component Analysis Whitening. -- Commonly used for images, but can be applied to anything. -- http://ufldl.stanford.edu/wiki/index.php/Whitening ----------------------------------------------------------------------- ...
bsd-3-clause