Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Networks on April 28, 2004, 01:41 PM

Title: User like Moniter
Post by: Networks on April 28, 2004, 01:41 PM
How could I make a user moniter or somthing similar without having to send /whois <username> every 5 seconds. How can this be done?
Title: Re:User like Moniter
Post by: MyndFyre on April 28, 2004, 02:23 PM
Quote from: Networks on April 28, 2004, 01:41 PM
How could I make a user moniter or somthing similar without having to send /whois <username> every 5 seconds. How can this be done?

Your user monitor could be up to 25 people by using binary friends.
Title: Re:User like Moniter
Post by: Eli_1 on April 28, 2004, 02:26 PM
Quote from: Myndfyre on April 28, 2004, 02:23 PM
Quote from: Networks on April 28, 2004, 01:41 PM
How could I make a user moniter or somthing similar without having to send /whois <username> every 5 seconds. How can this be done?

Your user monitor could be up to 25 people by using binary friends.
And depending on exactly what you want to do with this, those 25 people may need to be mutual friends.
Title: Re:User like Moniter
Post by: Networks on April 29, 2004, 01:07 PM
I just want to figure a way to have the program alert when a user is on.
Title: Re:User like Moniter
Post by: Eric on April 29, 2004, 01:16 PM
Quote from: Networks on April 29, 2004, 01:07 PM
I just want to figure a way to have the program alert when a user is on.
When you receive "Your friend <account> has entered Battle.net." announce it.
Title: Re:User like Moniter
Post by: Eli_1 on April 29, 2004, 01:29 PM
And if the users you're looking for aren't mutual friends, you'll have to send "/f l" every once in a while, then parse the usernames and info from that.
Title: Re:User like Moniter
Post by: MyndFyre on April 29, 2004, 06:48 PM
Quote from: Eli_1 on April 29, 2004, 01:29 PM
And if the users you're looking for aren't mutual friends, you'll have to send "/f l" every once in a while, then parse the usernames and info from that.

By using Binary Friends (0x65), your friends list is updated whether or not you are mutual friends.  It doesn't tell you the location (if the Mutual flag isn't set), but it does tell you when that user has signed on or offline.
Title: Re:User like Moniter
Post by: Maddox on April 29, 2004, 07:41 PM
I think the point of the user monitor is that it can hold more than 25 friends.

Can the binary friendslist packets be used by non-war3 clients?
Title: Re:User like Moniter
Post by: Eric on April 30, 2004, 12:15 AM
Quote from: Maddox on April 29, 2004, 07:41 PM
Can the binary friendslist packets be used by non-war3 clients?
Yes.