Shoutbox

I'm trying to create a Responder (Nedd some help) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: I'm trying to create a Responder (Nedd some help) (/showthread.php?tid=93065)

I'm trying to create a Responder (Nedd some help) by Barathrum on 11-29-2009 at 03:41 PM

Hello all.
I'm trying to make a basic bot. I will describe what it should do. I hope someone can make it for me, really appreciated.

It starts when someone would click me and write something, then the bot should give him the text: "Press -1 for exit, or press -2 to talk with [here it should say the email of the person he is talking to]"
And so if he says -1 it should close the chat windows for both the guy with the bot and the guy that clicked him.
If he says -2 then it should send a nudge to the guy with the bot. And then send a messege with text: "[email of the guy with the bot] Should get back to you in a moment.

If anyone can make this for me, I will really appreciate it alot!

Thank you in advance.


RE: I'm trying to create a Responder (Nedd some help) by SourSpud on 11-29-2009 at 05:27 PM

Wait, I am not really sure what you're asking for. Are they going to install the script? if so whats the email of the bot going to be and you do know for the conversation to close on both sides then both of you will need it installed, or something like this.

jscript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind) {
    if (Origin !== Messenger.MyName) {
        if (Message =="-1") {
          ChatWnd.SendMessage("/close")
          return ''
          }
        }
    }       
     

RE: I'm trying to create a Responder (Nedd some help) by Barathrum on 11-29-2009 at 05:53 PM

Oh, well yes the guy with the bot will have it installed the other not, so let's say it will only close the window for the guy with the bot if he types -1
The email should be the one from who uses the bot, I know there was something to know the email... Like on Script initilization you can set a variable that has the value of the email of the user of the bot.

Hope this clears it up a little more

EDIT: Bump


RE: I'm trying to create a Responder (Nedd some help) by Barathrum on 12-13-2009 at 03:49 PM

bump, please I really need it :/


RE: I'm trying to create a Responder (Nedd some help) by Spunky on 12-13-2009 at 04:56 PM

Seeing as you can't detect when someone opens your chat window, it's not possible.


RE: I'm trying to create a Responder (Nedd some help) by Barathrum on 12-18-2009 at 05:00 PM

not when someone opens it, it must activate when someone writes something...but only once for each person in one chat window...