code:
var AgentServer;
var AgentChar;
function OnEvent_Initialize(MessengerStart)
{
AgentServer = new ActiveXObject("agent.control.2");
AgentServer.Connected = true;
AgentServer.Characters.Load("Pikachu","C:\\WINDOWS\\msagent\\chars\\Pikachu.acs");
AgentChar = AgentServer.Characters.Character("Pikachu");
AgentChar.Show();
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind) {
if(Origin != Messenger.MyName)
AgentChar.Speak(Origin + ": " + Message);
}
Basically exactly what -dt- posted in the scripting sticky.