This mod is based on Jooky's Chat Alias mod. It appears that Chat Alias has been abandoned and has not functioned since WoW 2.0. Chat Alias Lite does not implement all the functions of the original Chat Alias, but it does do the most important thing. It will replace strings in messages.
For users of the original Chat Alias, Chat Alias Lite does not implement the count down and repeat functions. Also, the format of the alias file has changed. If you created your own alias (either via the non-supported in-game changes or directly updating the alias.lua file), you will need to update the ChatAliasLiteAliases.lua file using the new format.
In addition to all the original aliases, I have copied all the target referencing aliases and created similiar aliases that reference your focus.
Guild and ImpInaBall aliases courtesy of Alfuin.
Compatibility with Wow Instant Messenger courtesy of Stewart of WIM's site.
Mouseover and mouseovertarget alias added at the suggesion of Alfuin.
While I have relied heavily on other's for this Addon, any issues with it are with my interpretation of the code and not the original code. Thus, any issues you have with this, should be blamed on me and not others.
For those of you who have never seen Jooky's original mod, here is what this does:
Chat Alias Lite takes an assortment of "$" prefixed keywords in the things you say (in any channel) and converts them to much more role-play appropriate values. It will replace the values in both what you say and in the target field of a "/t" command
For player, target, and focus there are keywords for:
. Name - $name, $targetname, $focusname
. Level - $level, $targetlevel, $focuslevel
. Class - $class, $targetclass, $focusclass
. Race - $race, $targetrace, $focusrace
. Faction (Horde or Alliance) - $faction, $targetfaction, $focusfaction
. Sex (male or female) - $sex, $targetsex, $focussex
In addition for the player there are keywords for:
. Health - $health, $healthmax, $healthpct, $healthpctcode (same as $healthpct with % sign)
. Mana - $mana, $manamax, $manapct, $manapctcode
. XP - $xp, $xpmax, $xppct, $xppctcode
. Location - $location (x,y coordinates), $subzone, $zone
For the target and focus various pronouns are keyworded:
In addition to the variable substitutions, it contains a few static substitutions:
$omw - "On my way..."
$pst - "Please send tell."
And to make matters a little fun it also has:
. $randomsentence - Returns a random sentence.
. $eightball - Returns a random form the classic "magic eight ball"
Several of the longer keywords also have shorter versions. Check ChatAliasAlais.lua for a complete list of all the keywords and what they are translated into. If you're unsure of what a keyword returns, you can also just say the keyword in chat and see what shows up.
. Resurrect macro:
/cast Ressurect (or whatever your class calls it)
/say I call upon the gods to bless the body of this $targetrace and return life to my friend, $target.
And if you're targeting a dwarf named Freddy, you'll get:
. "I call upon the gods to bless the body of this dwarf and return life to my friend, Freddy."
To send a tell to your current target simply type:
/t $t Hiya
02.13.10 - Updated TOC, no changes to code
05.03.09 - Changed string detection code to allow non-alpha-numeric characters to tokens to
04.25.09 - Updated TOC, no changes to code
02.09.09 - Fixed duplicated mouseovername to be mouseoverclass
Fixed 2nd duplicate mouseovername to be mouseovertargetclass
Add several more shortened versions of various aliases.
01.05.09 - Added Mouseover and mouseovertarget alias for name, guild, level,
class, race, faction, sex, adjective, and pronoun
- Modified code to use optional period (".") to denote end of alias
embedded in a word, thus allowing you to "pluralize" an alias.
However, if you want to immediately follow an alias with a period,
you need to code two periods.
12.13.08 - Compatibility with Wow Instant Messenger
Fixed $sex to return male/female and not a number
New aliases: $guild, $impinaball
10.22.08 - Updated ToC for WoW 3.0 release. No code changes
08.27.08 - Updated description. No code changes
04.02.08 - Updated TOC with new WoW release. No code changes