Reply
Thread Tools Display Modes
Unread 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.
kenji101 is offline   Reply With Quote
Unread 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,191
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.
Dridzt is offline   Reply With Quote
Unread 09-05-12, 08:11 PM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,233
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.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 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.
kenji101 is offline   Reply With Quote
Reply

Go BackWoWInterface » 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