User:Kunzite1/Useful macros/General

= AddOns = Total number of installed Addons /run local num = GetNumAddOns; DEFAULT_CHAT_FRAME:AddMessage("You are currently running " .. num .. " addons you nutjob!")

= Combat = Auto-Attack before ability/spell. /startattack /use Stormstrike
 * 1) showtooltip

Trinket before ability/spell /use 13 /use Stormstrike
 * 1) showtooltip Stormstrike

= Daily quests =

Isle of Quel'Danas
/use item:34248 /use item:34253 /use item:34255 /use item:34257 /use item:34338 /use item:34368 /use item:34414 /use item:34420 /use item:34475 /use item:34483 /use item:34489 /use item:34500 /use item:34533 /use item:35233

Argent Tournament
/use item:44986 /use item:45000 /use item:45005 /use item:45080 /use item:45083 /use item:46885 /use item:46954 /use item:47029 /use item:47033 /use item:47036

Molten Front
/use item:68997 /use item:69212 /use item:69225 /use item:69232 /use item:69234 /use item:69235 /use item:69240 /use item:69759 /use item:69806

= Dungeon Finder = If not in dungeon, teleport in If in dungeon, teleport out /run LFGTeleport(IsInLFGDungeon)

= Gear =

Trinket
 Trinket One  /use 13  Trinket Two  /use 14
 * 1) showtooltip 13
 * 1) showtooltip 14

= Map =

Coordinates
Character is in [Zone] @ 0,0 /script px,py=GetPlayerMapPosition("player");z=GetZoneText; /script DEFAULT_CHAT_FRAME:AddMessage(format("%s is in [%s] @ %i,%i",UnitName("player"),z,px*100,py*100))

[Zone - Subzone] 0,0 /script x,y=GetPlayerMapPosition("player");z=GetZoneText;s=GetSubZoneText;if(s~="")then z=z.." - "..s end /script d=4;p=10^d;x=floor(x*p+0.5)/p;y=floor(y*p+0.5)/p;DEFAULT_CHAT_FRAME:AddMessage(format("[%s] %s,%s",z,x*100,y*100))

= Pets =

Companions
/run CallCompanion("CRITTER",random(GetNumCompanions("CRITTER")))

Mounts
/run CallCompanion("MOUNT",random(GetNumCompanions("MOUNT")))

/use [combat] Ghost Wolf /userandom [nocombat,noflying] Purple Skeletal Warhorse, Swift Brewfest Ram

= Professions =

Show/Hide Info
/minarch show /archy digsites /stopmacro [nogroup] /minarch hide
 * 1) showtooltip Survey

List Finished Projects
/run local g,a,n,c,r=GetArtifactInfoByRace for x=1,9 do r,a,n,c=0,0,GetArchaeologyRaceInfo(x),GetNumArtifactsByRace(x)for y=1,c do a=a+select(9,g(x,y))r=r+select(3,g(x,y))end c=c-r print(n..' (Rare:'..r..' Grey:'..c..' Solved:'..a..')')end
 * 1) showtooltip Archaeology

Crafting
/run CloseTradeSkill /cast Leatherworking /run r="Light Leather"; /run for i=1,GetNumTradeSkills do if GetTradeSkillInfo(i)==r then CloseTradeSkill DoTradeSkill(i) break end end
 * 1) showtooltip Ruined Leather Scraps

Fishing
/use [equipped:Fishing Pole] Fishing /stopmacro [equipped:Fishing Pole] /startattack /use Stormstrike
 * 1) showtooltip [equipped:Fishing Pole] Fishing; Stormstrike

= Targetting =

Focus
Set target as focus

If no target, clears focus /clearfocus /focus

Assist Focus /assist focus

MTarget
Set macro in standard macro area: /assist $mtank Click Template button.

Set macro in standard macro area: /mtarget set mtank

Bind first macro to G, second macro to ALT+G. When you enter dungeon, target tank and press ALT+G. Press G to assist tank.

= Travel =

Ghetto Dungeon Graveyard Port
/run PromoteToLeader("party1"); LeaveParty;