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

Fixes for ChatPorter and Blist #2187

Open
wants to merge 1,295 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1295 commits
Select commit Hold shift + click to select a range
20a0516
Added poke to Nomad Moogles
lili-ffxi Jul 17, 2021
e05ab95
Removing leftover debug lines
lili-ffxi Jul 17, 2021
92abc7d
Typo fix
lili-ffxi Jul 17, 2021
5e21c85
Commas
lili-ffxi Jul 17, 2021
253042c
Parentheses and spaces
lili-ffxi Jul 17, 2021
735fee3
Merge pull request #2058 from lili-ffxi/patch-7
z16 Jul 17, 2021
383f893
Update roe.lua
Jul 18, 2021
06a5c67
Update roe.lua
Jul 18, 2021
e5121af
Merge pull request #2057 from ianandersonlol/patch-11
z16 Jul 18, 2021
8a60e7f
Merge pull request #2059 from Windower/dev
Chiaia Jul 20, 2021
dac29e9
Typo fix
lili-ffxi Jul 21, 2021
cf72765
Merge pull request #2060 from lili-ffxi/patch-1
Nifim Jul 21, 2021
14a0ccf
Version Bump
lili-ffxi Jul 22, 2021
9e93774
Removed Pilgrim moogle
lili-ffxi Jul 22, 2021
98b8329
Very Small Update to the Max
Chiaia Jul 23, 2021
2d3e142
Merge pull request #2061 from lili-ffxi/patch-2
Chiaia Jul 23, 2021
3baec71
Merge pull request #2062 from Windower/dev
Chiaia Jul 23, 2021
31b1d50
Merge pull request #2053 from KenshiDRK/battlemod
z16 Jul 23, 2021
91b906b
Added echo output as requested by a user.
Chiaia Jul 26, 2021
b9b4441
Merge pull request #2064 from Windower/dev
Chiaia Jul 26, 2021
ac7d9cc
Treasury: Added check for item validity
z16 Jul 27, 2021
47df5c2
Update fields.lua
KenshiDRK Jul 31, 2021
b902a24
Update craft.lua
Aug 4, 2021
9f957d7
Update README.md
Aug 4, 2021
aed7715
Merge pull request #2066 from ianandersonlol/patch-12
z16 Aug 4, 2021
2254d61
(not tested!) pointwatch - automatically update message IDs
trv6 Aug 15, 2021
d7eb005
fix flatten
RubenatorX Aug 16, 2021
f7a8373
Merge pull request #2073 from RubenatorX/patch-9
alphaONE2 Aug 16, 2021
2c3865d
Update to properly handle more valid commands
RubenatorX Aug 27, 2021
d02d19f
Inventory Full Cannot Bid
Chiaia Sep 6, 2021
7b15fe8
Adding Levin to Slips lib
KenshiDRK Sep 7, 2021
b1d8dc6
Merge pull request #2077 from KenshiDRK/Slips-Update
z16 Sep 7, 2021
ec8f53a
duplicate entries
trv6 Sep 13, 2021
c038655
Update slips.lua
KenshiDRK Sep 15, 2021
254835f
Merge pull request #2078 from KenshiDRK/Slips-Update
z16 Sep 15, 2021
3f65070
Update setbgm.lua
funkworkz Sep 16, 2021
209a739
Fix gearswap (requires monster_skills.lua)
Byrth Sep 16, 2021
60e6d5a
fix shortcuts (requires monster_skills.lua)
Byrth Sep 16, 2021
82e6653
version bumps
Byrth Sep 16, 2021
5a233e8
Merge pull request #2079 from funkworkz/patch-2
Chiaia Sep 16, 2021
00cbce7
Merge pull request #2080 from Windower/gearswap-shortcuts-monstrosity…
z16 Sep 16, 2021
02f95fa
A few functions for decoding dialog entries
trv6 Sep 27, 2021
f04b053
Update messages and Add Low/Mid D Tower to be extracted
Chiaia Oct 1, 2021
02a3325
Merge pull request #2083 from Windower/dev
Chiaia Oct 1, 2021
b2ab69c
Merge pull request #2081 from trv6/dialog
z16 Oct 7, 2021
84cc1a7
change based on CHA CHA CHA's info
Byrth Oct 11, 2021
e4432cf
Merge pull request #2084 from Windower/adjust_0x01C_incoming
Byrth Oct 11, 2021
566a726
fixed comment numbering for 0x01C
Byrth Oct 11, 2021
ea338e4
Merge pull request #2085 from Windower/fix_comment_numbering
Byrth Oct 11, 2021
27d87e9
Merge pull request #2087 from Windower/dev
Chiaia Oct 14, 2021
394ebfb
Update README.md
zetaepyon Nov 2, 2021
b09d2e3
Update Mount Roulette to 3.1.0.
xurion Nov 6, 2021
f774195
Master Levels Update 1
RubenatorX Nov 10, 2021
60e1e9b
Merge pull request #2091 from RubenatorX/patch-12
alphaONE2 Nov 10, 2021
0023a17
[thtracker] variable fix
KenshiDRK Nov 10, 2021
411d14f
Slips lib Update
KenshiDRK Nov 10, 2021
21b32bd
Merge pull request #2093 from KenshiDRK/Slips
Nifim Nov 10, 2021
657bd2d
Merge pull request #2092 from KenshiDRK/Thtracker
Chiaia Nov 10, 2021
6e2dbc3
Fix dupe label
Chiaia Nov 10, 2021
13001f9
Merge pull request #2094 from Windower/dev
Chiaia Nov 10, 2021
5ade870
Update Master Level 2
RubenatorX Nov 11, 2021
22b865b
Master Levels Update 2
RubenatorX Nov 11, 2021
ffa2cce
Master Level Update 2
RubenatorX Nov 11, 2021
cf18fa9
Master Level Update 2
RubenatorX Nov 11, 2021
39d50b3
Merge pull request #2096 from RubenatorX/patch-15
z16 Nov 12, 2021
bf4ee31
Use set directly in settings table.
xurion Nov 14, 2021
7620dd2
the table's hex keys are interpreted as unsigned
Byrth Nov 14, 2021
295e1fb
Update Pointwatch.lua
RubenatorX Nov 24, 2021
3190cb6
Update Pointwatch - Statics.lua - Exemplar Points
RubenatorX Nov 24, 2021
30338c6
Use the other libs/dialog
trv6 Nov 24, 2021
eb3c99d
Update Pointwatch.lua -- minor bugfix typo
RubenatorX Nov 24, 2021
f8015a0
update for 0x063 order 2
RubenatorX Nov 24, 2021
2564bd1
fix extra spaces
RubenatorX Nov 24, 2021
e7c348c
Swap the order of unpack's arguments.
trv6 Nov 26, 2021
1a3e0cc
Handle unsigned int
trv6 Nov 26, 2021
4862415
Merge pull request #2098 from trv6/dialog
z16 Nov 26, 2021
bf518f2
Revert "update for 0x063 order 2"
paulframe Nov 27, 2021
07a44c8
Update 0x063-Order 2
RubenatorX Nov 27, 2021
10d34ab
un-un-revert a change
RubenatorX Nov 27, 2021
9fcf2ac
fix broken fix
RubenatorX Nov 27, 2021
e449346
copy paste hates me
RubenatorX Nov 27, 2021
b87b43b
remove extra spaces
RubenatorX Nov 27, 2021
348834a
delete additional spaces
RubenatorX Nov 27, 2021
946a1bb
Merge pull request #2099 from RubenatorX/patch-18
z16 Nov 27, 2021
e2cce23
Update fields.lua
KenshiDRK Nov 27, 2021
f7f1158
Add missing message ID
RubenatorX Dec 2, 2021
b9f48a7
Add 0x0AD Incoming
Byrth Dec 4, 2021
d866549
Merge pull request #2100 from Windower/add-0x0AD-incoming
Byrth Dec 4, 2021
196e629
Merge pull request #2097 from RubenatorX/patch-17
z16 Dec 6, 2021
dc3571e
Merge pull request #2101 from Windower/dev
Chiaia Dec 6, 2021
ee2b315
Merge pull request #2090 from xurion/dev
z16 Dec 6, 2021
cc0fd2e
[fields.lua] Fix for Accolades
KenshiDRK Dec 8, 2021
690069c
Merge pull request #2102 from KenshiDRK/dev
Chiaia Dec 8, 2021
38aa211
Merge pull request #2103 from Windower/dev
Chiaia Dec 8, 2021
206eb6e
Box Destroyer Dec Update / Dressup + 2 items
Chiaia Dec 10, 2021
89208e3
add three items to slip 3 and one to slip 22
Byrth Dec 10, 2021
f0859ee
Merge pull request #2104 from Windower/update-slips-for-Dec-2021
Byrth Dec 10, 2021
4bb8f49
Merge pull request #2105 from Windower/dev
Byrth Dec 10, 2021
d2ac675
Libs/resources: Fixed lookup table name generation
z16 Dec 12, 2021
168fa7d
Make it easy to get the dialog files.
trv6 Dec 14, 2021
b4d33cf
Shadowing
trv6 Dec 14, 2021
a1200c6
Japanese dats
trv6 Dec 14, 2021
497f5fb
It would have been funny
trv6 Dec 14, 2021
fce0848
Missed formatting
trv6 Dec 14, 2021
930a136
Prevent id overlap
trv6 Dec 14, 2021
127ef93
Moved id conversion to dialog lib
trv6 Dec 15, 2021
cfada1d
Scrape the top two bits off the message ID
trv6 Dec 16, 2021
5a20805
Exemplar Points Documentation
Chiaia Dec 19, 2021
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
c4c832c
Implemented linshkells name resolution
arshesney May 13, 2022
eb2dc92
Fixed error when reloading linked instances
arshesney May 13, 2022
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