Jump to content
Sign in to follow this  
centurychilds

Macro for hunter

Recommended Posts

hi all...

 

i have a hunter here..and i kindda new to macro especially vanilla macro..

 

so, here i got 2 questions

 

1) how do i write a macro if:

 

(first situation) when an enemy player come in my melee range..i want to change to actionbar 2 where i have all my melee skills there

(second situation) when he move away from me..it change back to actionbar 1 where i have all my range skills

 

2) look at this macro

 

/run if CheckInteractDistance("target", 3) and (not PlayerFrame.inCombat) then AttackTarget() elseif not IsAutoRepeatAction(3) then CastSpellByName("Auto Shot") end

 

should i replace the bold Castspellname there with a spell/skills from my spellbook or the macro is meant that way?

Share this post


Link to post
Share on other sites

http://wowwiki.wikia.com/wiki/World_of_Warcraft_API?oldid=330895

 

http://wowwiki.wikia.com/wiki/API_ChangeActionBarPage?oldid=175683

/script if CheckInteractDistance("target", 3) and (not PlayerFrame.inCombat) then CURRENT_ACTIONBAR_PAGE = 1 ChangeActionBarPage() elseif not IsAutoRepeatAction(3) then CURRENT_ACTIONBAR_PAGE = 2 ChangeActionBarPage() end

havn't tested it, but it's look like using this idea

Edited by shuraken007

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  

×