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
FilthyPeasantDEV/PokeBot
BizHawk-1.11.6/Lua/NES/Faxandu.lua
7
2650
------------------------------ --Faxandu collision box viewer --Author: Pasky ------------------------------ local HP = true -- toggle to false to turn off hitpoint display on enemies function findbit(p) return 2 ^ (p - 1) end function hasbit(x, p) return x % (p + p) >= p end local function hex(val) val = str...
mit
woesdo/XY
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
Samanstar/Assasin
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
jiang42/Algorithm-Implementations
Rabin_Karp/Lua/Yonaba/rabin_karp.lua
26
1376
-- Rabin-Karp string searching algorithm implementation -- See: http://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_string_search_algorithm -- Note: This implementation is based on the Python implementation of Shivam Bansal -- See : https://github.com/kennyledet/Algorithm-Implementations/blob/master/Rabin_Karp/Python/shiv...
mit
ccxvii/mio
proxy.lua
1
4067
local table_unpack = table.unpack local table_insert = table.insert local meshlist = {} local lamplist = {} entities = {} actions = {} function playonce(skel, anim) local frame = 0 local n = anim_len(anim) while frame < n do skel:animate(anim, frame, 1) coroutine.yield() frame = frame + 1 end end mixer = ...
isc
actionless/awesome
tests/examples/awful/placement/closest_mouse.lua
5
2826
--DOC_GEN_OUTPUT --DOC_GEN_IMAGE --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local c = client.gen_fake {x = 20, y = 20, width= 280, height=200, screen =screen[1]} --DOC_HIDE local bw = c.border_width --DOC_HIDE -- Left --DOC_HIDE mouse.coords {x=100,y=100} --DOC_HIDE -- Move the mous...
gpl-2.0
nenau/naev
dat/factions/equip/zalek.lua
3
6476
-- Generic equipping routines, helper functions and outfit definitions. include("dat/factions/equip/generic.lua") --[[ -- @brief Does zalek pilot equipping -- -- @param p Pilot to equip --]] function equip( p ) -- Start with an empty ship p:rmOutfit("all") p:rmOutfit("cores") -- Get ship info local ...
gpl-3.0
hcorg/thrift
test/lua/test_basic_client.lua
30
5926
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may n...
apache-2.0
kidaa/FFXIOrgins
scripts/zones/Sealions_Den/mobs/Omega.lua
1
1240
----------------------------------- -- Area: Sealions Den -- NPC: Omega ----------------------------------- require("scripts/globals/titles"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) end; ----------------------------------- -- ...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/weaponskills/spirits_within.lua
1
1117
----------------------------------- -- Spirits Within -- Sword weapon skill -- Spirits Within Sword Weapon Skill -- TrolandAdded by Troland -- Skill Level: 175 -- Delivers an unavoidable attack. Damage varies with HP and TP. -- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillch...
gpl-3.0
diezombies/MCGC
MCGC/utility.lua
1
54503
Auxiliary = { } aux = Auxiliary function Auxiliary.Stringid(code, id) -- 计算数据库所存的字符串ID return code * 16 + id end function Auxiliary.Next(g) -- 返回(返回g中下一张卡片的)函数 local first = true return function() if first then first = false return g:GetFirst() else return g...
mit
BTAxis/naev
dat/missions/empire/longdistanceshipping/emp_longdistancecargo5.lua
2
2812
--[[ Fifth diplomatic mission to Sirius space that opens up the Empire long-distance cargo missions. Author: micahmumper ]]-- include "dat/scripts/numstring.lua" include "dat/scripts/jumpdist.lua" bar_desc = _("Lieutenant Czesc from the Empire Aramda Shipping Division is sitting at the bar.") misn_title = _(...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Metalworks/npcs/Vicious_Eye.lua
4
1064
----------------------------------- -- Area: Metalworks -- NPC: Vicious Eye -- Guild Merchant NPC: Blacksmithing Guild -- @zone: 237 -- @pos: -106.132 0.999 -28.757 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; require("scripts/zones/Metalworks/TextIDs"); -------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Davoi/npcs/Zantaviat.lua
19
2238
----------------------------------- -- Area: Davoi -- NPC: Zantaviat -- Involved in Mission: The Davoi Report -- @pos 215 0.1 -10 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/globa...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Windurst_Waters/npcs/Akkeke.lua
36
1418
----------------------------------- -- Area: Windurst Waters -- NPC: Akkeke -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 135 -6 165 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Temenos/mobs/Dark_Elemental.lua
2
1235
----------------------------------- -- Area: Temenos E T -- NPC: Dark Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Quicksand_Caves/npcs/HomePoint#1.lua
1
1654
----------------------------------- -- Area: Quicksand_Caves -- NPC: HomePoint#1 -- @pos -984 17 -289 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Quicksand_Caves/T...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Metalworks/npcs/Cloud_Walker.lua
2
1073
----------------------------------- -- Area: Metalworks -- NPC: Cloud Walker -- Type: Marriage NPC -- @zone: 237 -- @pos: 89, -20, -12 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); require("...
gpl-3.0
flyzjhz/openwrt-bb
feeds/routing/alfred/files/bat-hosts.lua
17
2889
#!/usr/bin/lua local type_id = 64 -- bat-hosts function get_hostname() local hostfile = io.open("/proc/sys/kernel/hostname", "r") local ret_string = hostfile:read() hostfile:close() return ret_string end function get_interfaces_names() local ret = {} for name in io.popen("ls -1 /sys/class/net/"):lines()...
gpl-2.0
Fatalerror66/ffxi-a
scripts/zones/Batallia_Downs/npcs/Stone_Monument.lua
4
1249
----------------------------------- -- Area: Batallia Downs -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" ----------------------------------- package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Batallia_Downs/TextID...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Norg/npcs/Jaucribaix.lua
4
9487
----------------------------------- -- Area: Norg -- NPC: Jaucribaix -- Starts and Finishes Quest: Forge Your Destiny, The Sacred Katana, Yomi Okuri, A Thief in Norg!? -- @pos 91 -7 -8 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- requi...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/weaponskills/trueflight.lua
2
4541
----------------------------------- -- Skill Level: N/A -- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Ranger) quest. -- Does not work with Flashy Shot. -- Does not work with Stealth Shot. --...
gpl-3.0
meshr-net/meshr_win32
usr/lib/lua/luci/model/cbi/siitwizard.lua
11
10095
--[[ 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...
apache-2.0
kidaa/FFXIOrgins
scripts/globals/abilities/addendum_black.lua
4
1051
----------------------------------- -- Ability: Addendum: Black ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbilityCheck(player,target,ability) if player...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/items/cup_of_chai_+1.lua
2
1153
----------------------------------------- -- ID: 5594 -- Item: cup_of_chai_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Vitality -3 -- Charisma 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Aht_Urhgan_Whitegate/npcs/Tehf_Kimasnahya.lua
4
2986
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Tehf Kimasnahya -- Type: Standard NPC -- @zone: 50 -- @pos: -89.897 -1 6.199 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = n...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/West_Ronfaure/npcs/Palcomondau.lua
35
12378
----------------------------------- -- Area: West Ronfaure -- NPC: Palcomondau -- Type: Patrol -- @pos -349.796 -45.345 344.733 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/pathfind"); ---------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Upper_Jeuno/npcs/Constance.lua
4
1754
----------------------------------- -- Area: Upper Jeuno -- NPC: Constance -- Involved in Quests: Save the Clock Tower -- @zone 244 -- @pos -48 0 4 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Temenos/mobs/Orichalcum_Quadav.lua
2
1618
----------------------------------- -- Area: Temenos -- NPC: Orichalcum Quadav ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -----------------------...
gpl-3.0
SlySven/Mudlet
src/mudlet-lua/lua/GUIUtils.lua
2
90896
---------------------------------------------------------------------------------- --- Mudlet GUI Utils ---------------------------------------------------------------------------------- --- The <i>gaugesTable table</i>. First we need to make this table which will be --- used later to store important data in. --- ---...
gpl-2.0
ceason/epgp-tfatf
libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua
30
7163
--[[----------------------------------------------------------------------------- EditBox Widget -------------------------------------------------------------------------------]] local Type, Version = "EditBox", 25 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or...
bsd-3-clause
Fatalerror66/ffxi-a
scripts/zones/Port_Jeuno/npcs/Moulloie.lua
5
1029
----------------------------------- -- Area: Port Jeuno -- NPC: Moulloie -- Type: Standard NPC -- @zone: 246 -- @pos: -77.724 7.003 59.044 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; --------------------...
gpl-3.0
actionless/awesome
lib/wibox/container/constraint.lua
1
5098
--------------------------------------------------------------------------- -- Restrict a widget size using one of multiple available strategies. -- --@DOC_wibox_container_defaults_constraint_EXAMPLE@ -- @author Lukáš Hrázký -- @copyright 2012 Lukáš Hrázký -- @containermod wibox.container.constraint -- @supermodule wib...
gpl-2.0
githubmereza/rezajack
bot/utils.lua
646
23489
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
kidaa/FFXIOrgins
scripts/zones/Davoi/npcs/qm1.lua
2
1365
----------------------------------- -- Area: Davoi -- NPC: ??? (qm1) -- Involved in Quest: To Cure a Cough -- @pos -115.830 -0.427 -184.289 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Ashene.lua
4
1977
----------------------------------- -- Area: Southern San d'Oria -- NPC: Ashene -- Standard Merchant NPC -- @zone 230 -- @pos 70 0 61 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("...
gpl-3.0
Puccio7/bot-telegram
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
apache-2.0
lzpfmh/MonaServer
FunctionalTests/www/FunctionalTests/LUATests/Serializers/main.lua
7
2010
local _dateTime = {__time=1412082917000} local _bytes = {__raw="\xFF\x00\x14"} local _array = {2.7,true,{__type="test",key="val"}} local _map = { map="map", __size=1 } setmetatable(_map,{__mode="v"}) local _mixed = { prop="prop", "elt1" } local _notmixed = { { prop="prop" }, "elt1" } local Object = { -- o...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Cape_Teriggan/npcs/Salimardi_RK.lua
2
2967
----------------------------------- -- Area: Cape Teriggan -- NPC: Bright Moon -- Outpost Conquest Guards -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require("...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/The_Eldieme_Necropolis/npcs/_5fd.lua
4
1062
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Shiva's Gate -- @pos 110 -34 -60 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); -----...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Northern_San_dOria/npcs/Chapal-Afal_WW.lua
2
5312
----------------------------------- -- Area: Northern Sand Oria -- NPC: Chapal-Afal, W.W. -- Type: Conquest NPC -- @zone 231 -- @pos -59.555, -2.000, 28.178 -- 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. ...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Western_Altepa_Desert/Zone.lua
1
2276
----------------------------------- -- -- Zone: Western_Altepa_Desert (125) -- ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; require("scripts/zones/Western_Altepa_Desert/TextIDs"); require("scripts/globals/icanheararainbow"); require("scripts/globals/weather"...
gpl-3.0
Inorizushi/DDR-EXTREME-JP-SM5
BGAnimations/ScreenEvaluationOni decorations/stats.lua
1
1765
local t= Def.ActorFrame{}; local xPosPlayer = { P1 = SCREEN_CENTER_X-228, P2 = SCREEN_CENTER_X+228 } for _, pn in pairs(GAMESTATE:GetEnabledPlayers()) do local pss = STATSMAN:GetCurStageStats():GetPlayerStageStats(pn) local function FindText(pss) return string.format("%02d",pss:GetSongsPassed()) end t[...
mit
Fatalerror66/ffxi-a
scripts/globals/items/marinara_pizza.lua
2
1691
----------------------------------------- -- ID: 5743 -- Item: marinara_pizza -- Food Effect: 3hours, All Races ----------------------------------------- -- Health Points 20 -- Attack +20% (cap 50 @ 250 base attack) -- Accuracy +10% (cap 40+ @ 400+ base accuracy) *Wiki doesnt know for sure, its uncorfirmed on h...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Katharina.lua
6
1054
----------------------------------- -- Area: Southern San d'Oria -- NPC: Katharina -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Southern_San_dO...
gpl-3.0
mys007/nn
FlattenTable.lua
18
3118
local FlattenTable, parent = torch.class('nn.FlattenTable', 'nn.Module') function FlattenTable:__init() parent.__init(self) self.output = {} self.input_map = {} self.gradInput = {} end -- Recursive function to flatten a table (output is a table) local function flatten(output, input) local input_map -- has...
bsd-3-clause
Fatalerror66/ffxi-a
scripts/zones/Port_Jeuno/npcs/Kindlix.lua
2
1446
----------------------------------- -- Area: Port Jeuno -- NPC: Kindlix -- Standard Merchant NPC -- @zone 246 -- @pos -18.82, 4, 23.302 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("...
gpl-3.0
nenau/naev
dat/scripts/jumpdist.lua
16
2247
--[[ -- @brief Fetches an array of systems from min to max jumps away from the given -- system sys. -- -- The following example gets a random Sirius M class planet between 1 to 6 jumps away. -- -- @code -- local planets = {} -- getsysatdistance( system.cur(), 1, 6, -- function(s) -- for i, v in ipair...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/spells/diaga_iii.lua
2
1811
----------------------------------------- -- Spell: Diaga III -- Lowers an enemy's defense and gradually deals light elemental damage. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); -----------------------------------...
gpl-3.0
njligames/Engine
cmake.in/ldoc.in/Node.lua
4
21588
---- -- @file Node ---- Brief description. -- <#Description#> -- @return <#return value description#> function Node:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:45 -- <#Description#> -- @param dataBuffer <#dataBuffer description#> -- @param btSerializer <#btSerial...
mit
kidaa/FFXIOrgins
scripts/globals/weaponskills/steel_cyclone.lua
4
1353
----------------------------------- -- Steel Cyclone -- Great Axe weapon skill -- Skill level: 240 -- Delivers a single-hit attack. Damage varies with TP. -- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/The_Shrine_of_RuAvitau/mobs/Seiryu.lua
2
1126
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Seiryu ----------------------------------- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function OnMobSpawn(mob) end...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Northern_San_dOria/npcs/Castilchat.lua
2
3230
----------------------------------- -- Area: Northern San d'Oria -- NPC: Castilchat -- Starts Quest: Trial Size Trial by Ice -- @pos -186 0 107 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/weaponskills/leaden_salute.lua
2
4366
----------------------------------- -- Leaden Salute -- Sword weapon skill -- Skill Level: N/A -- Delivers a Twofold attack. Damage varies with TP. Death Penalty: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Corsair) quest. -- Aligned with the Shadow Gorget, Soil Gorge...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/items/bowl_of_ocean_soup.lua
1
1824
----------------------------------------- -- ID: 4285 -- Item: bowl_of_ocean_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 5 -- MP 5 -- Dexterity 4 -- Mind -3 -- HP Recovered While Healing 9 -- Attack % 14 (cap 65) -- Ranged Attack % 14 (cap 65) ---------------------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/items/slice_of_giant_sheep_meat.lua
1
1298
----------------------------------------- -- ID: 4372 -- Item: slice_of_giant_sheep_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 2 -- Intelligence -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- --...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Al_Zahbi/npcs/Shihu-Danhu.lua
19
2097
----------------------------------- -- Area: Al Zahbi -- NPC: Shihu-Danhu -- Warp NPC -- @pos 62.768 -1.98 -51.299 48 ----------------------------------- require("scripts/globals/besieged"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) ...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/spells/silencega.lua
5
1206
----------------------------------------- -- Spell: Silence ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCheck(caster,target,spell)...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/abilities/wild_flourish.lua
2
1659
----------------------------------- -- Ability: Wild Flourish ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/weaponskills"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbility...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Windurst_Waters/npcs/Foi-Mui.lua
36
1418
----------------------------------- -- Area: Windurst Waters -- NPC: Foi-Mui -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 126 -6 162 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
Wedge009/wesnoth
data/ai/micro_ais/cas/ca_protect_unit_move.lua
6
3243
local LS = wesnoth.require "location_set" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local F = wesnoth.require "functional" local function get_protected_units(cfg) local units = {} for u in wml.child_range(cfg, "unit") do table.insert(units, A...
gpl-2.0
Adirelle/LibPlayerSpells-1.0
data/Warlock.lua
1
7277
--[[ LibPlayerSpells-1.0 - Additional information about player spells. (c) 2013-2014 Adirelle (adirelle@gmail.com) This file is part of LibPlayerSpells-1.0. LibPlayerSpells-1.0 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 Softwar...
gpl-3.0
mam1/Pcon-TNG
ESP8266/MQTT/barn-unheated/init.lua
1
2018
-- init.lua SSID="FrontierHSI" -- SSID PASSWORD="passfire" -- SSID password HOSTNAME="MQTT-DHT22-barn-unheated" TIMEOUT=100000 -- timeout to check the network status EXSENSOR1="tempumid.lua" -- module to run MQTTSERVER="192.168.254.220" -- mqtt broker address MQTTPORT="1883" -- mqtt broker port MQTTQOS="0" --...
mit
shahabsaf1/arabic
bot/bot.lua
3
6974
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 = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
smile-tmb/lua-mta-fairplay-roleplay
accounts/server/characters.lua
1
13165
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
mit
infernal1200/infernal
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
RockySeven3161/Unknown.
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
Fatalerror66/ffxi-a
scripts/zones/Bastok_Mines/npcs/Trail_Markings.lua
2
2779
----------------------------------- -- Area: Bastok Mines -- NPC: Trail Markings -- Dynamis-Bastok Enter -- @pos 99 1 -67 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scri...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Ship_bound_for_Selbina/npcs/Maera.lua
3
1239
----------------------------------- -- Area: Ship bound for Selbina -- NPC: Maera -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; require("scripts/zones/Ship_bound_for_Selbina/TextIDs"); -----...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/mobskills/Dominion_Slash.lua
10
1573
--------------------------------------------- -- Domionion Slash -- -- Description: Performs an area of effect slashing weaponskill. Additional effect: Silence -- Type: Physical -- 2-3 Shadows -- Range: Unknown radial -- One source also mentions that it "can dispel important buffs." ------------------------------...
gpl-3.0
cosmos53076/easy-quick-cocos2d-x
easy/ui/UITextList.lua
1
4002
-- -- Author: Jerry Lee -- Date: 2014-11-04 -- local UIHTMLTextLabel = import(".UIHTMLTextLabel") local UITextList = class("UITextList", cc.ui.UIListView) -- 构造函数 function UITextList:ctor(params) UITextList.super.ctor(self, params) if params then self.itemHistory_ = params.itemHistory or 0 self...
mit
kidaa/FFXIOrgins
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Nebiros.lua
2
1210
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Marquis Decarabia ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobE...
gpl-3.0
LipkeGu/OpenRA
mods/d2k/maps/harkonnen-03a/harkonnen03a-AI.lua
2
1707
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
oralius/gto
plugins/azan.lua
3
3158
--[[ # # # # ]] do function run_bash(str) local cmd = io.popen(str) local result = cmd:read('*all') return result end local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" function get_latlong(area) local api = base_api .. "/geocode/json?" local parameters = "a...
gpl-2.0
higankanshi/waifu2x
lib/iproc.lua
2
4495
local gm = require 'graphicsmagick' local image = require 'image' local iproc = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) function iproc.crop_mod4(src) local w = src:size(3) % 4 local h = src:size(2) % 4 return iproc.crop(src, 0, 0, src:size(3) - w, src:size(2) - h) end functi...
mit
Fatalerror66/ffxi-a
scripts/zones/Apollyon/mobs/Apollyon_Cleaner.lua
2
1585
----------------------------------- -- Area: Apollyon NE -- NPC: Apollyon Cleaner ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ------------------...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Bhaflau_Remnants/Zone.lua
19
1071
----------------------------------- -- -- Zone: Bhaflau_Remnants -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Bhaflau_Remnants/TextIDs"] = nil; require("scripts/zones/Bhaflau_Remnants/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Southern_San_dOria/npcs/Camereine.lua
2
1751
----------------------------------- -- Area: Southern San d'Oria -- NPC: Camereine -- Chocobo Vendor -- @zone 230 -- @pos -8 1 -100 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action --------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua
4
1045
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Chemioue -- Type: NPC Quest -- @zone: 26 -- @pos: 82.041 -34.964 67.636 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----...
gpl-3.0
kidaa/FFXIOrgins
scripts/globals/items/timbre_timbers_taco.lua
1
1507
----------------------------------------- -- ID: 5173 -- Item: timbre_timbers_taco -- Food Effect: 1hour, All Races ----------------------------------------- -- MP 20 -- Vitality -1 -- Agility 5 -- MP Recovered While Healing 3 -- Ranged Accuracy % 8 (cap 15) ----------------------------------------- require("scripts/g...
gpl-3.0
AntonioModer/shine
crt.lua
8
4295
--[[ The MIT License (MIT) Copyright (c) 2015 Daniel Oaks 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,...
mit
evil-morfar/RCLootCouncil2
Classes/Data/MLDB.lua
1
4895
--- MLDB.lua Class for mldb handling. -- @author Potdisc -- Create Date: 15/10/2020 --- @type RCLootCouncil local addon = select(2, ...) --- @class Data.MLDB local MLDB = addon.Init "Data.MLDB" local Comms = addon.Require "Services.Comms" local private = { ---@class MLDB mldb = {}, isBuilt = false } local...
lgpl-3.0
ChaosForge/doomrl
bin/core/item.lua
2
3418
table.merge( item, thing ) function item:is_damaged() if self.flags[ IF_NOREPAIR ] then return false end return self.durability < self.maxdurability end function item:fix( amount ) if amount == nil then self.durability = self.maxdurability return true else self.durability = math.min(self.maxdurability, self...
gpl-2.0
BTAxis/naev
dat/ai/tpl/merchant.lua
5
2278
include("dat/ai/include/basic.lua") -- Variables mem.enemy_close = 500 -- Distance enemy is too close for comfort -- Required control rate control_rate = 2 -- Required "control" function function control () task = ai.taskname() enemy = ai.getenemy() -- Runaway if enemy is near if task ~= "runaway" a...
gpl-3.0
frutjus/OpenRA
mods/ra/maps/soviet-04b/main.lua
15
4003
RunInitialActivities = function() Harvester.FindResources() Helper.Destroy() IdlingUnits() Trigger.AfterDelay(DateTime.Seconds(1), function() BringPatrol1() Trigger.AfterDelay(DateTime.Seconds(5), function() BringPatrol2() end) BuildBase() end) Utils.Do(Map.NamedActors, function(actor) if actor.Own...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Sodragamm.lua
38
1086
----------------------------------- -- Area: Bastok Mines -- NPC: Sodragamm -- Type: Item Deliverer -- @zone: 234 -- @pos -24.741 -1 -64.944 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scrip...
gpl-3.0
Rinnegatamante/Sunshell
LUA/modules/camera.lua
1
3137
-- Set private "Camera" mode mode = "Camera" -- Internal module settings update_bottom_screen = true ui_enabled = false screenshots = false SetBottomRefresh(false) SetTopRefresh(false) Camera.init(TOP_SCREEN, OUTER_CAM, PHOTO_MODE_NORMAL, false) local scene = OUTER_CAM local photo_mode = PHOTO_MODE_NORMAL local resolu...
gpl-3.0
dhiaayachi/dynx
resty/router/redis_kv_cache.lua
1
3390
local _M = {} local mt = { __index = _M } local setmetatable = setmetatable local cjson = require("cjson") local MINIMUM_TTL = 5 local DEFAULT_PREFIX = "resty_route:" local client = nil local function log(log_level, ...) ngx.log(log_level, "router: " .. cjson.encode({...})) end function _M.new(self, index, cl) ...
apache-2.0
ceason/epgp-tfatf
libs/LibJSON-1.0/LibStub/LibStub.lua
184
1367
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI...
bsd-3-clause
Fatalerror66/ffxi-a
scripts/globals/items/plate_of_patlican_salata_+1.lua
2
1163
----------------------------------------- -- ID: 5583 -- Item: plate_of_patlican_salata_+1 -- Food Effect: 4Hrs, All Races ----------------------------------------- -- Agility 4 -- Vitality -1 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Temple_of_Uggalepih/npcs/_mf8.lua
2
1438
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Granite Door -- East Granite Door in Manipulator Room (opens with Prelate Key) -- @pos -11 -8 -99 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Port_San_dOria/npcs/Gallijaux.lua
2
3246
----------------------------------- -- Area: Port San d'Oria -- NPC: Gallijaux -- Starts The Rivalry -- @zone: 232 -- @pos: -14 -2 -45 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_d...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/weaponskills/freezebite.lua
6
1231
----------------------------------- -- Freezebite -- Great Sword weapon skill -- Skill Level: 100 -- Delivers an ice elemental attack. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:20% --...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Spire_of_Holla/npcs/_0h3.lua
8
1257
----------------------------------- -- Area: Spire_of_Holla -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Holla/TextIDs"); -------------------...
gpl-3.0
TeleMafia/mafia
plugins/PL (3).lua
2
97567
-----my_name_is_ehsan*#@mafia_boy -----@ENERGY_TEAM FOR UPDATE -----لطفا پیام بالا رو پاک نکنید local function modadd(msg) local hash = "gp_lang:"..msg.chat_id_ local lang = redis:get(hash) if not is_admin(msg) then if not lang then return '✖️_You are not bot admin_✖️' else return '✖️شما مدیر رب...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Southern_San_dOria_[S]/npcs/Geltpix.lua
36
1165
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Geltpix -- @zone 80 -- @pos 154 -2 103 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); -------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/zones/Port_Jeuno/npcs/Home_Point.lua
8
1184
----------------------------------- -- Area: Port Jeuno -- NPC: Home Point ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- onTrade Action --...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Rouva.lua
2
1646
----------------------------------- -- Area: Southern San d'Oria -- NPC: Rouva -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -17 2 10 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
Yhgenomics/premake-core
src/base/rule.lua
14
3133
--- -- base/rule.lua -- Defines rule sets for generated custom rule files. -- Copyright (c) 2014 Jason Perkins and the Premake project --- local p = premake p.rule = p.api.container("rule", p.global) local rule = p.rule --- -- Create a new rule container instance. --- function rule.new(name) local self = p....
bsd-3-clause
kidaa/FFXIOrgins
scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm1.lua
15
1195
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Ob(ZNM T1)) -- @pos 542 0 -129 72 ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Alzadaal_Undersea_Ruins/TextID...
gpl-3.0