quote:
Originally posted by -DRK-panoz
I too want to make a bot and am not aware of what I'm doing wrong
code:
function OnEvent_ChatWndReceiveMessage("","","!ver",1)
{
ChatWnd.SendMessage("This is v1.0.0a");
}
And then in the Debug I get
code:
Error: Expected identifier.
Line: 1. Code: -2146827278.
Please help. Thanks
Your code should be something like:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, sOrigin, sMessage, MessageKind)
{
if sMessage == "!ver" {
ChatWnd.SendMessage("This is v1.0.0a");
}
}
(haven't tried this)