|
Shadow-Cat Newbie
Joined: 27 Feb 2006 Posts: 7
|
Posted: Mon Feb 27, 2006 5:00 am
I'm an idiot |
I don't know how to do anything regarding this stuff....but I need to find a script that will change the color of first 2 letters of each word typed in chat
so if I chat Hello, How are you?
colorcodes are #(letter)......
It would read #YH#oe#0llo, #YH#oo#0w #Ya#or#0e #Yy#oo#0u?
I just don't understand enough of it to make my own.
would someone please reply to let me know how to do it
It would really be appreciated
Thanks alot! |
|
|
|
JQuilici Adept
Joined: 21 Sep 2005 Posts: 250 Location: Austin, TX
|
Posted: Mon Feb 27, 2006 4:02 pm |
Just to be clear...are you wanting this to work only on the chat messages you type, or on everything on the channel (including messages from other players)? Either way, please post a short log showing your prompt, a couple of chat messages from you, and a couple received from other players (preferably inside [code] tags to preserve formatting).
|
|
_________________ Come visit Mozart Mud...and tell an imm that Aerith sent you! |
|
|
|
Shadow-Cat Newbie
Joined: 27 Feb 2006 Posts: 7
|
Posted: Mon Feb 27, 2006 5:02 pm |
Just for me, not for everyone else
<[10400416] [2989539H 3136474M 2714100V]> chat whoo hoo
*)CHAT(* [Harry] 'whoo hoo'
I don't know how to get the code tags or stuff....like I said I'm an idiot when it comes to these things.....
email me at demonicepiphany@yahool.com and I'll give you whatever information I can....or point you
to the mud so that you can get the information you need |
|
|
|
JQuilici Adept
Joined: 21 Sep 2005 Posts: 250 Location: Austin, TX
|
Posted: Mon Feb 27, 2006 8:20 pm |
Try this:
Code: |
#AL colorchat {
#VAR chatstr {} {_nodef}
#FORALL %replace( %-1, " ", "|") {
#VAR chatstr %additem( %concat( "#Y", %left( %i, 1), "#o", %right( %left( %i, 2), 1), "#0", %right( %i, 2)), @chatstr)
}
chat %expandlist( @chatstr, " ")
} |
Sample run:
Code: |
> colorchat Do you think this will work?
chat #YD#oo#0 #Yy#oo#0u #Yt#oh#0ink #Yt#oh#0is #Yw#oi#0ll #Yw#oo#0rk?
|
|
|
_________________ Come visit Mozart Mud...and tell an imm that Aerith sent you! |
|
|
|
Shadow-Cat Newbie
Joined: 27 Feb 2006 Posts: 7
|
Posted: Tue Feb 28, 2006 4:57 am |
Thanks a Million!
|
|
|
|
|
|