Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: LordNevar on August 28, 2004, 06:37 PM

Title: D2 Game Creation
Post by: LordNevar on August 28, 2004, 06:37 PM
Does anyone have any info on the packets involved in creating and starting a d2 game, does it end at 0xAE, or are there more to it? Or if anyone knows where to find more info about these packets that would be greatly appreciated.
Title: Re:D2 Game Creation
Post by: teK on August 28, 2004, 06:54 PM
After packet 0xAE you send 0x67.
Title: Re:D2 Game Creation
Post by: LordNevar on August 28, 2004, 06:56 PM
I got 0xAE built alrdy and I send 0x67, but it freezez at 5c, and no idea why.
Title: Re:D2 Game Creation
Post by: UserLoser. on August 28, 2004, 07:16 PM
Quote from: LordNevar on August 28, 2004, 06:37 PM
Or if anyone knows where to find more info about these packets that would be greatly appreciated.

D2Net.dll.

After sending 0x67 packet, you should then receive your first 0x8f packet, which is where you send 0x6a packet.  Along the lines there, you'll receive 0x02 packet, which is when you send your first 0x6c packet.
Title: Re:D2 Game Creation
Post by: NiNe on August 28, 2004, 07:18 PM
YeP :) OnlyMeat is the Man!
Title: Re:D2 Game Creation
Post by: NetNX on August 29, 2004, 09:52 AM
lol, i dont get it. I was making a simple game bot but i only got up to where you connect to the accual game server and couldnt figure the rest out...what would i do wiht D2Net.dll ? how dose that work out ?
Title: Re:D2 Game Creation
Post by: Newby on August 29, 2004, 10:15 AM
I'm gonna assume disassemble it.
Title: Re:D2 Game Creation
Post by: UserLoser. on August 29, 2004, 01:21 PM
Quote from: Newby on August 29, 2004, 10:15 AM
I'm gonna assume disassemble it.

Right.

Some various addresses:


.text:6FC01760 ; int __stdcall SendGSPacket(int packetid,char *buf,int len)
.text:6FC01423 GetPacketSize:
.data:6FC08148 ReceivePacketSizeTable

Title: Re:D2 Game Creation
Post by: LordNevar on September 03, 2004, 08:52 AM
Ok everything works, but now I get dropped from the game for flooding by an unknown packet. Does anyone have any idea what this packet is and what to do with it so I don't keep getting dropped from the games I create for flooding.

32  Hide  Hide  8  Recv  
0000  08 1F 1C 0E 00 C3 33 C0                            ......3.

I RECV this like 300 time's in about 1min.
Title: Re:D2 Game Creation
Post by: UserLoser. on September 03, 2004, 02:15 PM
Quote from: LordNevar on September 03, 2004, 08:52 AM
Ok everything works, but now I get dropped from the game for flooding by an unknown packet. Does anyone have any idea what this packet is and what to do with it so I don't keep getting dropped from the games I create for flooding.

32  Hide  Hide  8  Recv  
0000  08 1F 1C 0E 00 C3 33 C0                            ......3.

I RECV this like 300 time's in about 1min.

Looks like D2GS packet 0x8A, set length of 6.  You really won't get far without decompressing the packets.