centurychilds 0 Report post Posted September 3, 2016 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? 0 Share this post Link to post Share on other sites
shuraken007 345 Report post Posted September 3, 2016 (edited) 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 September 3, 2016 by shuraken007 0 Share this post Link to post Share on other sites
tandroid 0 Report post Posted November 19, 2016 nice 0 Share this post Link to post Share on other sites