WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Mark target when casting (https://www.wowinterface.com/forums/showthread.php?t=44176)

kenji101 09-05-12 07:25 PM

Mark target when casting
 
Ok, so I have an event I am going to do at the end of this month and I want to try and create a macro that marks a star above the person I throw the heavy leather ball too. Problem is I dont want it to mark others if I don't have the ball.

Mainly, Macro needs to require to have the ball before it can mark anything. Anybody help?

macro I have used doesn't work

/script SetRaidTarget("target",1);
/cast Heavy Leather Ball

Any advice would help out.

Dridzt 09-05-12 07:57 PM

Quote:

Originally Posted by kenji101 (Post 262527)
Ok, so I have an event I am going to do at the end of this month and I want to try and create a macro that marks a star above the person I throw the heavy leather ball too. Problem is I dont want it to mark others if I don't have the ball.

Mainly, Macro needs to require to have the ball before it can mark anything. Anybody help?

macro I have used doesn't work

/script SetRaidTarget("target",1);
/cast Heavy Leather Ball

Any advice would help out.

Can't try in-game atm, so test both these versions
(first would work for any locale, but not sure the item:itemid format is supported, second would work for english clients only)
Code:

/run local c=GetItemCount(18662) if c and c>0 then SetRaidTarget("target",1) end
/use item:18662

or
Code:

/run local c=GetItemCount(18662) if c and c>0 then SetRaidTarget("target",1) end
/use Heavy Leather Ball


Phanx 09-05-12 08:11 PM

Quote:

Originally Posted by Dridzt (Post 262531)
(first would work for any locale, but not sure the item:itemid format is supported ...

"/use item:18662" is supported, and has been since the Burning Crusade, where I had to use it to fit my Tainted Core macro into 255 characters. :p

kenji101 09-05-12 08:22 PM

Thanks a ton.

/run local c=GetItemCount(18662) if c and c>0 then SetRaidTarget("target",1) end
/use item:18662

was the right one. it works :D really awesome.


All times are GMT -6. The time now is 09:44 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI