[request] report feature (paying $$$) |
Author: |
Message: |
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
ok, thanks
just one last request:
if im offline it will send a message anyway, but could you get it to check if im offline
then message the person who said report saying im offline and ill get the message when i sign in so their will be some delay in a responce
edit:
sent the money
This post was edited on 08-23-2006 at 10:38 AM by icepick66.
|
|
08-23-2006 10:35 AM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: RE: [request] report feature (paying $$$)
I haven't tested this out, but it should work.
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
var MyStatus = GetContact("myemail");
if (MyStatus.Status === '1')
Messenger.OpenChat(Contact.Email).SendMessage("ENTEROFFLINEMESSAGE");
else
Messenger.OpenChat("myemail").SendMessage(From+Message);
return;
}
}
}
}
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-23-2006 11:43 AM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: RE: [request] report feature (paying $$$)
quote: Originally posted by icepick66
£2.50 each (around $5 each) to cookie and saralk
thanks guys pm me ur paypal
Buy a big ice cream (or if you must, donate it to saralk too )
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
08-24-2006 09:05 AM |
|
|
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
ok, yum
im getting the error with the online checker script
code: Error: Object expected.
Line: 15. Code: -2146823281.
|
|
08-24-2006 10:33 AM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: [request] report feature (paying $$$)
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
var Contacts = Messenger.MyContacts;
if (Contacts.GetContact("YOUREMAIL").Status === '1')
Messenger.OpenChat(Contact.Email).SendMessage("ENTEROFFLINEMESSAGE");
else
Messenger.OpenChat("myemail").SendMessage(From+Message);
return;
}
}
}
}
try that.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-24-2006 10:48 AM |
|
|
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
sorry
code: Error: Object required.
Line: 16. Code: -2146827864.
Function OnEvent_ChatWndReceiveMessage returned an error. Code: -2147352567
|
|
08-24-2006 12:35 PM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: [request] report feature (paying $$$)
It wont work unless you have added yourself as a contact.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-24-2006 12:49 PM |
|
|
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
i have added myself(home pc's msn acc) and the bot to the bots contact list
|
|
08-24-2006 12:58 PM |
|
|
Matti
Elite Member
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / /
Joined: Apr 2004
|
RE: RE: [request] report feature (paying $$$)
And here is a nicer version of this all.
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
var Pattern = new RegExp("^report", "i");
var OK = Pattern.exec(Message);
//If the message begins with "report"...
if (OK) {
var Contacts = ChatWnd.Contacts;
//Loop through the participants of the chatwindow
for (var e = new Enumerator(Contacts); !e.atEnd(); e.moveNext()) {
var Contact = e.item();
//If the origin matches the current contacts name...
if (Origin == Contact.Name) {
var Message = "From: " + Contact.Email + "\n\nMessage: " + Message;
//If the status of the home user is Offline...
if (Messenger.MyContacts.GetContact("home@server.com").Status == 1) {
Messenger.OpenChat(Contact.Email).SendMessage("Da boss is currently offline!");
} else {
Messenger.OpenChat("home@server.com").SendMessage(Message);
}
//Ends the function to stop looking for other contact matches
return;
}
}
}
}
|
|
08-24-2006 03:45 PM |
|
|
Pages: (2):
« First
«
1
[ 2 ]
Last »
|
|