Jump to content
tyrimur

Warrior macro IsUsableAction(64)

Recommended Posts

/script if((GetActionCooldown(64)==0) and (IsUsableAction(64)==1))then CastSpellByName("Revenge(Rank 2)");end

I saw this script that could help warrior to cast Revenge ASAP

I'm wondering what that '64' stands for inside the bracket?

also if I want to write a macro that could let me to use Overpower once the mob dodges my attack, what should I put inside that bracket?

 

 

Share this post


Link to post
Share on other sites
1 hour ago, Shino said:

actionbarslots1.png

http://wowwiki.wikia.com/wiki/ActionSlot

Edit: Second question:

Not sure if that works but the actionSlot of your overpower.

cheers!

http://vanilla-wow.wikia.com/wiki/API_IsUsableAction

I found something similar here, it says slots 61 - 72 are included in Action Bar 6 (Bottom Right), I guess Blizzard re-arrange the ID of actionSlots after vanilla version.

But i got more question here, it looks like the whole macro determines the status of my Revenge ability by getting its actionSlot ID, However my No.64 actionSlot is empty, I don't even drag "Revenge" ability into any actionSlot.

Here is my entire macro:

/cast Shield Block
/script if((GetActionCooldown(64)==0) and (IsUsableAction(64)==1))then CastSpellByName("Revenge(Rank 2)");end
/cast Sunder Armor(Rank 2)
/script if(UnitMana("Player")>44)then CastSpellByName("Heroic Strike(Rank 5)");end

each time i press this macro, It will cast "shield block" and cast “revenge” by determine the expression, if not, it will cast “sunder Armor” and if my rage goes above 44, it will cast Heroic Strike simultaneously. 

 

Edited by tyrimur
typo

Share this post


Link to post
Share on other sites

Maybe these are the default values for the empty action slot, dunno.

For these function to work properly the vanilla ability is required to be in the slot though.

Maybe put the Sunder Armor part in the else part of your first function

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×