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 |
|---|---|---|---|---|---|
AdamGagorik/darkstar | scripts/globals/abilities/pets/earthen_fury.lua | 34 | 1118 | ---------------------------------------------------
-- Earthen Fury
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
---------------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/Aldo.lua | 13 | 1956 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Aldo
-- Involved in Mission: Magicite, Return to Delkfutt's Tower (Zilart)
-- @pos 20 3 -58 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/k... | gpl-3.0 |
rinstrum/LUA-LIB | K400Examples/protobuf/server.lua | 2 | 3900 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
local rinApp = require "rinApp" -- load in the application framework
local sockets = require 'rinSystem.rinSockets'
local dbg = require 'rinLibrary.rinDebug'
require "struct"
require "pb"
require "messages"
--====... | gpl-3.0 |
tahashakiba/xx | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
nerdclub-tfg/telegram-bot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
mosy210/PERSION-BOT | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Xarcabard/npcs/qm1.lua | 13 | 1423 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm1 (???)
-- Involved in Quests: The Three Magi
-- @pos -331 -29 -49 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/z... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Akane_IM.lua | 13 | 3343 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Akane, I.M.
-- Type: Outpost Conquest Guards
-- @pos -294.470 15.806 420.117 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
mynameiscraziu/karizma | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Bastok_Mines/npcs/Gawful.lua | 13 | 1105 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gawful
-- Type: Item Deliverer
-- @zone: 234
-- @pos -22.416 -3.999 -56.076
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scri... | gpl-3.0 |
sjznxd/lc-20130204 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
AdamGagorik/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 18 | 1800 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Gravestone.lua | 13 | 1339 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Gravestone
-- Involved in Quests: fire and brimstone (Rng AF2)
-- @zone 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
saeeidbeygi/saeedbot012 | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Laeeth/dub | test/class_test.lua | 4 | 2876 | --[[------------------------------------------------------
dub.Class
---------
...
--]]------------------------------------------------------
local lub = require 'lub'
local lut = require 'lut'
local dub = require 'dub'
local should = lut.Test 'dub.Class'
local ins = dub.Inspector {
doc_dir = 'test/tmp',
... | mit |
D-m-L/evonara | modules/libs/quickie/core.lua | 15 | 3418 | --[[
Copyright (c) 2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | mit |
AdamGagorik/darkstar | scripts/globals/spells/bluemagic/body_slam.lua | 35 | 1710 | -----------------------------------------
-- Spell: Body Slam
-- Delivers an area attack. Damage varies with TP
-- Spell cost: 74 MP
-- Monster Type: Dragon
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: VIT+1, MP+5
-- Level: 62
-- Casting Time: 1 seconds
-- Recast Time: 27.75 seconds
-- Skillch... | gpl-3.0 |
rinstrum/LUA-LIB | src/rinLibrary/K400Batch.lua | 1 | 32008 | -------------------------------------------------------------------------------
--- Batching scale functions.
-- Functions to support the K410 Batching and products
-- @module rinLibrary.Device.Batch
-- @author Pauli
-- @copyright 2015 Rinstrum Pty Ltd
-------------------------------------------------------------------... | gpl-3.0 |
juesato/rnn | scripts/evaluate-rva.lua | 7 | 4544 | require 'dp'
require 'rnn'
require 'optim'
-- References :
-- A. http://papers.nips.cc/paper/5542-recurrent-models-of-visual-attention.pdf
-- B. http://incompleteideas.net/sutton/williams-92.pdf
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Evaluate a Recurrent Model for Visual Attention')... | bsd-3-clause |
mahmedhany128/Mr_BOT | Feader/Feader.lua | 1 | 7745 | 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("./Feader/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function ... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/plate_of_tuna_sushi.lua | 17 | 1537 | -----------------------------------------
-- ID: 5150
-- Item: plate_of_tuna_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 3
-- Charisma 5
-- Accuracy % 15
-- Ranged ACC % 15
-- Sleep Resist 5
-----------------------------------------
require("scripts/global... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Dynamis-Tavnazia/Zone.lua | 13 | 2401 | -----------------------------------
--
-- Zone: Dynamis-Tavnazia
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/tornado_kick.lua | 9 | 2181 | -------------------------------
-- Auth : Thief
-- Skill: Tornado Kick
-- Class: H2H Weapon Skill
-- Level: 225
-- Mods : STR:37.5% VIT:30%
-- 100%TP 200%TP 300%TP
-- 2.0x 2.75x 3.5x
-- Delivers a twofold attack. Damage varies with TP.
-----------------------------------
require("scripts/globals/statu... | gpl-3.0 |
chfg007/skynet | service/launcher.lua | 51 | 3199 | local skynet = require "skynet"
local core = require "skynet.core"
require "skynet.manager" -- import manager apis
local string = string
local services = {}
local command = {}
local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK)
local function handle_to_address(handle)
retu... | mit |
AdamGagorik/darkstar | scripts/zones/Metalworks/npcs/Baldric.lua | 13 | 1772 | -----------------------------------
-- Area: Metalworks
-- NPC: Baldric
-- Type: Quest Giver
-- @zone: 237
-- @pos -50.858 1.777 -31.141
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")
require("sc... | gpl-3.0 |
pczarn/kollos | components/main/kollos/config.lua | 2 | 2367 | --[[
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies o... | mit |
AdamGagorik/darkstar | scripts/zones/Al_Zahbi/npcs/Chayaya.lua | 13 | 1644 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Chayaya
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Al_Zahbi/TextIDs");
-------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/red_terrapin.lua | 18 | 1319 | -----------------------------------------
-- ID: 4402
-- Item: red_terrapin
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
talldan/lua-reactor | tests/specs/reactor/propTypes/optional.lua | 1 | 2104 | local optional = require('reactor.propTypes.optional')
local function stringValidator()
return function(toValidate)
local isValid = type(toValidate) == 'string'
local reason = nil
if not isValid then
reason = 'not a string'
end
return isValid, reason
end
end
describe('optional', functi... | mit |
mosy210/PERSION-BOT | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Android092921/season | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(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[tostr... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 13 | 3052 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
JR10/mta-business | scripts/core.client.lua | 1 | 7890 | local screen_width, screen_height = GuiElement.getScreenSize();
local is_cursor_over_gui = false;
local action;
local settings = {};
GuiElement.setInputMode("no_binds_when_editing");
addEvent("business.showCreateBusinessWindow", true);
addEventHandler("business.showCreateBusinessWindow", root,
function()
gui.cb.win... | mit |
AdamGagorik/darkstar | scripts/globals/spells/valor_minuet_ii.lua | 27 | 1565 | -----------------------------------------
-- Spell: Valor Minuet II
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Chamber_of_Oracles/bcnms/shattering_stars.lua | 27 | 2049 | -----------------------------------
-- Area: Qu'Bia Arena
-- Name: Shattering stars - Maat Fight
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
--... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j1.lua | 39 | 1330 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
-------------------------... | gpl-3.0 |
robertfoss/nodemcu-firmware | lua_modules/yeelink/yeelink_lib.lua | 73 | 3136 |
-- ***************************************************************************
-- Yeelink Updata Libiary Version 0.1.2 r1
--
-- Written by Martin
-- but based on a script of zhouxu_o from bbs.nodemcu.com
--
-- MIT license, http://opensource.org/licenses/MIT
-- **********************************************************... | mit |
iotcafe/nodemcu-firmware | lua_modules/yeelink/yeelink_lib.lua | 73 | 3136 |
-- ***************************************************************************
-- Yeelink Updata Libiary Version 0.1.2 r1
--
-- Written by Martin
-- but based on a script of zhouxu_o from bbs.nodemcu.com
--
-- MIT license, http://opensource.org/licenses/MIT
-- **********************************************************... | mit |
Hostle/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx.lua | 146 | 4360 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
teamactivebot/team-active | plugins/me.lua | 4 | 2591 | do
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_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_iz2.lua | 13 | 1986 | -----------------------------------
-- Area: The Garden of RuHmet
-- NPC: _iz2 (Ebon_Panel)
-- @pos 422.351 -5.180 -100.000 35 | Hume Tower
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Garden_o... | gpl-3.0 |
sjznxd/lc-20130204 | applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 79 | 1639 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
sjznxd/lc-20130204 | applications/luci-commands/luasrc/controller/commands.lua | 76 | 5959 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.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
]]--
module("... | apache-2.0 |
Snazz2001/fbcunn | examples/imagenet/models/vgg_cudnn.lua | 8 | 2154 | function createModel(nGPU)
require 'cudnn'
local modelType = 'A' -- on a titan black, B/D/E run out of memory even for batch-size 32
-- Create tables describing VGG configurations A, B, D, E
local cfg = {}
if modelType == 'A' then
cfg = {64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, ... | bsd-3-clause |
robertfoss/nodemcu-firmware | lua_modules/bmp085/bmp085.lua | 69 | 5037 | --------------------------------------------------------------------------------
-- BMP085 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Christee <Christee@nodemcu.com>
--------------------------------------------------------------------------------
local moduleName = ... ... | mit |
AdamGagorik/darkstar | scripts/zones/Spire_of_Mea/npcs/_0l3.lua | 39 | 1330 | -----------------------------------
-- Area: Spire_of_Mea
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Mea/TextIDs");
-------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/dark_bass.lua | 18 | 1328 | -----------------------------------------
-- ID: 4428
-- Item: dark_bass
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/weaponskills/flash_nova.lua | 9 | 1395 | -----------------------------------
-- Skill level: 290
-- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP.
-- Generates a significant amount of Enmity.
-- Does not stack with Sneak Attack
-- Aligned with Aqua Gorget.
-- Aligned with Aqua Belt.
-- Properties:
-- Element: Light... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Woods/npcs/Mushuhi-Metahi.lua | 59 | 1052 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mushuhi-Metahi
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/T... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Nashmau/npcs/Wata_Khamazom.lua | 13 | 1476 | -----------------------------------
-- Area: Nashmau
-- NPC: Wata Khamazom
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------------... | gpl-3.0 |
sbuettner/kong | kong/plugins/oauth2/access.lua | 2 | 13741 | local stringy = require "stringy"
local utils = require "kong.tools.utils"
local cache = require "kong.tools.database_cache"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local timestamp = require "kong.tools.timestamp"
local _M = {}
local CONTENT_LENGTH = "content-length... | mit |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Mevreauche.lua | 44 | 2103 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevreauche
-- Type: Smithing Guild Master
-- @pos -193.584 10 148.655 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status")... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Tete.lua | 13 | 1283 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tete
-- Continues Quest: The Wisdom Of Elders
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
------------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requ... | gpl-3.0 |
talldan/lua-reactor | tests/specs/reactor/propTypes/tableShape.lua | 1 | 3906 | local tableShape = require('reactor.propTypes.tableShape')
local function trueValidator()
return true
end
local function falseValidator()
return false, 'this validation failed'
end
describe('tableShape', function()
describe('error states', function()
it('causes an error is the table shape description is n... | mit |
AdamGagorik/darkstar | scripts/zones/Mount_Zhayolm/mobs/Claret.lua | 7 | 1448 | -----------------------------------
-- Area: Mount Zhayolm
-- MOB: Claret
-- @pos 501 -9 53
-- Spawned with Pectin: @additem 2591
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Claret
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/bunny_ball.lua | 18 | 1736 | -----------------------------------------
-- ID: 4349
-- Item: Bunny Ball
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 25
-- Ranged ATT % 30
-- Ranged ATT Cap 25
--------------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua | 7 | 1272 | -----------------------------------
-- Area: VeLugannon Palace
-- NM: Brigandish Blade
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFFECT,... | gpl-3.0 |
Mastersey/waifu2x | cleanup_model.lua | 34 | 1775 | require './lib/portable'
require './lib/LeakyReLU'
torch.setdefaulttensortype("torch.FloatTensor")
-- ref: https://github.com/torch/nn/issues/112#issuecomment-64427049
local function zeroDataSize(data)
if type(data) == 'table' then
for i = 1, #data do
data[i] = zeroDataSize(data[i])
end
elseif typ... | mit |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kopol-Rapol.lua | 13 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kopol-Rapol
-- Type: Standard NPC
-- @zone: 94
-- @pos 131.179 -6.75 172.758
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/fish_chiefkabob.lua | 18 | 1530 | -----------------------------------------
-- ID: 4575
-- Item: fish_chiefkabob
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- Mind 1
-- Charisma 1
-- defense % 26
-- defense Cap 95
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zabahf.lua | 13 | 1714 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zabahf
-- Type: Standard NPC
-- @pos -90.070 -1 10.140 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Porter_Moogle.lua | 41 | 1553 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 50
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urh... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Treasure_Coffer.lua | 13 | 4655 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Treasure Coffer
-- @zone 159
-- @pos -219 0 32
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Port_San_dOria/npcs/Perdiouvilet.lua | 13 | 1735 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Perdiouvilet
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -59 -5 -29 232
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
aqasaeed/hesam | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ashkanpj/firebot | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
shakib01/anonymous01 | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
punisherbot/helper | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
srodrigo/lge | etc/premake4.lua | 1 | 1658 | --
-- Copyright (C) 2013 Sergio Rodrigo
--
-- This software may be modified and distributed under the terms
-- of the MIT license. See the LICENSE file for details.
--
-- projects
lge = "lge"
test = "test"
-- main dirs
base_dir = ".."
-- src dirs
src_dir = base_dir .. "/src/"
lge_src_dir = src_dir .. "/lge/"
test_s... | mit |
pczarn/kollos | components/test/luif/seq4.lua | 1 | 2395 | --[[
Copyright 2015 Jeffrey Kegler
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sub... | mit |
AdamGagorik/darkstar | scripts/zones/Port_Bastok/npcs/Styi_Palneh.lua | 27 | 4322 | -----------------------------------
-- Area: Port Bastok
-- NPC: Styi Palneh
-- Title Change NPC
-- @pos 28 4 -15 236
-----------------------------------
require("scripts/globals/titles");
local title2 = { NEW_ADVENTURER , BASTOK_WELCOMING_COMMITTEE , BUCKET_FISHER , PURSUER_OF_THE_PAST , MOMMYS_HELPER , HOT_DOG ,
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters/npcs/Maysoon.lua | 25 | 2162 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Maysoon
-- Starts and Finishes Quest: Hoist the Jelly, Roger
-- Involved in Quests: Cook's Pride
-- @zone 238
-- @pos -105 -2 69
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/PsoXja/npcs/_099.lua | 13 | 2892 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _099 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 250.000 -1.925 -58.399 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/West_Ronfaure/npcs/Yoshihiro_IM.lua | 13 | 3319 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Yoshihiro, I.M.
-- Outpost Conquest Guards
-- @pos -450.571 -20.807 -219.970 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Lower_Jeuno/npcs/_l01.lua | 13 | 1557 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -101.010 0 -144.080
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
ohmbase/OpenRA | mods/ra/maps/soviet-04a/main.lua | 15 | 4321 |
RunInitialActivities = function()
Harvester.FindResources()
IdlingUnits()
Trigger.AfterDelay(10, function()
BringPatrol1()
BringPatrol2()
BuildBase()
end)
Utils.Do(Map.NamedActors, function(actor)
if actor.Owner == Greece and actor.HasProperty("StartBuildingRepairs") then
Trigger.OnDamaged(actor, func... | gpl-3.0 |
cresd/CressD | plugins/anti_chat.lua | 62 | 1069 |
antichat = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_chat'] then
if data[tostring(msg.to.id)]['... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Southern_San_dOria/npcs/Pourette.lua | 12 | 2175 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Pourette
-- Only sells when San d'Oria controlls Derfland Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/eve... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Kazham/npcs/Pofhu_Tendelicon.lua | 15 | 1056 | -----------------------------------
-- Area: Kazham
-- NPC: Pofhu Tendelicon
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Tome_of_Magic.lua | 13 | 1134 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Tome of Magic
-- Involved In Windurst Mission 7-2 (Optional Dialogue)
-- @pos 346 0 343 159 <many>
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/items/bunch_of_san_dorian_grapes.lua | 18 | 1192 | -----------------------------------------
-- ID: 4431
-- Item: Bunch of San Dorian Grapes
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Walls/npcs/Hiwon-Biwon.lua | 13 | 3915 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Hiwon-Biwon
-- Involved In Quest: Making Headlines, Curses, Foiled...Again!?
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
Hostle/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-voip.lua | 18 | 4549 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
luveti/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/module.lua | 44 | 1479 | -- tolua: module 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,
-- enhancements,... | mit |
mwharris333/serval | lib/pnNetwork.lua | 2 | 5652 | local thisFile = g.dir.library..'pnNetwork'
if (dbg) then dbg.file(thisFile) end
--------------------------------------------------------------------------------------------------
math.randomseed(os.time()) -- init random function
math.random() -- bug in first use
--local uuid = pnObj:UUID()
------------------------... | apache-2.0 |
zlua/zLua | luasocket3.0/test/mimetest.lua | 44 | 8413 | local socket = require("socket")
local ltn12 = require("ltn12")
local mime = require("mime")
local unpack = unpack or table.unpack
dofile("testsupport.lua")
local qptest = "qptest.bin"
local eqptest = "qptest.bin2"
local dqptest = "qptest.bin3"
local b64test = "b64test.bin"
local eb64test = "b64test.bin2"
local db6... | mit |
AdamGagorik/darkstar | scripts/zones/Windurst_Walls/npcs/Four_of_Diamonds.lua | 13 | 1062 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Four of Diamonds
-- Type: Standard NPC
-- @zone: 239
-- @pos -187.184 -3.545 151.092
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
--... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 13 | 3326 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
D-m-L/evonara | modules/entities/miner.lua | 1 | 3630 | local ent = {}
function ent:load( x, y, w, h, size )
self.chance = 0
self.x, self.y = x or 0, y or 0
self.active = true
--math.randomseed(love.timer.getTime())
--self.dir = math.random(1,8)
--self.dir = math.random(2946) % 4
self.size, self.tilesize = size or 1, size or 2
self.parent = nil
end
function... | mit |
sjznxd/lc-20130204 | applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua | 80 | 1397 | --[[
Luci configuration model for statistics - collectd ping plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 ... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Bastok_Mines/npcs/Rashid.lua | 13 | 3699 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Rashid
-- Type: Mission Giver
-- @pos -8.444 -2 -123.575 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Upper_Jeuno/npcs/Laila.lua | 6 | 10576 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Laila
-- Type: Job Quest Giver
-- @zone: 244
-- @pos -54.045 -1 100.996
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
--TODO--
-- make sure the surrounding npcs react to the player accordingly after each quest. There are a few event I... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Al_Zahbi/npcs/Taten-Bilten.lua | 13 | 1179 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Taten-Bilten
-- Guild Merchant NPC: Clothcraft Guild
-- @pos 71.598 -6.000 -56.930 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Ranguemont_Pass/npcs/Perchond.lua | 13 | 1699 | -----------------------------------
-- Area: Ranguemont Pass
-- NPC: Perchond
-- @pos -182.844 4 -164.948 166
-----------------------------------
package.loaded["scripts/zones/Ranguemont_Pass/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
----------------------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Tahmasp.lua | 13 | 1904 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Tahmasp
-- Type: Outpost Vendor
-- @pos 464 24 416 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/glo... | gpl-3.0 |
ObsidianGuardian/xenia | tools/build/scripts/test_suite.lua | 10 | 2547 | include("build_paths.lua")
include("util.lua")
newoption({
trigger = "test-suite-mode",
description = "Whether to merge all tests in a test_suite into a single project",
value = "MODE",
allowed = {
{ "individual", "One binary per test." },
{ "combined", "One binary per test suite (default)." },
},
})... | bsd-3-clause |
FH3095/RollBot | RollTimerWindow.lua | 1 | 1940 |
local RB = RollBot
local log = FH3095Debug.log
local DEFAULT_POS = {
LEFT = {
relativePoint = "TOP",
xOfs = 0,
yOfs = -100,
},
WndHeight = 100,
WndWidth = 150,
}
local function cancelTimer()
local vars = RB.vars.rollTimeWindowVars
if vars.timerId ~= nil then
log("RollTimeWindow: Cancel Timer")
RB.tim... | gpl-3.0 |
chfg007/skynet | test/testmongodb.lua | 62 | 2661 | local skynet = require "skynet"
local mongo = require "mongo"
local bson = require "bson"
local host, db_name = ...
function test_insert_without_index()
local db = mongo.client({host = host})
db[db_name].testdb:dropIndex("*")
db[db_name].testdb:drop()
local ret = db[db_name].testdb:safe_insert({test_key = 1});
... | mit |
nerdclub-tfg/telegram-bot | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
r1k/vlc | share/lua/modules/dkjson.lua | 95 | 25741 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.