Im starting to understand how to do things but im having issues with a few things.
first thing is where am i going wrong here. Im trying to send a certain message when #test or #info are typed in. I've tried these two but with no luck.
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if(Message.substr(0, 5) == '#test'){
Message = 'a message';
}
if(Message.substr(0, 5) == '#info'){
Message = Message.replace('a messeage');
return Message;
}
}
another thing is how/where do we create the menus for scripts in the conversation windows and the actualy config windows?
Thanks J