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
n0xus/darkstar
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
n0xus/darkstar
scripts/globals/mobskills/Psychomancy.lua
13
1127
--------------------------------------------------- -- Psychomancy -- Steals MP from players in range. -- Type: Magical -- Utsusemi/Blink absorb: ignore shadow --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpm...
gpl-3.0
ppriest/mame
3rdparty/genie/scripts/embed.lua
19
2307
-- -- Embed the Lua scripts into src/host/scripts.c as static data buffers. -- I embed the actual scripts, rather than Lua bytecodes, because the -- bytecodes are not portable to different architectures, which causes -- issues in Mac OS X Universal builds. -- local function stripfile(fname) local f = io.open(fnam...
gpl-2.0
n0xus/darkstar
scripts/zones/Mordion_Gaol/Zone.lua
32
1433
----------------------------------- -- -- Zone: Mordion_Gaol -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Mordion_Gaol/TextIDs"] = nil; require("scripts/zones/Mordion_Gaol/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Nijaom.lua
33
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Nijaom -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
n0xus/darkstar
scripts/globals/spells/sheepfoe_mambo.lua
18
1578
----------------------------------------- -- Spell: Sheepfoe Mambo -- Grants evasion bonus to all members. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caste...
gpl-3.0
n0xus/darkstar
scripts/globals/abilities/wind_shot.lua
22
2984
----------------------------------- -- Ability: Wind Shot -- Consumes a Wind Card to enhance wind-based debuffs. Deals wind-based magic damage -- Choke Effect: Enhanced DoT and VIT- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/glob...
gpl-3.0
privatesource/Vira_max
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
n0xus/darkstar
scripts/zones/Palborough_Mines/npcs/_3z7.lua
58
1142
----------------------------------- -- Elevator in Palborough -- Notes: Used to operate Elevator @3z0 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); re...
gpl-3.0
n0xus/darkstar
scripts/zones/Palborough_Mines/npcs/_3z6.lua
58
1142
----------------------------------- -- Elevator in Palborough -- Notes: Used to operate Elevator @3z0 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); re...
gpl-3.0
sam1i/Turres-Monacorum
love2d/external/jumper/search/jps.lua
6
14347
--- <strong>`Jump Point Search` algorithm</strong>. -- This file holds an implementation of <a href="http://harablog.wordpress.com/2011/09/07/jump-point-search/">Jump Point Search</a> algorithm. -- To quote its authors, __Jump Point Search__ is basically -- "*an online symmetry breaking algorithm which speeds up pathfi...
mit
n0xus/darkstar
scripts/zones/Bastok_Markets/npcs/Loulia.lua
37
1076
----------------------------------- -- Area: Bastok Markets -- NPC: Loulia -- Type: Room Renters -- @zone: 235 -- @pos -176.212 -9 -25.049 -- -- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/Tex...
gpl-3.0
tperalta82/OpenWRT-Builder
feeds/xwrt/webif-iw-lua-openvpn/files/usr/lib/lua/lua-xwrt/openvpn.lua
26
65653
require("lua-xwrt.addon.string") require("lua-xwrt.addon.uci") require("lua-xwrt.html.form") require("lua-xwrt.xwrt.translator") require("lua-xwrt.addon.io") ssl = require("lua-xwrt.openssl") for u, v in pairs(__FORM) do -- print(u,v,"<br>") local proc, uci_var, uci_cmd, idx, uci_val = unpack(string.split(u,":")) if...
gpl-2.0
n0xus/darkstar
scripts/globals/items/earth_wand.lua
41
1075
----------------------------------------- -- ID: 17076 -- Item: Earth Wand -- Additional Effect: Earth Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action --------------------------------...
gpl-3.0
n0xus/darkstar
scripts/globals/items/timbre_timbers_salad.lua
35
1471
----------------------------------------- -- ID: 4321 -- Item: timbre_timbers_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic 20 -- Agility 5 -- Vitality -1 -- Ranged ACC % 8 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
n0xus/darkstar
scripts/globals/spells/bluemagic/occultation.lua
46
1612
----------------------------------------- -- Spell: Occultation -- Creates shadow images that each absorb a single attack directed at you -- Spell cost: 138 MP -- Monster Type: Seethers -- Spell Type: Magical (Wind) -- Blue Magic Points: 3 -- Stat Bonus: VIT+3 CHR-2 -- Level: 88 -- Casting Time: 2 seconds -- Recast Ti...
gpl-3.0
n0xus/darkstar
scripts/zones/Batallia_Downs/mobs/Weeping_Willow.lua
16
1355
----------------------------------- -- Area: Batallia Downs -- NPC: Weeping Willow ----------------------------------- require("scripts/globals/titles"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ------------------------...
gpl-3.0
n0xus/darkstar
scripts/globals/mobskills/Randgrith.lua
19
1028
--------------------------------------------- -- Randgrith -- -- Description: Lowers target's evasion. -- Type: Physical -- Range: Melee --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); ----------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Phanauet_Channel/Zone.lua
32
1482
----------------------------------- -- -- Zone: Phanauet_Channel -- ----------------------------------- package.loaded["scripts/zones/Phanauet_Channel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Phanauet_Channel/TextIDs"); -------------...
gpl-3.0
xennygrimmato/nmt
src/OpenNMT/onmt/Seq2Seq.lua
6
6775
--[[ Sequence to sequence model with attention. ]] local Seq2Seq, parent = torch.class('Seq2Seq', 'Model') local options = { { '-enc_layers', 0, [[If > 0, number of layers of the encoder. This overrides the global `-layers` option.]], { valid = onmt.utils.ExtendedCmdLine.isUInt(), structural ...
lgpl-3.0
n0xus/darkstar
scripts/globals/items/slice_of_hare_meat.lua
18
1321
----------------------------------------- -- ID: 4358 -- Hare Meat -- 5 Minutes, food effect, Galka Only ----------------------------------------- -- Strength +1 -- Intelligence -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnI...
gpl-3.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lqt/test/t7.lua
2
1639
#!/usr/bin/lua require'qtcore' require'qtgui' local LCD_Range = function(...) local this = QWidget.new(...) --print(this:metaObject():className(), this:metaObject():methodCount()) --print(this:metaObject():className(), this:metaObject():methodCount()) local lcd = QLCDNumber.new() lcd:setSegmentStyle'Filled' l...
lgpl-3.0
lywaterman/sun
c_src/cjson/tests/test.lua
32
17977
#!/usr/bin/env lua -- Lua CJSON tests -- -- Mark Pulford <mark@kyne.com.au> -- -- Note: The output of this script is easier to read with "less -S" local json = require "cjson" local json_safe = require "cjson.safe" local util = require "cjson.util" local function gen_raw_octets() local chars = {} for i = 0, ...
mit
coderpunch/evolvemod
lua/evolve/plugins/sh_unlimitedammo.lua
1
2528
--[[----------------------------------------------------------------------------------------------------------------------- Enable unlimited ammo for a player -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "U...
apache-2.0
ozhanf/ozhanf--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
ArmanIr/loloamad
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
MHPG/MHP
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/alien/tests/test_alien.lua
2
16280
pcall(require, "luarocks.require") require "alien" require "alien.struct" local dll = alien.alientest do io.write(".") local f = dll._testfunc_i_bhilfd f:types("int", "byte", "short", "int", "long", "float", "double") local result = f(string.byte("x"), 1, 3, 4, 5, 6) assert(result == 139) end do io.wri...
lgpl-3.0
adamlerer/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
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/modules/base/luasrc/util.lua
81
21858
--[[ LuCI - Utility library Description: Several common useful Lua functions License: Copyright 2008 Steven Barth <steven@midlink.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....
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/Broker_Garrison/Libs/AceGUI-3.0/AceGUI-3.0.lua
47
23674
--- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs. -- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself -- to create any custom GUI. There are more extensive examples in the test suite in the Ace3 -- stand-alone distribution. -- -- **Note**:...
gpl-2.0
mpeterv/luacheck
src/luacheck/core_utils.lua
3
2759
local decoder = require "luacheck.decoder" local utils = require "luacheck.utils" local core_utils = {} -- Attempts to evaluate a node as a Lua value, without resolving locals. -- Returns Lua value and its string representation on success, nothing on failure. function core_utils.eval_const_node(node) if node.tag =...
mit
davymai/CN-QulightUI
Interface/AddOns/QulightUI/Addons/UF/Raid/elements/AuraWatch.lua
1
4680
---------------------------------------------------------------------------------------- -- Based on oUF_AuraWatch(by Astromech) ---------------------------------------------------------------------------------------- local _, ns = ... local oUF = ns.oUF local GUIDs = {} local PLAYER_UNITS = { player = true, vehic...
gpl-2.0
n0xus/darkstar
scripts/globals/items/plate_of_patlican_salata_+1.lua
35
1224
----------------------------------------- -- ID: 5583 -- Item: plate_of_patlican_salata_+1 -- Food Effect: 4Hrs, All Races ----------------------------------------- -- Agility 4 -- Vitality -1 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
rekotc/game-engine-demo
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/tests/test-func.lua
2
1802
require 'pl' asserteq = require('pl.test').asserteq utils.import('pl.func') -- _DEBUG = true function pprint (t) print(pretty.write(t)) end function test (e) local v = {} print('test',collect_values(e,v)) if #v > 0 then pprint(v) end local rep = repr(e) print(rep) end import ('math') --~ test(_1+_2('h...
lgpl-3.0
Python1320/wire
lua/wire/client/e2descriptions.lua
6
147961
if not E2Helper then return end local name, short, type, typeid timer.Simple(0.1, function() for k, v in pairs( wire_expression_types ) do if k == "NORMAL" then k = "NUMBER" end name = k:sub(1,1) .. k:sub(2):lower() short = name:Left(3) type = name:lower() typeid = v[1] -- tables E2Helper.Description...
apache-2.0
n0xus/darkstar
scripts/zones/East_Sarutabaruta/npcs/Signpost.lua
38
2029
----------------------------------- -- Area: East Sarutabaruta -- NPC: Signpost ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/zones/East_Sarutabaruta/TextIDs"); ----------------------------------- -- onTrade A...
gpl-3.0
ashkanpj/telefirebot
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
mortezamosavy999/monsterm
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
telespead/Reza-bot
plugins/setbotphoto.lua
18
1162
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
n0xus/darkstar
scripts/zones/Kazham/npcs/Toji_Mumosulah.lua
37
1558
----------------------------------- -- Area: Kazham -- NPC: Toji Mumosulah -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTr...
gpl-3.0
fucker2929/fakk
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
ppriest/mame
3rdparty/genie/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
mahdidoraj/secretbot
plugins/anti_ads.lua
61
1032
local function run(msg) local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then if not is_momod(msg) then chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true) local msgads = 'ForbiddenAdText' ...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
24
5432
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(...
gpl-2.0
n0xus/darkstar
scripts/zones/FeiYin/npcs/qm1.lua
17
1507
----------------------------------- -- Area: FeiYin -- NPC: qm1 (???) -- Involved In Quest: Pieuje's Decision -- @pos -55 -16 69 204 ----------------------------------- package.loaded["scripts/zones/FeiYin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-ThroneFourWinds/localization.tw.lua
1
1318
if GetLocale() ~= "zhTW" then return end local L ------------------------ -- Conclave of Wind -- ------------------------ L = DBM:GetModLocalization(154) L:SetWarningLocalization({ warnSpecial = "颶風/微風/冰雨風暴啟動", specWarnSpecial = "特別技能啟動!", warnSpecialSoon = "10秒後特別技能啟動!" }) L:SetTimerLocalization({ timerSpec...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-MC/localization.kr.lua
1
2186
if GetLocale() ~= "koKR" then return end local L ---------------- -- Lucifron -- ---------------- L = DBM:GetModLocalization("Lucifron") L:SetGeneralLocalization{ name = "루시프론" } ---------------- -- Magmadar -- ---------------- L = DBM:GetModLocalization("Magmadar") L:SetGeneralLocalization{ name = "마그마다르" }...
gpl-2.0
TurkeyMan/premake-tcc
tools/tcc.lua
1
4657
-- -- tcc/tools/tcc.lua -- Provides tcc-specific configuration strings. -- Copyright (c) 2015 Manu Evans, and the Premake project -- premake.tools.tcc = { } local tcc = premake.tools.tcc local project = premake.project local config = premake.config -- -- Set default tools -- tcc.cc = "tcc" -- -- Returns l...
bsd-3-clause
dmccuskey/dmc-netstream
dmc_corona/lib/dmc_lua/lua_events_mix.lua
14
8192
--====================================================================-- -- dmc_lua/lua_events_mix.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (C) 2014-2015 David McCuskey. All Rights Reserved. ...
mit
da2ce7/cjdns
contrib/lua/cjdns/config.lua
34
1851
-- Cjdns admin module for Lua -- Written by Philip Horger common = require 'cjdns/common' ConfigFile = {} ConfigFile.__index = ConfigFile common.ConfigFile = ConfigFile function ConfigFile.new(path, no_init) local values = { path = path, text = "", contents = {}, } setmeta...
gpl-3.0
Python1320/wire
lua/entities/gmod_wire_emarker.lua
10
1412
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Entity Marker" ENT.WireDebugName = "EMarker" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Output...
apache-2.0
mpeterv/busted
spec/insulate-expose_spec.lua
8
4475
assert.is_nil(package.loaded.pl) assert.is_nil(package.loaded['pl.file']) describe('Tests insulation', function() insulate('environment inside insulate', function() pl = require 'pl' _G.insuated_global = true it('updates insuated global table _G', function() assert.is_not_nil(insuated_global) ...
mit
n0xus/darkstar
scripts/globals/weaponskills/weapon_break.lua
18
1792
----------------------------------- -- Weapon Break -- Great Axe weapon skill -- Skill level: 175 -- Lowers enemy's attack. Duration of effect varies with TP. -- Lowers attack by as much as 25% if unresisted. -- Strong against: Manticores, Orcs, Rabbits, Raptors, Sheep. -- Immune: Crabs, Crawlers, Funguars, Quad...
gpl-3.0
aqasaeed/infernal
plugins/web_shot.lua
110
1424
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
n0xus/darkstar
scripts/globals/weaponskills/blade_chi.lua
30
1380
----------------------------------- -- Blade Chi -- Katana weapon skill -- Skill Level: 150 -- Delivers a two-hit earth elemental attack. Damage varies with TP. -- Aligned with the Thunder Gorget & Light Gorget. -- Aligned with the Thunder Belt & Light Belt. -- Element: Earth -- Modifiers: STR:30% ; INT:30% --...
gpl-3.0
n0xus/darkstar
scripts/zones/Port_Jeuno/npcs/Guddal.lua
17
2161
----------------------------------- -- Area: Port Jeuno -- NPC: Guddal -- Starts and Finishes Quest: Kazham Airship Pass (This quest does not appear in your quest log) -- @zone 246 -- @pos -14 8 44 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; -------------------...
gpl-3.0
n0xus/darkstar
scripts/globals/items/smilodon_liver.lua
18
1282
----------------------------------------- -- ID: 5668 -- Item: Smilodon Liver -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-DMF/Moonfang.lua
1
2273
local mod = DBM:NewMod("Moonfang", "DBM-DMF") local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 12491 $"):sub(12, -3)) mod:SetCreatureID(71992) --mod:SetModelID(328) mod:SetZone() mod:DisableWBEngageSync() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 144546 144590 14460...
gpl-2.0
adamlerer/nn
NarrowTable.lua
38
1151
local NarrowTable, parent = torch.class('nn.NarrowTable', 'nn.Module') function NarrowTable:__init(offset, length) parent.__init(self) self.offset = offset self.length = length or 1 if not offset then error('nn.NarrowTable(offset, length)') end self.output = {} self.gradInput = {} end f...
bsd-3-clause
n0xus/darkstar
scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua
18
2131
----------------------------------- -- Area: The Celestial Nexus -- NPC: Orbital -- Zilart Mission 16 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); function onMobInitialize(mob) mob:addMod(MOD_REGAIN, 50); end...
gpl-3.0
n0xus/darkstar
scripts/globals/items/forest_carp.lua
18
1335
----------------------------------------- -- ID: 4289 -- Item: forest_carp -- Food Effect: 30Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
n0xus/darkstar
scripts/zones/Port_Windurst/npcs/Ten_of_Clubs.lua
38
1039
----------------------------------- -- Area: Port Windurst -- NPC: Ten of Clubs -- Type: Standard NPC -- @zone: 240 -- @pos -229.393 -9.2 182.696 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------...
gpl-3.0
n0xus/darkstar
scripts/zones/Lower_Jeuno/npcs/Kurou-Morou.lua
17
5313
----------------------------------- -- Area: Lower Jeuno -- Starts and Finishes Quest: Your Crystal Ball & Never to return -- @pos -4 -6 -28 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; -----------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Temenos/mobs/Temenos_Weapon.lua
16
1289
----------------------------------- -- Area: Temenos Central 1floor -- NPC: Temenos_Weapon ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e0.lua
32
1340
----------------------------------- -- Area: Hall of Transference -- NPC: Cermet Gate - Holla -- @pos -219 -6 280 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/H...
gpl-3.0
n0xus/darkstar
scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua
16
2202
----------------------------------- -- Area: Batallia Downs [S] -- NPC: Cavernous Maw -- @pos -48 0 435 84 -- Teleports Players to Batallia Downs ----------------------------------- package.loaded["scripts/zones/Batallia_Downs_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
Python1320/wire
lua/entities/gmod_wire_dual_input.lua
10
2505
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Dual Input" ENT.WireDebugName = "Dual Input" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Output...
apache-2.0
Arashbrsh/lifeiran
bot/bot.lua
2
7076
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
Python1320/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():...
apache-2.0
tanxunrong/mruby-toy
lualib/mqueue.lua
1
1795
-- This is a deprecated module, use skynet.queue instead. local skynet = require "skynet" local c = require "skynet.c" local mqueue = {} local init_once local thread_id local message_queue = {} skynet.register_protocol { name = "queue", -- please read skynet.h for magic number 8 id = 8, pack = skynet.pack, unpa...
mit
n0xus/darkstar
scripts/zones/Hall_of_the_Gods/npcs/_6z0.lua
17
1721
----------------------------------- -- Area: Hall of the Gods -- NPC: Cermet Gate -- Gives qualified players access to Ru'Aun Gardens. -- @pos 0 -12 48 251 ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); -----...
gpl-3.0
Hwulex/UtiLUAties
wifi_temp_mqtt.lua
1
3221
-- From https://odd-one-out.serek.eu/esp8266-nodemcu-dht22-mqtt-deep-sleep/ -- MQTT connect script with deep sleep -- Remember to connect GPIO16 and RST to enable deep sleep --############ --# Settings # --############ --- MQTT --- mqtt_broker_ip = "192.168.1.66" mqtt_broker_port = 1883 mqtt_username = "" mqtt_...
gpl-3.0
omidtarh/wezardbot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
gcheron/optim
rprop.lua
3
3534
--[[ A plain implementation of RPROP ARGS: - `opfunc` : a function that takes a single input (X), the point of evaluation, and returns f(X) and df/dX - `x` : the initial point - `state` : a table describing the state of the optimizer; after each call the state is modified - `state.steps...
bsd-3-clause
chengyi818/openwrt
customer/packages/luci/protocols/ipv6/luasrc/model/network/proto_6x4.lua
78
1602
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
gpl-2.0
feiying1460/witi-openwrt
package/ramips/ui/luci-mtk/src/protocols/ipv6/luasrc/model/network/proto_6x4.lua
78
1602
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
gpl-2.0
n0xus/darkstar
scripts/globals/items/slice_of_lynx_meat.lua
18
1293
----------------------------------------- -- ID: 5667 -- Item: Slice of Lynx Meat -- Food Effect: 5 Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIte...
gpl-3.0
trinaldi/dotfiles
mpv/scripts/stats.lua
2
8771
-- Display some stats. -- -- You can invoke the script with "i" by default or create a different key -- binding in input.conf using "<yourkey> script_binding stats". -- -- The style is configurable through a config file named "lua-settings/stats.conf" -- located in your mpv directory. -- -- Please note: not every prope...
gpl-2.0
davymai/CN-QulightUI
Interface/AddOns/DBM-MC/Geddon.lua
1
2012
local mod = DBM:NewMod("Geddon", "DBM-MC", 1) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 550 $"):sub(12, -3)) mod:SetCreatureID(12056) --mod:SetEncounterID(668) mod:SetModelID(12129) mod:SetUsedIcons(8) mod:RegisterCombat("combat") mod:RegisterEvents( "SPELL_AURA_APPLIED 20475", "SPELL_AURA_R...
gpl-2.0
joewan/protoc-gen-lua
protobuf/containers.lua
15
2284
-- -------------------------------------------------------------------------------- -- FILE: containers.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com -...
bsd-3-clause
davymai/CN-QulightUI
Interface/AddOns/DBM-TheEye/localization.tw.lua
1
4347
if GetLocale() ~= "zhTW" then return end local L ----------- -- Alar -- ----------- L = DBM:GetModLocalization("Alar") L:SetGeneralLocalization{ name = "歐爾" } L:SetTimerLocalization{ NextPlatform = "最長平台停留時間" } L:SetOptionLocalization{ NextPlatform = "為歐爾最長平台可能停留時間顯示計時器(可能會提早離開不過不會大於這個時間)" } -----------------...
gpl-2.0
safchain/contrail-controller
src/analytics/delrequest.lua
3
1993
-- -- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. -- local function sub_del(_values) local lres = redis.call('hgetall',_values) local iter = 1 while iter <= #lres do local attr = lres[iter] local val = lres[iter+1] if string.byte(val,1) ~= 60 then loca...
apache-2.0
n0xus/darkstar
scripts/globals/abilities/earth_shot.lua
22
2949
----------------------------------- -- Ability: Earth Shot -- Consumes a Earth Card to enhance earth-based debuffs. Deals earth-based magic damage -- Rasp Effect: Enhanced DoT and DEX-, Slow Effect +10% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ...
gpl-3.0
ddysher/turbo
turbo/log.lua
1
12125
--- Turbo.lua Log module -- A simple log writer implementation with different levels and standard -- formatting. Messages written is appended to level and timestamp. You -- can turn off unwanted categories by modifiying the table at log.categories. -- -- For messages shorter than 4096 bytes a static buffer is used to -...
apache-2.0
leafo/sharecart-1
maps/map.lua
1
6910
return { version = "1.1", luaversion = "5.1", tiledversion = "0.11.0", orientation = "orthogonal", width = 20, height = 20, tilewidth = 16, tileheight = 16, nextobjectid = 6, properties = {}, tilesets = { { name = "tile", firstgid = 1, tilewidth = 16, tileheight = 16, ...
mit
Vectorbyte/LOVEPBR
renderer/init.lua
1
4959
---------------------------- -- Setup ---------------------------- local renderer = { camera = require "renderer/g_camera", light = require "renderer/g_light", model = require "renderer/g_model", -- Shaders shader = { lighting = love.graphics.newShader("shader/3DShader.g...
mit
sixin-zh/mpiT
BiCNN/Normalize.lua
1
2364
local Normalize, parent = torch.class('nn.Normalize', 'nn.Module') function Normalize:__init(p,eps) parent.__init(self) assert(p,'p-norm not provided') assert(p > 0, p..'-norm not supported') self.p = p self.eps = eps or 1e-10 end function Normalize:updateOutput(input) assert(input:dim() <= 2, 'only 1d la...
apache-2.0
qc88209818/JHGame
JHGame/scripting/lua/script/AudioEngine.lua
21
2392
--Encapsulate SimpleAudioEngine to AudioEngine,Play music and sound effects. local M = {} local sharedEngine = SimpleAudioEngine:sharedEngine() function M.stopAllEffects() sharedEngine:stopAllEffects() end function M.getMusicVolume() return sharedEngine:getBackgroundMusicVolume() end function M.isMusicPlayi...
gpl-2.0
n0xus/darkstar
scripts/zones/Northern_San_dOria/npcs/Heruze-Moruze.lua
19
1783
----------------------------------- -- Area: Northern San d'Oria -- NPC: Heruze-Moruze -- Involved in Mission: 2-3 Windurst -- @pos -56 -3 36 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"...
gpl-3.0
n0xus/darkstar
scripts/zones/Ghelsba_Outpost/npcs/Logging_Point.lua
29
1107
----------------------------------- -- Area: Ghelsba Outpost -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Ghelsba_Outpost/TextIDs"); ...
gpl-3.0
davymai/CN-QulightUI
Interface/AddOns/DBM-ThroneFourWinds/Conclave.lua
1
11953
local mod = DBM:NewMod(154, "DBM-ThroneFourWinds", nil, 75) local L = mod:GetLocalizedStrings() local Anshal = EJ_GetSectionInfo(3166) local Nezir = EJ_GetSectionInfo(3178) local Rohash = EJ_GetSectionInfo(3172) mod:SetRevision(("$Revision: 145 $"):sub(12, -3)) mod:SetCreatureID(45870, 45871, 45872) mod:SetEncounterI...
gpl-2.0
Goodzilam/Good
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
ArmanIr/loloamad
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
mohammad8/iran-spem
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
LuffyPan/skynet
lualib/snax/loginserver.lua
6
4740
local skynet = require "skynet" local socket = require "socket" local crypt = require "crypt" local table = table local string = string local assert = assert --[[ Protocol: line (\n) based text protocol 1. Server->Client : base64(8bytes random challenge) 2. Client->Server : base64(8bytes handshake client key) 3...
mit
n0xus/darkstar
scripts/zones/Windurst_Woods/npcs/Sariale.lua
28
2050
----------------------------------- -- Area: Windurst Woods -- NPC: Sariale -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); -------------------------...
gpl-3.0
n0xus/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Rubahah.lua
14
1438
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Rubahah -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/zones/Aht_Urh...
gpl-3.0
n0xus/darkstar
scripts/zones/Metalworks/npcs/Amulya.lua
19
1154
----------------------------------- -- Area: Metalworks -- NPC: Amulya -- Type: Guild Merchant (Blacksmithing Guild) -- @pos -106.093 0.999 -24.564 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings");...
gpl-3.0
n0xus/darkstar
scripts/globals/items/serving_of_menemen.lua
35
1537
----------------------------------------- -- ID: 5586 -- Item: serving_of_menemen -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 30 -- MP 30 -- Agility 1 -- Intelligence -1 -- HP recovered while healing 1 -- MP recovered while healing 1 ---------------------------------------...
gpl-3.0