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
FFXIOrgins/FFXIOrgins
scripts/zones/Labyrinth_of_Onzozo/npcs/Treasure_Chest.lua
5
3495
----------------------------------- -- Area: Labyrinth of Onzozo -- NPC: Treasure Chest -- @zone 213 ----------------------------------- package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); requ...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Hall_of_Transference/npcs/_0e2.lua
10
1433
----------------------------------- -- Area: Hall of Transference -- NPC: Cermet Gate - Mea -- @pos 280 -86 -19 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zon...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/items/furniture_picture.lua
1
1209
local ITEM = {}; ITEM.ID = 59; ITEM.Reference = "furniture_picture"; ITEM.Name = "Small Picture"; ITEM.Description = "A masterpiece.\n\nLeft click to spawn as prop."; ITEM.Weight = 30; ITEM.Cost = 250; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/props_c17/Frame002a.mdl"...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/raiden_thrust.lua
6
1246
----------------------------------- -- Raiden Thrust -- Polearm weapon skill -- Skill Level: 70 -- Deals lightning elemental damage to enemy. Damage varies with TP. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: Lightning -- Modifiers: STR:3...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/lizard_egg.lua
35
1182
----------------------------------------- -- ID: 4362 -- Item: lizard_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 5 -- Magic 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
nehz/busted
busted/utils.lua
2
1264
local path = require 'pl.path' math.randomseed(os.time()) -- Do not use pl.path.normpath -- It is broken for paths with leading '../../' local function normpath(fpath) if type(fpath) ~= 'string' then error(fpath .. ' is not a string') end local sep = '/' if path.is_windows then sep = '\\' if fpath...
mit
sjznxd/luci-0.11-aa
libs/core/luasrc/util.lua
81
21858
--[[ LuCI - Utility library Description: Several common useful Lua functions License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
apache-2.0
MAXtgBOT/Telemax-TG
plugins/filterworld.lua
15
4162
local function save_filter(msg, name, value) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':filters' end if msg.to.type == 'user' then return 'فقط در گروه ممکن است' end if hash then redis:hset(hash, name, value) return "انجام شد" end end local function get_fil...
gpl-2.0
aosee1h1/AOSEE_2H2
libs/dateparser.lua
114
6213
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
Armin041/Tele_Dam01
bot/seedbot.lua
1
10195
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
pax2you4now/wesnoth
data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua
26
1557
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local function get_next_sheep(cfg) local sheep = AH.get_units_with_moves { side = wesnoth.current.side, { "and", cfg.filter_second }, { "filter_location", { { "filter", {...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/m&p_doner_kabob.lua
36
1132
----------------------------------------- -- ID: 5717 -- Item: M&P Doner Kabob -- Food Effect: 5Min, All Races ----------------------------------------- -- HP 5% -- MP 5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------...
gpl-3.0
JulianVolodia/awesome
lib/menubar/utils.lua
11
7630
--------------------------------------------------------------------------- --- Utility module for menubar -- -- @author Antonio Terceiro -- @copyright 2009, 2011-2012 Antonio Terceiro, Alexander Yakushev -- @release @AWESOME_VERSION@ -- @module menubar.utils ------------------------------------------------------------...
gpl-2.0
geektophe/blingbling
udisks_glue.lua
5
10051
--@author cedlemo local helpers = require("blingbling.helpers") local awful = require("awful") local naughty = require("naughty") local string = string local math = math local ipairs = ipairs local next = next local pairs = pairs local type = type local setmetatable = setmetatable local table = table local wibox = requ...
gpl-2.0
sajadaltaiee/Raobot
plugins/all.lua
16
4339
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
shahramam/seed
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
thiagok00/server
data/scripts/spells/support/levitate.lua
3
1462
local levitate = Spell:new("Levitate") levitate.words = "exani hur" levitate.vocation = "any" levitate.level = 9 levitate.mana = 20 levitate.effect = MAGIC_EFFECT_BLUE_BUBBLE function levitate:onBeginCast(event) local caster = event.caster local pos = caster:getPosition() if caster:getD...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Kazham/npcs/Toji_Mumosulah.lua
37
1558
----------------------------------- -- Area: Kazham -- NPC: Toji Mumosulah -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTr...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/loaf_of_pain_de_neige.lua
35
1203
----------------------------------------- -- ID: 4292 -- Item: loaf_of_pain_de_neige -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 18 -- Vitality 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
NORTTeam/N.O.R.T
plugins/anti_ads.lua
61
1032
local function run(msg) local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then if not is_momod(msg) then chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true) local msgads = 'ForbiddenAdText' ...
gpl-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/vgui/vehicle_paint.lua
1
1521
local PANEL = {}; function PANEL:Init ( ) self:SetTall(20); self.Button = vgui.Create('DButton', self); self.Button:SizeToContents(); self.Button:SetText('Paint'); self:SetSkin("ugperp") end function PANEL:PerformLayout ( ) self.Button:SetTall(self:GetTall()); self.Button:SetWide(self:GetWide() - self:Ge...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/kitron.lua
36
1151
----------------------------------------- -- ID: 4273 -- Item: Kitron -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -6 -- Intelligence 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --------...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/pipeworks/compat.lua
9
5269
-- this bit of code modifies the default chests and furnaces to be compatible -- with pipeworks. minetest.override_item("default:furnace", { tiles = { "default_furnace_top.png^pipeworks_tube_connection_stony.png", "default_furnace_bottom.png^pipeworks_tube_connection_stony.png", "default_furnace_side.png^pipewo...
unlicense
tullamods/OmniCC
OmniCC/settings/themes.lua
1
1400
-- Themes API -- In OmniCC, a theme is a set of settings that define how cooldowns look local _, Addon = ... function Addon:AddTheme(id, name) if type(id) ~= "string" then error('Usage: {theme} = OmniCC:AddTheme("id", ["name"])', 3) end local themes = self.db.profile.themes local theme = rawget(themes, id) i...
mit
tullamods/OmniCC
OmniCC/effects/alert.lua
1
1547
-- a finish effect that displays the cooldown at the center of the screen local AddonName, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(AddonName) local AlertFrame = CreateFrame("Frame", nil, UIParent) AlertFrame:SetPoint("CENTER") AlertFrame:SetSize(50, 50) AlertFrame:SetAlpha(0) AlertFrame:Hide() local ...
mit
Gael-de-Sailly/minetest-minetestforfun-server
mods/peace_areas/init.lua
5
1930
-- -- Peaceful areas -- Where hitting is impossible -- peace_areas = {areas = {}} function is_in_peace_area(player) local pos = player:getpos() if pos == nil then return false end for name, positions in pairs(peace_areas.areas) do local pos1 = positions["pos1"] local pos2 = positions["pos2"] local minp = { ...
unlicense
joshimoo/Algorithm-Implementations
Monty_Hall_Problem/Lua/Yonaba/monty_hall_test.lua
26
1603
-- Tests for monty_hall.lua local monty_hall = require 'monty_hall' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 en...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Lufaise_Meadows/mobs/Colorful_Leshy.lua
4
1646
----------------------------------- -- Area: Lufaise Meadows -- MOB: Colorful Leshy ----------------------------------- ----------------------------------- function onMobSpawn(mob) local Defoliate_Leshy = 16875763; GetMobByID(Defoliate_Leshy):setExtraVar(os.time() + math.random((43200), (86400))); en...
gpl-3.0
elyasgalikeshi/renjer
bot/seedbot.lua
1
8703
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
tenplus1/mobs_redo
spawner.lua
1
4412
-- intllib local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP .. "/intllib.lua") -- mob spawner local spawner_default = "mobs_animal:pumba 10 15 0 0" minetest.register_node("mobs:spawner", { tiles = {"mob_spawner.png"}, drawtype = "glasslike", paramtype = "light", walkable =...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters/npcs/Ness_Rugetomal.lua
6
1739
----------------------------------- -- Area: Windurst Waters -- NPC: Ness Rugetomal -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/harvest_festivals") require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Waters/Tex...
gpl-3.0
weatherton/BizHawkMarioKart64
MarioKart64_AutoTransmission.lua
1
52905
--This Lua script was developed for the BizHawk emulator, available at github.com/weatherton/BizHawkMarioKart64-- --Purpose: Partially automate the process of executing perfect maneuvers in Mario Kart 64------------------------ console.clear() function GetInputQueue() return bizstring.split(forms.gettext(InputQueu...
mit
daofeng2015/luci
protocols/luci-proto-ipip/luasrc/model/cbi/admin_network/proto_ipip.lua
18
1684
-- Copyright 2016 Roger Pueyo Centelles <roger.pueyo@guifi.net> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ipaddr, ttl, tos, df, mtu, tunlink peeraddr = section:taboption("general", Value, "peeraddr", translate("Remote IPv4 address or FQDN"), translate("The ...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Dynamis-Jeuno/bcnms/dynamis_jeuno.lua
3
1098
----------------------------------- -- Area: Dynamis Jeuno -- Name: Dynamis Jeuno ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function OnBcnmRegister(player,instance) SetServerVariable("[DynaJeuno]UniqueID",player:getDynamisUniqueID(1283)); SetServerVariable("[DynaJeu...
gpl-3.0
elt11bot/seed-sup
plugins/invite.lua
7
1036
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function run(msg, matches) -- User submitted a user name if matches[1] == "name" then user = matches[2] user = string.gsub(user," ","_") end -- ...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/bunch_of_pamamas.lua
36
2212
----------------------------------------- -- ID: 4468 -- Item: Bunch of Pamamas -- Food Effect: 30Min, All Races ----------------------------------------- -- Strength -3 -- Intelligence 1 -- Additional Effect with Opo-Opo Crown -- HP 50 -- MP 50 -- CHR 14 -- Additional Effect with Kinkobo or -- Primate Staff -- DELAY ...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bhaflau_Thickets/npcs/qm1.lua
15
1188
----------------------------------- -- Area: Bhaflau Thickets -- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2)) -- @pos 334 -10 184 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bhaflau_Thickets/TextIDs");...
gpl-3.0
xToken/CompMod
lua/CompMod/Weapons/Alien/Blink/shared.lua
1
3427
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Alien\Blink\shared.lua -- - Dragon local TriggerBlinkOutEffects = GetUpValue(Blink.SetEthereal, "TriggerBlinkOutEffects") local TriggerBlinkInEffects = GetUpValue(Blink.SetEthereal, "TriggerBlinkInEffe...
mit
Nitroteam/s
plugins/admin.lua
230
6382
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
daofeng2015/luci
applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua
36
2367
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" m = Map("qos", translate("Quality of Service"), translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " .. "can prioritize n...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/plate_of_shrimp_sushi.lua
35
1552
----------------------------------------- -- ID: 5691 -- Item: plate_of_shrimp_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Vitality 1 -- Defense 5 -- Accuracy % 11 -- Store TP 2 -- Triple Attack 1 ----------------------------------------- require("scripts/globals/sta...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters_[S]/npcs/Ampiro-Mapiro.lua
38
1053
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Ampiro-Mapiro -- Type: Standard NPC -- @zone: 94 -- @pos 131.380 -6.75 174.169 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n...
gpl-3.0
daofeng2015/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
1
39379
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local wa = require "luci.tools.webadmin" local nw = require "luci.model.network" local ut = require "luci.util" local nt = require "luci.sys".net local fs = require "nixio.fs" arg[1] = arg[1] or "" m = Map("wi...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Port_Jeuno/npcs/Gatita.lua
38
1027
----------------------------------- -- Area: Port Jeuno -- NPC: Gatita -- Type: Standard NPC -- @zone: 246 -- @pos -60.207 7.002 -59.143 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------...
gpl-3.0
jakezhaojb/ds-ga-1008-a2
models/sample.lua
2
1464
require 'nn' local vgg = nn.Sequential() -- building block local function ConvBNReLU(nInputPlane, nOutputPlane) vgg:add(nn.SpatialConvolution(nInputPlane, nOutputPlane, 3,3, 1,1, 1,1)) vgg:add(nn.SpatialBatchNormalization(nOutputPlane,1e-3)) vgg:add(nn.ReLU(true)) return vgg end -- Will use "ceil" MaxPooling...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Azima.lua
7
1870
----------------------------------- -- Area: Bastok Mines -- NPC: Azima -- Alchemy Adv. Synthesis Image Support -- @pos 123.5 2 1 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Mines/TextIDs...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/mobskills/Havoc_Spiral.lua
10
1098
--------------------------------------------- -- Havoc Spiral -- -- Description: Deals damage to players in an area of effect. Additional effect: Sleep -- Type: Physical -- 2-3 Shadows -- Range: Unknown -- Special weaponskill unique to Ark Angel MR. Deals ~100-300 damage. -----------------------------------------...
gpl-3.0
subzrk/BadRotations
System/Functions/Custom.lua
1
29129
-- Functions from coders for public use --[[ ]] --[[ ragnar ]] --[[ ...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua
9
1770
----------------------------------- -- Area: La_Theine Plateau -- NPC: Shattered Telepoint -- @pos 334 19 -60 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zone...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Arpevion_TK.lua
6
4754
----------------------------------- -- Area: Southern San d'Oria -- NPC: Arpevion, T.K. -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Supply Ru...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/mercanbaligi.lua
18
1261
----------------------------------------- -- ID: 5454 -- Item: Mercanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 4 -- Mind -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Dangruf_Wadi/TextIDs.lua
3
1102
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6537; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6540; -- Obtained: <item>. GIL_OBTAINED = 6541; -- Obtained <number> gil. KEYITEM_OBTAINED = 6543; -- Obtained...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/snow/src/falling_snow.lua
9
7026
--[[ --================= --====================================== LazyJ's Fork of Splizard's "Snow" Mod by LazyJ version: Umpteen and 7/5ths something or another. 2014_04_12 --====================================== --================= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ THE LIST OF CHANGES I'VE MADE ~~~~~~~~~~~~~~~~~~...
unlicense
xToken/NSL
lua/NSL/playerdata/client.lua
1
1240
-- Natural Selection League Plugin -- Source located at - https://github.com/xToken/NSL -- lua/NSL/playerdata/client.lua -- - Dragon function NSLGetPlayerInfoEntityForPlayer(clientId) for _, pie in ientitylist(Shared.GetEntitiesWithClassname("PlayerInfoEntity")) do if clientId == pie.clientId then retur...
mit
m2mselect/owrt
feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua
68
1959
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true codec_a_mu = module:option(Li...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/armor_break.lua
6
1635
----------------------------------- -- Armor Break -- Great Axe weapon skill -- Skill level: 100 -- Lowers enemy's defense. Duration of effect varies with TP. -- Lowers defense by as much as 25% if unresisted. -- Strong against: Antica, Bats, Cockatrice, Dhalmel, Lizards, Mandragora, Worms. -- Immune: Ahr...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/ionohelix.lua
4
1721
-------------------------------------- -- Spell: Ionohelix -- Deals lightning 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/glob...
gpl-3.0
pax2you4now/wesnoth
data/ai/micro_ais/cas/ca_zone_guardian.lua
26
5275
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "lua/location_set.lua" local function get_guardian(cfg) local filter = cfg.filter or { id = cfg.id } local guardian = AH.get_units_with_moves { side = wesnoth.current.side, { ...
gpl-2.0
mahdikord/kd
plugins/stats.lua
56
3988
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
msburgess3200/PERP
gamemodes/perp/entities/weapons/smoke_grenade/shared.lua
1
3645
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.PrintName = "SMOKE GRENADE" SWEP.Base = "weapon_cs_base" SWEP.Category = "CSS" SWEP.Weight = 5 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true SWEP.IconLetter = "Q" SWEP.Slot = 4 SWEP.SlotPos = 3 SWEP.ViewModel = "models/weapons/v_eq_...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/shining_blade.lua
6
1205
----------------------------------- -- Shining Blade -- Sword weapon skill -- Skill Level: 100 -- Deals light elemental damage to enemy. Damage varies with TP. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: Light -- Modifiers: STR:20% ; MND:20% -- 100%TP 200%TP 300%T...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/The_Sanctuary_of_ZiTah/npcs/Credaurion_RK.lua
8
3001
----------------------------------- -- Area: The Sanctuary of Zi'Tah -- NPC: Credaurion, R.K. -- Outpost Conquest Guards -- @pos -40.079 -0.642 -148.785 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/sv_items.lua
1
9322
function PLAYER:setItemSlot ( itemSlot, itemID, itemQuantity ) self.PlayerItems[itemSlot] = {} self.PlayerItems[itemSlot].ID = itemID; self.PlayerItems[itemSlot].Table = ITEM_DATABASE[itemID]; self.PlayerItems[itemSlot].Quantity = itemQuantity; end function PLAYER:setStorageSlot ( itemSlot, itemID, item...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/serving_of_bison_steak.lua
35
1776
----------------------------------------- -- ID: 5142 -- Item: serving_of_bison_steak -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 6 -- Agility 1 -- Intelligence -3 -- Attack % 18 -- Attack Cap 90 -- Ranged ATT % 18 -- Ranged ATT Cap 90 -- Lizard Killer 5 --------...
gpl-3.0
TW1STaL1CKY/pac3
lua/pac3/editor/client/panels/web_browser.lua
3
4647
local PANEL = {} PANEL.Base = "DFrame" PANEL.ClassName = "web_browser" function PANEL:Init() self:SetTitle("Web Browser") self:SetDeleteOnClose(false) self:ShowCloseButton(true) self:SetDraggable(true) self:SetSizable(true) local top = vgui.Create("EditablePanel", self) top:Dock(TOP) top:SetTall(24) self....
gpl-3.0
peval/Atlas
lib/proxy/tokenizer.lua
41
6215
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
sjznxd/lc-20130127
applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
76
2144
--[[ 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
Mogara/QSanguosha
lua/ai/guanxing-ai.lua
6
28253
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Balgas_Dais/npcs/Armoury_Crate.lua
36
1024
----------------------------------- -- Area: Balgas Dais -- NPC: Armoury Crate -- Balgas Dais Burning Cicrcle Armoury Crate ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/...
gpl-3.0
hacker44-h44/1104
bot/utils.lua
6
14964
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
bitemyapp/MemNN
MemN2N-lang-model/LinearNB.lua
20
2980
-- Copyright (c) 2015-present, 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. local LinearNB, p...
bsd-3-clause
Capster/Metro
lua/metro/ui/dcolorbutton.lua
2
2748
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DColorButton --]] local matGrid = Material( "gui/bg-lines.png", "nocull" ) local PANEL = {} AccessorFunc( PANEL, "m_bBorder", "DrawBorder", FORCE_...
apache-2.0
zhouxiaoxiaoxujian/skynet
service/snaxd.lua
29
2244
local skynet = require "skynet" local c = require "skynet.core" local snax_interface = require "snax.interface" local profile = require "skynet.profile" local snax = require "skynet.snax" local snax_name = tostring(...) local loaderpath = skynet.getenv"snax_loader" local loader = loaderpath and assert(dofile(loaderpat...
mit
SonarQubeCommunity/sonar-lua
lua-checks/src/test/resources/checks/lineLength.lua
1
1380
lo_Db.Command = lo_Db.Command .. [[ DECLARE @Van DATETIME; DECLARE @Tot DATETIME; SET @Van = dbo.fnSqlDateTime(]] .. lo_Filter.DatumVan .. [[); SET @Tot = DATEADD(MINUTE, 1439, dbo.fnSqlDateTime(]] .. lo_Filter. DatumTot .. [[) ); INSERT INTO cmpOverzichtPeriode ( Sp...
lgpl-3.0
shahabsaf1/DaLTon-bot-test2
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
punisherbot/test
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Lower_Jeuno/npcs/Harnek.lua
17
2365
----------------------------------- -- Area: Lower Jeuno -- NPC: Harnek -- Starts and Finishes Quest: The Tenshodo Showdown (finish) -- @zone 245 -- @pos 44 0 -19 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/West_Ronfaure/npcs/Ballie_RK.lua
8
2939
----------------------------------- -- Area: West Ronfaure -- NPC: Ballie, R.K. -- Type: Border Conquest Guards -- @pos -560.292 -0.961 -576.655 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest");...
gpl-3.0
togolwb/skynet
lualib/mysql.lua
16
15685
-- Copyright (C) 2012 Yichun Zhang (agentzh) -- Copyright (C) 2014 Chang Feng -- This file is modified version from https://github.com/openresty/lua-resty-mysql -- The license is under the BSD license. -- Modified by Cloud Wu (remove bit32 for lua 5.3) local socketchannel = require "socketchannel" local mysqlaux = req...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/quus.lua
17
1313
----------------------------------------- -- ID: 5793 -- Item: quus -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/plate_of_coeurl_sautee.lua
35
1762
----------------------------------------- -- ID: 4548 -- Item: plate_of_coeurl_sautee -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 5 -- Agility 1 -- Intelligence -2 -- Attack % 20 -- Attack Cap 75 -- Ranged ATT % 20 -- Ranged ATT Cap 75 -- Stun Resist 5 ----------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Davoi/npcs/_45d.lua
18
1498
----------------------------------- -- Area: Davoi -- NPC: Wall of Banishing -- Used In Quest: Whence Blows the Wind -- @pos 181 0.1 -218 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scrip...
gpl-3.0
TRIEXTEAM/TaylortTG
plugins/dl.lua
13
2345
local function run(msg, matches) if matches[1] == "dl" then local file = matches[2] if is_sudo(msg) then -- sudo only local receiver = get_receiver(msg) send_document(receiver, "./data/files/"..file, ok_cb, false) end end end return { patterns = { "^[!/](dl) (.*)$" }, run = run } ...
gpl-2.0
alicybery/unknownbot
plugins/bot_manager.lua
89
6427
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
NORTTeam/N.O.R.T
plugins/inpm.lua
59
3138
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
sjznxd/luci-0.11-aa
modules/niu/luasrc/controller/niu/traffic.lua
49
1218
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local...
apache-2.0
JulianVolodia/awesome
lib/awful/widget/taglist.lua
7
9355
--------------------------------------------------------------------------- --- Taglist widget module for awful -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008-2009 Julien Danjou -- @release @AWESOME_VERSION@ -- @classmod awful.widget.taglist ---------------------------------------------------...
gpl-2.0
m2mselect/owrt
feeds/luci/applications/luci-app-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
92
6917
-- wizard rewrite wip local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk") local mesh_network = ip.IPv4(uci:get_first(community, "community", "...
gpl-2.0
caidongyun/nginx-openresty-windows
lua-resty-dns-0.11/lib/resty/dns/resolver.lua
1
17483
-- Copyright (C) 2012 Zhang "agentzh" Yichun (章亦春) -- local socket = require "socket" local bit = require "bit" local udp = ngx.socket.udp local rand = math.random local char = string.char local byte = string.byte local strlen = string.len local find = string.find local gsub = string.gsub local substr = s...
bsd-2-clause
nmsmith22389/CandyUI
InterfaceMenu/CandyUI_InterfaceMenu.lua
2
17411
----------------------------------------------------------------------------------------------- -- Client Lua Script for CandyUI_InterfaceMenu -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- --DEVELOPER LICENSE -- CandyUI - Cop...
gpl-3.0
wectoreya/alahvaz.bot
plugins/dere.lua
2
2681
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ كتم الوسائط ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀...
gpl-3.0
devilrap978/devil_rap65
plugins/ar-textphoto.lua
16
1343
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ text photo: تحويل الصورة الى ملصق ▀▄ ▄▀ ▀▄...
gpl-2.0
daofeng2015/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua
68
1060
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("Interface Plugin Configuration"), translate( "The interface plugin collects traffic statistics on " .. "selected interfaces." ...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Temple_of_Uggalepih/npcs/_mf1.lua
9
1364
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Granite Door -- Notes: Door blocked by Temple Guardian -- @pos -62 0 -99 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
mehrpouya81/gamer1
plugins/ingroup.lua
202
31524
do local function check_member(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[tostring(msg.to.id)] = { ...
gpl-2.0
maximilianofaccone/puppy-siberian
root/.conky/.marks_ns.lua
1
13452
--============================================================================== -- multi_rings.lua -- -- author : SLK -- version : v2011011601 -- license : Distributed under the terms of GNU GPL version 2 or later -- --=====================================================================...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/The_Sanctuary_of_ZiTah/npcs/Limion_RK.lua
8
2996
----------------------------------- -- Area: The Sanctuary of Zi'Tah -- NPC: Limion, R.K. -- Border Conquest Guards -- @pos -252.454 -1.958 624.366 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ee.lua
19
3311
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #1 (E out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ---------------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua
7
2265
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Water -- Involved in Zilart Mission 7 -- @pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/global...
gpl-3.0
subzrk/BadRotations
System/UI/Elements/RotationDropdown.lua
4
2142
local DiesalGUI = LibStub("DiesalGUI-1.0") function br.ui:createRotationDropdown(parent, itemlist, tooltip) local newDropdown = DiesalGUI:Create('DropdownBR') local parent = parent local text = "Rotation" newDropdown:SetParent(parent.titleBar) newDropdown:SetPoint("TOPRIGHT", parent.closeButton, "...
gpl-3.0