I'm making my first script which is called Interpreter which steals your Contacts name. I don't know if it's right or not but it comes up saying
"/interpretate is not recognised as a command"
Heres my code
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>interpretate</Name>';
commands+='<Description>Interpretate your contact by stealing their name!</Description>';
commands+='<Parameters/>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if(Message == "/interpretate")
{
Messenger.MyName = Contact.Name
MsgPlus.DisplayToast("Success!", "You have the same name as your contact!");
return '';
}
}