TargetRole

Auto update your macros to target current group members by role

File Details

1.2.8

  • R
  • Feb 9, 2016
  • 3.84 KB
  • 1.2K
  • 6.2.3
  • Retail

File Name

TargetRole_v1.2.8.zip

Supported Versions

  • 6.2.3

Version 1.2.8 ----------------------------------------

Interface number update WoD 6.2.3

Version 1.2.7 ----------------------------------------

Interface number update

Version 1.2.6 ----------------------------------------

Interface number update

Version 1.2.5 ----------------------------------------

Added PET as keyword

Version 1.2.4 ----------------------------------------

Interface number update

Version 1.2.3 ----------------------------------------

Interface number update

Version 1.2.2 ----------------------------------------

Added MONK as keyword

Version 1.2.1 ----------------------------------------

GetNumPartyMembers() and GetNumRaidMembers() no longer exist in version 5.0.4 of World of Warcraft.
GetNumGroupMembers() called in conjunction with IsInRaid() instead.

Version 1.2.0 ----------------------------------------

TargetRole can now target players by role or class.

Supported keywords:
Role: TANK, DPS, HEALER
Class: LOCK, WAR, HUNTER, MAGE, PRIEST, DRUID, PALLY, SHAMAN, ROGUE, DK

Many improvements to efficiency.  TargetRole will only use functions which are necessary for your Macros.  For example if your macros only use the keyword TANK then it won't waste your time and bandwidth looking up class.

Version 1.0.2 ----------------------------------------

Changed syntax to include delimiters.

You may still use:
ROLE or ROLEdefault - previous syntax

But now you have the option of using slashes to separate defaults for readability:
ROLE/default

This is particularly useful if you are chaining roles as defaults:
ROLE/ROLE/ROLE/default (gently down the stream)

Furthermore you can now enclose the key word group within <>:
<ROLE/default>
This maintains the integrity of your key words when the next character is alphanumeric.

Consider the following:
/petattack [@TANKtarget]
Without enclosing the key word, that will set your pet onto your tank or if there is no tank it will default to target.

Now with key word enclosed:
/petattack [@<TANK>target]
Now your pet will attack your tank's target.

Note also in this example there is no default so if there is no tank <TANK> will simply be removed leaving you with /petattack [@target] which may work quite well anyway.

Version 1.0.1 ----------------------------------------

Removed built in defaults in favour of user defined defaults New keyword syntax: ROLEdefault
eg. TANKpet - will target the pet if there is no tank.

You can also use roles as defaults.
eg. TANK2TANKpet - will target tank if there is no second tank, and pet if there is no tank.

This also fixes bug whereby TANK2 was defaulting to pet2

find replace method change also makes code more efficient.

A warning will fire if you are in combat when roles change to tell you macros cannot be updated. They will be updated as soon as you leave combat.

Version 1.0.0 ----------------------------------------

Initial Release

If the keyword is shorter than the unit name replacing it (DPS is shorter than player3), then the updated macro will use more characters than the original.
This may result in the macro exceeding the maximum character limit of 255.

Macros cannot be updated while in combat or while the macro is open in the macro editor.