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

[Request] random insulting.
Author: Message:
b3n
New Member
*


Posts: 1
Joined: Nov 2006
O.P. [Request] random insulting.
Hi, im new to scripting, ive had a go and read up on stuff, but cant get it to work. If it wont take long, could someone write a script that when someone says something it just replies with an insult/swear word? This is just for fun, no practicall use! Also, i will look at it and see what i have been doing wrong!

tyia:)
11-12-2006 11:27 PM
Profile E-Mail PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [Request] random insulting.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message) {
  if(Origin!=Messenger.MyName) {
    if(Message=="something") {
      ChatWnd.SendMessage("insult/swear word");
    }
  }
}
i hope this helps you out... and i hope it was what you were after
11-12-2006 11:34 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] random insulting.
How about you post your code that you tried to make and we can show you what you did wrong.

[rant]

When will people stop asking for stuff that is simple and start trying to read the scripting documentation? This is really simple to implement.

code:
function OnEvent_ChatWndMessageReceived(pChatWnd, sMessage, sOrigin){
    if (sOrigin != Messenger.MyName) {
        if (nMessage.charAt('word') != -1) {
            pChatWnd.SendMessage('insert insult here');
        }
    }
}

[/rant]

This post was edited on 11-12-2006 at 11:53 PM by matty.
11-12-2006 11:38 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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