Thread Tools Display Modes
09-05-12, 07:25 PM   #1
kenji101
A Murloc Raider
Join Date: Aug 2012
Posts: 5
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.
  Reply With Quote
09-05-12, 07:57 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
Originally Posted by kenji101 View Post
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

Last edited by Dridzt : 09-06-12 at 04:42 AM.
  Reply With Quote
09-05-12, 08:11 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Dridzt View Post
(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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
09-05-12, 08:22 PM   #4
kenji101
A Murloc Raider
Join Date: Aug 2012
Posts: 5
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 really awesome.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Mark target when casting

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off