How do you read the recast timer of an ability or spell in gearswap?
I've been trying to write something in my summoner lua that confirms whether Blood Pact: Ward is up or not.
Checking Recast Timer In A Gearswap Lua? |
||
|
Checking recast timer in a gearswap lua?
How do you read the recast timer of an ability or spell in gearswap?
I've been trying to write something in my summoner lua that confirms whether Blood Pact: Ward is up or not. her is something i use to prevent activating gear swaps on ja/magic that is in cooldown anyway.
You can probably dissect it into what you need local spell_recasts = windower.ffxi.get_spell_recasts() local ja_recasts = windower.ffxi.get_ability_recasts() if spell.action_type == 'Magic' and (spell.recast_id or spell.id) then local spell_recasts = windower.ffxi.get_spell_recasts() if spell_recasts[spell.recast_id or spell.id] and spell_recasts[spell.recast_id or spell.id] > 0 then cancel_spell() return end elseif spell.type == "JobAbility" and (spell.recast_id or spell.id) then local ja_recasts = windower.ffxi.get_ability_recasts() if ja_recasts[spell.recast_id or spell.id] and ja_recasts[spell.recast_id or spell.id] > 0 then cancel_spell() return end end DaneBlood said: » her is something i use to prevent activating gear swaps on ja/magic that is in cooldown anyway. You can probably dissect it into what you need local spell_recasts = windower.ffxi.get_spell_recasts() local ja_recasts = windower.ffxi.get_ability_recasts() if spell.action_type == 'Magic' and (spell.recast_id or spell.id) then local spell_recasts = windower.ffxi.get_spell_recasts() if spell_recasts[spell.recast_id or spell.id] and spell_recasts[spell.recast_id or spell.id] > 0 then cancel_spell() return end elseif spell.type == "JobAbility" and (spell.recast_id or spell.id) then local ja_recasts = windower.ffxi.get_ability_recasts() if ja_recasts[spell.recast_id or spell.id] and ja_recasts[spell.recast_id or spell.id] > 0 then cancel_spell() return end end FYI you are getting the recasts twice, once inside the if statements, and once at the top. |
||
|
All FFXI content and images © 2002-2025 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|
||