Ranger Lua Help - Aftermath Coding

Language: JP EN DE FR
users online
Forum » FFXI » Jobs » Ranger » Ranger Lua Help - Aftermath coding
Ranger Lua Help - Aftermath coding
 Asura.Skyekitty
Offline
Server: Asura
Game: FFXI
Posts: 127
By Asura.Skyekitty 2019-05-16 22:16:27
Link | Quote | Reply
 
I have been looking up posts trying to figure this out, I have a Gandiva and I'm trying to have it swap my midcast set when aftermath is up automatically. This is what I wrote, but its not working:

if spell.action_type == 'Ranged Attack' and buffactive == 'Aftermath: Lv.3' then
equip(sets.midcast.RA.Aftermath)
elseif spell.action_type == 'Ranged Attack' then
equip(sets.midcast.RA)
end

Any help would be greatly appreciated, or if you can post what works that helps too! :D Thanks in advance!
[+]
 Asura.Skyekitty
Offline
Server: Asura
Game: FFXI
Posts: 127
By Asura.Skyekitty 2019-05-16 22:51:48
Link | Quote | Reply
 
Figured it out, thanks!

incase anyone else fumbles on this, i just corrected the code to this:

if spell.action_type == 'Ranged Attack' and state.Buff['Aftermath'] and player.equipment.range == "Gandiva" then
equip(sets.midcast.RA.Aftermath)
elseif spell.action_type == 'Ranged Attack' then
equip(sets.midcast.RA)
end
[+]
Log in to post.