Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLUAlert Additional Features #2314

Open
wants to merge 1,481 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1481 commits
Select commit Hold shift + click to select a range
e012339
Slips lib update
KenshiDRK Feb 16, 2022
979d8dc
Merge pull request #2153 from KenshiDRK/Slips
z16 Feb 16, 2022
c636840
Update validate.lua
Sechs Feb 16, 2022
66d14c3
Update validate.lua
Sechs Feb 16, 2022
21c1d10
Update validate.lua
Sechs Feb 16, 2022
a29b8bf
Merge pull request #2155 from Sechs/patch-2
z16 Feb 16, 2022
91f90cd
[Battlemod] Fix for aoe ws skillchains
KenshiDRK Feb 16, 2022
c52809a
GearSwap: Minor adjustments to bag validation
z16 Feb 16, 2022
2415fb1
Merge pull request #2156 from KenshiDRK/battlemod
z16 Feb 16, 2022
a0246d3
Gearswap Validate syntax fix
RubenatorX Feb 16, 2022
ddd3094
Merge pull request #2157 from RubenatorX/patch-34
zetaepyon Feb 16, 2022
55673a1
Merge pull request #2158 from Windower/dev
Chiaia Feb 17, 2022
2c943c5
equipviewer validate bags fix
RubenatorX Feb 18, 2022
9c32e28
Merge pull request #2160 from RubenatorX/patch-35
z16 Feb 18, 2022
47852d5
Wardrobe Fix
RubenatorX Feb 18, 2022
c8af50e
Merge pull request #2161 from RubenatorX/patch-36
z16 Feb 18, 2022
6e4091d
Merge pull request #2162 from Windower/dev
RubenatorX Feb 18, 2022
db10bd4
Gearswap Wardrobe inventories fix fix
RubenatorX Feb 18, 2022
46931e5
Merge pull request #2163 from Windower/Gearswap-wardrobes-fix
RubenatorX Feb 18, 2022
8d5cce8
Merge pull request #2164 from Windower/dev
RubenatorX Feb 18, 2022
869a24d
Gearswap Motes increase macro books
RubenatorX Feb 19, 2022
9e3068c
Merge pull request #2165 from Windower/gsmacrobooks
RubenatorX Feb 19, 2022
0388add
Merge pull request #2166 from Windower/dev
Chiaia Feb 19, 2022
fd3f236
Merge branch 'dev' of https://github.com/Windower/Lua into dev
Chiaia Mar 10, 2022
8e6c09f
March 9th, 2022 Update
Chiaia Mar 10, 2022
19ac226
update digger messages for 2022-03
Byrth Mar 10, 2022
d90d47e
Merge pull request #2168 from Windower/update-digger-messages
Byrth Mar 10, 2022
b570de7
Merge pull request #2069 from trv6/pointwatch
z16 Mar 11, 2022
ff3fcef
Update checkparam.lua
charitwo Mar 11, 2022
6d3069c
Merge pull request #2169 from charitwo/patch-1
z16 Mar 11, 2022
9a85235
[pointwatch] support Master Levels (specifically)
posimagi Mar 13, 2022
6df1e3a
[pointwatch] add support for character level
posimagi Mar 13, 2022
9d299c8
[pointwatch] support character levels
posimagi Mar 13, 2022
866d22e
Merge branch 'pointwatch-character-level' into pointwatch-master-level
posimagi Mar 13, 2022
258f601
update version number
posimagi Mar 22, 2022
54621f5
fix syntax
posimagi Mar 22, 2022
cb7ac27
Merge pull request #2170 from posimagi/pointwatch-master-level
z16 Mar 24, 2022
5fa3a66
[pointwatch] support job names and abbreviations
posimagi Mar 28, 2022
bd55b5e
dynamically select client language
posimagi Mar 28, 2022
fb95dca
Merge pull request #2172 from posimagi/pointwatch-job-names-abbrs
Byrth Mar 28, 2022
7b6c3b4
Update pointwatch.lua
z16 Mar 28, 2022
dbd9910
add yell and linkshell2 support
arshesney Mar 30, 2022
d7a74e7
remove spurious comment
arshesney Mar 30, 2022
8197ae7
support for split linkshell and linkshell2
arshesney Mar 30, 2022
6baba27
Merge pull request #2173 from arshesney/blist-update
z16 Mar 30, 2022
88cbd13
Fix weird interaction with gearswap
arshesney Mar 31, 2022
328a7cf
Merge pull request #2174 from arshesney/blist-fix
Byrth Mar 31, 2022
3d3fa8a
Add luasec library
alphaONE2 Apr 2, 2022
156480d
Update digger messages for 2022-04 version
Byrth Apr 4, 2022
04e73b0
Merge pull request #2175 from Windower/update-digger-202204
Byrth Apr 4, 2022
1841b88
Update boxdestroyer for the 2022-04 version
Byrth Apr 4, 2022
d4c8b78
Merge pull request #2176 from Windower/update-boxdestroyer-202204
Byrth Apr 4, 2022
d5bd587
Merge pull request #2177 from Windower/dev
Byrth Apr 4, 2022
4be435f
[Slips lib] April 2022 Update
KenshiDRK Apr 5, 2022
e105ac2
Merge pull request #2178 from KenshiDRK/Slips
z16 Apr 5, 2022
8802c82
Support bug fix
Atsuke Apr 9, 2022
84842de
Allow for start/end pattern matching
RubenatorX Apr 9, 2022
8cec1c7
fix print/whitespace
RubenatorX Apr 9, 2022
be64bb8
Merge pull request #2179 from Atsuke/dev
z16 Apr 14, 2022
02ea43e
Merge pull request #2074 from RubenatorX/patch-10
z16 Apr 14, 2022
55cdd65
Merge pull request #2180 from Windower/RubenatorX-patch-1
z16 Apr 14, 2022
690fe5b
Pointwatch Fix broken Time Remaining
RubenatorX Apr 26, 2022
c59629c
Make 0xDF and 0xE2 also update the alliance structure
Byrth May 2, 2022
b512bf6
Merge pull request #2183 from Windower/gearswap-expand-party-packet-p…
Byrth May 2, 2022
ccd2183
Update setbgm.lua
funkworkz May 10, 2022
7db08a4
Merge pull request #2185 from funkworkz/patch-4
z16 May 10, 2022
0729269
Trusts - Re-Add Cornelia
RubenatorX May 10, 2022
4c7e68d
Merge pull request #2186 from Windower/dev
z16 May 11, 2022
dc6ae40
Add vana time offset
Byrth May 13, 2022
7c99345
Merge pull request #2188 from Windower/adjust-duration-for-local-cloc…
Byrth May 13, 2022
0d564b4
[gearswap] Fix duration calculation in packet_parsing.lua
WinterSolstice8 May 13, 2022
b62a7c8
Merge pull request #2189 from WinterSolstice8/statuseffect_timestamp_fix
RubenatorX May 13, 2022
2989eae
[Slips lib] Update for May 2022
KenshiDRK May 16, 2022
0bfead2
Merge pull request #2190 from KenshiDRK/Slips
z16 May 17, 2022
c902c76
get_player() sometimes returns nil when logging out
Byrth May 23, 2022
c776dbf
remove message printing from pointwatch
Byrth May 23, 2022
5130c96
[gametime] fix //gt route
StarlitGhost May 24, 2022
10e0956
[gametime] bump version, add copyright date 2022
StarlitGhost May 24, 2022
2c76be6
Merge pull request #2192 from StarlitGhost/patch-1
Nifim May 24, 2022
a54a5c5
Fix for player party member out-of-zone
vessellaj May 29, 2022
c00b155
Merge pull request #2193 from vessellaj/patch-1
z16 May 29, 2022
2de084d
DST time offset fix
RubenatorX Jun 2, 2022
7e39d8e
Fields: Refactored buff time calculation
z16 Jun 2, 2022
a36eadd
Fields: Incremented year count for buff time calculation
z16 Jun 2, 2022
64ce745
Merge pull request #2194 from Windower/dev
RubenatorX Jun 3, 2022
15de262
Add items for June 2022 Update
Byrth Jun 12, 2022
3c094c0
Merge pull request #2195 from Windower/update-slips-2022-06
Byrth Jun 12, 2022
fe39145
Update Yush.lua
Algelius Jun 15, 2022
6bc9be2
Update Yush.lua
Algelius Jun 15, 2022
2762180
Update Yush.lua
Algelius Jun 15, 2022
8434022
Merge pull request #2196 from Algelius/dev
z16 Jun 15, 2022
efe0f62
Added VerboseKeys setting.
Jun 20, 2022
b240a1e
Wording update.
Jun 20, 2022
7bce71c
Removed table identifier.
Jun 20, 2022
fa2139c
parse_binds no longer reassigns key.
Jun 20, 2022
4d657ab
output_text_table renamed, made list, and output text updated.
Jun 20, 2022
2aeb06c
Merge pull request #2197 from vessellaj/dev
z16 Jun 21, 2022
18413aa
[tables] add table.pack
RubenatorX Jun 26, 2022
0491d6d
[Gearswap][Motes-Mappings] Ltng. Threnody
RubenatorX Jun 26, 2022
c3d811d
[fields lib] fix wrong 0x0E8 packet direction
KenshiDRK Jun 28, 2022
dfb29f0
Merge pull request #2201 from KenshiDRK/field-lib
Byrth Jun 29, 2022
6e4caf6
Packets/Fields: Updated outgoing 0x061 length
z16 Jul 3, 2022
3e7fb71
[Slips lib] Update for June 2022
KenshiDRK Jul 8, 2022
dd07413
Merge pull request #2205 from KenshiDRK/Slips
z16 Jul 8, 2022
4a42b90
Adds the texts:draggable() function
Roland-J Jul 8, 2022
6fb40d4
Merge pull request #2207 from Roland-J/texts.draggable
z16 Jul 8, 2022
019e608
Update fields.lua
eLiidyr Jul 9, 2022
1b70a01
Update fields.lua
eLiidyr Jul 9, 2022
dce6f4d
Merge pull request #2208 from eLiidyr/dev
z16 Jul 10, 2022
52680ee
[Slips lib] Update for July 2022
KenshiDRK Jul 11, 2022
3daf9dd
Merge pull request #2211 from KenshiDRK/Slips
z16 Jul 11, 2022
e2a0ae2
[dialog.lua] Fix occasional missing \ at the end
RubenatorX Aug 5, 2022
d9f3a41
Merge pull request #2217 from Windower/dev
Byrth Aug 5, 2022
c4e95e8
[slips lib] August 10, 2022 FFXI Update
KenshiDRK Aug 10, 2022
c688b30
Merge pull request #2219 from KenshiDRK/Slips
z16 Aug 10, 2022
ed1d6e1
Update setbgm.lua
funkworkz Aug 11, 2022
198a654
Merge pull request #2220 from funkworkz/patch-5
z16 Aug 11, 2022
6573db3
Update EmpyPopTracker to 2.7.0
xurion Aug 20, 2022
ef25a4b
Merge pull request #2221 from xurion/dev
z16 Aug 20, 2022
b30897f
Remove strings method
trv6 Aug 21, 2022
254d34f
Merge pull request #2222 from trv6/patch-2
z16 Aug 21, 2022
9131345
Update fields.lua: Update 0x0E0 (Linkshell Equip)
Imisnew2 Aug 29, 2022
542acb4
Merge pull request #2223 from Imisnew2/patch-1
z16 Aug 29, 2022
099f32f
Set label back to 'Inventory Slot'
Nifim Aug 30, 2022
b100b7a
Added new currencies.
lili-ffxi Aug 30, 2022
7977ca3
Merge pull request #2224 from lili-ffxi/patch-3
Nifim Aug 30, 2022
08b44b8
Merge pull request #2226 from Windower/dev
Chiaia Sep 8, 2022
97e9203
Preemptive for Sept 2022 Update
Chiaia Sep 9, 2022
32e943c
Amini Bragues +2 23296 Added
Chiaia Sep 9, 2022
c002be7
digger messages updates
Byrth Sep 12, 2022
a61a3be
boxdestroyer message updates
Byrth Sep 12, 2022
173c5a1
Merge pull request #2227 from Windower/sept-2022-messages-update
Byrth Sep 12, 2022
ceebbd1
Merge pull request #2228 from Windower/dev
Chiaia Sep 12, 2022
b3b3327
Sept 11th, 2022 Update
Chiaia Sep 12, 2022
3a34762
Merge pull request #2229 from Windower/dev
Chiaia Sep 12, 2022
77a054d
Fixes + Slip 22 added items.
Chiaia Sep 12, 2022
0c02e15
Merge pull request #2230 from Windower/dev
Chiaia Sep 12, 2022
7d056c2
Slip 29 Support
Chiaia Sep 14, 2022
fedb525
Merge pull request #2231 from Windower/dev
Chiaia Sep 14, 2022
41eb479
Add Blueblade Fell
Byrth Oct 11, 2022
96dd347
Merge pull request #2235 from Windower/update-slips-2022-10
Byrth Oct 11, 2022
f7394f5
Merge pull request #2236 from Windower/dev
Byrth Oct 11, 2022
c5984dc
Update setbgm.lua
funkworkz Oct 11, 2022
3c94fd5
[shortcuts] Pass valid commands through if target and command is valid
WinterSolstice8 Oct 14, 2022
36df4b7
Create linuxfix.lua
zetaepyon Oct 30, 2022
ae2a26c
Merge pull request #2237 from funkworkz/patch-6
Chiaia Nov 3, 2022
dbd4c2b
Slip 30
Chiaia Nov 10, 2022
7a6bf1a
Merge pull request #2240 from Windower/dev
Chiaia Nov 10, 2022
4fed9b2
Merge pull request #2238 from WinterSolstice8/fix_exact_commands_with…
Byrth Nov 13, 2022
ccb67ac
Update setbgm.lua
funkworkz Nov 18, 2022
6006c6e
Merge pull request #2242 from funkworkz/patch-7
z16 Nov 18, 2022
a1dde86
Allow multiple 'text' children in a single XML tag.
bsb002-flash-tester Jul 28, 2022
89a560f
Merge pull request #2216 from Imisnew2/imisnew-config-multiple-text-c…
Nifim Dec 2, 2022
4b611d2
Slip 30 Support
Chiaia Dec 2, 2022
5c09784
Merge pull request #2248 from Windower/dev
Chiaia Dec 2, 2022
2b08be6
Revert "[shortcuts] Pass valid commands through if target and command…
bsb002-flash-tester Dec 2, 2022
fa66cc0
Merge pull request #2249 from Imisnew2/revert-shortcuts-change
RubenatorX Dec 2, 2022
176a4c0
Merge pull request #2250 from Windower/dev
RubenatorX Dec 2, 2022
d1dc68c
revert breaking [config] changes
RubenatorX Dec 2, 2022
adfc1f6
revert breaking [config] change -- but for real this time
RubenatorX Dec 2, 2022
943acee
Merge pull request #2251 from Windower/dev
RubenatorX Dec 2, 2022
d05a692
Missing space fixed
Chiaia Dec 10, 2022
94b5039
Merge pull request #2255 from Windower/dev
Chiaia Dec 10, 2022
61c1db4
Boxdestroyer update
Byrth Dec 12, 2022
fa09cdf
Merge pull request #2256 from Windower/update-boxdestroyer-2022-12
Byrth Dec 12, 2022
3c83a08
Merge pull request #2257 from Windower/dev
Chiaia Dec 12, 2022
15bf559
update slips for 2022-12
Byrth Dec 15, 2022
dee51f7
Merge pull request #2258 from Windower/2022-12-slips
Byrth Dec 15, 2022
8b87c8c
Merge pull request #2259 from Windower/dev
Byrth Dec 15, 2022
052d19c
Add queue library
Byrth Jan 7, 2023
78d50e7
Batch buff_details and add for party members
Byrth Jan 7, 2023
d14a40d
Fix bug in move_spell_target()
Byrth Jan 7, 2023
22cbc86
add disable check to check_spell() for gear spells
Byrth Jan 7, 2023
c384750
I just deleted dead code
Byrth Jan 7, 2023
d7f61c1
un-disable buff_refresh events
Byrth Jan 7, 2023
76ed5a3
add comment
Byrth Jan 7, 2023
84cc545
Merge pull request #2265 from Windower/gearswap-cpu-no-longer-overheats
Byrth Jan 7, 2023
f9738e4
Make send no longer error when logged out
Byrth Jan 12, 2023
9d92a56
Merge pull request #2266 from Windower/fix-send-bug
Byrth Jan 12, 2023
586871f
[craft] Upgraded create_recipes.py to python3 and made it robust enou…
posimagi Jan 19, 2023
d7b1a95
Merge pull request #2267 from posimagi/craft-python3
Byrth Jan 19, 2023
85ef3ed
[craft] Move multi-recipes (those that use Bundling Twine, Spindle, e…
posimagi Dec 19, 2022
ff9f951
[craft] generate new recipes.lua
posimagi Jan 19, 2023
d7256a9
[craft] report quantity of items crafted
posimagi Dec 19, 2022
cf92362
[Slips lib] Update for new items
KenshiDRK Jan 24, 2023
0630cd7
[Battlemod] Antidedupliction fix
KenshiDRK Jan 31, 2023
4714e56
Fix for unsimplified Resist! messages
KenshiDRK Feb 1, 2023
7a31275
Update 0x03C to have starting index field.
bsb002-flash-tester Feb 4, 2023
467957a
Update slips for the 2023-02 update
Byrth Feb 10, 2023
96c78a5
Add queue library
Byrth Jan 7, 2023
b0ebde6
Batch buff_details and add for party members
Byrth Jan 7, 2023
24206d1
Fix bug in move_spell_target()
Byrth Jan 7, 2023
ddd8f50
add disable check to check_spell() for gear spells
Byrth Jan 7, 2023
618e6f4
I just deleted dead code
Byrth Jan 7, 2023
9e1f29f
un-disable buff_refresh events
Byrth Jan 7, 2023
0cbfcd3
add comment
Byrth Jan 7, 2023
f9ab033
Make send no longer error when logged out
Byrth Jan 12, 2023
9facaf0
[craft] Upgraded create_recipes.py to python3 and made it robust enou…
posimagi Jan 19, 2023
532339b
[craft] Move multi-recipes (those that use Bundling Twine, Spindle, e…
posimagi Dec 19, 2022
7fd02cf
[craft] generate new recipes.lua
posimagi Jan 19, 2023
40101f2
[craft] report quantity of items crafted
posimagi Dec 19, 2022
78ab4ad
[Slips lib] Update for new items
KenshiDRK Jan 24, 2023
bf77ef7
Update 0x03C to have starting index field.
bsb002-flash-tester Feb 4, 2023
e3660a9
Update slips for the 2023-02 update
Byrth Feb 10, 2023
546c4db
Fix Lightningday spelling
lili-ffxi Feb 19, 2023
fa70845
Merge pull request #2276 from lili-ffxi/patch-4
Nifim Feb 19, 2023
2b46b32
Update fields.lua
lili-ffxi Mar 7, 2023
87c700f
Merge pull request #2279 from lili-ffxi/patch-5
z16 Mar 8, 2023
d97a154
an unfathomably wondrous contribution
Byrth Mar 8, 2023
b4de011
[Slips lib] Adding new item
KenshiDRK Mar 14, 2023
86c0663
Update user_functions.lua
Byrth Apr 10, 2023
bcb27e9
Update README.md
LordTreyBennett Apr 11, 2023
c76922f
Remove XML option for //gs export
Byrth Apr 15, 2023
4c84b4a
Update setbgm.lua
funkworkz May 9, 2023
287acb2
Merge pull request #2294 from funkworkz/patch-8
Nifim May 9, 2023
be48b03
[Slips lib] Adding new items
KenshiDRK May 11, 2023
33d72d3
Merge pull request #2283 from KenshiDRK/Slips
z16 May 12, 2023
5a8fa71
Update Mote-Utility.lua
DrakeFS May 14, 2023
fe07507
Merge pull request #2295 from DrakeFS/dev
z16 May 14, 2023
c7401d1
Merge pull request #2292 from Windower/gs-export-remove-xml
z16 May 17, 2023
621aaf0
GearSwap: Added minify feature to export options
z16 May 18, 2023
2b47c18
Fixing some statuses
KenshiDRK Jun 8, 2023
ba3f675
Merge pull request #2272 from KenshiDRK/battlemod
z16 Jun 8, 2023
3788ad4
Update slips.lua Poison Axe (+1) -- guess
RubenatorX Jun 12, 2023
18ed35d
[packets] fields.lua Zone Line Packet discoveries
RubenatorX Jun 14, 2023
748cde4
Update helper_functions.lua
maxom1310 Jun 14, 2023
798358d
Update helper_functions.lua
maxom1310 Jun 14, 2023
c435fc4
Merge pull request #2296 from maxom1310/patch-1
RubenatorX Jun 14, 2023
f54479e
Update gametime.lua to resolve issue with loading on Lightningday
terrawheat Jun 22, 2023
003baa0
Merge pull request #2298 from terrawheat/patch-1
z16 Jun 23, 2023
30030a6
make it possible to access text settings again
Byrth Jul 6, 2023
bb31f9a
Merge pull request #2299 from Windower/fix-pointwatch
z16 Jul 6, 2023
174d6f4
[Slips] Update for July 10, 2023 items
KenshiDRK Jul 10, 2023
3fee4b0
Merge pull request #2300 from KenshiDRK/Slips
z16 Jul 10, 2023
e3600b8
Update itemizer.lua
lili-ffxi Jul 21, 2023
e68b930
Update setbgm.lua
lili-ffxi Jul 25, 2023
e8b7230
Merge branch 'live' into dev
Nifim Aug 2, 2023
e0e3fae
Remove unnecessary print
Nifim Aug 7, 2023
9183495
2023-08 boxdestroyer update
Byrth Aug 9, 2023
a16eabf
Fix for allowing blocked messages through
AkadenTK Aug 12, 2023
68ebc53
Merge pull request #2308 from AkadenTK/dev
z16 Aug 13, 2023
21df032
Update setbgm.lua
lili-ffxi Aug 14, 2023
c245663
Merge pull request #2302 from Windower/lili-ffxi-patch-1
z16 Aug 16, 2023
01b36c3
Update setbgm.lua
funkworkz Aug 18, 2023
500a4fe
Merge pull request #2310 from funkworkz/dev-2
Nifim Aug 18, 2023
b618d7e
[Slips lib] August 2023 Update
KenshiDRK Aug 17, 2023
ed0eb98
[Slips lib] Forget to add slip 31 id
KenshiDRK Aug 24, 2023
7536799
Add files via upload
PrinceHeadache Aug 31, 2023
11135f2
Add files via upload
PrinceHeadache Aug 31, 2023
2195a3b
Add files via upload
PrinceHeadache Aug 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 103 additions & 147 deletions addons/AutoRA/AutoRA.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,106 @@
--Copyright (c) 2013, Banggugyangu
_addon.author = 'Banggugyangu'
_addon.version = '3.0.0'
_addon.commands = {'autora', 'ara'}

require('functions')
local config = require('config')

local defaults = {
HaltOnTp = true,
Delay = 1.5
}

local settings = config.load(defaults)

local auto = false
local player_id

windower.send_command('bind ^d ara start')
windower.send_command('bind !d ara stop')

local shoot = function()
windower.send_command('input /shoot <t>')
end

local start = function()
auto = true
windower.add_to_chat(17, 'AutoRA STARTING~~~~~~~~~~~~~~')

shoot()
end

local stop = function()
auto = false
windower.add_to_chat(17, 'AutoRA STOPPING ~~~~~~~~~~~~~~')
end

local haltontp = function()
settings.HaltOnTp = not settings.HaltOnTp

if settings.HaltOnTp then
windower.add_to_chat(17, 'AutoRA will halt upon reaching 1000 TP')
else
windower.add_to_chat(17, 'AutoRA will no longer halt upon reaching 1000 TP')
end
end

local check = function()
if not auto then
return
end

local player = windower.ffxi.get_player()
if not player or not player.target_index then
return
end

if player.vitals.tp >= 1000 and settings.HaltOnTp then
auto = false
windower.add_to_chat(17, 'AutoRA HALTING AT 1000 TP ~~~~~~~~~~~~~~')
elseif player.status == 1 then
shoot()
end
end

windower.register_event('action', function(action)
if auto and action.actor_id == player_id and action.category == 2 then
check:schedule(settings.Delay)
end
end)

windower.register_event('addon command', function(command)
command = command and command:lower() or 'help'

if command == 'start' then
start()
elseif command == 'stop' then
stop()
elseif command == 'shoot' then
shoot()
elseif command == 'reload' then
setDelay()
elseif command == 'haltontp' then
haltontp()
elseif command == 'help' then
windower.add_to_chat(17, 'AutoRA v' .. _addon.version .. 'commands:')
windower.add_to_chat(17, '//ara [options]')
windower.add_to_chat(17, ' start - Starts auto attack with ranged weapon')
windower.add_to_chat(17, ' stop - Stops auto attack with ranged weapon')
windower.add_to_chat(17, ' haltontp - Toggles automatic halt upon reaching 1000 TP')
windower.add_to_chat(17, ' help - Displays this help text')
windower.add_to_chat(17, ' ')
windower.add_to_chat(17, 'AutoRA will only automate ranged attacks if your status is "Engaged". Otherwise it will always fire a single ranged attack.')
windower.add_to_chat(17, 'To start auto ranged attacks without commands use the key: Ctrl+D')
windower.add_to_chat(17, 'To stop auto ranged attacks in the same manner: Atl+D')
end
end)

windower.register_event('load', 'login', 'logout', function()
local player = windower.ffxi.get_player()
player_id = player and player.id
end)

--Copyright © 2013, Banggugyangu
--All rights reserved.

--Redistribution and use in source and binary forms, with or without
Expand All @@ -23,149 +125,3 @@
--ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
--(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
--SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


windower.register_event('load',function ()

version = '2.1.2'
delay = 0
RW_delay = 0
Ammo_delay = 0
retrn = 0
halt_on_tp = true
windower.send_command('unbind ^d')
windower.send_command('unbind !d')
windower.send_command('bind ^d ara start')
windower.send_command('bind !d ara stop')
windower.send_command('alias ara lua c autora')

end)

function start()
windower.add_to_chat(17, 'AutoRA STARTING~~~~~~~~~~~~~~')
player = windower.ffxi.get_player()
if player.status == 1 then
auto = 1
elseif player.status == 0 then
auto = 0
end
shoot()
end

function stop()
windower.add_to_chat(17, 'AutoRA STOPPING ~~~~~~~~~~~~~~')
auto = 0
end

function shoot()
windower.send_command('input /shoot <t>')
end

function shootOnce()
windower.send_command('input /shoot <t>')
end

--Function Author: Byrth
function split(msg, match)
local length = msg:len()
local splitarr = {}
local u = 1
while u <= length do
local nextanch = msg:find(match,u)
if nextanch ~= nil then
splitarr[#splitarr+1] = msg:sub(u,nextanch-match:len())
if nextanch~=length then
u = nextanch+match:len()
else
u = lengthlua
end
else
splitarr[#splitarr+1] = msg:sub(u,length)
u = length+1
end
end
return splitarr
end

function haltontp()

if halt_on_tp == true then
windower.add_to_chat(17, 'AutoRA will no longer halt upon reaching 1000 TP')
halt_on_tp = false
elseif halt_on_tp == false then
windower.add_to_chat(17, 'AutoRA will halt upon reaching 1000 TP')
halt_on_tp = true
end

end

windower.register_event('action',function (act)
local actor = act.actor_id
local category = act.category
local player = windower.ffxi.get_player()

if ((actor == (player.id or player.index))) then
if category == 2 then
if player.vitals['tp'] < 1000 then
if auto == 1 then
if player.status == 1 then
auto = 1
elseif player.status == 0 then
auto = 0
return
end
end
if auto == 1 then
windower.send_command('@wait 1.5;input /shoot <t>')
elseif auto == 0 then
end
else
if halt_on_tp == true then
windower.add_to_chat(17, 'AutoRA HALTING AT 1000 TP ~~~~~~~~~~~~~~')
return
else
if auto == 1 then
if player.status == 1 then
auto = 1
elseif player.status == 0 then
auto = 0
return
end
end
if auto == 1 then
windower.send_command('@wait 1.5;input /shoot <t>')
elseif auto == 0 then
end
end
end
end
end
end)

--Function Designer: Byrth
windower.register_event('addon command',function (...)
local term = table.concat({...}, ' ')
local splitarr = split(term,' ')
if splitarr[1]:lower() == 'start' then
start()
elseif splitarr[1]:lower() == 'stop' then
stop()
elseif splitarr[1]:lower() == 'shoot' then
shoot()
elseif splitarr[1]:lower() == 'reload' then
setDelay()
elseif splitarr[1]:lower() == 'haltontp' then
haltontp()
elseif splitarr[1]:lower() == 'help' then
windower.add_to_chat(17, 'AutoRA v'..version..'commands:')
windower.add_to_chat(17, '//ara [options]')
windower.add_to_chat(17, ' start - Starts auto attack with ranged weapon')
windower.add_to_chat(17, ' stop - Stops auto attack with ranged weapon')
windower.add_to_chat(17, ' haltontp - Toggles automatic halt upon reaching 1000 TP')
windower.add_to_chat(17, ' help - Displays this help text')
windower.add_to_chat(17, ' ')
windower.add_to_chat(17, 'AutoRA will only automate ranged attacks if your status is "Engaged". Otherwise it will always fire a single ranged attack.')
windower.add_to_chat(17, 'To start auto ranged attacks without commands use the key: Ctrl+d')
windower.add_to_chat(17, 'To stop auto ranged attacks in the same manner: Atl+d')
end
end)
31 changes: 20 additions & 11 deletions addons/BLUAlert/BLUAlert.lua
Original file line number Diff line number Diff line change
@@ -1,40 +1,37 @@
--[[
BLUAlert v1.0.0.0
BLUAlert v1.1.0.0

Copyright � 2017, Christopher Szewczyk
Copyright � 2017, 2023 Christopher Szewczyk, Evan Martinson
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of BLUAlert nor the
names of its contributors may be used to endorse or promote products
* Neither the name of BLUAlert nor the names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Christopher Szewczyk BE LIABLE FOR ANY
DISCLAIMED. IN NO EVENT SHALL Christopher Szewczyk or Evan Martinson BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
]]

require('sets')
res = require('resources')
chat = require('chat')

_addon.name = 'BLUAlert'
_addon.author = 'Kainsin'
_addon.version = '1.0.0.0'
_addon.author = 'Kainsin', 'Prince Headache'
_addon.version = '1.1.0.0'

-- Some BLU spells have a different name then the monster abilities they come from.
blu_different_names = {
Expand Down Expand Up @@ -76,6 +73,7 @@ function get_action_id(targets)
end
end

-- Register the action event listener
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment doesn't really add much info that isn't immediately obvious from the next line - I would remove it.

windower.register_event('action', function(action)
-- Category 7 is the readies message for abilities.
if (action['category'] == 7) then
Expand All @@ -87,3 +85,14 @@ windower.register_event('action', function(action)
end
end
end)

--Prince Headache's Modifications (Ver 1.1.0):

-- Plays a sound when Blue Magic is learned
windower.register_event('incoming text', function(original, modified, original_mode, modified_mode, blocked)
-- Check if the modified message contains "learns" followed by a Blue Magic spell name
local spell_name = modified:match("learns%s+(.+)!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also add a %s+ in front of the learns string. Furthermore, this should match the original text, not the modified one. It's possible some addon modifies what the text looks like and changes the learns word (for example, something like: "Spell learned: "), then it would no longer match it. Using original should make it work reliably in any case.

Finally, I'd also add a check for the original_mode. Otherwise it would trigger even when someone writes something in a party chat, for example.

if spell_name and find_blu_spell(spell_name) then
windower.play_sound(windower.addon_path..'sounds/BlueMagicLearned.wav')
end
end)
2 changes: 1 addition & 1 deletion addons/BLUAlert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ Are you sick and tired of watching your chat log like a hawk when hunting for ne

If so then your savior is here! BLUAlert!

This add-on will monitor monster abilities for Blue Magic spells that you don't know. When one is detected it will write a message into chat and play a sound to notify you.
This add-on will monitor monster abilities for Blue Magic spells that you don't know. When one is detected it will write a message into chat and play a sound to notify you. When you finally learn a spell, a different sound will play to alert you!

Now you can relax while you AFK with the knowledge that you'll be able to come back and kill the monster right after it uses that one ability!
Binary file added addons/BLUAlert/sounds/BlueMagicLearned.wav
Binary file not shown.
Binary file modified addons/BLUAlert/sounds/UnknownBlueMagicUsed.wav
Binary file not shown.
25 changes: 25 additions & 0 deletions addons/BattleStations/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright © 2018, Sjshovan (Apogee)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Battle Stations nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Sjshovan (Apogee) BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading