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 ... )
This post was edited on 06-30-2010 at 08:08 AM by kyozo_43.
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
Posts: 3546 Reputation: 31
38 / /
Joined: Mar 2006
RE: [REQUEST]"Plus Cafe" Changing ...
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
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)
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).
This post was edited on 07-03-2010 at 03:33 PM by CookieRevised.
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.