OK, still doesn't work, and it can't get any errors, because the script doesn't run:
code:
var run=0;
var x=1;
var y=0;
var myname;
function OnEvent_Initialize(MessengerStart)
{
Debug.DebuggingWindowVisible = true;
}
function OnEvent_ChatWndSendMessage(ChatWnd,Origin,Message,MessageKind)
{
if (Message=="n#on")
{
run=1;
return "";
}
if (Message=="n#off")
{
run=0;
return "";
}
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if (run==1)
{
if (x==50)
{
x=1;
y=0;
}
myname=Messenger.MyName;
myname=myname.replace(y,x);
Messenger.MyName=myname;
x++;
y++;
}
}