Shoutbox

[REQUEST]"Plus Cafe" Changing ... - 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: [REQUEST]"Plus Cafe" Changing ... (/showthread.php?tid=94897)

[REQUEST]"Plus Cafe" Changing ... by kyozo_43 on 06-30-2010 at 05:54 AM

Hey All, I'm Just Wondering, Could Someone Please Tell Me How To Make The Script - Plus Cafe - And Edit It, So It Can Be - Not Sent Messages, But Received Messages ... (RECEIVE A Message And You Get 7c ... )


RE: [REQUEST]"Plus Cafe" Changing ... by matty on 06-30-2010 at 01:28 PM

Have you looked at the scripting documentation at all? There are 2 functions

  • OnEvent_ChatWndSendMessage
  • OnEvent_ChatWndReceiveMessage

RE: [REQUEST]"Plus Cafe" Changing ... by kyozo_43 on 07-01-2010 at 06:23 AM

@matty OMFG THANK YOU SOOOOOO MUCH ... I REALLY APPRECIATE IT!

@matty but ... Which One(s) Do I Change?


RE: [REQUEST]"Plus Cafe" Changing ... by Chris4 on 07-01-2010 at 08:11 AM

quote:
Originally posted by matty
Have you looked at the scripting documentation at all?

RE: [REQUEST]"Plus Cafe" Changing ... by kyozo_43 on 07-01-2010 at 12:44 PM

YES I HAVE ... BUT I DON'T KNOW WHICH ONES TO CHANGE ... CAUSE WHEN I CHANGED THEM ALL MY MSN STUFFED UP AND WHEN I SENT A MESSAGE ALL THAT CAME UP WAS MY USERNAME ... LOL


RE: [REQUEST]"Plus Cafe" Changing ... by djdannyp on 07-01-2010 at 12:49 PM

Please don't type in block capitals, it's considered to be shouting and therefore rude.

Look for OnEvent_ChatWndReceiveMessage in the script code (as this is what causes actions to be performed when you receive a message) and replace the relevant bits with OnEvent_ChatWndSendMessage to change it to respond when you send a message.

All you should need to change is "Receive" to "Send" as they are the same.

If it doesn't work then refer to the scripting documentation where it says what paramaters are needed for those functions and how to use them.

Or if you post the code here using [code=js]code here[/code] tags to display it, then someone may take a look at it and help you


RE: [REQUEST]"Plus Cafe" Changing ... by kyozo_43 on 07-02-2010 at 11:18 AM

oh sorry ... but when i change ALL the "OnEvent_ChatWndSendMessage" to "OnEvent_ChatWndRecieveMessage" my msn stuffs up - when i send a message all that comes up is my name, and when my friend sends a message, all that comes up is his name ... WIERD (oh there i go again with my caps)


RE: [REQUEST]"Plus Cafe" Changing ... by CookieRevised on 07-03-2010 at 03:26 PM

Code needs to be changed too because those two functions behave in a different way. Simply changing the name of the function only very rarely works; it's bound to give you errors or unexpected behaviour.

This is especially true for the Plus Cafe script. It needs to be recoded for what you want (not to mention it is cheating).


RE: [REQUEST]"Plus Cafe" Changing ... by kyozo_43 on 07-08-2010 at 12:01 PM

Spoiler for code (click to show):

js code:


Well Theres The Code ... So Could Someone Please Help Me!!!!!
RE: [REQUEST]"Plus Cafe" Changing ... by matty on 07-08-2010 at 12:48 PM

By changing OnEvent_ChatWndReceiveMessage to OnEvent_ChatWndSendMessage will not work in this case. The reason is because there is already a function defined called OnEvent_ChatWndSendMessage. 2 functions with the same name cannot exist in the same scope. With that being said; learn some programming and combine the 2 functions into 1.