CCWarn - v1.2
By Cogwheel
******************* NOTICE: INCOMPATIBLE CHANGE FROM V1.1.1 ********************
CCWarn now uses macro option syntax to specify the unit to check. If no unit is
specified, it assumes your target. For example:
/ccwarn target Sheeping... you break it, you tank it
should be written as:
/ccwarn Sheeping... you break it, you tank it
For a unit other than target it would look like:
/ccwarn [target=focus] Sheeping... you break it, you tank it
********************************************************************************
CCWarn provides a slash command to help keep party/raid members from breaking
your crowd control. It does so by whispering anyone in your party/raid who is
targeting or whose pet is targeting your target. In practice, this is much more
effective than the common channel announcement macros out there.
Usage: /ccwarn (/ccw) [options] [<spell>] [message]
The bare /ccwarn command will check your target against your party members'
targets, and whisper the following messages: "Change targets!" or "Call off
your pet!" You can add to these by providing an additional message to the slash
command.
Example:
/cast Polymorph
/ccwarn Trying to sheep... You break it, you tank it!
Whispers:
Change targets! Trying to sheep... You break it, you tank it!
or
Call off your pet! Trying to sheep... You break it, you tank it!
The [target=] macro option allows you to specify which unit of yours to check
against your party's targets. Other macro options can be used as shown in
Neuro's guide on the US UI & Macros Forum:
http://forums.worldofwarcraft.com/board.html?forumId=11114&sid=1
Example:
/cast [target=focus, harm] Seduction; [harm] Seduction
/ccwarn [target=focus, harm]; [harm]
Since no messages are provided, it will only whisper the default alerts.
If you provide a spell inside brackets (see the third example below), CCWarn
will first make sure that you have enough mana and that your spell is in range,
available, and not on cooldown to prevent chat spamming when you are mashing the
macro.
Example:
/cast Sap
/ccwarn <Sap> target
A few notes:
- You can also call the CCWarn function directly from your Lua scripts via:
CCWarn(unit[, message])
- If the unit you specify does not exist (for example, if you run /ccwarn and
you do not have a target), CCWarn will fail silently. This has the side-effect
that the [exists] conditional is meaningless.
- The spell check will not work for pet abilities like Seduction. This is due to
a fundamental difference between your spells and your pet's. If you attempt to
use one of your pet's abilities, it will move closer to your target if it is
out of range.
Changes:
v1.2
- Added <spell> check
- /ccwarn now accepts macro options and uses them to specify your unit (via
[target=unit]) instead of taking a unit directly - INCOMPATIBLE WITH PREVIOUS
VERSION
- Made localizable
v1.1.1
- Removed debugging message that caused an error for players without CogsBar
v1.1
- Added unit parameter to /ccwarn (/ccw)
- Removed /ccwarnfocus (/ccwf).
v1.0
- Initial Release.