|
I'm wanting to make a simple in-game macro that does the following:
When I click on it, if either Kill Command or Mongoose Bite can be cast, one gets cast and then upon the second click, the other gets cast (if both are able to be cast and assuming the second click happens after the small cooldown).
I realize this is something of a "/script if MongooseBite.isCastable()=true then cast Mongoose Bite(Rank 1)" sort of thing. But I know what I have written will not work.
What I need to know is:
Is this possible? And, if so:
What is the correct "if" statement I should use to make this work?
Here's the C/C++ equivalent of what I want:
void yep()
{
if (MongooseBite.isReady == 1)
cast("Mongoose Bite(Rank 1)");
else if (KillCommand.isReady == 1)
cast("Kill Command(Rank 1)");
}
|