Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
THE BIG FAT MACRO GUIDE
#1
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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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

Code:
/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.

More to be added in later...

- Wayleran

Last edited by Wayleran on Sun Aug 16, 2015 5:22 am, edited 30 times in total.


copied and pasted from nost

credits go to wayleran

MACROS I USE

/script if IsShiftKeyDown() then CastSpellByName("Windfury Totem"); else CastSpellByName("Grounding Totem");end
END

/script if IsShiftKeyDown() then CastSpellByName("Consecration(Rank 1)"); else CastSpellByName("Consecration");end

/script if IsShiftKeyDown() then CastSpellByName("Holy Shock"); else CastSpellByName("Flash of Light");end

/script if IsShiftKeyDown() then CastSpellByName("Repentance"); else CastSpellByName("Hammer of Justice");end

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

/script if IsShiftKeyDown() then CastSpellByName("Seal of Command(Rank 1)"); else CastSpellByName("Seal of Command");end

/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 CastSpellByName("Shoot") end

^(casts innerfire if depleted otherwise uses wand)^

/script if IsShiftKeyDown() then CastSpellByName("Shadow Word: Pain(Rank 1)"); else CastSpellByName("Shadow Word: Pain");end

/script TargetUnit("player")
/cast Dispel Magic
Reply
#2
Eloquently written /clap and +rep from me.

Take note, retrodwellers; this is how you write macros in vanilla!
[Image: izW8PhA.png]
Reply
#3
The fishing/mount/dismount one is the work of a god
:-)
Reply
#4
Duel Mod (Clicking is on / ctrl/shift/alt click is off)
Code:
/script if IsShiftKeyDown() then SendChatMessage(".duel off") elseif IsAltKeyDown() then SendChatMessage(".duel off") elseif IsControlKeyDown() then SendChatMessage(".duel off") else SendChatMessage(".duel on") end;

BlackListMafia Secret Macro
Code:
/y  BZT
/console quit
Reply
#5
source bro
"The greatest trick the Devil ever pulled was convincing the world he didn't exist."
[Image: ks9xXfy.jpg]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)