View Single Post
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,360
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