Jump to content

Intercept Macro - Arms PvP 3.3.5a - question


Naiters
 Share

Recommended Posts

Hi,

I'm trying to write a simple lua for warrior arms 3.3.5a fightclass that uses intercept when charge is on cooldown. 

The code is:

1. For berserker stance - 

intercepting = "no"
if GetSpellCooldown("Charge") ~= 0
then
        intercepting = "yes"
        end
end
 

Return value research: yes

Return value var: intercepting

 

Rage greater than 20 and Distance bigger than 8.

 

2. For Intercept: Buff Berserker Stance, same code as above and disance greater than 8.

 

It doesn't work at all, any suggestions? ?

Regards

N

 

 

 

Link to comment
Share on other sites

You wrote "end" two times instead of one, you need only one "end", because of the "if" statement.

That being said, you must add an ability with higher priority that switches the stances (from battle to berserker or from defensive to berserker), otherwise it can't Intercept in Battle/Defensive Stance.

Create "Berserker Stance" ability with these conditions:

Charge in CD + Intercept not in CD + Stance ~= 2 + Intercept in range

Also every stance is not a buff so adding Buff: Berserker Stance will never work. You need to use GetShapeshiftForm().

Greetings

Link to comment
Share on other sites

Thanks Scipter!

I have rewritten the code for Berserker Stance, but still its not working:

intercepting = "no"
if GetSpellCooldown("Charge") ~= 0
and GetSpellCooldown("Intercept") == 0
then
intercepting = "yes"
end

Best regards

Link to comment
Share on other sites

You need to do test on a dummy, like manually use charge, switch stance (to berserker), and go away, and see if it intercepts automatically the dummy.

If yes, then the code is correct, and you just need to add the automatic Berserker Stance switch.

In few words, you need to test step by step, don't try to execute too many spells/combinations, test one at time and see if it works, then proceed to the next spell.

What you should test step by step is something like this:
Automatically charge if target is away and in charge range > switch to berserker stance if target is away and you don't have charge but you have intercept > Intercept


Also don't forget to check on the top right corner the conditions like "combat only (put false)" or "check if target is in view (put false)" and so on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...