• Welcome to Valhalla Legends Archive.
 

User like Moniter

Started by Networks, April 28, 2004, 01:41 PM

Previous topic - Next topic

Networks

How could I make a user moniter or somthing similar without having to send /whois <username> every 5 seconds. How can this be done?

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Eli_1

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.

Networks

I just want to figure a way to have the program alert when a user is on.

Eric

#4
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.

Eli_1

#5
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.

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Maddox

#7
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?
asdf.

Eric

#8
Quote from: Maddox on April 29, 2004, 07:41 PM
Can the binary friendslist packets be used by non-war3 clients?
Yes.