quote:
Originally posted by -DRK-panoz
code:
function OnEvent_ChatWndReceiveMessage("","","!ver",1)
{
ChatWnd.SendMessage("This is v1.0.0a");
}
No, because the values are passed to the function when it's executed. Thus, it really should be like this:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
if(Message.substr(0, 4) == "!ver") {
ChatWnd.SendMessage("Version 1.0");
}
}