I am working on creating a function to use when in combat that will use a rod/staff as often as it is ready to be used. Seeing how we can no longer use /useitem in game and have to instead drag an equipped item to a hotbar I have done that and have the item where pressing 1 will trigger it.
But what I cannot figure out is how to determine it is ready to use. I have tried Me.Ability[xxx].IsReady with xxx being both the name of the item and also the spell effect that triggering it casts. The example below would be me trying to use an imaginary rod of fireballs.
Does anyone know how to determine if an equipped rod/staff or other item is ready to use?
But what I cannot figure out is how to determine it is ready to use. I have tried Me.Ability[xxx].IsReady with xxx being both the name of the item and also the spell effect that triggering it casts. The example below would be me trying to use an imaginary rod of fireballs.
Does anyone know how to determine if an equipped rod/staff or other item is ready to use?
Code:
function:bool CheckForRod()
{
if !${Me.Target.ID(exists)}
{
echo "no target"
return FALSE
}
if ${Me.Ability[Rod of Fireballs].IsReady} && ${Me.InCombat}
{
Face ${Me.Target.X} ${Me.Target.Y}
waitframe
press 1
echo "Used Rod"
return TRUE
}
return FALSE
}