Jump to content
Sign in to follow this  
Weirth

Useful Vanilla WoW 1.12.1 Macros by Wayleran

Recommended Posts

Im just reposting the Main post of theses Macros to this forum so more people know about it.

Hi guys. Just figured I'd start a random collection of useful macros. Feel free to reply with some of your own. In time I will add and organize them as much as I can.

Action Bar Slots:
1 - 12 : Action Bar 1
13 - 24 : Action Bar 2
25 - 36 : Action Bar 3 (Right)
37 - 48 : Action Bar 4 (Right-2)
49 - 60 : Action Bar 5 (Bottom Right)
61 - 72 : Action Bar 6 (Bottom Left)

To find "BUFF_TEXTURE" in certain macros use this macro. Target yourself while you have the buff.

Code: Select all

/script function m(s) DEFAULT_CHAT_FRAME:AddMessage(s); end for i=1,16 do s=UnitBuff("target", i); if(s) then m("B "..i..": "..s); end s=UnitDebuff("target", i); if(s) then m("D "..i..": "..s); end end




General Macros:


Spammable Auto Attack Macro w/ Melee and Ranged swapping:
This will use your bow or wand auto attack if your target is at range OR ELSE it will use a melee auto attack if the target comes too close. ALSO it won't toggle off your ranged auto attack if you spam it.
Replace Auto Shot or Shoot with whatever your classes ranged auto attack is and replace (1) in IsAutoRepeatAction(1) with whatever button your melee and then ranged auto attack skill is on...(25), (37), etc...

Code: Select all

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




Smart Buff Swap Macro Template:(Uses BUFF_1 if the main buff is active, or else uses SPELL_2)

Code: Select all

/run local i,x=1,0 while UnitBuff("player",i) do if UnitBuff("player",i)=="Interface\\Icons\\Spell_Texture_Name" then x=1 end i=i+1 end if x==0 then CastSpellByName("BUFF") else CastSpellByName("SPELL") end


You need to replace "BUFF_TEXTURE" with the TEXTURE of a particular buff and NOT it's name. For example A Rogue's Stealth skill and a Druid's Prowl skill both use the little icon texture called "Ability_Ambush".
Use this site to lookup your buff's texture:
http://wowwiki.wikia.com/Queriable_buff_effects


Reset Instance Macro:

Code: Select all

/script ResetInstances()




Fishing/Mount/Dismount Macro: (I'd recommend keybinding this one to a mouse button like middleclick for easy fishing/mounting/dismounting with one hand):

Code: Select all

/run local i=GetInventoryItemTexture("player",GetInventorySlotInfo("MainHandSlot")) if i and string.find(i,"INV_Fishingpole")then CastSpellByName("Fishing") else UseAction(12)end




Start Melee Attack: (Replace MELEE_SKILL with whatever melee attack you also want to keybind to the same button and remove /script PetAttack() if it doesn't apply to your class)

Code: Select all

/script if (not PlayerFrame.inCombat) then AttackTarget() end
/cast MELEE_SKILL
/script PetAttack()





Spammable Wand Attack: (Won't toggle off Wand's "Shoot" skill if spammed)

Code: Select all

/script if not IsAutoRepeatAction(1) then CastSpellByName("Shoot") end





Quest Macro:(Complete/Accept quests with a keybind - not 100% effective if there are more than 1 quest reward)

Code: Select all

/run AcceptQuest()
/run CompleteQuest()
/run i=GetNumQuestChoices() if i<2 then GetQuestReward(1) end
/run SelectAvailableQuest(1)
/run SelectGossipAvailableQuest(1)
/run SelectActiveQuest(1)
/run SelectGossipActiveQuest(1)





Extreme Graphics Settings: (more than MAX graphics settings can be applied to the Config.wtf file however, depending on your server's restrictions this may or may not have an effect)

Code: Select all

/console groundEffectDensity 256
/console groundEffectDist 170
/console detailDoodadAlpha 100
/console farclip 777
/console horizonfarclip 6226
/console smallcull 0
/console maxLOD 3
/console SkyCloudLOD 3
/console characterAmbient 1






Class Specific Macros:


Hunter Macros:


Tracking Toggle Macro: (Toggles between different Hunter Tracking options)
Humanoids/Hidden/Undead/Giants

Code: Select all

/run c=CastSpellByName t=GetTrackingTexture() if t and strfind(t,"Prayer") then c("Track Hidden") elseif t and strfind(t,"Stealth") then c("Track Undead") elseif t and strfind(t,"Dark") then c("Track Giants") else c("Track Humanoids") end


Beasts/Dragonkin/Demons/Elementals

Code: Select all

/run c=CastSpellByName t=GetTrackingTexture() if t and strfind(t,"_Tracking") then c("Track Dragonkin") elseif t and strfind(t,"Dragon") then c("Track Demons") elseif t and strfind(t,"Fel") then c("Track Elementals") else c("Track Beasts") end


Use the script to get the current Tracking Texture:

Code: Select all

/run icon= GetTrackingTexture() DEFAULT_CHAT_FRAME:AddMessage(icon)




All-In-One Pet Macro:(Feeds, Dismisses, Calls or Revives Pet according to whatever is appropriate)

Code: Select all

/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(3, 1) else c("Dismiss Pet") end else c("Call Pet") end




Raptor Strike/Mongoose Bite Macro:

Code: Select all

/script if (not PlayerFrame.inCombat) then AttackTarget() end
/cast Raptor Strike
/cast Mongoose Bite


...also you can add /cast Wing Clip to the end of this one too, however keep in mind it's not mana efficient


Priest Macros:


Cast Buff or else spammable Wand "Shoot": (Using the example of Inner Fire and Shoot)

Code: Select all

/run local i,x=1,0 while UnitBuff("player",i) do if UnitBuff("player",i)=="Interface\\Icons\\Spell_Holy_InnerFire" then x=1 end i=i+1 end if x==0 then CastSpellByName("Inner Fire") else UseAction(37) end


Use "Find Buff Texture" macro from top of page to replace "Interface\\Icons\\Spell_Holy_InnerFire" with the appropriate buff texture.

 

 

Share this post


Link to post
Share on other sites

Druid spammable stealth macro:

/run –CastSpellByName(“Prowl”)
/run i=0 m=0 c=CastSpellByName while not (GetPlayerBuff(i)==-1) do if (strfind(GetPlayerBuffTexture(GetPlayerBuff(i)),”Ability_Ambush”)) then m=1 end i=i+1 end if m==0 then c(“Prowl”) else c(“Track Humanoid”) end

If no in stealth then cast Prowl, otherwise cast Track Humanoid. You can replace it with any other ability.

Share this post


Link to post
Share on other sites

Unmount/cast spell/Mount

to add something nice to the TE i combined some terms to create a useful Macro, cause i dont found something useful like this

Here i used Charge to enter combat on mount, replace with any other spell you want. The actionbutton is the one, you placed your Mount, like explained on top of topic.

/script CastSpellByName("Charge()")
/run UseAction(26)

its not perfect but works.

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  

×