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
woshihuo12/UnityHello
UnityHello/LuaEncoder/luajit_ios/x86_64/jit/dis_ppc.lua
78
20318
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
mit
Cloudef/darkstar
scripts/zones/Selbina/npcs/Elfriede.lua
5
1657
----------------------------------- -- Area: Selbina -- NPC: Elfriede -- Involved In Quest: The Tenshodo Showdown -- !pos 61 -15 10 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scrip...
gpl-3.0
Rondoozle/MasterSight
plugins/ingroup.lua
10
39219
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
Cloudef/darkstar
scripts/zones/Halvung/mobs/Gurfurlur_the_Menacing.lua
4
1768
----------------------------------- -- Area: Halvung -- MOB: Gurfurlur the Menacing ----------------------------------- require("scripts/globals/titles"); ----------------------------------- function onMobSpawn(mob) end; function onMobEngaged(mob,target) local gurfurlur = mob:getID() SpawnMob(gurfurlur+1):u...
gpl-3.0
TeleDALAD/test2
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
nyasukun/openstackcraft
world/Plugins/Core/worldlimiter.lua
5
1163
function OnPlayerMoving( Player ) local LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName()] -- The world probably was created by an external plugin. Lets load the settings. if not LimitWorldWidth then LoadWorldSettings(Player:GetWorld()) LimitWorldWidth = WorldsWorldLimit[Player:GetWorld():GetName(...
apache-2.0
rigeirani/telegram-bot-supergroups
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
Cloudef/darkstar
scripts/globals/mobskills/polar_blast.lua
2
1417
--------------------------------------------- -- Polar Blast -- -- Description: Deals Ice damage to enemies within a fan-shaped area. Additional effect: Paralyze -- Type: Breath -- Ignores Shadows -- Range: Unknown Cone --------------------------------------------- require("scripts/globals/settings"); require("sc...
gpl-3.0
kissg1988/packages
net/prosody/files/prosody.cfg.lua
147
7257
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at http://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running: luac -p prosody.cfg.lua -- If there are any errors, it will let you know...
gpl-2.0
Cloudef/darkstar
scripts/globals/spells/jubaku_ni.lua
2
1906
----------------------------------------- -- Spell: Jubaku: Ni -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT. -- taken from paralyze ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"...
gpl-3.0
Cloudef/darkstar
scripts/zones/Port_San_dOria/npcs/Gulemont.lua
5
2133
----------------------------------- -- Area: Port San d'Oria -- NPC: Gulemont -- Type: Quest Giver -- @zone 232 -- !pos -69 -5 -38 -- -- Starts and Finishes Quest: The Dismayed Customer ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------...
gpl-3.0
Max-pbot/Max1
bot/seedbot.lua
1
34068
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
douwekiela/torch7
init.lua
24
3702
-- We are using paths.require to appease mkl -- Make this work with LuaJIT in Lua 5.2 compatibility mode, which -- renames string.gfind (already deprecated in 5.1) if not string.gfind then string.gfind = string.gmatch end if not table.unpack then table.unpack = unpack end require "paths" paths.require "libto...
bsd-3-clause
jsfdez/premake-core
tests/actions/vstudio/vc2010/test_vectorextensions.lua
9
1688
--- -- tests/actions/vstudio/vc2010/test_vectorextensions.lua -- Validate handling of vectorextensions() in VS 2010 C/C++ projects. -- -- Created 26 Mar 2015 by Jason Perkins -- Copyright (c) 2015 Jason Perkins and the Premake project --- local suite = test.declare("vs2010_vc_vectorextensions") local m = premake.vst...
bsd-3-clause
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/skins/blizzard/objectivetracker.lua
1
8736
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function SkinProgressBar(line) local progressBar = line.ProgressBar local bar = progressBar.Bar local labe...
mit
mrgatesjunior/external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
fgprodigal/RayUI
Interface/AddOns/RayUI/libs/oUF/elements/questindicator.lua
10
2357
--[[ # Element: Quest Indicator Handles the visibility and updating of an indicator based on the unit's involvement in a quest. ## Widget QuestIndicator - Any UI widget. ## Notes A default texture will be applied if the widget is a Texture and doesn't have a texture or a color set. ## Examples -- Position an...
mit
Tarfand-pro/TabChi
lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-3.0
LeNitrous/sukufes-icon-builder
lib/loveframes/objects/internal/scrollable/scrollbody.lua
17
6652
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.scrollable.s...
mit
rfernand/telegram-bot
plugins/youtube.lua
1
2973
-- function GetRandomElement(a) -- return a[math.random(#a)] -- end -- -- function send_youtube_data(data, receiver) -- --local title = data.title -- --local description = data.description -- --local uploader = data.uploader -- --local text = title..' ('..uploader..')\n'..description -- local messages = ...
gpl-2.0
DARKRPISSHITFIXTHISUPDATE/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/voicemute/sv_init.lua
4
2536
local function MuteVoice(ply, cmd, args) if not args[1] then return false end local targets = FAdmin.FindPlayer(args[1]) if not targets or #targets == 1 and not IsValid(targets[1]) then FAdmin.Messages.SendMessage(ply, 1, "Player not found") return false end local time = tonumber(a...
mit
focusworld/focus_aspp
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
MinetestForFun/server-minetestforfun
minetestforfun_game/mods/farming/tomato.lua
12
2097
--[[ Textures edited from: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1288375-food-plus-mod-more-food-than-you-can-imagine-v2-9) ]] local S = farming.intllib -- tomato minetest.register_craftitem("farming:tomato", { description = S("Tomato"), inventory_image = "farming_tomato.png", ...
unlicense
DARKRPISSHITFIXTHISUPDATE/DarkRP
entities/weapons/gmod_tool/stools/shareprops.lua
6
1634
TOOL.Category = "Falco Prop Protection" TOOL.Name = "Share props" TOOL.Command = nil TOOL.ConfigName = "" function TOOL:RightClick(trace) if not IsValid(trace.Entity) or CLIENT then return true end local ply = self:GetOwner() trace.Entity.SharePhysgun1 = nil trace.Entit...
mit
Cloudef/darkstar
scripts/zones/Lower_Jeuno/npcs/Muckvix.lua
5
1183
----------------------------------- -- Area: Lower Jeuno -- NPC: Muckvix -- Involved in Mission: Magicite -- @zone 245 -- !pos -26.824 3.601 -137.082 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); r...
gpl-3.0
Howaner/MCServer
Server/Plugins/APIDump/Hooks/OnKilled.lua
38
1204
return { HOOK_KILLED = { CalledWhen = "A player or a mob died.", DefaultFnName = "OnKilled", Desc = [[ This hook is called whenever player or a mob dies. It can be used to change the death message. ]], Params = { { Name = "Victim", Type = "{{cEntity}}", Notes = "The player or mob that died" }, ...
apache-2.0
kushalsingh007/RIOT
dist/tools/wireshark_dissector/riot.lua
21
2130
-- RIOT native support for Wireshark -- A Lua implementation for dissection of RIOT native packets in wireshark -- @Version: 0.0.1 -- @Author: Martine Lenders -- @E-Mail: mlenders@inf.fu-berlin.de do --Protocol name "RIOT" local p_riot = Proto("RIOT", "RIOT native packet") --Protocol Fields local f_le...
lgpl-2.1
Cloudef/darkstar
scripts/zones/Palborough_Mines/Zone.lua
7
1037
----------------------------------- -- -- Zone: Palborough_Mines (143) -- ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Palborough_Mines/TextIDs"); require("scripts/zones/Palborough_Mines/MobIDs"); require("...
gpl-3.0
Cloudef/darkstar
scripts/globals/logging.lua
9
6436
------------------------------------------------- -- Logging functions -- Info from: -- http://wiki.ffxiclopedia.org/wiki/Logging ------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ------------------------------------------------- -- npcid ...
gpl-3.0
Cloudef/darkstar
scripts/globals/bluemagic.lua
1
14978
require("scripts/globals/status") require("scripts/globals/magic") BLUE_SKILL = 43; -- The type of spell. SPELLTYPE_PHYSICAL = 0; SPELLTYPE_MAGICAL = 1; SPELLTYPE_RANGED = 2; SPELLTYPE_BREATH = 3; SPELLTYPE_DRAIN = 4; SPELLTYPE_SPECIAL = 5; -- The TP modifier TPMOD_NONE = 0; TPMOD_CRITICAL = 1; TPMOD_DAMAGE = 2; TPM...
gpl-3.0
Cloudef/darkstar
scripts/globals/mobskills/antimatter.lua
35
1177
--------------------------------------------------- -- Antimatter -- -- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi. -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globa...
gpl-3.0
Cloudef/darkstar
scripts/zones/Metalworks/npcs/Lexun-Marixun_WW.lua
5
2525
----------------------------------- -- Area: Metalworks -- NPC: Lexun-Maxirun, W.W. -- !pos 28 -16 28 237 -- 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 Su...
gpl-3.0
keidax/awesome
lib/awful/widget/layoutbox.lua
5
1776
--------------------------------------------------------------------------- --- Layoutbox widget. -- -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @release @AWESOME_VERSION@ -- @classmod awful.widget.layoutbox --------------------------------------------------------------------...
gpl-2.0
bernard24/RIS
people_learning/Hung.lua
1
1342
require 'dfs' function Hung(B) local M = B:clone() M = M-M:min() local n = (#M)[1] local L = M:clone():fill(0) n_rows = (#M)[1] n_columns = (#M)[2] M:add(-torch.repeatTensor(torch.min(M,2), 1,n_columns)) M:add(-torch.repeatTensor(torch.min(M,1), n_rows,1)) while true do local mask_M = torch.eq(M, torch.z...
mit
Cloudef/darkstar
scripts/zones/Garlaige_Citadel/npcs/_5k9.lua
5
1063
----------------------------------- -- Area: Garlaige Citadel -- NPC: Banishing Gate #2 -- !pos -100 -2.949 81 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Garlaige_Citadel/TextIDs"); -----------------...
gpl-3.0
Cloudef/darkstar
scripts/zones/South_Gustaberg/TextIDs.lua
5
1335
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6408; -- Obtained: <item>. GIL_OBTAINED = 6409; -- Obtained <number> gil. KEYITEM_OBTAINED = 6411; -- Obtained...
gpl-3.0
jimon/danmaku
main.lua
1
1068
-- danmaku sandbox require("strict") --local pprint = require("pprint"); pprint.setup {show_all = true, wrap_array = true} local engine = require("bulletengine") local render = require("render") local player = require("player") local npc = require("npc") local dialog = require("dialog") function love.load(args) ren...
mit
Cloudef/darkstar
scripts/globals/spells/paralyze_ii.lua
2
2494
----------------------------------------- -- Spell: Paralyze II -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Paralyze II value per point is '1' This is a co...
gpl-3.0
Cloudef/darkstar
scripts/zones/West_Ronfaure/npcs/Ballie_RK.lua
2
2986
----------------------------------- -- 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
zzamboni/hammerspoon
extensions/layout/init.lua
1
11231
--- === hs.layout === --- --- Window layout manager --- --- This extension allows you to trigger window placement/sizing to a number of windows at once local layout = {} local geometry = require("hs.geometry") local fnutils = require("hs.fnutils") local screen = require("hs.screen") local window = require("hs.window")...
mit
Hazbelll/HB-PlayerController
lua/hb_playercontroller/cl_init.lua
1
20277
-- Instructs the Client using data received from the Server. net.Receive("hb_playercontrollernetwork", function(len) local ply = LocalPlayer() if not IsValid(ply) then return end local tbl = net.ReadTable() if tbl.arg == 1 then notification.AddLegacy(tbl.message, tbl.type, 5) surface.PlaySound(tbl.sou...
gpl-3.0
nimishzynga/lstm
main.lua
8
9102
-- ---- Copyright (c) 2014, Facebook, Inc. ---- All rights reserved. ---- ---- This source code is licensed under the Apache 2 license found in the ---- LICENSE file in the root directory of this source tree. ---- local ok,cunn = pcall(require, 'fbcunn') if not ok then ok,cunn = pcall(require,'cunn') if ok...
apache-2.0
Cloudef/darkstar
scripts/globals/spells/hojo_ni.lua
2
1440
----------------------------------------- -- Spell: Hojo:Ni -- Description: Inflicts Slow on target. -- Edited from slow.lua ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function ...
gpl-3.0
we20/wez
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
Cloudef/darkstar
scripts/zones/Windurst_Woods/npcs/Terude-Harude.lua
2
1576
----------------------------------- -- Area: Windurst Woods -- NPC: Terude-Harude -- Type: Clothcraft Adv. Image Support -- !pos -32.350 -2.679 -116.450 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sta...
gpl-3.0
Cloudef/darkstar
scripts/zones/Nyzul_Isle/instances/path_of_darkness.lua
7
2300
----------------------------------- -- -- TOAU-42: Path of Darkness -- ----------------------------------- require("scripts/globals/instance") require("scripts/globals/keyitems"); require("scripts/zones/Nyzul_Isle/IDs"); ----------------------------------- function afterInstanceRegister(player) local instance = pl...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/serving_of_newt_flambe.lua
2
1220
----------------------------------------- -- ID: 4329 -- Item: serving_of_newt_flambe -- Food Effect: 240Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Attack % 18 -- Attack Cap 65 -- Virus Resist 4 -- Curse Resist 4 ----------------------------------------- require("scripts/globa...
gpl-3.0
Cloudef/darkstar
scripts/zones/Qufim_Island/npcs/Tsonga-Hoponga_WW.lua
2
2995
----------------------------------- -- Area: Qufim Island -- NPC: Tsonga-Hoponga, W.W. -- Type: Outpost Conquest Guards -- !pos -245.366 -20.344 299.502 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conqu...
gpl-3.0
letoram/durden
durden/atypes/wayland-toplevel.lua
1
13120
-- -- most of these functions come mapped via the waybridge- handler as subseg -- requests, though the same setup and mapping need to work via reset-adopt -- as well, hence the separation. -- -- the big work item here is resize related, most of durden is written as -- forced independent resizes, while wayland only real...
bsd-3-clause
nevercast/cuberite
MCServer/Plugins/APIDump/Hooks/OnPostCrafting.lua
36
1584
return { HOOK_POST_CRAFTING = { CalledWhen = "After the built-in recipes are checked and a recipe was found.", DefaultFnName = "OnPostCrafting", -- also used as pagename Desc = [[ This hook is called when a {{cPlayer|player}} changes contents of their {{cCraftingGrid|crafting grid}}, after the recipe has...
apache-2.0
Cloudef/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Porter_Moogle.lua
7
1177
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Porter Moogle -- Type: Storage Moogle -- !pos ? ? ? 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextI...
gpl-3.0
MinetestForFun/server-minetestforfun
mods/tsm_pyramids/nodes.lua
5
2171
local img = {"eye", "men", "sun"} for i=1,3 do minetest.register_node("tsm_pyramids:deco_stone"..i, { description = "Sandstone with "..img[i], tiles = {"default_sandstone.png^tsm_pyramids_"..img[i]..".png"}, is_ground_content = false, groups = {unbreakable=1}, sounds = default.node_sound_stone_defaults(), ...
unlicense
Owlies/server
lualib/http/httpc.lua
13
3184
local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local dns = require "dns" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read = socket.readfunc(fd) local wr...
mit
Goodzilam/Goodzila-bot_v1.4
plugins/add_bot.lua
189
1492
--[[ Bot can join into a group by replying a message contain an invite link or by typing !add [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local function...
gpl-2.0
Cloudef/darkstar
scripts/zones/Northern_San_dOria/npcs/Chasalvige.lua
5
1386
----------------------------------- -- Area: Northern San d'Oria -- NPC: Chasalvige -- Type: Standard Info NPC -- Involved in Mission: The Road Forks -- Involved in Mission: Promathia Mission 5 - Three Paths -- @zone 231 -- !pos 96.432 -0.520 134.046 -- ----------------------------------- require("scripts/globals/m...
gpl-3.0
DARKRPISSHITFIXTHISUPDATE/DarkRP
gamemode/modules/base/sh_util.lua
4
8420
-----------------------------------------------------------------------------[[ /*--------------------------------------------------------------------------- Utility functions ---------------------------------------------------------------------------*/ ------------------------------------------------------------------...
mit
keidax/awesome
spec/wibox/widget/textbox_spec.lua
3
3968
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- -- Grml... _G.awesome = { xrdb_get_value = function(a, b) if a ~= "" then error() end i...
gpl-2.0
Cloudef/darkstar
scripts/zones/Port_Bastok/npcs/Ominous_Cloud.lua
5
3004
----------------------------------- -- Area: Port Bastok -- NPC: Ominous Cloud -- Type: Ninjutsu Toolbag Maker -- !pos 146.962 7.499 -63.316 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Bastok/TextIDs...
gpl-3.0
Cloudef/darkstar
scripts/globals/weaponskills/blast_arrow.lua
10
1384
----------------------------------- -- Blast Arrow -- Archery weapon skill -- Skill level: 200 -- Delivers a melee-distance ranged attack. params.accuracy varies with TP. -- Aligned with the Snow Gorget & Light Gorget. -- Aligned with the Snow Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:25% -- 100%T...
gpl-3.0
Cloudef/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Scythe.lua
7
1144
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Animated Scythe ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() == 3) then...
gpl-3.0
wangfakang/wrk
deps/luajit/src/jit/dump.lua
84
19509
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
apache-2.0
Cloudef/darkstar
scripts/zones/Windurst_Walls/npcs/Zayhi-Bauhi.lua
5
4973
----------------------------------- -- Area: Windurst Walls -- Location: X:-91 Y:-9 Z:109 -- NPC: Zayhi-Bauhi -- Working 100% -- Starts and Finishes Quest: To Bee or Not to Bee? ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
Cloudef/darkstar
scripts/zones/Port_Bastok/npcs/Galvin.lua
5
1140
----------------------------------- -- Area: Port Bastok -- NPC: Galvin -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/zone...
gpl-3.0
Cloudef/darkstar
scripts/globals/weaponskills/dulling_arrow.lua
10
1377
----------------------------------- -- Dulling Arrow -- Archery weapon skill -- Skill level: 80 -- Lowers enemy's INT. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:25% -- 100%TP 200...
gpl-3.0
vvavva/vva
bot/utils.lua
473
24167
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
telesparta/Spartacus_TG
bot/utils.lua
473
24167
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
NEWTGBOT/NEWTGBOT
tg/tdcli.lua
2
71566
-- Main Bot Framework local M = {} local function dl_cb(arg, data) end local extra = nil M.setFall = function(new_cb, new_extra) if type(new_cb) == 'function' then dl_cb = new_cb end if new_extra ~= nil then extra = new_extra end end -- There are chat_id, group_id, and channel_id local function getChatId(id) ...
agpl-3.0
fhirschmann/vohttp
util.lua
1
1547
--------------- -- ## HTTP utility functions. -- -- [Github Page](https://github.com/fhirschmann/vohttp) -- -- @author Fabian Hirschmann <fabian@hirschmann.email> -- @copyright 2013 -- @license MIT/X11 vohttp.util = {} --- Escapes a string for transmission over the HTTP protocol. -- @param s the string to escape -- @...
mit
Cloudef/darkstar
scripts/globals/items/cone_of_seraphs_kiss.lua
2
1144
----------------------------------------- -- ID: 5556 -- Item: cone_of_seraphs_kiss -- Food Effect: 1Hr, All Races ----------------------------------------- -- HP 15 -- MP % 16 (cap 85) -- MP Recovered While Healing 2 ----------------------------------------- require("scripts/globals/status"); -------------------------...
gpl-3.0
MinetestForFun/server-minetestforfun
mods/watershed/nodes.lua
3
2131
minetest.register_alias("watershed:appleleaf", "default:leaves") minetest.register_alias("watershed:appling", "default:sapling") minetest.register_alias("watershed:acaciatree", "moretrees:acacia_trunk") minetest.register_alias("watershed:acacialeaf", "moretrees:acacia_leaves") minetest.register_alias("watershed:acacial...
unlicense
Cloudef/darkstar
scripts/globals/items/yagrush.lua
2
4200
----------------------------------------- -- ID: 18993 -- Item: Yagrush ----------------------------------------- require("scripts/globals/msg"); require("scripts/globals/status"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPONS...
gpl-3.0
Cloudef/darkstar
scripts/globals/mobskills/chains_of_envy.lua
2
1326
--------------------------------------------- -- Chains of Envy -- --------------------------------------------- package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil; --------------------------------------------- require("scripts/zones/Empyreal_Paradox/TextIDs"); require("scripts/globals/monstertpmoves"); req...
gpl-3.0
bestofkeeperbot/keeper
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
Cloudef/darkstar
scripts/globals/items/black_curry_bun_+1.lua
2
1802
----------------------------------------- -- ID: 5764 -- Item: black_curry_bun+1 -- Food Effect: 60 min, All Races ----------------------------------------- -- TODO: Group effects -- Dexterity +4 -- Vitality +6 -- Intelligence +3 -- Mind +1 -- Accuracy +7 -- Ranged Accuracy +7 -- Evasion +7 -- Defense +25% (cap 200) --...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/knights_minne.lua
2
1500
----------------------------------------- -- Spell: Knight's Minne I -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return...
gpl-3.0
Ali-2h/hossein
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
nevercast/cuberite
MCServer/webadmin/template.lua
9
5603
-- Use a table for fast concatenation of strings local SiteContent = {} function Output(String) table.insert(SiteContent, String) end function GetTableSize(Table) local Size = 0 for key,value in pairs(Table) do Size = Size + 1 end return Size end function GetDefaultPage() local PM = cRoot:Get():GetPlu...
apache-2.0
zzamboni/hammerspoon
extensions/doc/hsdocs/init.lua
2
30753
--- === hs.doc.hsdocs === --- --- Manage the internal documentation web server. --- --- This module provides functions for managing the Hammerspoon built-in documentation web server. Currently, this is the same documentation available in the Dash docset for Hammerspoon, but does not require third party software for v...
mit
mehrpouya81/iranspammer
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
Shayan123456/shayan1234566
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
focusworld/focus_aspp
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
ahosein243243/uzzbot
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
rigeirani/telegram-bot-supergroups
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
Cloudef/darkstar
scripts/mixins/abyssea_nm.lua
2
2992
-- Abyssea NM mixin (for non-force popped NMs) -- Customization: require("scripts/globals/mixins") require("scripts/globals/abyssea") g_mixins = g_mixins or {} g_mixins.abyssea_nm = function(mob) mob:addListener("ENGAGE", "ABYSSEA_WEAKNESS_SET", function(mob) mob:setLocalVar("abyssea_magic_weak", getNewY...
gpl-3.0
MinetestForFun/server-minetestforfun
mods/mesecons/mesecons/presets.lua
13
1245
mesecon.rules = {} mesecon.state = {} mesecon.rules.default = {{x=0, y=0, z=-1}, {x=1, y=0, z=0}, {x=-1, y=0, z=0}, {x=0, y=0, z=1}, {x=1, y=1, z=0}, {x=1, y=-1, z=0}, {x=-1, y=1, z=0}, {x=-1, y=-1, z=0}, {x=0, y=1, z=1}, {x=0, y=-1, z=1}, {x=0, y=1, z=-1}, {x=0, y=-1, z=-1}} mesecon.rules...
unlicense
vrxfile/embox-trik
platform/ti816x_net_filter/templates/x86_test/rootfs/server/cgi.lua
12
2851
local Cgi = {} -- Return a urlencoded copy of Str. For example, -- -- "Here & there + 97% of other places" -- is encoded as -- -- "Here%20%26%20there%20%2B%2097%25%20of%20other%20places" function Cgi.Encode(Str) return string.gsub(Str, '%W', function(Str) return string.format('%%%02X', string.byte(Str)) end ) end -- Re...
bsd-2-clause
romonzaman/newfies-dialer
lua/test/database_test.lua
4
3195
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2015 Star2Billing S.L. -- --...
mpl-2.0
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/skins/blizzard/macro.lua
1
2952
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function LoadSkin() MacroFrame:StripTextures() MacroPopupFrame:StripTextures() MacroPopupScrollFrame:StripTextures(...
mit
letoram/durden
durden/tools/modelviewer.lua
1
11719
-- -- Quick and dirty model viewing support. -- The format used here is rather nasty, and merely kept -- as a legacy curiosity until something more standardized -- will be integrated around 0.7 -- -- use durden_modelwnd(name) to grab/load a model, map controls, -- event handlers etc. -- -- use durden_model_list() to ge...
bsd-3-clause
ahosein243243/uzzbot
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
Cloudef/darkstar
scripts/globals/items/fried_popoto_+1.lua
2
1313
----------------------------------------- -- ID: 6273 -- Item: fried_popoto_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- HP +35 -- VIT +3 -- Fire resistance +21 -- DEF +21% (cap 150) -- Subtle Blow +9 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
Cloudef/darkstar
scripts/zones/Mhaura/npcs/Porter_Moogle.lua
7
1148
----------------------------------- -- Area: Mhaura -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 249 -- !pos TODO ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globa...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/refresh_ii.lua
2
1106
----------------------------------------- -- Spell: Refresh II -- Gradually restores target party member's MP -- Composure increases duration 3x ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCasting...
gpl-3.0
m13790115/evil
plugins/stats.lua
866
4001
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
telesparta/Spartacus_TG
plugins/stats.lua
866
4001
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
Cloudef/darkstar
scripts/globals/items/piece_of_akamochi_+1.lua
2
2378
----------------------------------------- -- ID: 6261 -- Item: akamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 17% Cap: 54 (Pet & Master) Pet Cap: 81 -- Accuracy + 11% Cap: 54 (Pet & Master) Pet Cap: 81 ---------...
gpl-3.0
rlk/electro
old/trainer/trainer.lua
1
13461
track_host = "10.0.0.51" --track_host = "192.168.0.1" track_port = 10000 movie_port = 2827 modifier = false recording = false waiting = false scale = 1 ellipse_w = 50 * 2 ellipse_h = 64 * 2 ellipse_d = 0 ------------------------------------------------------------------------------- function dump(sock, s, h...
gpl-2.0
MinetestForFun/server-minetestforfun
minetestforfun_game/mods/farming/blueberry.lua
12
1857
local S = farming.intllib -- blueberries minetest.register_craftitem("farming:blueberries", { description = S("Blueberries"), inventory_image = "farming_blueberries.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1") end,...
unlicense
Cloudef/darkstar
scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua
5
1396
----------------------------------- -- Area: Bastok Mines -- NPC: Proud Beard -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Mines/TextIDs"); requ...
gpl-3.0
keidax/awesome
lib/wibox/layout/mirror.lua
1
3428
--------------------------------------------------------------------------- -- @author dodo -- @copyright 2012 dodo -- @release @AWESOME_VERSION@ -- @classmod wibox.layout.mirror --------------------------------------------------------------------------- local type = type local error = error local pairs = pairs local ...
gpl-2.0