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

[InfoBar] Addon -- Added Almost all of the Adoulin Enemy Detects #2281

Open
wants to merge 1,403 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1403 commits
Select commit Hold shift + click to select a range
087d173
More modifiers
Chiaia Dec 19, 2021
b667688
Update for 0x0B6 outgoing changes
Byrth Dec 21, 2021
8409863
Merge pull request #2109 from Windower/B6-outgoing-changes
Byrth Dec 21, 2021
b3b335c
Merge pull request #2107 from trv6/dialog
Byrth Dec 21, 2021
5b96aca
Merge pull request #2108 from trv6/highbit
Byrth Dec 21, 2021
7e6962c
Correct improper ID range check (GearSwap)
RubenatorX Dec 23, 2021
fb5dd08
remove unnecessary line and move lower out of loop
RubenatorX Dec 23, 2021
487996d
Merge pull request #2110 from RubenatorX/patch-20
z16 Dec 23, 2021
83cc01e
Pilgrim/Nomad support/fix
Chiaia Dec 27, 2021
d9abfc6
Merge branch 'dev' of https://github.com/Windower/Lua into dev
Chiaia Dec 27, 2021
4c92452
Merge pull request #2046 from ianandersonlol/patch-9
Chiaia Dec 27, 2021
707dd33
Merge pull request #2111 from Windower/dev
Chiaia Jan 1, 2022
8496aa1
GearSwap Motes Command-- set mode with spaces
RubenatorX Jan 4, 2022
0cfbe6d
Gearswap Motes Command Fix
RubenatorX Jan 4, 2022
e3d9c79
Merge pull request #2112 from RubenatorX/patch-21
z16 Jan 5, 2022
39a9458
Index res.monster_abilities once
Byrth Jan 9, 2022
e740ca3
Also fix it in the actions library
Byrth Jan 9, 2022
9b5ed79
Merge pull request #2114 from Windower/make-monster-abilities-non-lazy
Byrth Jan 9, 2022
ad04602
Libs/actions: Adjusted to not use rawget for resources
z16 Jan 9, 2022
1094a0a
Switch indinope to use the modified packet
Byrth Jan 10, 2022
4796f1d
Merge pull request #2115 from Windower/switch-indinope-to-modified
Byrth Jan 10, 2022
78af443
Verify logged in. Only update once.
trv6 Jan 11, 2022
8851c78
Jan 10th, 2022 Update
Chiaia Jan 11, 2022
90a314c
Merge pull request #2116 from Windower/dev
Chiaia Jan 12, 2022
6be9eb8
Add New items to Slips lib
KenshiDRK Jan 13, 2022
ffb2679
GearSwap SelfCommand handle_update fix
RubenatorX Jan 13, 2022
37daa71
Lib/tables: Forwarded table.sconcat parameters
z16 Jan 13, 2022
3a421c0
Merge pull request #2118 from RubenatorX/patch-22
z16 Jan 13, 2022
e7f1993
Merge pull request #2117 from KenshiDRK/Slips
Byrth Jan 13, 2022
612ea7d
Minor update to translate in 2022
Byrth Jan 13, 2022
d14979d
Merge pull request #2119 from Windower/update-translate-2022
Byrth Jan 13, 2022
b31c356
Merge pull request #2120 from Windower/dev
Chiaia Jan 13, 2022
ce39e19
Formatting
Chiaia Jan 14, 2022
68a35d1
Merge branch 'dev' of https://github.com/Windower/Lua into dev
Chiaia Jan 14, 2022
1fafb5e
Add chocobo digging action enum
Byrth Jan 16, 2022
2c809b9
Merge pull request #2121 from Windower/add-chocobo-digging-action-enum
Byrth Jan 17, 2022
8c7f4d2
[Battlemod] some fixes
KenshiDRK Feb 2, 2022
59d0d75
Merge pull request #2122 from KenshiDRK/battlemod
z16 Feb 2, 2022
b65e6ef
[ohShi] nil error fix
KenshiDRK Feb 7, 2022
b2dee66
Merge pull request #2123 from KenshiDRK/ohShi
Nifim Feb 7, 2022
58e18f8
Gearswap -- update usable and equippable bags
RubenatorX Feb 10, 2022
7f582e5
Organizer -- add wardrobes
RubenatorX Feb 10, 2022
ac5e9c3
FindAll -- Add Wardrobes
RubenatorX Feb 10, 2022
2ca2414
Itemizer -- Add Wardrobes
RubenatorX Feb 10, 2022
d96559f
Add recycle to the ignore list
Byrth Feb 10, 2022
4fc1c94
Merge pull request #2133 from Windower/fix-recycle-for-shortcuts
Byrth Feb 10, 2022
957c292
Packets 0x01C update
RubenatorX Feb 10, 2022
776f50b
Merge pull request #2128 from RubenatorX/patch-23
z16 Feb 10, 2022
1ceac90
Merge pull request #2129 from RubenatorX/patch-24
z16 Feb 10, 2022
af31252
Merge pull request #2130 from RubenatorX/patch-25
z16 Feb 10, 2022
602adcf
Merge pull request #2132 from RubenatorX/patch-27
z16 Feb 10, 2022
d0e537c
Packets update for new wardrobes
KenshiDRK Feb 10, 2022
e77adbe
Merge pull request #2138 from KenshiDRK/packet-lib
z16 Feb 10, 2022
e452fcd
Packets -- Update 0x01D
RubenatorX Feb 10, 2022
2f5f23a
Merge pull request #2139 from RubenatorX/patch-29
Byrth Feb 10, 2022
cffa1f7
Merge branch 'dev' into patch-28
RubenatorX Feb 10, 2022
985bf48
Packets 0x01C Update
RubenatorX Feb 10, 2022
ef0f004
Merge pull request #2134 from RubenatorX/patch-28
Byrth Feb 10, 2022
fdfbc6d
Fix padding for 0x01C
Byrth Feb 10, 2022
ebc68b5
Merge pull request #2140 from Windower/dev
Chiaia Feb 11, 2022
d4bd4d4
Organizer-Lib -- Add Wardrobes
RubenatorX Feb 11, 2022
d0f5c08
Merge pull request #2141 from RubenatorX/patch-30
Nifim Feb 11, 2022
90ef1ca
Merge pull request #2142 from Windower/dev
Nifim Feb 11, 2022
01140fe
Packets - 0x01D new boolbits and more info
RubenatorX Feb 11, 2022
1bb90ea
Merge pull request #2143 from RubenatorX/patch-33
z16 Feb 11, 2022
614015e
Merge pull request #2065 from KenshiDRK/packets-lib
z16 Feb 12, 2022
0e85f4c
Update setbgm.lua
funkworkz Feb 13, 2022
9905f39
Merge pull request #2145 from funkworkz/patch-3
Nifim Feb 13, 2022
33a2b53
add new 0x01D handling to instaLS
Byrth Feb 13, 2022
0c37f0c
Merge pull request #2146 from Windower/update-instals-for-0x01D
Byrth Feb 13, 2022
f21d2f9
Update instaLS.lua
Byrth Feb 13, 2022
df9082d
fix both problems
Byrth Feb 14, 2022
d1b0d03
bump version
Byrth Feb 14, 2022
2d70fdd
Merge pull request #2149 from Windower/boxdestroyer-fails-to-account-…
Byrth Feb 14, 2022
22fabff
Update README for changes
Byrth Feb 14, 2022
d7fde53
Update README.md
zetaepyon Feb 14, 2022
3363b5b
Merge pull request #2150 from Windower/dev
Byrth Feb 15, 2022
9d7c681
Merge pull request #2151 from Windower/live
Byrth Feb 15, 2022
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
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
db10bd4
Gearswap Wardrobe inventories fix fix
RubenatorX Feb 18, 2022
46931e5
Merge pull request #2163 from Windower/Gearswap-wardrobes-fix
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
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
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
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
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
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
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
b3b3327
Sept 11th, 2022 Update
Chiaia Sep 12, 2022
77a054d
Fixes + Slip 22 added items.
Chiaia Sep 12, 2022
7d056c2
Slip 29 Support
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
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
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
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
d1dc68c
revert breaking [config] changes
RubenatorX Dec 2, 2022
adfc1f6
revert breaking [config] change -- but for real this time
RubenatorX Dec 2, 2022
d05a692
Missing space fixed
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
15bf559
update slips for 2022-12
Byrth Dec 15, 2022
dee51f7
Merge pull request #2258 from Windower/2022-12-slips
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
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
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
dbbe933
Added Almost all of the Aldouin Enemy Detects
coldReactive Mar 8, 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)
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