Thread Tools Display Modes
05-19-09, 07:56 AM   #1
Iza
A Cyclonian
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 43
Targetting Vehicles

Hello everybody,
I've got another problem. My addon internally builds macros for all click casting spells. I heard there are some mobs in Ulduar that a player can take control of (as vehicle) and that can be healed.

Problem:
I'd like to know if there is a macro conditional for vehicles like this:

/cast [target=raidvehicle17,exists] <Healing spell>
/cast [target=raid17] <Healing spell>

So if raid unit 17 is in a vehicle (while I am not) it will heal the vehicle, otherwise it will heal the player...

Thanks again in advance,
Iza
  Reply With Quote
05-19-09, 08:13 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Iza View Post
Hello everybody,
I've got another problem. My addon internally builds macros for all click casting spells. I heard there are some mobs in Ulduar that a player can take control of (as vehicle) and that can be healed.

Problem:
I'd like to know if there is a macro conditional for vehicles like this:

/cast [target=raidvehicle17,exists] <Healing spell>
/cast [target=raid17] <Healing spell>

So if raid unit 17 is in a vehicle (while I am not) it will heal the vehicle, otherwise it will heal the player...

Thanks again in advance,
Iza
I belive its raidNpet
  Reply With Quote
05-19-09, 08:45 AM   #3
Iza
A Cyclonian
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 43
Originally Posted by p3lim View Post
I belive its raidNpet
Hi p3lim,

thank you. yes you can target vehicle by "raidpet17" and such but that would the macro always make heal the pet if there is one (e.g. clicking a hunter). What I need is a way to separate vehicles from regular pets. There seems to be a conditional "target=vehicle" but it will work only for your own vehicle I think.
  Reply With Quote
05-21-09, 01:58 AM   #4
Iza
A Cyclonian
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 43
Hi everybody,

just FYI: seems like I found a way to auto-target vehicles instead of players like this:

/cast [target=raid3,help][target=raidpet3,help] <spell name>

Conditional "help" seems to only trigger when the target is NOT in a vehicle.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Targetting Vehicles


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