Using a clickie item and determining if it is ready

JMass

Active Member
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?

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
}
 

Amadeus

The Maestro
Staff member
No. It's not possible with isxvg and I do not foresee it being possible anytime in the near future.
 

adakos

Active Member
what ive done is to just time how long it takes for the item to recharge, and then build in some time for lag, use a wait command , and throw it into a loop.
 

Amadeus

The Maestro
Staff member
Yes, there's nothing keeping you from maintaining your own custom timers in a script. There's tons that can be done with the scripting language to get around this if you take the time to write it. It may never be 100% perfect, but it would be close enough.
 
Top Bottom