Reply
Thread Tools Display Modes
Unread 10-15-12, 06:09 AM   #1
shyrotam
A Cliff Giant
Join Date: Jan 2010
Posts: 73
on-the-fly /target macro

What is the quickest way I could write the names of enemy targets to a macro?

"/target shamwow
/target bravehearth
/target dischead
/target genericdeth
/target stabstab
/target dumhunter
/target stupidface
/cast stun"

I'd like to prepare this macro at the start of every BG (with BattlegroundTargets I can manually target each enemy from the holding pen).

Also, could the process be automated in any way? And if so can there be any kind of sort function to put healers at the end of the list?

Thanks.
shyrotam is offline   Reply With Quote
Unread 10-15-12, 06:14 AM   #2
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 816
automation is not possible.
__________________


"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
tinyu is offline   Reply With Quote
Unread 10-15-12, 06:47 AM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,129
An addon could automatically get the names of your arena/battleground opponents and put them in the macro, but only while out of combat, so it would not be all that useful. Also, I don't know of any existing addons that do this, so you'd probably have to write one.
__________________
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 10-15-12, 06:59 AM   #4
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 310
My QuickQuestItem has the ability to write / update a macro on mouseover but I don't really see the reason for having this?

If you're looking to make 10 macros to automatically be created/updated when you join a BG, that's possible. As for arena, as long as you're out of combat for a moment and have a chance to gather the names it's doable.

From what I can tell you're looking to target the closest enemy to cast a stun.

If this is the case a simple macro for that could be made with this:
Code:
/cleartarget
/targetenemy
/cast spellname
suicidalkatt is offline   Reply With Quote
Unread 10-15-12, 08:59 AM   #5
SDPhantom
A Molten Giant
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 998
Originally Posted by shyrotam View Post
What is the quickest way I could write the names of enemy targets to a macro?

"/target shamwow
/target bravehearth
/target dischead
/target genericdeth
/target stabstab
/target dumhunter
/target stupidface
/cast stun"

I'd like to prepare this macro at the start of every BG (with BattlegroundTargets I can manually target each enemy from the holding pen).

Also, could the process be automated in any way? And if so can there be any kind of sort function to put healers at the end of the list?

Thanks.
Assuming you have such an addon process the list at the beginning of a BG (while still out of combat), there's a serious flaw in the use of the macro. It will force target of the last person on the list that it can target. This will most likely be someone across the entire field and would be far out of range of any ability you can use. This would render the macro completely useless even if you had someone else on the list within range, previously targeted or not. You'd be better off using /targetenemyplayer [noharm]
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-15-12 at 09:01 AM.
SDPhantom is offline   Reply With Quote
Unread 10-15-12, 11:00 AM   #6
shyrotam
A Cliff Giant
Join Date: Jan 2010
Posts: 73
Originally Posted by SDPhantom View Post
Assuming you have such an addon process the list at the beginning of a BG (while still out of combat), there's a serious flaw in the use of the macro. It will force target of the last person on the list that it can target. This will most likely be someone across the entire field and would be far out of range of any ability you can use. This would render the macro completely useless even if you had someone else on the list within range, previously targeted or not. You'd be better off using /targetenemyplayer [noharm]
Ohhhh...it will target people out of range. That messes it up. Thx for the alternative.
shyrotam is offline   Reply With Quote
Unread 10-15-12, 12:41 PM   #7
SDPhantom
A Molten Giant
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 998
The reason being is BGs have a much larger "visual range" than other areas.
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » on-the-fly /target macro

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