Showing posts with label Macro. Show all posts
Showing posts with label Macro. Show all posts

Sunday, 9 February 2014

World of Warcraft - Macro - Mount & Follow


I use this macro to mount and then follow pre-defined friends and family that I always group with.

/cleartarget
/use [nomounted,noflyable]Azure Water Strider;[nomounted,flyable]Winged Guardian
/tar [noexists][dead]Plank
/tar [noexists][dead]Ebony
/tar [noexists][dead]Palehoof
/in 1.8 /follow

The last line requires the Slash In addon. 

Thursday, 17 October 2013

World of Warcraft - Macro - Place raid markers then clear


This macro is now broken, I was going to rework it but found an addon that has more usability with the added functionality of raid marking.

Maggz Marker 

This macro will place a world raid marker each click for 3 and then clear all the markers on the fourth click.

/run local b=ActionButton8 _WMH=_WMH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=(Z or 0)%4+3 self:SetAttribute("macrotext","/wm "..Z.."\\10/cwm "..Z)'))or 1
/click ActionButton8 Button5


Saturday, 5 October 2013

World of Warcraft - Macro - Link a spell in a message


These macros will link a spell with its tooltip in a message.

The first one I have is an emote that performs a Round House kick to my target.

/run SendChatMessage("performs a \124cff71d5ff\124Hspell:85668\124h[Roundhouse Kick]\124h\124r to %t that would make Chuck Norris proud","EMOTE",nil)

The linked spell can be changed to any one by going to Wowhead selecting the spell you want, click the link button and copying the ingame link string.
eg.

\124cff71d5ff\124Hspell:50303\124h[Swine Flu]\124h\124r
\124cff71d5ff\124Hspell:5025\124h[Test Tickle]\124h\124r


The second one whispers a message to my target when I cast underwater breathing.
This one also has a range check.

#showtooltip
/cast Unending Breath 
/run if UnitInRange("target")then SendChatMessage("Cast on you \124cff71d5ff\124Hspell:5697\124h[Unending Breath]\124h\124r.","WHISPER",nil, UnitName("target"))end


I needed this macro to sell an enchanting pattern, as I could link the pattern but not the enchants tool tip itself.

/script DEFAULT_CHAT_FRAME:AddMessage("\124cff1eff00\124Hitem:22558:0:0:0:0:0:0:0:0\124h[Formula: Enchant Weapon - Spellsurge]\124h\124r");


This one will random through a list of emotes.
You can add or remove any emotes you want.

/script DoEmote(GetRandomArgument("applaud","bashful","blow","bravo","cackle","cheer","chuckle","clap","commend","cuddle","curtsey","giggle","grin","hug","kneel","laugh","lavish","party","pat","praise","purr","raise","salute","shindig","shy","silly","smile","tickle","wave","whistle","wicked","wink"))


Once again most of my macros exceed the 255 character limit so you will need an macro extension addon such as Macro Toolkit.


World of Warcraft - Macro - Random Mount from a defined list


This macro will random a mount from a list of mounts that you have nominated.
I have an ALT modifier to select my swimming mount.

#showtooltip
/dismount
/castrandom [mod:alt] Sea Turtle;Dreadsteed,Felsteed,Azure Water Strider

Wednesday, 18 September 2013

World of Warcraft - Macro - Random Mount

This macro will random a mount from all of your available mounts.
Flying mounts for areas that allow flying or ground mounts where you cannot fly.

/dismount
/run if not IsMounted() then local m,t,f="mount",{{},{}} for i=2,GetNumCompanions(m) do tinsert(t[bit.band(2,select(6,GetCompanionInfo(m,i)))==0 and 1 or 2],i) end f=IsFlyableArea() and 2 or 1 CallCompanion(m,t[f][random(#t[f])]) else Dismount() end

Sometimes you may get a "cant use that mount" if you have a class specific, faction specific or zone specific mount, but just hit it again and you will get the next random.

Friday, 13 September 2013

World of Warcraft - Macro - Target Announce

This macro will place a skull raid mark on your target and announce your co-ordinates and the health of the target to the general channel.

/stopmacro [dead][noexists]
/run SetRaidTarget("target",0)
/1 {triangle} %t is up {triangle}
/run SetMapToCurrentZone()local x,y=GetPlayerMapPosition("player")s=(format("{triangle}  %.0f,%.0f {triangle} ",x*100,y*100)..((math.floor((UnitHealth("target")/UnitHealthMax("target"))* 100)).." % {triangle}"))SendChatMessage(s,"CHANNEL",nil,1)
/run SetRaidTarget("target",8)

The macro will not announce if you have no target or your target is dead.

If you want to announce to a different channel change the number 1 on line 3 & 6.

You can change the raid target mark from skull to another by changing 8 on line 7.

You can also change the raid icon in chat by replacing triangle on lines 3,4,5 & 6.

World of Warcraft - Macro - Add Rares to NPCscan - Timeless Isle


This macro will add all the Timeless Isle rares' to NPCscan.

You will have to split the following macro up into smaller chunks unless you have a macro addon that will extend your macro limit beyond the 255 WoW limit.


/npcscan add 73158 Gander
/npcscan add 73160 Steelhorn
/npcscan add 73161 Furyshell
/npcscan add 72909 Gu'chi
/npcscan add 72245 Zesqua
/npcscan add 71919 Zhu-Gon
/npcscan add 72193 Karkanos
/npcscan add 72045 Chelon
/npcscan add 71864 Spelurk
/npcscan add 73854 Cranegnasher
/npcscan add 72048 Rattleskew
/npcscan add 72769 Jadefire
/npcscan add 73277 Leafmender
/npcscan add 72775 Bufo
/npcscan add 73282 Garnia
/npcscan add 72808 Tsavo'ka
/npcscan add 73166 Spineclaw
/npcscan add 73163 Python
/npcscan add 73157 Rock Moss
/npcscan add 73170 Osu
/npcscan add 73169 Jakur
/npcscan add 73171 Champion
/npcscan add 73175 Cinderfall
/npcscan add 73173 Urdur
/npcscan add 73172 Flintlord
/npcscan add 73167 Huolon
/npcscan add 72970 Golgannar
/npcscan add 73279 Evermaw
/npcscan add 73281 Vazuvius
/npcscan add 73174 Archiereus
/npcscan add 72032 Zvezdan

World of Warcraft - Macro - Add Rares to NPCscan - Isle of Thunder

This macro will add all the Isle of Thunder rares' to NPCscan.

You will have to split the following macro up into smaller chunks unless you have a macro addon that will extend your macro limit beyond the 255 WoW limit.

/npcscan add 50358 Haywire Sunreaver Construct 
/npcscan add 69664 Mumta
/npcscan add 69996 Ku'lai the Skyclaw
/npcscan add 69998 Goda
/npcscan add 69997 Progenitus
/npcscan add 70000 Al'tabim the All-Seeing
/npcscan add 69999 God-Hulk Ramuk
/npcscan add 70001 Backbreaker Uru
/npcscan add 70002 Lu-Ban
/npcscan add 70003 Molthor
/npcscan add 70530 Ra'sha