Jump to content
Sign in to follow this  
Larsy93

Hamstring Macro?

Recommended Posts

Hi, I am looking for a hamstring macro that would change my stance to make hamstring useable if I am in Defensive Stance. But if I am in either Battle Stance or Berserker Stance it should just cast hamstring since its useable in 2 stances. So its abit different than just the regular stance switch macro. it needs to have some kind of "if" or "or" statement in there.

 

/run local texture,name,isActive,isCastable = GetShapeshiftFormInfo(1); if isActive then CastSpellByName("Overpower"); else CastSpellByName("Battle Stance()"); end;

this is sort of what I got for my other abilities, so maybe it can be used to get this macro right aswell.

Edited by Larsy93

Share this post


Link to post
Share on other sites

/run local texture,name,isActive,isCastable = GetShapeshiftFormInfo(1); if isActive then CastSpellByName("Hamstring"); else CastSpellByName("Battle Stance()"); end;

Share this post


Link to post
Share on other sites

Nonono because if i use that in berserker stance it will switch to battle stance aswell., If iam in berserker stance it should just cast hamstring, not switch to battle since hamstring can be used directly in berserker stance.

 

Needs to be some sort of, if stance 1 or 3 is active then cast hamstring, but if stance = 2 then switch to battlestance and hamstring.

 

Edited by Larsy93

Share this post


Link to post
Share on other sites
/script if nil then CastSpellByName("Hamstring") end
/run local texture,name,isActive,isCastable = GetShapeshiftFormInfo(2); if isActive then CastSpellByName("Battle Stance"); else CastSpellByName("Hamstring()"); end;

Got it!

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
Sign in to follow this  

×