Need help to script a few macros.
Posted: Sun Aug 16, 2015 1:29 pm
Hello everyone. As the title says, I could really use some help to make the following macros works.
The first one is:
So what I want it to do is, whenever i'm in Battle Stance it should cast Overpower, and whenever i'm in Defensive Stance it should cast Revenge. It seems to ALMOST work. It does what I want it to do, however when i'm in defensive stance and Revenge become useable, the macro wont "light up". It just stay in this grey color like it isnt active even though Revenge is active/useable. (Hope that make sense).
For the next macro, I have tried to experiment with the
I want a macro that cast Shield Bash whenever I have a shield equipped (slotID = 17), otherwise it should cast Pummel. And if it is possible, I would like it to cast Berserker Stance, then Pummel if i'm in Battle Stance with NO shield equipped.
As for the third and last macro, I have tried to experiment with the
I want this macro to FIRST cast Berserker Rage, then check the player (myself) for the Berserker Rage buff, and then it should cast Will of the Forsaken, but only if the Bersker Rage buff is NOT found.
Basically I want to make a vanilla version of /castsequence.
I found a macro that works very similar to this.:
What it does is, it cast Battle Shout, but if Battle Shout is already active, the macro wont do anything. I tried to switch the "Battle Shout" in the macro with Berserker Rage and WotF, but it doesn't seem to work properly.
I hope someone can help me, I would really appreciate it if I could get these macros to work.
Thanks in advance!
The first one is:
- Code: Select all
/script texture,name,isActive,isCastable = GetShapeshiftFormInfo(1); if isActive then CastSpellByName("Overpower(Rank 1)"); else texture,name,isActive,isCastable = GetShapeshiftFormInfo(2); if isActive then CastSpellByName("Revenge(Rank 1)"); end end;
So what I want it to do is, whenever i'm in Battle Stance it should cast Overpower, and whenever i'm in Defensive Stance it should cast Revenge. It seems to ALMOST work. It does what I want it to do, however when i'm in defensive stance and Revenge become useable, the macro wont "light up". It just stay in this grey color like it isnt active even though Revenge is active/useable. (Hope that make sense).
For the next macro, I have tried to experiment with the
- Code: Select all
IsEquippedAction(slotID)
I want a macro that cast Shield Bash whenever I have a shield equipped (slotID = 17), otherwise it should cast Pummel. And if it is possible, I would like it to cast Berserker Stance, then Pummel if i'm in Battle Stance with NO shield equipped.
As for the third and last macro, I have tried to experiment with the
- Code: Select all
UnitBuff("player")
I want this macro to FIRST cast Berserker Rage, then check the player (myself) for the Berserker Rage buff, and then it should cast Will of the Forsaken, but only if the Bersker Rage buff is NOT found.
Basically I want to make a vanilla version of /castsequence.
I found a macro that works very similar to this.:
- Code: Select all
/run local i,x=1,0 while UnitBuff("player",i) do if string.find(UnitBuff("player",i),"BattleShout")then x=1 end i=i+1 end if x==0 then CastSpellByName("Battle Shout")end
What it does is, it cast Battle Shout, but if Battle Shout is already active, the macro wont do anything. I tried to switch the "Battle Shout" in the macro with Berserker Rage and WotF, but it doesn't seem to work properly.
I hope someone can help me, I would really appreciate it if I could get these macros to work.
Thanks in advance!