• Welcome to Valhalla Legends Archive.
 

Packets for Leaving Games

Started by GoSuGaMING, May 19, 2004, 03:29 PM

Previous topic - Next topic

Eli_1

#15
For the sake of emulating the game client more closely:

With PBuffer
   .SendPacket &H2

   .InsertNTString vUser
   .InsertBYTE 0
   .SendPacket &HA

   .InsertNonNTString MyProduct
   .SendPacket &HB

   .InsertDWORD &H1
   .InsertNTString MyChan
   .SendPacket &HC
End With



Edit:
Quote
Wtf is 0x15 and 0x21? :(
(and no I can't check bnetdocs because I got owned by Arta's paranoid auto-ipban for wrong passwords).
C->S 0x15 = Request Current Ad Banner?
C->S 0x21 = Mystery...

MyndFyre

#16
According to [edit]Open[/edit] BnetDocs, 0x21 is
BNCS_0x21 - SID_DISPLAYAD
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.

GoSuGaMING

well with the code i have when you do that it takes you to broodwar useast-1 or w/e... i havnt figuerd that one out  yet ^^

Eli_1

#18
It's because your not sending 0x0B like my sexed up code does! Your's is poo!

Eric

#19
Quote from: Eli_1 on May 19, 2004, 08:49 PM
It's because your not sending 0x0B like my sexed up code does! Your's is poo!

Failure to request the channel list apon exiting a game will not affect anything.

GoSuGaMING

Quote from: LoRd[nK] on May 19, 2004, 08:56 PM
Quote from: Eli_1 on May 19, 2004, 08:49 PM
It's because your not sending 0x0B like my sexed up code does! Your's is poo!

Failure to request the channel list apon exiting a game will not affect anything.

so why isnt it joining my home channel?

Eli_1

#21
Have you tryed any other DWORDS (for 0x0C), like 2? (just a guess)



[Edit]
Quote from: LoRd[nK] on May 19, 2004, 08:56 PM
Quote from: Eli_1 on May 19, 2004, 08:49 PM
It's because your not sending 0x0B like my sexed up code does! Your's is poo!

Failure to request the channel list apon exiting a game will not affect anything.
It was more of a joke than anything. :P

GoSuGaMING

#22
*off-topic*
i thank baddblood & Eurijk! i couldnt have done this with out his awesome help!

Eli_1

Quote from: GoSuGaMING on May 19, 2004, 09:11 PM
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!

Wanna tell us what was wrong?

GoSuGaMING

Quote from: Eli_1 on May 19, 2004, 09:12 PM
Quote from: GoSuGaMING on May 19, 2004, 09:11 PM
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!

Wanna tell us what was wrong?

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that

LordNevar

Obvioulsy wasn't that much of a help than.

A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
The greatest trick the Devil ever pulled, was convincing the world he didn't exsist.

MyndFyre

Quote from: GoSuGaMING on May 19, 2004, 09:14 PM
Quote from: Eli_1 on May 19, 2004, 09:12 PM
Quote from: GoSuGaMING on May 19, 2004, 09:11 PM
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!

Wanna tell us what was wrong?

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that

You're sending 0x0c incorrectly, most likely.  You're probably sending:


FF 0C 09 00 01 00 00 00 00


whereas you need to be saving your old channel, and use the Standard Join flag (0x00 for the first DWORD within the packet) and appending your channel name.
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.

GoSuGaMING

Quote from: Myndfyre on May 20, 2004, 12:23 AM

Wanna tell us what was wrong?
Quote

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that
Quote

You're sending 0x0c incorrectly, most likely.  You're probably sending:


FF 0C 09 00 01 00 00 00 00


whereas you need to be saving your old channel, and use the Standard Join flag (0x00 for the first DWORD within the packet) and appending your channel name.
Quote


fixed :)

With PBuffer
.SendPacket &H2
.InsertNTString vUser
.InsertBYTE 0
.SendPacket &HA
.InsertDWORD &H0
.InsertNTString MyChan
.SendPacket &HC
End With