Go to Page... |
Updated: | 10-13-10 07:52 AM |
Created: | unknown |
Downloads: | 3,193 |
Favorites: | 11 |
MD5: |
Chat Alias Lite
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:
. Possesive Adjective (his, hers, its) - $posadjective, $focusposadjective
. Object pronoun (him, her, it) - $objpronoun, $focusobjpronoun
. Subject pronoun (he, she, it) - $subjpronoun, $focussubjpronoun
. Reference pronoun (himself, herself, itself) - $refpronoun, $focusrefpronoun
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.
Some examples:
. 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
Comment Options |
05-03-09, 05:50 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
Thank you!
Yeah, superbly done!
Thanks a lot! Always, you'll have good luck. |
|
nania09 |
View Public Profile |
Send a private message to nania09 |
Find More Posts by nania09 |
Add nania09 to Your Buddy List |
Jiral |
View Public Profile |
Send a private message to Jiral |
Find More Posts by Jiral |
Add Jiral to Your Buddy List |
Jiral |
View Public Profile |
Send a private message to Jiral |
Find More Posts by Jiral |
Add Jiral to Your Buddy List |
04-28-09, 05:01 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
adding Keywords to 'ChatAliasLiteAliases.lua'
-> ["%만"]="%me가 %t님의 엉덩이를 만집니다.", and I do the InGame input command '%만'. but, Is not working. Please Support Korean(Unicode) Language. Thank you so much. Have a nice day. |
|
nania09 |
View Public Profile |
Send a private message to nania09 |
Find More Posts by nania09 |
Add nania09 to Your Buddy List |
02-13-09, 10:35 PM | |
|
Re: New bug...
Yep, I need a proof-reader.
While doing a quick test of the fixed $mouseoverclass, I noticed another typo. I had a $mouseoverclass that was pointing at the UnitName("mouseovertarget") function. If you haven't found that one in your copy and fixed it yet, you'll need to find and fix yourself, or download the updates (when they get approved). I also added in all your suggested abbreviations. |
|
Jiral |
View Public Profile |
Send a private message to Jiral |
Find More Posts by Jiral |
Add Jiral to Your Buddy List |
02-09-09, 04:15 PM | |
|
New bug...
A new bug, albeit a minor one... These two lines follow eachother in your latest code of ChatAliasLiteAliases.lua, I am sure you can see the problem.
Code:
["$mouseovertarget"]='ALIASVAL = UnitName("mouseovertarget")', ["$mouseovertarget"]='ALIASVAL = UnitClass("mouseovertarget")', Code:
["%n"]="$name", ["$n"]="$name", ["$l"]="$level", ["%l"]="$level", ["$c"]="$class", ["%c"]="$class", ["$r"]="$race", ["%r"]="$race", ["$fact"]="$faction", ["%fact"]="$faction", ["$s"]="$sex", ["%s"]="$sex", ["$z"]="$zone", ["%z"]="$zone", ["%tc"]="$targetclass", ["$tc"]="$targetclass", ["%tl"]="$targetlevel", ["$tl"]="$targetlevel", ["%ts"]="$targetsex", ["$ts"]="$targetsex", ["%tfact"]="$targetfaction", ["$tfact"]="$targetfaction", ["%tr"]="$targetrace", ["$tr"]="$targetrace", ["%tclassify"]="$targetclassification", ["$tclassify"]="$targetclassification", ["%tt"]="$targettype", ["$tt"]="$targettype", ["%fc"]="$focusclass", ["$fc"]="$focusclass", ["%fl"]="$focuslevel", ["$fl"]="$focuslevel", ["%fs"]="$focussex", ["$fs"]="$focussex", ["%ffact"]="$focusfaction", ["$ffact"]="$focusfaction", ["%fr"]="$focusrace", ["$fr"]="$focusrace", ["%fclassify"]="$focusclassification", ["$fclassify"]="$focusclassification", ["%ft"]="$focustype", ["$ft"]="$focustype", ["%moc"]="$mouseoverclass", ["$moc"]="$mouseoverclass", ["%mol"]="$mouseoverlevel", ["$mol"]="$mouseoverlevel", ["%mos"]="$mouseoversex", ["$mos"]="$mouseoversex", ["%mofact"]="$mouseoverfaction", ["$mofact"]="$mouseoverfaction", ["%mor"]="$mouseoverrace", ["$mor"]="$mouseoverrace", ["%moclassify"]="$mouseoverclassification", ["$moclassify"]="$mouseoverclassification", ["%mot"]="$mouseovertype", ["$mot"]="$mouseovertype", ["jsut"]="just", ["Jsut"]="Just", ["%fthe"]="$focusthe", ["$fthe"]="$focusthe", |
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
12-28-08, 10:47 AM | |||
|
Re: Re: Fixes
Originally I didn't see this as a problem, but I now realize that some of the aliases could be plural (as in "Kill all $traces" should be changed to "Kill all humans"). To do this with minimal disruption to existing users, I will borrow a technique from my JCL and Assembler background. I will enable the use of an optional period to signify the end of a alias to be replaced. This means your example would need to be written as: "/say %name likes %target.. Will %target be %name.s friend?" To produce: "(name) likes (target). Will (target) be (name)s friend?" Note the period after the 1st %target and the 2nd %name is not copied to the output message. Since you actually want a period after the 1st %target, you need to have the two periods here. This said, it's going to take me a couple of days to re-familarize myself with the internals to CAL, make the necessary changes, and debug the new code. But since I'm on vacation this week, I'm hoping it'll be done before New Year's. When I do post the udpated code, I'll also add your mouseover aliases to the aliases. Edit: spelling
Last edited by Jiral : 12-28-08 at 10:53 AM.
|
||
|
Jiral |
View Public Profile |
Send a private message to Jiral |
Find More Posts by Jiral |
Add Jiral to Your Buddy List |
12-25-08, 06:53 PM | |
|
Mouseover alias...
I got another alias for you, which I found useful...
Code:
["$mouseover"]="%mouseover", ["%mouse"]="%mouseover", ["$mouse"]="%mouseover", ["%mo"]="%mouseover", ["$mo"]="%mouseover", ["$mouseovertarget"]="%mouseovertarget", ["%mousetarget"]="%mouseovertarget", ["$mousetarget"]="%mouseovertarget", ["%motarget"]="%mouseovertarget", ["$motarget"]="%mouseovertarget", ["%mot"]="%mouseovertarget", ["$mot"]="%mouseovertarget", Code:
["$mouseover"]='ALIASVAL = UnitName("mouseover")', ["$mouseovertarget"]='ALIASVAL = UnitName("mouseovertarget")', |
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
12-25-08, 06:24 PM | ||
|
Re: Fixes
Code:
["$guild"]='ALIASVAL = GetGuildInfo("player")', ["$targetguild"]='ALIASVAL = GetGuildInfo("target")', ["$focusguild"]='ALIASVAL = GetGuildInfo("focus")' Also, is there a way to fix the bug I mentioned (before your quoted reply) about %target bugging? |
|
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
12-13-08, 08:20 AM | |
|
Fixes
Sorry, but I haven't checked this in awhile. I'm glad you like the addon, even if you did find a few issues with it.
I've added you guild and Imp-in-a-Ball replacements into the alias tables. And I fixed $sex to be consistent. I didn't remove the $gender or $eightball. But since you didn't actually use the original alias, the presence of these shouldn't affect you. Assuming that is you even update you copy, since this update is just bringing your changes into the base. Thanks. |
|
Jiral |
View Public Profile |
Send a private message to Jiral |
Find More Posts by Jiral |
Add Jiral to Your Buddy List |
11-11-08, 05:06 PM | |
|
WIM incompability FIXED!
I noticed that when I use WoW Instant Messenger (WIM) it didn't let the aliases be handled by CAL before sending, so I contacted the guys at WIM's official site about it, and in reply one of the developers, Stewart, made a small hack of CAL. It works 100% like before, only that now it uses the right handles for sending whispers, so with this update, CAL and WIM works fine together. The file is located at http://www.stewartatkins.org/wim/ChatAliasLite.lua - but if it is taken down before you can copy it, send me a note here on WoWInt.
|
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
11-09-08, 09:18 PM | |
|
Final bug report (for now atleast). For testing, I made the macro
/say %name likes %target. Will %target be %names friend? which turned out like "(name) likes (target). Will (target) be (target)ames friend?" Be sure to use an apostrophe before the ending "s" (%name's), if not, it must be separated with a space.
Last edited by Alfuin : 11-09-08 at 09:27 PM.
|
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
11-09-08, 07:49 PM | |
|
I noticed a small bug in the ChatAliasLiteAlias.lua file, where it would list my $sex as a number, instead of male or female as $targetsex or $focussex would. I changed it slightly (just search and replace the line starting with ["$sex"] with this):
Code:
["$sex"]='ALIASVAL = function() if (UnitSex("player")==2) then return "male"; elseif (UnitSex("player")==3) then return "female"; end end',
Last edited by Alfuin : 11-09-08 at 07:50 PM.
|
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
11-09-08, 07:44 PM | |
|
$guild, not $gender
I found that to use both sex and gender for the same alias was shrubbery, so I added an alias I found missing, $guild.
The first segment, I added in the aliases: Code:
["%guild"]="$guild", ["$g"]="$guild", ["%g"]="$guild", ["%targetguild"]="$targetguild", ["%tguild"]="$targetguild", ["$tguild"]="$targetguild", ["$tg"]="$targetguild", ["%tg"]="$targetguild", ["%focusguild"]="$focusguild", ["%fguild"]="$focusguild", ["$fguild"]="$focusguild", ["$fg"]="$focusguild", ["%fg"]="$focusguild", Code:
["$guild"]='ALIASVAL = GetGuildInfo("player")', ["$targetguild"]='ALIASVAL = GetGuildInfo("target")', ["$focusguild"]='ALIASVAL = GetGuildInfo("focus")', |
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |
11-09-08, 07:36 PM | |
|
Love the addon!
Ha! I love this addon!
Only thing I didn't like was the Eightball... it's not WoW... now, Imp in a Ball, that is WoW! Here's a few changes I made to ChatAliasLiteAliases.lua, first to the aliases for eightball: Code:
["%impinaball"]="$impinaball", ["$impball"]="$impinaball", ["%impball"]="$impinaball", ["$imp"]="$impinaball", ["%imp"]="$impinaball" Code:
["$impinaball"]='ALIASVAL = function() local implist = {"Hey! You try arranging furniture with some jerk shaking your house!","Hey! You try telling the future when someone'.."'"..'s shaking up your house!","Yes, now stop pestering me!","I see that happening sometime between tomorrow and the next decade. Definitely.","Be quiet '.."'"..'bout what you hear and see around here, $class.","I would bet your soul on it.","Indeeeeed!","The outlook is very bad - for YOU that is! Haha, take it!","I'.."'"..'m gonna have to give this one the big N-O.","I suppose.","Sure, but you'.."'"..'re not going to like it.","That'.."'"..'s about as likely as me getting out of this ball.","When Blackrock freezes over!","I'.."'"..'ve consulted my fellow imps, and we think YES, except for that one imp.","I can make that happen. Just sign below the dotted line...","Are you my pal, $name?","Not unless you'.."'"..'re some kind of super-person. And don'.."'"..'t kid yourself, you'.."'"..'re not.","Yes, yes, a thousand times, yes already!","My sources say '.."'".."'"..'no'.."'".."'"..'. Before the torture, that is.","Yes, but if anyone asks... It wasn'.."'"..'t me who told you.","It'.."'"..'s as sure as the warts on my backside!","Didn'.."'"..'t you already ask that once? Yes already!","Ask me again later - I'.."'"..'m trying to scratch my nose and it'.."'"..'s hard to concentrate.","Unfortunately... yes.","The odds are 32.33 (repeating of course) chance of success.","I ask myself that question every day...","Yes, but I hoped I would never have to answer that.","Please insert 25 silver pieces and try again.","What happens in the twisting nether, stays in the twisting nether.","Yes, but not in the way you imagine.","The answer is yes in here, and I don'.."'"..'t see why it would be any different out here.","Hahahahahah, you'.."'"..'re kidding right?","Yes, No, Maybe so.","4 8 15 16 23 42","It won'.."'"..'t matter, you'.."'"..'ll be dead by tomorrow.","Jump three times and dance for ten minutes and it will definitely happen!","The outlook is positive, but I'.."'"..'m still negative.","Looks good for you... and bad for me.","Three words - '.."'".."'"..'ab - so - lutely'.."'".."'"..'!", "Concentrate (on releasing me from this infernal prison) and try again later.","Yes is my answer...","It pain me to say this, but '.."'"..'Yes'.."'".."'"..'.","I don'.."'"..'t think so, boss.","Yes, unless I have anything to do with it.","I can'.."'"..'t see why not, although, I can'.."'"..'t see a lot of things right now.","Definitely.","Yes, it will rain. That'.."'"..'s not what you asked? Too bad!","Imp in a ball is ignoring you.","My fortune telling powers are immeasureable - your chances are though: NO CHANCE!","Avoid taking unnecessary gambles. Your lucky numbers are two, two and a half, and eleven-teen.","Survey says: BZZZZT!","When dwarves fly. Oh they do? Then yes.","Yes! I mean no! I mean... which answer will get me out of here?","I don'.."'"..'t have to be a fortune-telling imp to know the answer to that one - No!","Want to trade places?","You remember that time you tried to drill that hole in your head?","NO - and don'.."'"..'t try shaking me again for a better answer!","Word on the peninsula is YES!","Oh, that'.."'"..'s one for sure.","Do you ask this question to everything that'.."'"..'s trapped in a ball?","I ask myself that question everyday.","Da King! Chort ready to serve.","Are you making fun of me?","It'.."'"..'s like my mother always said: '.."'".."'"..'Razxx khaj jhashxx xashjx.'.."'".."'"..'","This was NOT in my contract!","It'.."'"..'s times like these that I wish I had a cooldown.","Wouldn'.."'"..'t you like to know?","That'.."'"..'s about as likely as me getting a date with a succubuss.","Please... is Kil'.."'"..'jaeden red?","You should be asking '.."'".."'"..'Is that rogue behind me going to kill me?'.."'".."'"..'","Yes, is my answer... NOT!","Yeah, sure. You just keep thinking that.","XRA RAHKI MAZIZRA!","What kind of imp do you think I am?","You need Arcane Intellect, because that answer is obvious! NO!","Ruk!","Inconceivable!"}; local i = table.getn(implist); return "Imp in a Ball: "..implist[random(i)]; end' Code:
["$impinaball"]='ALIASVAL = function() local implist = {"Hey! You try arranging furniture with some jerk shaking your house!","Hey! You try telling the future when someone'.."'"..'s shaking up your house!","Yes, now stop pestering me!","I see that happening sometime between tomorrow and the next decade. Definitely.","Be quiet '.."'"..'bout what you hear and see around here, $class.","I would bet your soul on it.","Indeeeeed!","The outlook is very bad - for YOU that is! Haha, take it!","I'.."'"..'m gonna have to give this one the big N-O.","I suppose.","Sure, but you'.."'"..'re not going to like it.","That'.."'"..'s about as likely as me getting out of this ball.","When Blackrock freezes over!","I'.."'"..'ve consulted my fellow imps, and we think YES, except for that one imp.","I can make that happen. Just sign below the dotted line...","Are you my pal, $name?","Not unless you'.."'"..'re some kind of super-person. And don'.."'"..'t kid yourself, you'.."'"..'re not.","Yes, yes, a thousand times, yes already!","My sources say '.."'".."'"..'no'.."'".."'"..'. Before the torture, that is.","Yes, but if anyone asks... It wasn'.."'"..'t me who told you.","It'.."'"..'s as sure as the warts on my backside!","Didn'.."'"..'t you already ask that once? Yes already!","Ask me again later - I'.."'"..'m trying to scratch my nose and it'.."'"..'s hard to concentrate.","Unfortunately... yes.","The odds are 32.33 (repeating of course) chance of success.","I ask myself that question every day...","Yes, but I hoped I would never have to answer that.","Please insert 25 silver pieces and try again.","What happens in the twisting nether, stays in the twisting nether.","Yes, but not in the way you imagine.","The answer is yes in here, and I don'.."'"..'t see why it would be any different out here.","Hahahahahah, you'.."'"..'re kidding right?","Yes, No, Maybe so.","4 8 15 16 23 42","It won'.."'"..'t matter, you'.."'"..'ll be dead by tomorrow.","Jump three times and dance for ten minutes and it will definitely happen!","The outlook is positive, but I'.."'"..'m still negative.","Looks good for you... and bad for me.","Three words - '.."'".."'"..'ab - so - lutely'.."'".."'"..'!","Concentrate (on releasing me from this infernal prison) and try again later.","Yes is my answer...","It pain me to say this, but '.."'"..'Yes'.."'".."'"..'.","I don'.."'"..'t think so, boss.","Yes, unless I have anything to do with it.","I can'.."'"..'t see why not, although, I can'.."'"..'t see a lot of things right now.","Definitely.","Yes, it will rain. That'.."'"..'s not what you asked? Too bad!","Imp in a ball is ignoring you.","My fortune telling powers are immeasureable - your chances are though: NO CHANCE!","Avoid taking unnecessary gambles. Your lucky numbers are two, two and a half, and eleven-teen.","Survey says: BZZZZT!","When dwarves fly. Oh they do? Then yes.","Yes! I mean no! I mean... which answer will get me out of here?","I don'.."'"..'t have to be a fortune-telling imp to know the answer to that one - No!","Want to trade places?","You remember that time you tried to drill that hole in your head?","NO - and don'.."'"..'t try shaking me again for a better answer!","Word on the peninsula is YES!","Oh, that'.."'"..'s one for sure.","Do you ask this question to everything that'.."'"..'s trapped in a ball?","I ask myself that question everyday.","Da King! Chort ready to serve.","Are you making fun of me?","It'.."'"..'s like my mother always said: '.."'".."'"..'Razxx khaj jhashxx xashjx.'.."'".."'"..'","This was NOT in my contract!","It'.."'"..'s times like these that I wish I had a cooldown.","Wouldn'.."'"..'t you like to know?","That'.."'"..'s about as likely as me getting a date with a succubuss.","Please... is Kil'.."'"..'jaeden red?","You should be asking '.."'".."'"..'Is that rogue behind me going to kill me?'.."'".."'"..'","Yes, is my answer... NOT!","Yeah, sure. You just keep thinking that.","XRA RAHKI MAZIZRA!","What kind of imp do you think I am?","You need Arcane Intellect, because that answer is obvious! NO!","Ruk!","Inconceivable!"}; local i = table.getn(implist); return "Imp in a Ball: "..implist[random(i)]; end' Inspired by the examples of the original code, each quote must be in quotation marks. Apostrophes must be written as Code:
'.."'"..' Code:
'.."'".."'"..' These are all the quotes of the Trading Card novelty item, well I think I got most of them... No need to wait till you find the card! You got you own, invisible Imp in a Ball!
Last edited by Alfuin : 11-21-08 at 11:19 AM.
|
|
Alfuin |
View Public Profile |
Send a private message to Alfuin |
Find More Posts by Alfuin |
Add Alfuin to Your Buddy List |