Attack the nearest enemy and not toggle off. Using macros only since addons are banned. After repeatedly requesting blizzard fix issues with attacking, the macro below finally works.
The current blizzard default keybind 'Target Nearest Enemy', keybind 'Attack Target', slash /targetenemy or slash /startattack are not enough to target properly and may at times toggle or cycle through the enemy unintentionally, at least for me. Using the mouse to find targets was also not efficient. Using the attack icon from the spell book did not always search for the nearest target so it was not enough.
For melee classes and some range classes, create a macro and add it to the actionbar and a keybind. Everything with one keypress. Melee like warriors, rogue, mages, etc. For example, see readme file for sample macro, similar to,
- 1. Cast an attack so icon in actionbar flashes (optional)
- 2. Clear the target, without having to press escape.
- 3. Target nearest enemy, without having to press Tab.
- 4. Attack target after a fraction of a second, without having to press T.
For some range classes, create a macro so it targets only. Otherwise it starts attacking and aggroing mobs accidently if you have autoshot or other abilities. You normally attack by choosing your spell/weapon later. Range like hunters, etc. For example, see readme file for sample macro, similar to,
- 1. Cast an attack so icon in actionbar flashes (optional)
- 2. Clear the target, without having to press escape.
- 3. Target nearest enemy, without having to press Tab.
Hint: A convenient keybind is the middle mouse button. Currently, the middle button is used by the default blizzard MouseLook key which I would rather reassign to a 4th button or just use the left-right buttons simultaneously. Holding the middle button for extended periods of time for MouseLook was not comfortable for me anyway. Additionally, a convenient keybind with the shift- middle button can be used with the following addon, QTargetX. http://my.curse.com/downloads/wow-addons/details/qtarget-x.aspx
Install:
- Create a macro with the default blizzard UI, add the icon to the actionbar, and assign a keybind to the icon.
Known bugs:
- Neutral level 1 critters are not being targetted. Like rats, rabbits, deer, etc.
- There are mobs like rats in the Stratholme instance that are not being targetted even though they have red nameplates. Hard to fix because in a group and no time to test. I think it is because rats are originally neutral critters.
- There are mobs like rats in the Icecrown daily areas that are being targetted even though they are neutral. Not sure how to fix.
Known limitations:
- Distance is limited targeting up to 50 yards, which is a limitation of Blizzard.
- Must be facing within 30 degrees of the target, which is a limitation of Blizzard.
- Attacking will not be instantenous. A delay occurs before /startattack detects the current target state. /targetenemy finally sets the target state more quickly for /startattack to respond to properly. Otherwise it would just toggle and stop attacking.
- Automatically attacking next target is not possible because macro requires a keypress due to blizzard limitation. Would have been handy for a warrior when standing in a mob of 5 and the target dies since you want to keep killing and not loose rage accidently. Workaround is to press button repeatedly, by using a second keybind for the keyboard as an alternative to the mouse buttons.
- Note that on PvE servers, targetting can also include players that are tagged for pvp too, even if you do not want it to. This is a default blizzard function. Very easily the opposite faction can sneak in during a fight while you are unaware, immediately tag themselves as PvP, and just wait for you to attack accidently.
ChangeLog:
Revision 3.1.0
- Updated TOC file for patch 3.1.0
Revision 1.44
- Explaination and sample macro for range was not accurate and now maybe a little more clear.
Revision 1.43
- Updated TOC file for patch 2.1.0
- Macros samples for range classes too
Revision 1.42
- BC 2.0 compatible.
- With macro only, no more addon.
Revision 1.0
- (web site erased all my previous changelog info :()
Facts
- Date created
- 30 Sep 2006
- Last updated
- 19 Apr 2009