Okay..
I have an idea that _should_ work (can't guarantee though):
code:
var RandomMessages = new Array("Message 0","Message 2",...,"Message9"); // no further than 9
OnEvent_ChatWndReceiveMessage(pChatWnd,mOrigin,sMessage,kMsgKind) {
cWnd = pChatWnd;
if(!TimerStarted) {
if(mOrigin != Messenger.MyName) {
TimerStarted = true;
MsgPlus.AddTimer("TmrMsg",10000);
}
} else {
MsgPlus.CancelTimer("TmrMsg");
TimerStarted = false;
}
return sMessage;
}
function OnEvent_Timer(sTimerId) {
if(sTimerId == "TmrMsg") {
if(TimerStarted) {
cWnd.SendMessage(RandomMessage());
MsgPlus.AddTimer("TmrMsg",10000);
}
}
}
function RandomMessage() {
Index = Math.random().charAt(4);
return RandomMessages[Index];
}
EDIT::
Maybe you should prefix the messages with "AutoMessage: ", since this uses Plus!'s AutoMessage feature (when a personalised status is used)..