Jump to content
Sign in to follow this  
jmul1212

[Compilation] Hunter Macros

Recommended Posts

Greetings, please feel free to share macros and I will add them to the OP, if you want your username cited below it feel free to request it.

 

Auto Shoot/Basic Attack

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

 

Pet Attack

/script PetAttack(target)

 

Cheetah > Monkey Swap

/script c=CastSpellByName;if(UnitBuff("player",1)==nill) then c("Aspect of the Cheetah") else if(strfind(UnitBuff("player",1),"Ability_Mount_JungleTiger")) then c("Aspect of the Monkey"); else c("Aspect of the Cheetah"); end; end; 

 

Feign/Trap Double Click

/script if UnitAffectingCombat("player") then CastSpellByName("Feign Death") end
/cast TRAP HERE

 

Scorpid/Viper Sting Resource Check

/run if UnitPowerType("target")>0 then CastSpellByName("Scorpid Sting"); else CastSpellByName("Viper Sting"); end

 

 

 

 

 

 

 

 

This will be updated over time.  Feel free to share.

 

 

Share this post


Link to post
Share on other sites

Not sure how to edit posts on this.

 

Hawk > Monkey Spam

/run c=CastSpellByName;if(UnitBuff("player",1)==nill) then c("Aspect of the Hawk") else if(strfind(UnitBuff("player",1),"Spell_Nature_RavenForm")) then c("Aspect of the Monkey"); else c("Aspect of the Hawk"); end; end;

 

Wing Clip/Conc Shot Range

/run if CheckInteractDistance("target", 1) then CastSpellByName("Wing Clip") else CastSpellByName("Concussive Shot") end

 

Share this post


Link to post
Share on other sites

Sorry, dont know code to make the lines without breaks.

Turn Autogrowl on

/run local i,g=1,0 while GetSpellName(i,"pet") do if GetSpellName(i,"pet")=="Growl" then g=i end i=i+1 end local _,y = GetSpellAutocast(g,"pet") if not y then ToggleSpellAutocast(g,"pet") end

and off

/run local i,g=1,0 while GetSpellName(i,"pet") do if GetSpellName(i,"pet")=="Growl" then g=i end i=i+1 end local _,y = GetSpellAutocast(g,"pet") if y then ToggleSpellAutocast(g,"pet") end

Spammable meld, includes pet prowl

/run local i,x=1,0 while UnitBuff("player",i) do if UnitBuff("player",i)=="Interface\\Icons\\Ability_Ambush" then x=1 end i=i+1 end if x==0 then CastSpellByName("Shadowmeld") end
/cast Prowl

Pet follow unless alt is down, then stay instead. with an easy bind like the mousewheel for these macros (I use control mouswheel to toggle growl) you can maneuver your pet and manage aggro with precision

/script if(IsAltKeyDown()) then CastPetAction(3) else PetFollow() end  <or CastPetAction(2)
/script CastPetAction(10);

Freeze trap with pet passive if very close to the target, redundant measures since patching pets to stop attacking CC

/cast Freezing Trap
/script if UnitAffectingCombat("player") then CastSpellByName("Feign Death") end
/script if UnitExists("pettarget") and CheckInteractDistance("target", 3) and UnitIsUnit("target", "pettarget") then PetPassiveMode(); else end

Pet attack, but set on passive and follow mode so when its done, it will return to you. Hold Alt to dash/swoop/charge, just put the desired pet ability# in castpetaction(#), you can change it to control or shift as well. 

/script if(IsAltKeyDown())then CastPetAction(6) end
/script if GetUnitName("target")==nil then TargetNearestEnemy() end
/script CastPetAction(2);
/script CastPetAction(10);
/script PetAttack(target);

Pet attacks mouseover and your original target is kept, useful for chain pulling and for pvp situations. Alt key will cast intimidation. Saves you a bind, not necessary. Assumes you want to dash to the desired target. 

/script if(IsAltKeyDown()) then CastSpellByName ("Intimidation") else TargetUnit("mouseover");PetAttack();TargetLastTarget(); end
/cast Dash
/attacktarget

Autotarget nearest attackable enemy, begin autoshot, or melee if in melee range. Put on every skill macro to make every skill shot autotarget, autoshoot, and autoswitch to melee when in melee.  36 and 48 are the bottom button of the left and right side action bars. in 48 i put a macro that uses my melee attack skills and makes sure attack is on. in 36 I put autoshot.

/script if GetUnitName("target")==nil then TargetNearestEnemy() end
/run if CheckInteractDistance("target", 3) then UseAction(48) elseif not IsAutoRepeatAction(36) then UseAction(36) end

Pet Revive, call, feed, and dismiss if well fed. Rarely revive is buggy. edit bagslot as desired, its on the 13th slot of the backpack

/run local c=CastSpellByName if UnitExists("pet") then if UnitHealth("pet")==0 then c("Revive Pet") elseif GetPetHappiness()~=nil and GetPetHappiness()~=3 then c("Feed Pet") PickupContainerItem(0, 13) else c("Dismiss Pet") end else c("Call Pet") end

mouseover Distracting shot, resets target after shot.

/script TargetUnit("mouseover");CastSpellByName("Distracting Shot");TargetLastTarget();

Feign Death and begin attacking right away, spam it when using FD to drop threat.

/script if UnitAffectingCombat("player") then CastSpellByName("Feign Death") end
/run if CheckInteractDistance("target", 3) then UseAction(48) elseif not IsAutoRepeatAction(36) then UseAction(36) end

 

 

Share this post


Link to post
Share on other sites
2 hours ago, Mahakali said:

/script if(IsAltKeyDown()) then CastSpellByName ("Intimidation") else TargetUnit("mouseover");PetAttack();TargetLastTarget(); end

How do you make mouseover work? 

Share this post


Link to post
Share on other sites

Whatever unit your mouse is hovering over will be the target. Not sure if it works on unit frames, as in targeting the ToToT bar. It should work fine, these are macros I use myself.

 

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  

×