Besides that this script can be optimized extremely and that you used many things and methods which aren't needed (though, it works, so if this is your first script then
):
code:
ScriptCommands += '<Name>nick1</Name>';
ScriptCommands += '<Description>Changes the nick to the number 2</Description>';
From the user's point of view this isn't logical. If he enters a command with a number (eg: 1) he expects that this command performs action 1, not action 2.
- /nick2 is an existing command from Messenger Plus!. Your script breaks this functionality. Do not do that....
In fact you don't need all those commands /nick0, /nick1, /nick2, etc if you would use parameters.