Page 1 of 1

Macro request,or help with my macro...

Posted: Fri Jan 14, 2011 9:33 am
by Vorel
Hello,

I wanted to make a macro that simultaneously calls forth a mount and a vanity pet.So i ended up to create that:
/castsequence
/use vanity pet's name
/use mount's name

Even though it seems to work,it calls forth both pet and mount,every time i use it i get this error message:

Message: Interface\FrameXML\ChatFrame.lua:849: Usage: CastSpellByName(name[, target])
Time: 01/14/11 15:15:33
Count: 13
Stack: [C]: in function `CastSpellByName'
Interface\FrameXML\ChatFrame.lua:849: in function <Interface\FrameXML\ChatFrame.lua:781>
Interface\FrameXML\ChatFrame.lua:1052: in function `?'
Interface\FrameXML\ChatFrame.lua:4108: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3737: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:2536: in function <Interface\FrameXML\ChatFrame.lua:2529>
[C]: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:274: in function `handler'
Interface\FrameXML\SecureTemplates.lua:541: in function <Interface\FrameXML\SecureTemplates.lua:489>

Locals: (*temporary) = nil
(*temporary) = nil

So,my questions are,1st if there is a way to alter the macro so no error appears or if there is a way to "hide"/prevent the error from showing up;or 2nd if there is any other way/macro that i can use for the simultaneous call of a vanity pet and mount.Side note,the macro i made and use need to be hit once to call both pet/mount if i pressed it again it just dismiss them both again,i like that so i would like to keep this that way,i mean to only have to press the macro button once and not two times,one to summon pet and one for the mounts as:

/castsequence vanity pet's name,mount's name


thanks for any replies,Vorel

Re: Macro request,or help with my macro...

Posted: Fri Jan 14, 2011 9:51 am
by GormanGhaste
the vanity pet is an instant cast and doesn't set off a CD on the mount, so you can simply write it as:

/cast vanity pet name
/cast mount name

this will summon both with one use, and desummon both with a second use

Re: Macro request,or help with my macro...

Posted: Fri Jan 14, 2011 10:34 am
by Vorel
Thanks so much Gormanghaste,worked (and still working) like a charm. :hug: Gormanghaste.