Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Insecure on May 11, 2004, 01:27 PM

Title: Away & Friend
Post by: Insecure on May 11, 2004, 01:27 PM
Not to sound like a complet n00b but I have a quick question.  If I wanted to do a /f l monitor (like on vindi) I could just send the packet 0x65 and then take the information that battle.net sends me and then just put it in a list correct?

Or am I a little confused?

Just like away...could I send the packet 0x4 and it will mark me away (as long as I have a string after it telling battle.net how to mark me away correct?
Title: Re:Away & Friend
Post by: hismajesty on May 11, 2004, 01:32 PM
Send 0x65 then parse what bnet sends you in return.
Title: Re:Away & Friend
Post by: ChR0NiC on May 11, 2004, 01:32 PM
Yeah, that would work, but unfortunately you do not receive FriendList packets informing you of current friend updates unless on WAR3 or W3XP.
Title: Re:Away & Friend
Post by: Insecure on May 11, 2004, 01:35 PM
Is there away to do this on sc//bw//wc2?

[EDIT] Besides a simple /f l and then phrasing it somewhere else?  Because that takes up queue time I am sure and that would suck if you need it somewhere else granted its only probably onces every 25 seconds.
Title: Re:Away & Friend
Post by: ChR0NiC on May 11, 2004, 01:38 PM
Other than making sure you are mutual with all your friends, so you receive the updates from them, and then screening the message for key words such as entered game or entered battle.net, exited battle.net and of course Your friend "name" by using Instr. This is probably the closest you can get on D2, W2, BW.

If I am wrong, which I am somewhat doubtful of, please somebody correct me.
Title: Re:Away & Friend
Post by: tA-Kane on May 11, 2004, 08:30 PM
Quote from: Insecure on May 11, 2004, 01:27 PMcould I send the packet 0x4 and it will mark me away correct?
???
Title: Re:Away & Friend
Post by: R.a.B.B.i.T on May 14, 2004, 05:44 PM
Or, you could load up your bot from your source, and tell it to send 0x65 at a point, log the data, and then go from there.
Title: Re:Away & Friend
Post by: MyndFyre on May 14, 2004, 10:23 PM
Quote from: ChR0NiC on May 11, 2004, 01:32 PM
Yeah, that would work, but unfortunately you do not receive FriendList packets informing you of current friend updates unless on WAR3 or W3XP.

I do, provided I send 0x65.
Title: Re:Away & Friend
Post by: ChR0NiC on May 15, 2004, 02:05 PM
Quote from: ChR0NiC on May 11, 2004, 01:32 PM
Yeah, that would work, but unfortunately you do not receive FriendList packets informing you of current friend updates unless on WAR3 or W3XP.

Quote from: Myndfyre on May 14, 2004, 10:23 PM
I do, provided I send 0x65.

Do you receive the notifications via Packets 0x66, 0x67, 0x68, 0x69? Or are they notifications such as <From : Friend> Your friend has entered the game: Blah?
Title: Re:Away & Friend
Post by: CrAz3D on May 15, 2004, 02:10 PM
While logged on StarCraft: Brood War@USEast I sent 0x65 & I received my friend list in 0x65
Title: Re:Away & Friend
Post by: ChR0NiC on May 15, 2004, 02:41 PM
Quote from: CrAz3D on May 15, 2004, 02:10 PM
While logged on StarCraft: Brood War@USEast I sent 0x65 & I received my friend list in 0x65

Regardless of what client you are on, sending 0x65 will always get a response, it's the related packets I am referring to that you will not receive.

Quote from: Skywing on March 10, 2004, 10:40 PM
There is none.  Starcraft doesn't (and probably will never) support this functionality natively in the UI, so there isn't fully-working support for the "programmatic" friends management that Warcraft III has.
Title: Re:Away & Friend
Post by: Insecure on May 16, 2004, 12:44 AM
Thank you guys