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
cogwerkz/gUI4
gUI4/libs/GP_Ace3/GP_AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua
1
6895
--[[----------------------------------------------------------------------------- ScrollFrame Container Plain container that scrolls its content and doesn't grow in height. -------------------------------------------------------------------------------]] local Type, Version = "ScrollFrame", 24 local AceGUI = GP_Li...
mit
HeavensSword/darkstar
scripts/zones/Bastok_Markets/npcs/Malene.lua
5
1635
----------------------------------- -- Area: Bastok Markets -- NPC: Malene -- Type: Quest NPC -- !pos -173 -5 64 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets/TextIDs"); require("scripts/gl...
gpl-3.0
natuan241/Algorithm-Implementations
Golden_Ratio_Algorithms/Lua/Yonaba/golden_ratio.lua
26
3449
-- Golden Ratio approximation algorithms -- See: http://en.wikipedia.org/wiki/Golden_ratio -- Fuzzy equality test local function fuzzy_equal(a, b, eps) return (math.abs(a - b) < eps) end -- Computes an approximate value of the Golden Ratio -- Using a root based iteration. -- See: http://en.wikipedia.org/wiki/Golden_r...
mit
Deiz/naev
dat/factions/spawn/empire.lua
6
3237
include("dat/factions/spawn/common.lua") include("dat/factions/spawn/mercenary_helper.lua") include("pilot/empire.lua") -- Uniques function empire_unique() local p = empire_create( true ) return {p} end -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/plate_of_fin_sushi_+1.lua
3
1230
----------------------------------------- -- ID: 5666 -- Item: plate_of_fin_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Intelligence 6 -- Accuracy % 17 (cap 80) -- Ranged Accuracy % 17 (cap 80) -- Resist Sleep +2 ----------------------------------------- require("scripts/globa...
gpl-3.0
DaemonEleuel/avorionpack
data/scripts/sectors/neutralzone.lua
1
3229
package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" package.path = package.path .. ";configs/?.lua" SectorGenerator = require ("SectorGenerator") Placer = require("placer") require("RegenerativeAsteroidsConfig") local SectorTemplate = {} -- must be defined, ...
mit
Florastamine/Hotland
Herbal/BuildTool/utils.lua
1
2008
--[[ Copyright (c) 2016, Florastamine 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,...
mit
HeavensSword/darkstar
scripts/globals/abilities/pets/reactive_shield.lua
5
1050
--------------------------------------------- -- Reactive Shield --------------------------------------------- require("scripts/globals/automatonweaponskills") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg"); --------------------------------------------- function on...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/cup_of_chamomile_tea.lua
3
1213
----------------------------------------- -- ID: 4603 -- Item: cup_of_chamomile_tea -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic 8 -- Vitality -2 -- Charisma 2 -- Magic Regen While Healing 1 -- Sleep resistance -30 ----------------------------------------- require("scripts/global...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Souun_IM.lua
3
2975
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Souun, I.M. -- Type: Outpost Conquest Guards -- !pos 470.843 23.465 415.520 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conq...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/flask_of_panacea.lua
3
1585
----------------------------------------- -- ID: 4163 -- Item: Panacea -- Item Effect: Removes any number of status effects ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function onItemCheck(target) return 0; end; function onItemUse(target) ...
gpl-3.0
Deiz/naev
docs/missions/computer_template.lua
17
3065
--[[ This is a Naev mission template for missions from the Mission Computer. In this document aims to provide a structure on which to build Naev missions. The possibilities are endless, so this will not apply to every possible mission. For more information on Naev, please visit: http://naev.org/ Naev mi...
gpl-3.0
Dota-2-5v5v5v5/GameFolder
scripts/vscripts/libraries/modifiers/modifier_animation_translate.lua
1
10888
modifier_animation_translate = class({}) local _CODE_TO_ANIMATION_TRANSLATE = { [0]= "loadout", [1]= "split_shot", [2]= "chemical_rage", [3]= "agedspirit", [4]= "aggressive", [5]= "injured", [6]= "ancient_armor", [7]= "anvil", [8]= "arcana", [9]= "techies_arcana", [10]= "fast", [1...
gpl-3.0
grmmhp/RaycastingEngine
RAYCASTER_TEST/GARCIAS_CASTER/main.lua
1
6620
local world = {{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Windurst-Jeuno_Airship/npcs/Mauricio.lua
5
2015
----------------------------------- -- Area: Windurst-Jeuno Airship -- NPC: Mauricio -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Windurst-Jeuno_Airship/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst-Jeuno_Airship/TextIDs"); --------------...
gpl-3.0
Openarl/PathOfBuilding
Data/3_0/StatDescriptions/debuff_skill_stat_descriptions.lua
1
5484
return {[1]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Modifiers to Debuff Duration also apply to this Skill's Soul Gain Prevention"}}},name="soul_prevention_buff_duration",stats={[1]="modifiers_to_buff_effect_duration_also_affect_soul_prevention_duration"}},[2]={lang={English={[1]={[1]={k="milliseconds_t...
mit
hamed9898/power-max
dkjson.lua
11
26593
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global valu...
gpl-2.0
HeavensSword/darkstar
scripts/globals/effects/sanction.lua
32
1714
----------------------------------- -- -- EFFECT_SANCTION -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); -- 1 = regen, 2 = refresh, 3 = food. local subPo...
gpl-3.0
mahdib9/99
plugins/welcome.lua
18
3813
-- https://github.com/amirhmz/ -- https://telegram.me/AmirDark/ 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 ...
gpl-2.0
HeavensSword/darkstar
scripts/globals/items/chunk_of_orobon_meat.lua
3
1443
----------------------------------------- -- ID: 5563 -- Item: Chunk of Orobon Meat -- Effect: 5 Minutes, food effect, Galka Only ----------------------------------------- -- HP 10 -- MP -10 -- Strength +6 -- Intelligence -8 -- Demon Killer 10 ----------------------------------------- require("scripts/globals/status");...
gpl-3.0
AaMegaTeam/AntiSpamV2
plugins/owners.lua
1467
12478
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...
agpl-3.0
qwook/dpsht
assets/maps/Untitled.lua
2
438183
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 200, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "tilemap2", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
mit
dlannan/webdruino
deps/turbo-1.0.0/turbo/sockutil.lua
1
9041
--- Turbo.lua Socket Utils -- -- Copyright 2011, 2012, 2013 John Abrahamsen -- -- 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 r...
mit
Openarl/PathOfBuilding
Modules/CalcPerform.lua
1
42792
-- Path of Building -- -- Module: Calc Perform -- Manages the offence/defence calculations. -- local calcs = ... local pairs = pairs local ipairs = ipairs local t_insert = table.insert local m_min = math.min local m_max = math.max local m_ceil = math.ceil local m_floor = math.floor local m_modf = math.modf local s_for...
mit
pd2-linux/tina
feeds/luci/applications/luci-multiwan/luasrc/controller/multiwan.lua
75
1930
module("luci.controller.multiwan", package.seeall) function index() local fs = luci.fs or nixio.fs if not fs.access("/etc/config/multiwan") then return end local page page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN")) page.dependent = true entry({"admin", "network", "...
gpl-2.0
xtao/ntopng
scripts/lua/export_data.lua
1
2077
-- -- (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') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "admin" dofile(dirs.installdir .. "/sc...
gpl-3.0
xtao/ntopng
scripts/lua/admin/password_reset.lua
11
1193
-- -- (C) 2013 - 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') username = _GET["username"] old_password = _GET["old_password"] new_password = _GET["new_password"] confirm_new_passwo...
gpl-3.0
HeavensSword/darkstar
scripts/globals/mobskills/bilgestorm.lua
3
1415
--------------------------------------------- -- Bilgestorm -- -- Description: Deals damage in an area of effect. Additional effect: Lowers attack, accuracy, and defense -- Type: Physical -- Utsusemi/Blink absorb: Wipes shadows -- Range: Unknown -- Notes: Only used at low health.*Experienced the use at 75%* -----...
gpl-3.0
Wedmer/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/email.lua
73
1673
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("E-Mail Plugin Configuration"), translate( "The email plugin creates a unix socket which can be used " .. "to transmit email-statistics to a running ...
apache-2.0
Florastamine/Hotland
Herbal/BuildTool/main.lua
1
16802
--[[ Copyright (c) 2016, Florastamine 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,...
mit
HeavensSword/darkstar
scripts/zones/Southern_San_dOria/npcs/Foletta.lua
5
1085
----------------------------------- -- Area: Southern San d'Oria -- NPC: Foletta -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals...
gpl-3.0
HeavensSword/darkstar
scripts/globals/spells/chocobo_mazurka.lua
5
1132
----------------------------------------- -- Spell: Chocobo Mazurka -- Gives party members enhanced movement ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) retur...
gpl-3.0
ArmanIr/TgClinewbot
plugins/help.lua
2
2835
do 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
pd2-linux/tina
feeds/luci/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua
62
7176
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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...
gpl-2.0
HeavensSword/darkstar
scripts/globals/items/roast_pipira.lua
3
1215
----------------------------------------- -- ID: 4538 -- Item: roast_pipira -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 3 -- Mind -3 -- Attack % 14 -- Attack Cap 75 -- Ranged ATT % 14 -- Ranged ATT Cap 75 ----------------------------------------- require("scripts/globals/stat...
gpl-3.0
GPUOpen-LibrariesAndSDKs/MLAA11
premake/amd_premake_util.lua
8
2557
-- amd_premake_util.lua -- utility code shared by AMD build scripts -- _ACTION is a premake global variable and for our usage will be vs2012, vs2013, etc. -- Strip "vs" from this string to make a suffix for solution and project files. _AMD_VS_SUFFIX = "_" .. string.gsub(_ACTION, "vs", "") -- _ACTION is a premake glob...
mit
404rq/GTW-RPG
[resources]/GTWcore/misc/c_2dview.lua
2
1880
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
bsd-2-clause
natuan241/Algorithm-Implementations
Dijkstra_Search/Lua/Yonaba/utils/bheap.lua
78
2454
-- Binary Heap data structure implementation -- See: http://www.policyalmanac.org/games/binaryHeaps.htm -- Adapted from: https://github.com/Yonaba/Binary-Heaps local PATH = (...):gsub('%.bheap$','') local class = require (PATH .. '.class') -- Looks for item in an array local function findIndex(array, item) for k,v ...
mit
cogwerkz/gUI4
gUI4_UnitFrames/shared/auras.lua
1
1658
local addon,ns = ... local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true) if not gUI4 then return end local oUF = gUI4.oUF if not oUF then return end local UnitAffectingCombat = UnitAffectingCombat local isPlayer = { player = true, pet = true, vehicle = true } ns.CustomAuraFilter =...
mit
HeavensSword/darkstar
scripts/globals/weaponskills/spinning_slash.lua
25
1624
----------------------------------- -- Spinning Slash -- Great Sword weapon skill -- Skill level: 225 -- Delivers a single-hit attack. Damage varies with TP. -- Modifiers: STR:30% ; INT:30% -- 100%TP 200%TP 300%TP -- 2.5 3 3.5 ----------------------------------- require("scripts/globals/status");...
gpl-3.0
HeavensSword/darkstar
scripts/globals/spells/armys_paeon_v.lua
5
1338
----------------------------------------- -- Spell: Army's Paeon V -- Gradually restores target's HP. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; en...
gpl-3.0
hasammm/hossam
bot/TH3BOSS.lua
8
14583
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Jugner_Forest_[S]/mobs/Lobison.lua
7
1454
----------------------------------- -- Area: Jugner Forest (S) -- NPC: Lobison ----------------------------------- function onMobSpawn(mob) mob:setLocalVar("transformTime", os.time()) end; function onMobRoam(mob) local changeTime = mob:getLocalVar("transformTime"); local roamChance = math.random(1,100); ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/abilities/pets/knockout.lua
2
1412
--------------------------------------------------- -- Knockout --------------------------------------------------- require("scripts/globals/status") require("scripts/globals/settings") require("scripts/globals/automatonweaponskills") --------------------------------------------------- function onMobSkillCheck(target...
gpl-3.0
Wedmer/luci
applications/luci-app-transmission/luasrc/model/cbi/transmission.lua
66
13028
-- Copyright 2012 Gabor Varga <vargagab@gmail.com> -- Licensed to the public under the Apache License 2.0. require("luci.sys") require("luci.util") require("luci.model.ipkg") local uci = require "luci.model.uci".cursor() local trport = uci:get_first("transmission", "transmission", "rpc_port") or 9091 local running = ...
apache-2.0
ArmanIr/TgClinewbot
plugins/plugins.lua
4
5905
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
Openarl/PathOfBuilding
Data/2_6/Bases/flask.lua
2
12391
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Small Life Flask"] = { type = "Flask", subType = "Life", tags = { default = true, flask = true, life_flask = true, }, flask = { life = 70, duration = 6, chargesUsed = 7, chargesMax = 21, }, ...
mit
DennisWG/CastModifier
Extensions/Mouseover/pfUI.lua
1
2119
--[[ Author: Dennis Werner Garske (DWG) License: MIT License ]] local _G = _G or getfenv(0) local Roids = _G.Roids or {} Roids.mouseoverUnit = Roids.mouseoverUnit or nil; local Extension = Roids.RegisterExtension("pfUI"); Extension.RegisterEvent("PLAYER_ENTERING_WORLD", "PLAYER_ENTERING_WORLD"); function Extension...
mit
HeavensSword/darkstar
scripts/globals/weaponskills/tachi_kagero.lua
25
1434
----------------------------------- -- Tachi Kagero -- Great Katana weapon skill -- Skill Level: 100 -- Deals fire elemental damage to enemy. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Flame Gorget. -- Aligned with the Flame Belt. -- Element: Fire -- Modifiers: STR:75% -- 100%TP 200%...
gpl-3.0
gwx/tome-grayswandir-illusion
data/autoloads/ai/lurk.lua
1
1176
-- Gray's Illusions, for Tales of Maj'Eyal. -- -- 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...
gpl-3.0
LuaDevelopmentTools/luadocumentor
docgenerator.lua
4
2885
-------------------------------------------------------------------------------- -- 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
HeavensSword/darkstar
scripts/globals/items/plate_of_homemade_salad.lua
3
1510
----------------------------------------- -- ID: 5227 -- Item: plate_of_homemade_salad -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 10 -- Accuracy +12% (cap 80) -- Attack +10% (cap 40) -- Ranged Accuracy +12% (cap 80) -- Ranged Attack +10% (cap 40) --------------------------------...
gpl-3.0
lulersoft/ME_NLua
Assets/Lua/main.lua
1
3055
--主逻辑 --升级检测 启动游戏逻辑 --小陆 QQ 2604904 --https://github.com/lulersoft/ME import 'System' import 'UnityEngine' import 'UnityEngine.UI' import 'Assembly-CSharp' -- The user-code assembly generated by Unity import 'LayerMask' --以上整个项目只需要导入一次 local json = require "json.dkjson" version=1 appid=1 weburl="http://192.168.1....
mit
vmercierfr/kong
kong/api/routes/apis.lua
11
2737
local validations = require "kong.dao.schemas_validation" local crud = require "kong.api.crud_helpers" local syslog = require "kong.tools.syslog" local constants = require "kong.constants" return { ["/apis/"] = { GET = function(self, dao_factory) crud.paginated_set(self, dao_factory.apis) end, PUT...
mit
HeavensSword/darkstar
scripts/globals/mobskills/dread_dive.lua
33
1035
--------------------------------------------- -- Dread Dive -- -- Description: Dives into a single target. Additional effect: Knockback + Stun -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: Used instead of Gliding Spike by certain notorious monsters. -------------------------------...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Sacrarium/npcs/qm3.lua
5
1611
----------------------------------- -- Area: Sacrarium -- NPC: qm3 (???) -- Notes: Used to spawn Old Prof. Mariselle -- !pos 62.668 -3.111 127.288 28 ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Sacrarium/TextI...
gpl-3.0
devlaith/DEVLAITH-HL
plugins/robot.lua
3
1864
local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if not _config.disabled_channels then _config...
gpl-2.0
HeavensSword/darkstar
scripts/globals/spells/hydrohelix.lua
3
1984
-------------------------------------- -- Spell: Hydrohelix -- Deals water damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/m...
gpl-3.0
HeavensSword/darkstar
scripts/globals/abilities/water_shot.lua
2
3232
----------------------------------- -- Ability: Water Shot -- Consumes a Water Card to enhance water-based debuffs. Deals water-based magic damage -- Drown Effect: Enhanced DoT and STR- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/m...
gpl-3.0
lu-zero/vlc
share/lua/meta/art/00_musicbrainz.lua
7
3033
--[[ Gets an artwork from the Cover Art Archive or Amazon $Id$ Copyright © 2007-2010 the VideoLAN team 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 ...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Spire_of_Mea/npcs/_0l1.lua
66
1350
----------------------------------- -- 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
HeavensSword/darkstar
scripts/zones/Windurst_Waters/npcs/Lumomo.lua
5
2688
----------------------------------- -- Area: Windurst Waters -- NPC: Lumomo -- Type: Standard NPC -- @zone 238 -- !pos -55.770 -5.499 18.914 -- 0x027e 818 820 822 823 -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/Text...
gpl-3.0
Openarl/PathOfBuilding
Data/3_0/Minions.lua
1
13967
-- This file is automatically generated, do not edit! -- Path of Building -- -- Minion Data -- Monster data (c) Grinding Gear Games -- local minions, mod = ... minions["RaisedZombie"] = { name = "Raised Zombie", life = 3.75, armour = 0.7, fireResist = 40, coldResist = 40, lightningResist = 40, chaosResist = 20,...
mit
shahifaqeer/my-luci-bismark-0.11
applications/luci-statistics/luasrc/model/cbi/luci_statistics/irq.lua
7
1285
--[[ Luci configuration model for statistics - collectd irq 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 a...
apache-2.0
birdbrainswagtrain/microcosm
gamemodes/microcosm/entities/entities/micro_comp_health.lua
2
2588
AddCSLuaFile() DEFINE_BASECLASS("micro_component") ENT.Base = "micro_component" function ENT:Initialize() BaseClass.Initialize(self) if CLIENT then self.sound_alarm = CreateSound(self,"npc/turret_floor/alarm.wav") self.sound_critical = CreateSound(self,"ambient/alarms/siren.wav") end end function ENT:GetComp...
mit
HeavensSword/darkstar
scripts/zones/Bhaflau_Remnants/mobs/Colibri.lua
6
1393
----------------------------------- -- Area: Mamook -- MOB: Colibri ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- function onMobFight(mob, target) local delay = mob:getLocalVar("delay"); local LastCast = mob:getLoca...
gpl-3.0
MiBShidobu/GM-Networking
lua/gm-networking/library/gm-serialize.lua
1
6995
--[[ GM-Serialize Library By MiBShidobu Description: This addon provides an API to serialize data into a small scale transferable format. Mainly for use by GM-Networking, opped to give it its own GitHub to be improved and modified easily. Credits: MiBShidobu - Main Developer ]]-- ...
mit
cogwerkz/gUI4
gUI4/libs/GP_oUF/elements/masterlooter.lua
7
2425
--[[ Element: Master Looter Icon Toggles visibility of the master looter icon. Widget MasterLooter - Any UI widget. Notes The default master looter icon will be applied if the UI widget is a texture and doesn't have a texture or color defined. Examples -- Position and size local MasterLooter = self:...
mit
mbuij/ldns-cga-tsig
lua/echo.lua
4
1768
-- source the lib file with the function dofile("rns-lib.lua") -- echo whatever is received -- this function specifies the mutalation to the packet function lua_packet_mangle(orig_packet) -- Dont do anything just mirror -- local rr1 = record.new_frm_str("www.miek.nl IN A 127.0.0.1") -- packet.push_rr(orig_packet, LDN...
bsd-3-clause
Deiz/naev
dat/factions/standing/skel.lua
6
7360
--[[ Simple skeleton for your standard faction. This is more or less what the standard behaviour can be, but from here you can let your imagination go wild. --]] -- Faction caps. _fcap_kill = 20 -- Kill cap _fdelta_distress = {-1, 0} -- Maximum change constraints _fdelta_kill = {-5, 1} -- Maximum ch...
gpl-3.0
o-lim/busted
busted/context.lua
9
3017
local tablex = require 'pl.tablex' local function save() local g = {} for k,_ in next, _G, nil do g[k] = rawget(_G, k) end return { gmt = debug.getmetatable(_G), g = g, loaded = tablex.copy(package.loaded) } end local function restore(state) setmetatable(_G, state.gmt) for k,_ in next, _...
mit
shahifaqeer/my-luci-bismark-0.11
applications/luci-pbx/luasrc/controller/pbx.lua
144
1448
--[[ 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
stanley-cheung/grpc
third_party/upb/upb/bindings/lua/upb.lua
8
2347
--[[-------------------------------------------------------------------------- Copyright (c) 2009-2021, Google LLC All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of sour...
apache-2.0
Openarl/PathOfBuilding
Export/Scripts/minions.lua
1
5001
local modMap = { } do local lastMod for line in io.lines("Minions/modmap.ini") do local statName = line:match("^%[([^]]+)%]$") if statName then modMap[statName] = { } lastMod = modMap[statName] elseif line:match("^[^#].+") then table.insert(lastMod, line) end end end local itemClassMap = { ["Claw"...
mit
Openarl/PathOfBuilding
Classes/FolderListControl.lua
1
1831
-- Path of Building -- -- Class: Folder List -- Folder list control. -- local ipairs = ipairs local t_insert = table.insert local FolderListClass = newClass("FolderListControl", "ListControl", function(self, anchor, x, y, width, height, subPath, onChange) self.ListControl(anchor, x, y, width, height, 16, false, false...
mit
imashiam/WORLD
plugins/admin.lua
381
7085
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(rec...
gpl-2.0
HeavensSword/darkstar
scripts/globals/items/grilled_lik.lua
3
1083
----------------------------------------- -- ID: 5648 -- Item: Grilled Lik -- Food Effect: 60 Mins, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Accuracy +2 -- Attack +8 ---------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
MiBShidobu/GM-Networking
examples/network_variables.doc.lua
1
1315
network.SetVariable("myvar", "hello!") -- Can set global networked variables server side... print(network.GetVariable("myvar")) -- And retrieve on both states! prints hello! network.SetVariableFilter("myvar", function (ply) -- Can also filter out players it updates to. if ply:Team() == TEAM_TRAITOR then -- Let's n...
mit
zero-ui/miniblink49
third_party/skia/tools/lua/count_reduced_clipstacks.lua
147
3116
stats = {} -- switch this to run on the automated scraper system newline = "\n" -- newline = "\\n" function sk_scrape_startcanvas(c, fileName) canvas = c oldstackstr = "<invalid>" end function sk_scrape_endcanvas(c, fileName) canvas = nil end function string.starts(String,Start) return string.sub(Str...
gpl-3.0
msva/LDoc
ldoc/builtin/table.lua
3
1860
--- manipulating Lua tables. -- @module table local table = {} --- -- Given an array where all elements are strings or numbers, returns -- `table[i]..sep..table[i+1] ... sep..table[j]`. The default value for -- `sep` is the empty string, the default for `i` is 1, and the default for -- `j` is the length of t...
mit
birdbrainswagtrain/microcosm
gamemodes/microcosm/entities/entities/micro_comp_comms.lua
2
7795
AddCSLuaFile() DEFINE_BASECLASS("micro_component") ENT.Base = "micro_component" local sound_message = Sound("HL1/fvox/beep.wav") local sound_send = Sound("weapons/pistol/pistol_empty.wav") local sound_important = Sound("ambient/alarms/klaxon1.wav") function ENT:Initialize() BaseClass.Initialize(self) self.text_li...
mit
dkorolev/tarantool
test/sophia/ddl.test.lua
2
1735
-- space create/drop space = box.schema.space.create('test', { engine = 'sophia' }) sophia_dir()[1] space:drop() sophia_schedule() sophia_dir()[1] -- index create/drop space = box.schema.space.create('test', { engine = 'sophia' }) index = space:create_index('primary') sophia_dir()[1] space:drop() sophia_schedule() ...
bsd-2-clause
HeavensSword/darkstar
scripts/zones/Lower_Jeuno/npcs/Naruru.lua
5
3492
----------------------------------- -- Area: Lower Jeuno -- NPC: Naruru -- Starts and Finishes Quests: Cook's Pride -- !pos -56 0.1 -138 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("s...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e6.lua
5
1368
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Dem -- !pos -243.723 -41.482 -289.937 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Hall_of_Transfe...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Abyssea-Grauberg/MobIDs.lua
4
2784
require("scripts/globals/keyitems"); -- [QM] = {'name', {list of required trades}, {list of required KIs}, nmID} -- uncomment lines as NMs are implemented NM_POPS = { -- [17818081] = { 'qm1', {3260,3266}, {}, 17818041}, -- Ironclad Sunderer -- [17818082] = { 'qm2',...
gpl-3.0
Openarl/PathOfBuilding
Classes/PassiveSpecListControl.lua
1
4077
-- Path of Building -- -- Class: Passive Spec List -- Passive spec list control. -- local t_insert = table.insert local t_remove = table.remove local m_max = math.max local PassiveSpecListClass = newClass("PassiveSpecListControl", "ListControl", function(self, anchor, x, y, width, height, treeTab) self.ListControl(an...
mit
HeavensSword/darkstar
scripts/zones/Port_Windurst/npcs/Alizabe.lua
5
1519
----------------------------------- -- Area: Port Windurst -- NPC: Alizabe -- Only sells when Windurst controls the Tavnazian Archipelago -- Only available to those with CoP Ch. 4.1 or higher -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] ...
gpl-3.0
HeavensSword/darkstar
scripts/globals/conquest.lua
3
49937
----------------------------------- -- -- Functions for Conquest system -- ----------------------------------- require("scripts/globals/common"); require("scripts/globals/missions"); ----------------------------------- -- convenience constants ----------------------------------- NATION_SANDORIA = 0; NATION_BASTO...
gpl-3.0
dkorolev/tarantool
test/app/msgpack.test.lua
10
1597
#!/usr/bin/env tarantool package.path = "lua/?.lua;"..package.path local tap = require('tap') local common = require('serializer_test') local function is_map(s) local b = string.byte(string.sub(s, 1, 1)) return b >= 0x80 and b <= 0x8f or b == 0xde or b == 0xdf end local function is_array(s) local b = st...
bsd-2-clause
pd2-linux/tina
feeds/luci/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
80
10048
--[[ 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 ht...
gpl-2.0
163140/minetest-mod-digilines
digilines/util.lua
5
1238
function digiline:addPosRule(p, r) return {x = p.x + r.x, y = p.y + r.y, z = p.z + r.z} end function digiline:cmpPos(p1, p2) return (p1.x == p2.x and p1.y == p2.y and p1.z == p2.z) end --Rules rotation Functions: function digiline:rotate_rules_right(rules) local nr={} for i, rule in ipairs(rules) do nr[i]={} ...
lgpl-3.0
HeavensSword/darkstar
scripts/zones/Cloister_of_Tremors/bcnms/trial_by_earth.lua
5
1845
----------------------------------- -- Area: Cloister of Tremors -- BCNM: Trial by Earth -- !pos -539 1 -493 209 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/que...
gpl-3.0
boundary/boundary-plugin-mysql
modules/outgoing_packet.lua
4
3816
--[[ Copyright 2012 Kengo Nakajima. 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 agreed...
apache-2.0
mahdib9/99
bot/nod32bot.lua
1
13369
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
HeavensSword/darkstar
scripts/zones/RuLude_Gardens/npcs/Nomad_Moogle.lua
5
5934
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Nomad Moogle -- Type: Adventurer's Assistant -- !pos 10.012 1.453 121.883 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20t.lua
5
2788
----------------------------------- -- Area: Alzadaal Undersea Ruins -- Door: Gilded Gateway (Arrapago) -- !pos -580 0 -159 72 ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scri...
gpl-3.0
vmercierfr/kong
kong/vendor/ssl.lua
22
7805
-- Copyright (C) 2014 Yichun Zhang local ffi = require "ffi" local base = require "resty.core.base" local C = ffi.C local ffi_str = ffi.string local getfenv = getfenv local errmsg = base.get_errmsg_ptr() local get_string_buf = base.get_string_buf local get_string_buf_size = base.get_string_buf_size local get_size_p...
mit
cogwerkz/gUI4
gUI4_Trade/elements/money.lua
1
4796
local addon,_ = ... local gUI4 = _G.GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true) if not gUI4 then return end local parent = gUI4:GetModule(addon, true) if not parent then return end local module = parent:NewModule("Money", "GP_AceEvent-3.0") local L = _G.GP_LibStub("GP_AceLocale-3.0"):GetLocale("...
mit
Deiz/naev
dat/missions/rehab_common.lua
14
4772
--[[ -- -- Rehabilitation Mission -- -- This mission allows you to remain neutral with a faction until you've done services for them. -- This file is used by the various faction missions, which must set the faction variable. -- --]] include "dat/scripts/numstring.lua" -- Localization, choosing a language if naev is t...
gpl-3.0
lu-zero/vlc
share/lua/playlist/youtube_homepage.lua
113
1897
--[[ Parse YouTube homepage and browse pages. Next step is to recode firefox in VLC ... using Lua of course ;) $Id$ Copyright © 2007 the VideoLAN team 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 F...
gpl-2.0