Categories / Macros / General macros

General macros

Swapping ore and herb tracking for farming

/run if not THO then local f,t,c=CreateFrame("Frame","THO"),1,0 f:SetScript("OnUpdate", function(_, e) c=c+e if c>3 then c=0 SetTracking(t) if t==1 then t=2 else t=1 end end end) THO:Hide() end
/run if THO:IsVisible() then THO:Hide() else THO:Show() end

 

Auto-loot all items with a single click

/run for ci = 1, GetNumRaidMembers() do if (GetMasterLootCandidate(ci) == UnitName("Skyline")) then for li = 1, GetNumLootItems() do GiveMasterLoot(li, ci); end end end

 

Auction bid

/run local f = GetMouseFocus(); if f then f:Click() end
/run BrowseBidButton:Click();
/run StaticPopup1Button1:Click();

 

Buyout on the auction

/run local f = GetMouseFocus(); if f then f:Click() end
/run BrowseBuyoutButton:Click();
/run StaticPopup1Button1:Click();

 

Macro for automatic training at class trainers

/run LoadAddOn"Blizzard_TrainerUI" f=ClassTrainerTrainButton f.e = 0 if f:GetScript"OnUpdate" then f:SetScript("OnUpdate", nil)else f:SetScript("OnUpdate", function(f,e) f.e=f.e+e if f.e>.01 then f.e=0 f:Click() end end)end

 

Macro for deleting quests

/run AbandonQuest(1) 

 

Macro for resetting combat

/script CombatLogClearEntries()

 

Macro for collecting mail with a single button press

/run MailItem1Button:Click()
/run OpenMailDeleteButton:Click()
/run StaticPopup1Button2:Click()

 

Macro for two or more mounts on a single button

#showtooltip
/use [flyable] Tawny Wind Rider
/use [noflyable] Acherus Deathcharger

 

Macro fix addons

/run local f = CreateFrame("frame", nil, UIParent); f:SetScript("OnUpdate", CombatLogClearEntries);

Related articles