code:
var MsgOutput = null;
var Color1 = null;
var Color2 = null;
function Replace_Text(Color1, Color2, Message, MsgOutput)
{
MsgOutput = "[c=" + Color1 + "]" + Message + "[/c=" + Color2 + "]";
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
if (Contact.Email == xxx@yyy.zzz)
{
Color1 = "#010176";
Color2 = "#2D0352";
Replace_Text(Color1, Color2, Message, MsgOutput);
return MsgOutput;
}
}
return Message;
}
This might work, can't test, network is acting up.
This will iterate trough a list of contacts in the current ChanWnd, and if it finds the contact it will send the gradiented message, else it will send the message unaltered.