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 |
|---|---|---|---|---|---|
Wedmer/luci | applications/luci-app-shadowsocks-libev/luasrc/controller/shadowsocks-libev.lua | 12 | 1137 | -- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
--
module("luci.controller.shadowsocks-libev", package.seeall)
function index()
entry({"admin", "services", "shadowsocks-libev"},
alias("admin", "services", "shadowsocks-libev", "instances"),
_("Shadowso... | apache-2.0 |
Openarl/PathOfBuilding | Data/3_0/ModJewelAbyss.lua | 1 | 216547 | -- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["ChaosResistAbyssJewelCorrupted"] = { type = "Corrupted", affix = "", "+(1-3)% to Chaos Resistance", statOrderKey = "955", statOrder = { 955 }, level = 1, group = "ChaosResistance", weightKey = { "default", }, weightV... | mit |
barbarubra/Don-t-know-What-i-m-doing. | lua/luasocket/src/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_soy_ramen.lua | 3 | 1543 | -----------------------------------------
-- ID: 6458
-- Item: bowl_of_soy_ramen
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +50
-- STR +5
-- VIT +5
-- AGI +3
-- Attack +10% (cap 170)
-- Ranged Attack +10% (cap 170)
-- Resist Slow +10
-----------------------------------------
requir... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/weapon_break.lua | 3 | 1844 | -----------------------------------
-- 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, Quadavs, Pu... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/kogarasumaru.lua | 3 | 4242 | -----------------------------------------
-- ID: 19002
-- Item: Kogarasumaru
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WE... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eo_zdei.lua | 5 | 2641 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- MOB: Eo'Zdei
-- Animation Sub 0 Pot Form
-- Animation Sub 1 Pot Form (reverse eye position)
-- Animation Sub 2 Bar Form
-- Animation Sub 3 Ring Form
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/MobIDs");
requir... | gpl-3.0 |
zero-ui/miniblink49 | third_party/skia/tools/lua/ngrams.lua | 41 | 2106 | -- Generate n-grams of Skia API calls from SKPs.
-- To test this locally, run:
-- $ GYP_DEFINES="skia_shared_lib=1" make lua_pictures
-- $ out/Debug/lua_pictures -q -r $SKP_DIR -l tools/lua/ngrams.lua > /tmp/lua-output
-- $ lua tools/lua/ngrams_aggregate.lua
-- To run on Cluster Telemetry, copy and paste the contents... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Upper_Jeuno/npcs/Collet.lua | 5 | 2021 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Collet
-- Involved in Quests: A Clock Most Delicate, Save the Clock Tower
-- @zone 244
-- !pos -44 0 107
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
redfield23/redbot | 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 |
HeavensSword/darkstar | scripts/zones/Qufim_Island/npcs/Sasa_IM.lua | 3 | 2965 | -----------------------------------
-- Area: Qufim Island
-- NPC: Sasa, I.M.
-- 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 |
cogwerkz/gUI4 | gUI4/elements/glock.lua | 1 | 18349 | local addon, gUI4 = ...
-- Lua API
local _G = _G
-- WoW API
local CreateFrame = _G.CreateFrame
local GameFontNormal = _G.GameFontNormal
local GameFontNormalLarge = _G.GameFontNormalLarge
local GameTooltip = _G.GameTooltip
local RegisterStateDriver = _G.RegisterStateDriver
local UnitAffectingCombat = _G.Un... | mit |
pd2-linux/tina | feeds/luci/modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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... | gpl-2.0 |
mxOBS/deb-pkg_trusty_chromium-browser | third_party/skia/tools/lua/scrape_dashing.lua | 160 | 2495 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
xtao/ntopng | scripts/lua/pid_stats.lua | 1 | 2908 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
mode = _GET["mode"] --l4,l7,host
pid = tonumber(_GET["pid"])
name = _GET["name"]
host = _GET["host"]
local debug =... | gpl-3.0 |
HeavensSword/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 |
marcoag/awesome-config | themes/smoked/theme.lua | 1 | 5556 | -- smoked, awesome3 theme, by zhuravlik
-- OR snail, by Ghuff, based on smoked
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(sha... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/West_Ronfaure/npcs/Aaveleon.lua | 5 | 1178 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Aaveleon
-- Involved in Quest: A Sentry's Peril
-- !pos -431 -45 343 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu plugin diagram definition
(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 at
http://www.apache... | gpl-2.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 21 | 8152 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-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
htt... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Durogg.lua | 5 | 2640 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Durogg
-- Type: Past Event Watcher
-- @zone 231
-- !pos 15 0 -18
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/qm6.lua | 5 | 1751 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: ???
-- Type: Quest NPC
-- !pos 68 -0.5 324 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_[S]/TextIDs");
require("scri... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm12.lua | 5 | 1042 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm12 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- !pos -245.603 -5.500 139.855 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
captain-mayhem/captainsengine | tools/anime_studio/cge2.lua | 1 | 6441 | --settings
file_path = "C:\\tmp\\"
project_name = "test"
count = 0
view_width = 0
view_height = 0
cam = 0
visibility = {}
pictures = {}
layers = {}
layer_groups = {}
dialog = {}
list_file = nil
objects_file = nil
function traverseLayers(moho, grouplayer, func, depth)
for i=1,grouplayer:CountLay... | lgpl-2.1 |
HeavensSword/darkstar | scripts/globals/spells/quick_etude.lua | 5 | 1810 | -----------------------------------------
-- Spell: Quick Etude
-- Static AGI Boost, BRD 28
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
CodeStepper/trinity | trinity/clock.lua | 1 | 1314 | -- LIBRARIES / VARIABLES
-- ==========================================================================================
local clock = { mt = {} }
local timer = (type(timer) == 'table' and timer or require("gears.timer"))
-- NEW
-- ========================================================================================... | gpl-2.0 |
afiler/luashell.lrdevplugin | Shell.lua | 1 | 4336 | --[[----------------------------------------------------------------------------
Lightroom Lua Shell
Written in 2011 by Andrew Filer <afiler@afiler.com>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. Thi... | cc0-1.0 |
forivall-mirrors/orxonox-game-code | data/gui/scripts/GUITools.lua | 1 | 2843 | -- Returns a new menu sheet
-- See MenuSheet.new for details about the parameters
function createMenuSheet(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
local sheet = require("MenuSheet").new(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
_G[sheet.name] = sheet -- Global acces... | gpl-2.0 |
thetanil/thetasynth-pi | lua/pl/class.lua | 9 | 8115 | --- Provides a reuseable and convenient framework for creating classes in Lua.
-- Two possible notations:
--
-- B = class(A)
-- class.B(A)
--
-- The latter form creates a named class within the current environment. Note
-- that this implicitly brings in `pl.utils` as a dependency.
--
-- See the Guide for further ... | apache-2.0 |
ArmanIr/TgClinewbot | plugins/stats.lua | 33 | 3680 | do
local NUM_MSG_MAX = 6
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
LuaDevelopmentTools/luadocumentor | models/internalmodel.lua | 4 | 1852 | --------------------------------------------------------------------------------
-- Copyright (c) 2012 Sierra Wireless.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and is availabl... | epl-1.0 |
Openarl/PathOfBuilding | Export/Scripts/masters.lua | 1 | 2085 | if not loadStatFile then
dofile("statdesc.lua")
end
loadStatFile("stat_descriptions.txt")
local itemClassMap = {
["LifeFlask"] = "Flask",
["ManaFlask"] = "Flask",
["HybridFlask"] = "Flask",
["Amulet"] = "Amulet",
["Ring"] = "Ring",
["Claw"] = "Claw",
["Dagger"] = "Dagger",
["Wand"] = "Wand",
["One Hand Sword... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/smite_of_rage.lua | 33 | 1678 | -----------------------------------------
-- Spell: Smite of Rage
-- Damage varies with TP
-- Spell cost: 28 MP
-- Monster Type: Arcana
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+3
-- Level: 34
-- Casting Time: 0.5 seconds
-- Recast Time: 13 seconds
-- Skillchain Element(s): Wind (can... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Windurst/npcs/Choyi_Totlihpa.lua | 5 | 1117 | -----------------------------------
-- Area: Port Windurst
-- NPC: Choyi Totlihpa
-- Type: Standard NPC
-- !pos -58.927 -5.732 132.819 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scr... | gpl-3.0 |
rphillips/virgo-logging | tests/test-stream.lua | 1 | 5479 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
pd2-linux/tina | feeds/luci/modules/base/luasrc/http.lua | 27 | 8237 | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
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 Lice... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Wajaom_Woodlands/Zone.lua | 5 | 3449 | -----------------------------------
--
-- Zone: Wajaom_Woodlands (51)
--
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require("scripts/globals/chocobo_digging");
require("scripts... | gpl-3.0 |
Arashbrsh/lifesking | plugins/banhammer.lua | 23 | 11188 | -- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Temenos/bcnms/central_temenos_3rd_floor.lua | 35 | 1139 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_3rd]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1305),TE... | gpl-3.0 |
lshoek/dualstick360 | enemy.lua | 1 | 13814 | include("dualstick360/globals.lua")
include("dualstick360/player.lua")
include("dualstick360/bullet.lua")
include("dualstick360/utils.lua")
Enemy = {}
Enemy.__index = Enemy
--[[ Create a new Enemy object ]]
function Enemy.new()
local self = setmetatable({}, Enemy)
return self
end
--[[ Create Function with paramete... | mit |
siktirmirza/selfbot | plugins/weather.lua | 29 | 1436 |
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url..'?q='..location..'&APPID=eedbc05ba060c787ab0614cad1f2e12b'
url = url..'&units=metric'
local b, c, h = http.request(url)
if c ~= 200... | gpl-2.0 |
zero-ui/miniblink49 | third_party/skia/resources/test.lua | 68 | 1921 |
local r = { left = 10, top = 10, right = 100, bottom = 80 }
local x = 0;
local paint = Sk.newPaint();
paint:setAntiAlias(true);
local image -- = Sk.loadImage('/skia/sailboat.jpg');
function setImageFilename(filename)
image = Sk.loadImage(filename)
end
local color = {a = 1, r = 1, g = 0, b = 0};
function r... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Waters/npcs/Otete.lua | 5 | 1143 | -----------------------------------
-- Area: Windurst_Waters
-- NPC: Otete
-- Only sells when Windurst controlls Li'Telor Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
gwx/tome-grayswandir-illusion | data/libs/pick-circle-point-0.lua | 1 | 1103 | -- 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 License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
ignacio/LuaNode | lib/luanode/tty.lua | 2 | 5008 | local pairs, require, process, Stdio = pairs, require, process, Stdio
local Class = require "luanode.class"
local Socket = require "luanode.net".Socket
local luanode_stream = require "luanode.stream"
local utils = require "luanode.utils"
local stdinHandle
local _M = {
_NAME = "luanode.tty",
_PACKAGE = "luan... | mit |
pd2-linux/tina | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/bmx6json.lua | 16 | 5303 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
Contributors Jo-Philipp Wich <xm@subsignal.org>
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 2 of the License... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/carbuncles_pole.lua | 6 | 1327 | -----------------------------------------
-- ID: 18581
-- Item: Carbuncle's Pole
-- Item Effect: Restores 160-220 HP
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
function onAdditionalEffect(player,target,damage)
local... | gpl-3.0 |
taksetareh12/mojtaba | plugins/stats.lua | 43 | 4082 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
ind9/kong | kong/dao/schemas/apis.lua | 7 | 2943 | local url = require "socket.url"
local stringy = require "stringy"
local function validate_target_url(value)
local parsed_url = url.parse(value)
if parsed_url.scheme and parsed_url.host then
parsed_url.scheme = parsed_url.scheme:lower()
if parsed_url.scheme == "http" or parsed_url.scheme == "https" then
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Xarcabard/npcs/Pelogrant.lua | 5 | 1505 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pelogrant
-- Type: Outpost Vendor
-- !pos 210 -22 -201 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest")... | gpl-3.0 |
CodeStepper/trinity | trinity/arrow.lua | 1 | 6029 | -- LIBRARIES
-- ==========================================================================================
local naughty = require("naughty")
local gears = require("gears")
local base = require("wibox.widget.base")
local arrow = { mt = {} }
local timer = (type(timer) == 'table' and timer or gears.timer)
local mouse = ... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 5 | 1383 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/shop");
-----------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Gusgen_Mines/npcs/Clay.lua | 5 | 1181 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Clay
-- Involved in Quest: A Potter's Preference
-- !pos 117 -21 432 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scri... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/leremieu_taco.lua | 3 | 1519 | -----------------------------------------
-- ID: 5175
-- Item: leremieu_taco
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Health Regen While Healing 1
-- Magic Regen While Healing 1
-- Defense % 25
-- Defen... | gpl-3.0 |
Openarl/PathOfBuilding | Data/Uniques/gloves.lua | 1 | 23419 | -- Item data (c) Grinding Gear Games
return {
-- Gloves: Armour
[[
Atziri's Acuity
Vaal Gauntlets
Source: Drops from unique{Atziri, Queen of the Vaal} in normal{The Alluring Abyss}
Variant: {2_6}Pre 3.0.0
Variant: Pre 3.1.0
Variant: Current
Requires Level 75, 100 Str
+(60-80) to Intelligence
+(60-75) to maximum Life
(... | mit |
404rq/GTW-RPG | [resources]/GTWcivilians/civ_c.lua | 2 | 14168 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
peymankhanas8487/Horror_Avatar | plugins/stats.lua | 49 | 3698 | do
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `... | gpl-2.0 |
xtao/ntopng | scripts/lua/get_host_daily_activity.lua | 3 | 4079 | --
-- (C) 2013-14 - ntop.org
--
local debug = true
function host2id(d, name)
sql = 'SELECT idx FROM hosts WHERE host_name="'..name..'"'
if(debug) then print(sql.."\n") end
for idx in d:urows(sql) do return(tonumber(idx)) end
return nil
end
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/script... | gpl-3.0 |
dkorolev/tarantool | test/big/bitset.test.lua | 7 | 4871 | dofile('utils.lua')
dofile('bitset.lua')
create_space()
------------------------------------------------------------------------------
-- BitsetIndex: insert/delete
------------------------------------------------------------------------------
test_insert_delete(128)
-------------------------------------------------... | bsd-2-clause |
AaMegaTeam/AntiSpamV2 | 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]]
... | agpl-3.0 |
HeavensSword/darkstar | scripts/zones/Xarcabard/npcs/Heavy_Bear_IM.lua | 3 | 2956 | -----------------------------------
-- Area: Xarcabard
-- NPC: Heavy Bear, I.M.
-- Type: Border Conquest Guards
-- !pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requ... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/sublimation.lua | 4 | 2112 | -----------------------------------
-- Ability: Sublimation
-- Gradually creates a storage of MP while reducing your HP. The effect ends once an MP limit is reached, or your HP has gone too low. The stored MP is then transferred to your MP pool by using the ability a second time.
-- Obtained: Scholar Level 35
-- Recast... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/admin-full/luasrc/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
shahifaqeer/my-luci-bismark-0.11 | libs/web/luasrc/http/protocol/date.lua | 13 | 2801 | --[[
HTTP protocol implementation for LuCI - date handling
(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 at
http://www.... | apache-2.0 |
PierrotLC/optim | test/sparsecoding.lua | 14 | 3907 | require 'kex'
-- L1 FISTA Solution
-- L1 solution with a linear dictionary ||Ax-b||^2 + \lambda ||x||_1
-- D : dictionary, each column is a dictionary element
-- params: set of params to pass to FISTA and possibly temp allocation (**optional**)
-- check unsup.FistaLS function for details.
-- returns fista ... | bsd-3-clause |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/TextIDs.lua | 3 | 5077 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6425; -- You cannot obtain the <item>. Come back after sorting your inventory.
MYSTIC_RETRIEVER = 6427; -- You cannot obtain the <item>. Speak with the mystic retriever after sorting your inventory.
FULL_INVENTORY... | gpl-3.0 |
dlannan/webdruino | release/turbo/3rdparty/middleclass/spec/includes_spec.lua | 3 | 1858 | require 'middleclass'
context('includes', function()
context('nils, numbers, etc', function()
local o = Object:new()
local primitives = {nil, 1, 'hello', {}, function() end}
for _,primitive in pairs(primitives) do
local theType = type(primitive)
context('A ' .. theType, function()
... | mit |
ignacio/LuaNode | test/simple/test-http-set-cookies.lua | 2 | 1576 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
function test()
nresponses = 0
local server = http.createServer(function(self, req, res)
if req.url == "/one" then
res:writeHead(200, { {"set-cookie", "A"},
{"content-type", "text/plain"} })... | mit |
duane-r/squaresville | trans.lua | 1 | 2538 | -- Squaresville trans.lua
-- Copyright Duane Robertson (duane@duanerobertson.com), 2017
-- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
local function teleport(user, ruin)
if not (user) then
return
end
local name = user:get_player_name()
local pos = user:get... | lgpl-2.1 |
qwook/dpsht | main.lua | 1 | 4174 |
require("libs.hotclass") -- allows for hot-swappable classes
require("libs.mathext") -- this extends the math library
require("libs.tableext") -- this extends the table library
require("libs.print2") -- this adds "print2"
require("libs.loveframes")
SpriteSheet = require("util.spritesheet")
require("core.cache")
--... | mit |
natuan241/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/digest.lua | 7 | 1659 | -----------------------------------------
-- Spell: Digest
-- Steals an enemy's HP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 36
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Magic Bursts ... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua | 6 | 1185 | --[[
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 |
HeavensSword/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rr.lua | 5 | 1133 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueducts... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/black_curry_bun.lua | 3 | 1691 | -----------------------------------------
-- ID: 5758
-- Item: black_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- DEX +2
-- VIT +4
-- INT +1
-- Accuracy +5
-- Ranged Accuracy +5
-- Evasion +5
-- DEF +15% (cap 180)
-- Resist Sleep +3
-- hHP +2
-- hMP ... | gpl-3.0 |
vmercierfr/kong | kong/plugins/keyauth/access.lua | 9 | 5404 | local cache = require "kong.tools.database_cache"
local stringy = require "stringy"
local Multipart = require "multipart"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local CONTENT_TYPE = "content-type"
local CONTENT_LENGTH = "content-length"
local FORM_URLENCODED = "appl... | mit |
vmercierfr/kong | database/migrations/cassandra/2015-04-24-154530_plugins.lua | 14 | 1076 | local Migration = {
name = "2015-04-24-154530_plugins",
up = function(options)
return [[
CREATE TABLE IF NOT EXISTS basicauth_credentials(
id uuid,
consumer_id uuid,
username text,
password text,
created_at timestamp,
PRIMARY KEY (id)
);
CREATE... | mit |
lhsazevedo/LIKO-12 | OS/DiskOS/Editors/init.lua | 1 | 14258 | --This file is responsible about the editors shown after pressing escape--
local edit = {}
--=Contributing Guide=--
--[[
Creating an editor:
1. Create a new file at Editors folder
2. Make a new table at the top of the file and add it as an return value in the file ex: local ce = {}; return ce
3. Edit self.editors in e... | mit |
peymankhanas8487/Horror_Avatar | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
ryangmor/lolsh | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
mukunda-/Delleren | spelldata.lua | 1 | 8415 | -------------------------------------------------------------------------------
-- DELLEREN
-- (C) 2015 Mukunda Johnson (mukunda@mukunda.com)
-- See LICENSE-DELLEREN.TXT
-------------------------------------------------------------------------------
-- special thanks to Barkskin-Mannoroth for helping me test some of t... | mit |
RyderG67/vice-players | Vendor/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/verbatim.lua | 7 | 1667 | -- tolua: verbatim class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: verbatim.lua 1004 2006-02-27 13:03:20Z lindquist $
-- 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 prov... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Balgas_Dais/bcnms/saintly_invitation.lua | 5 | 2004 | -----------------------------------
-- Area: Horlais Peak
-- Name: Saintly Invitation
-- !pos 299 -123 345 146
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Balgas_Dais/Tex... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/diamondhide.lua | 5 | 1028 | -----------------------------------------
-- Spell: Diamondhide
-- Gives party members within area of effect the effect of "Stoneskin"
-- Spell cost: 99 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 67
-- Casting Time: 7 seconds
-- Recast Time: 1 minu... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Coderiant.lua | 5 | 1156 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Coderiant
-- General Info NPC
-- @zone 230
-- !pos -111 -2 33
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/... | gpl-3.0 |
mohammadclashclash/uzzbot | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
icrazyboy/- | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
wojons/mongrel2 | examples/bbs/ui.lua | 96 | 2026 | local coroutine = coroutine
module 'ui'
local SCREENS = {
['welcome'] = [[
__ __ ____ ____ ____ ____
| \/ |___ \| __ )| __ ) ___|
| |\/| | __) | _ \| _ \___ \
| | | |/ __/| |_) | |_) |__) |
|_| |_|_____|____/|____/____/
Welcome to the Mongrel2 BBS.
]],
['name']... | bsd-3-clause |
pd2-linux/tina | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/tunnels.lua | 18 | 2336 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
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 2 of the License, or
(at your option) any later version.
Th... | gpl-2.0 |
ignacio/LuaNode | test/simple/disabled/test-dgram-multicast.lua | 2 | 2015 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local dgram = require "luanode.datagram"
--var dgram = require('dgram'),
-- util = require('util'),
--assert = require('assert'),
--Buffer = require('buffer').Buffer;
function test()
local LOCAL_BROADCAST_HOST = '224.0.0.1'
... | mit |
HeavensSword/darkstar | scripts/zones/Tavnazian_Safehold/Zone.lua | 5 | 2750 | -----------------------------------
--
-- Zone: Tavnazian_Safehold (26)
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_Safehold/TextIDs");
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/seafood_stewpot.lua | 3 | 1331 | -----------------------------------------
-- ID: 5238
-- Item: Seafood Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- Accuracy 5
-- Ranged Accuracy 5
-- Evasion 5
-- hHP 5
-- hMP 1
-----------------------------------------
require(... | gpl-3.0 |
nsuke/thrift | lib/lua/TServer.lua | 11 | 4181 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
cogwerkz/gUI4 | gUI4/libs/GP_Ace3/GP_AceAddon-3.0/GP_AceAddon-3.0.lua | 1 | 26588 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable... | mit |
HeavensSword/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua | 5 | 4326 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Dominion Tactician
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts... | gpl-3.0 |
Ablu/manaserv | example/scripts/npcs/banker.lua | 4 | 4014 | ----------------------------------------------------------
-- Banker Function --
----------------------------------------------------------------------------------
-- Copyright 2008 The Mana World Development Team --
-- ... | gpl-2.0 |
xtao/ntopng | scripts/lua/hosts_comparison.lua | 2 | 5644 | --
-- (C) 2014 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "graph_utils"
page = _GET["page"]
hosts_ip = _GET["hosts"]
-- Default values
if(page == nil) then
page = "overview"
end
active_traffic = true
... | gpl-3.0 |
arnabgho/SCRNNs | datasource.lua | 4 | 2547 | --
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Author: Sumi... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/mobskills/dominion_slash.lua | 15 | 1593 | ---------------------------------------------
-- Dominion Slash
--
-- Description: Performs an area of effect slashing weaponskill. Additional effect: Silence
-- Type: Physical
-- 2-3 Shadows
-- Range: Unknown radial
-- One source also mentions that it "can dispel important buffs."
------------------------------------... | gpl-3.0 |
Openarl/PathOfBuilding | Classes/MinionListControl.lua | 1 | 3116 | -- Path of Building
--
-- Class: Minion List
-- Minion list control.
--
local ipairs = ipairs
local t_insert = table.insert
local t_remove = table.remove
local s_format = string.format
local MinionListClass = newClass("MinionListControl", "ListControl", function(self, anchor, x, y, width, height, data, list, dest)
se... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.