LonnyAnnouncer let you customize announcements for specific spells or items.
Slash Commands:
/lonnyannouncer command
/la command
/lann command
config - Opens the configuration frame.
tracker - Opens the tracker panel.
info - Addons info.
help - Slash commands information.
The addon comes with a very flexible editor that let you track for spell events, let me introduce you to the events.
Successful Tab:
Hit - A damaging spell hits the target.
Heal - A beneficial spell heals the target.
Spellcast - The player either performing an instant cast, start channeling a spell or casted a spell successfully.
Start Cast - The player initiate a cast.
Failure Tab:
Miss - The player's spell was absorbed, blocked, dodged, evaded, immune, missed, parried, reflected or resisted.
Interrupt - The player's spell was interrupted. (eg. Kick, or Counterspell)
Buff Fades - The spell fades from the player.
Channel Stop - The spell channeling stopped.
Cast Failure - The spell casting stopped.
Note, as you can see all these events are triggered only when the player is being affected by one way or another.
Text commands:
Text commands are special tokens that let you create dynamic text and are used throughout your messages.
%Tclass - Returns the class name of the specified unit (e.g., "Warrior" or "Shaman").
%Tlevel - Returns the level of a unit.
%Tgender - Returns a string indicating the gender of the specified unit, if known.
%Tfamily - Returns the type of creature of the specified unit (e.g., "Crab").
%Ttype - Returns the classification type of creature of the specified unit (e.g., "Beast").
%Tfaction - Returns the faction name of the specified unit. (eg. "Alliance")
%T - Returns the name of a unit.
Now if you wonder what's the T suffix infront of the commands above, these are any of the following valid unitId.
p - Player.
pet - Pet.
pt - Pet's target
t - Player's target
tt - Target's target
f - Focus.
ft - Focus's target
mo - Mouseover.
Here is a list of general commands.
%snr - Spell name and rank. (eg. "Healing Wave (Rank 12)")
%sn - Spell name. (eg. "Healing Wave")
%sr - Spell rank. (eg. "Rank 12")
%in - Item name. (eg. "Ogre Mauler's Badge")
Note, most of the items have a different name than their effect, therefor, if you want to print out the effect name the item does, you would use "%sn", otherwise you would use "%in" to get the item name.
If the Hit or Heal checkboxes are checked, you can use the command "%amount" to show the amount of damage, healing made on the target.
Text Formatting:
Regardless to text commands, text formating customize the appearance of the text.
text - The text in the brackets will conditionally appear only when a critical hit, or heal was made.
text - The text in the brackets will turn into UPPERCASE.
text - The text in the brackets will turn into lowercase.
text - The text in the brackets will turn into a Title Case.
Note, as for the time being you can't use the same text formatting command nestedly.
A small demonstrations.
"%sn hits %t (%tlevel %tclass) for %amount. (Critical)"
Now, for the scenario we fired an Arcane Shot and our target is a "Level 70 Warlock" named "Test" the above text gonna be formatted into the following.
"Arcane Shot hits Test (70 Warlock) for X."
And in case it was a critical hit.
"Arcane Shot hits Test (70 Warlock) for X. (Critical)"
TODO List:
Improve the text parser to make it a bit smarter.
Send messages between players.
Make an option to customize channels per spell.
Polish the UI.
Code optimization and cleanup. |
|