Valhalla Legends Forums Archive | Battle.net Bot Development | Diablo in-game packet help

AuthorMessageTime
drivehappy
I wanted to write some functions to read and send packets to battle.net and the client while in the game. I've found that client->server packets aren't encrypted while the server->client ones are. I'm wondering if there is an example or source somewhere that will decrypt the packets. If not, could someone direct me as to how I would find the algorithm?
July 6, 2003, 10:29 PM
kamakazie
It's been posted before, use the search function of the forum.
July 6, 2003, 11:51 PM
drivehappy
I have looked and couldn't find anything pertaining to my question.
July 7, 2003, 12:42 AM
kamakazie
[quote author=drivehappy link=board=17;threadid=1821;start=0#msg14050 date=1057538566]
I have looked and couldn't find anything pertaining to my question.
[/quote]

https://davnit.net/bnet/vL/phpbbs/index.php?board=17;action=display;threadid=585;start=msg4318#msg4318
July 7, 2003, 3:49 AM
drivehappy
Thanks a bunch, wonder why I didn't find that. You wouldn't happen to know where a VB version is do you? In the meantime I'll try converting :(.
July 7, 2003, 4:01 AM
kamakazie
[quote author=drivehappy link=board=17;threadid=1821;start=0#msg14069 date=1057550519]
Thanks a bunch, wonder why I didn't find that. You wouldn't happen to know where a VB version is do you? In the meantime I'll try converting :(.
[/quote]

I'm sure someone has converted it to Visual Basic but just hasn't posted it publically. Myself, I went the lazy way and added it to a my dll.
July 7, 2003, 4:05 AM
Noodlez
[quote author=kamakazie link=board=17;threadid=1821;start=0#msg14071 date=1057550725]
[quote author=drivehappy link=board=17;threadid=1821;start=0#msg14069 date=1057550519]
Thanks a bunch, wonder why I didn't find that. You wouldn't happen to know where a VB version is do you? In the meantime I'll try converting :(.
[/quote]

I'm sure someone has converted it to Visual Basic but just hasn't posted it publically. Myself, I went the lazy way and added it to a my dll.
[/quote]

Do you have in-game support kama? If so, I'm curious to know how far you've gone, and if you can generate a map based on the map seed? I can do pretty much everything except that :(.
July 7, 2003, 8:56 AM
kamakazie
[quote author=Noodlez link=board=17;threadid=1821;start=0#msg14077 date=1057568208]
Do you have in-game support kama? If so, I'm curious to know how far you've gone, and if you can generate a map based on the map seed? I can do pretty much everything except that :(.
[/quote]

Nope. When that code became public I just experimented with games, never doing anything besides chatting with other players. I've recently had to rebuild everything because of hd failure. Until my bot comes to the point where I want it to be I'll start working on game support once again.
July 7, 2003, 2:31 PM
kamakazie
[quote author=kamakazie link=board=17;threadid=1821;start=0#msg14079 date=1057588275]
[quote author=Noodlez link=board=17;threadid=1821;start=0#msg14077 date=1057568208]
Do you have in-game support kama? If so, I'm curious to know how far you've gone, and if you can generate a map based on the map seed? I can do pretty much everything except that :(.
[/quote]

Nope. When that code became public I just experimented with games, never doing anything besides chatting with other players. I've recently had to rebuild everything because of hd failure. Until my bot comes to the point where I want it to be, only then will start working on game support.
[/quote]
July 7, 2003, 2:31 PM
EvilCheese
If you're in game and using the regular client it would probably be easier to hook/stub the packet send/receive functions in a place where the data is already decrypted.

Noodlez, if you want to generate a map from a seed, check out the maphack source and reverse the dll exports that it calls, alternatively use the D2 dlls themselves to build your map.

I wouldnt do anything with that until the patch is finalised though, since they're likely to change the system in at least a small way to disable maphack for a while.
July 7, 2003, 9:08 PM
drivehappy
I really don't know C++ and I'm having problems getting the DLL I build to work within VB. Could someone send me theirs: drivehappy@hotmail.com.
July 7, 2003, 10:47 PM

Search