What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Bot?

[Request] Bot?
Author: Message:
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: RE: [Request] Bot?
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 :)


function OnEvent_ChatWndReceiveMessage("","","!ver",1)
{
ChatWnd.SendMessage("This is v1.0.0a");
}

-------------------------------------------------------------------------------
when you create that function you cant pass arguements, instead you receive parameters, it should be something like

function OnEvent_ChatWndReceiveMessage(objChatWnd, strUser, strMessage, numMessageType)
{
objChatWnd.SendMessage("This is v1.0.0a");
}

objChatWnd is the ChatWnd object that generated the event
strUser is the name of the user who send the text
strMessage is the message
numMessageType is a number corresponding to the type of message

you can use these variables in the function in if statements or something to do what you want

if you want to report the version number when !ver is typed, it should look like

function OnEvent_ChatWndReceiveMessage(objChatWnd, strUser, strMessage, numMessageType)
{
     if(strMessage == "!ver"){
          objChatWnd.SendMessage("This is v1.0.0a");
     }
}

This post was edited on 06-25-2006 at 09:47 PM by cooldude_i06.
[Image: clb2.jpg]
06-25-2006 09:45 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Bot? - by h-t on 06-25-2006 at 08:26 PM
RE: [Request] Bot? - by L. Coyote on 06-25-2006 at 08:34 PM
RE: [Request] Bot? - by h-t on 06-25-2006 at 08:38 PM
RE: [Request] Bot? - by -DRK-panoz on 06-25-2006 at 09:31 PM
RE: RE: [Request] Bot? - by Mike on 06-25-2006 at 09:41 PM
RE: [Request] Bot? - by L. Coyote on 06-25-2006 at 09:38 PM
RE: RE: [Request] Bot? - by cooldude_i06 on 06-25-2006 at 09:45 PM
RE: [Request] Bot? - by h-t on 06-26-2006 at 11:27 AM
RE: [Request] Bot? - by Yomeh on 06-26-2006 at 11:58 AM
RE: [Request] Bot? - by Yomeh on 06-26-2006 at 12:05 PM
RE: [Request] Bot? - by mathieumg on 06-26-2006 at 12:16 PM
RE: [Request] Bot? - by Yomeh on 06-26-2006 at 12:18 PM
RE: [Request] Bot? - by Matti on 06-26-2006 at 12:52 PM
RE: [Request] Bot? - by Matti on 06-26-2006 at 01:49 PM
RE: [Request] Bot? - by Matti on 06-26-2006 at 02:02 PM
RE: [Request] Bot? - by -dt- on 06-26-2006 at 02:22 PM
RE: RE: [Request] Bot? - by segosa on 06-26-2006 at 02:35 PM
RE: RE: RE: [Request] Bot? - by JonnyT on 06-26-2006 at 06:45 PM
RE: [Request] Bot? - by Matti on 06-26-2006 at 02:37 PM
RE: [Request] Bot? - by novolo on 06-26-2006 at 04:35 PM
RE: RE: [Request] Bot? - by can16358p on 06-26-2006 at 06:34 PM
RE: [Request] Bot? - by Plik on 06-26-2006 at 05:09 PM
RE: [Request] Bot? - by Lou on 06-26-2006 at 06:01 PM
RE: [Request] Bot? - by can16358p on 06-26-2006 at 06:32 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On