Lua Rule For Changing Sets Depending On Tp

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » General » Lua rule for changing sets depending on tp
Lua rule for changing sets depending on tp
Offline
Posts: 45
By harpy 2018-06-22 16:25:05
Link | Quote | Reply
 
How would I code a rule to have different sets be used at different tp. For example, I want to be able to ws (upheaval) with different sets depending if I have over or under 2000tp
 Bismarck.Xurion
Offline
Server: Bismarck
Game: FFXI
user: Xurion
Posts: 693
By Bismarck.Xurion 2018-06-23 06:44:39
Link | Quote | Reply
 
Can't test this right now so forgive me if it isn't perfect, but it should give you at least an idea of what you need.
Code
function job_post_precast(spell, action, spellMap, eventArgs)
  if spell.english == 'Upheaval' then
    if player.tp >= 2000 then
      equip(sets.precast.WS.Upheaval.TP2000)
    end
  end
end


You'll need a new set called TP2000 (or just change the name to whatever you want). Your original Upheaval set should be equiped if this doesn't trigger.
Offline
Posts: 45
By harpy 2018-06-23 13:32:33
Link | Quote | Reply
 
ty, I used that and some other things. had to mess with it a bit, but I got it to work. thanks again
Log in to post.