Valhalla Legends Forums Archive | Battle.net Bot Development | Quick Question about a games difficulty

AuthorMessageTime
Jiggaboo
Is there any way of determining what difficulty your game is in? (Packet Sniffing)
February 24, 2007, 4:45 AM
MyStiCaL
That's a good question, Have you checked bnetdocs?
February 24, 2007, 4:58 AM
BreW
what do you mean, what difficulty? I assume you're refering to Diablo. but do you mean I or II? I have no idea about II...
February 24, 2007, 5:08 AM
Ringo
[quote author=Jiggaboo link=topic=16390.msg165681#msg165681 date=1172292351]
Is there any way of determining what difficulty your game is in? (Packet Sniffing)
[/quote]
You mean D2?
If so, see S>C 0x01 ingame, its the 1st byte in :)


[size=4]0x01 Game configeration[/size]
Format:
[color=Yellow]
01 00 04 00 30 00 01 01 00 <- LOD SC Ladder
01 00 04 00 10 00 01 00 00 <- LOD SC Non-Ladder
01 00 04 08 30 00 01 01 00 <- LOD HC Ladder N
01 01 04 18 30 00 01 01 00 <- LOD HC Ladder NM
01 02 04 28 30 00 01 01 00 <- LOD HC Ladder H
01 00 04 08 10 00 01 00 00 <- LOD HC Non-Ladder

01 00 04 00 20 00 00 01 00 <- SC Ladder
01 00 04 00 00 00 00 00 00 <- SC Non-Ladder
01 00 04 08 20 00 00 01 00 <- HC Ladder
01 00 04 08 00 00 00 00 00 <- HC Non-Ladder


(BYTE) Difficulty
(BYTE) Unknown - 0x04
(BYTE) Difficulty/Core Flag
(WORD) Ladder/LOD Flag
(BYTE) LOD
(BYTE) Ladder
(BYTE) Unknown - 0x00
[/color]
Notifys you on joining, what game type you have joined.

Difficulty's:
0x00 = Normal
0x01 = Nightmare
0x02 = Hell

Difficulty/Core Flag's:
0x20 = Hell
0x10 = Nightmare
0x08 = Hardcore

Ladder/LOD Flag's:
0x10 = LOD
0x20 = Ladder

LOD:
0x00 = Classic
0x01 = Lord Of Destruction

Ladder:
0x00 = Non-Ladder
0x01 = Ladder


[EDIT]: Just a side note, you need to decompress the messages from the server in a d2 game. (Search this forum for "d2gs decompression" topic made by brandx)
The packet its self is sent to clients in the login to the game server.
February 24, 2007, 5:32 AM
Jiggaboo
[quote author=Ringo link=topic=16390.msg165711#msg165711 date=1172295152]
[quote author=Jiggaboo link=topic=16390.msg165681#msg165681 date=1172292351]
Is there any way of determining what difficulty your game is in? (Packet Sniffing)
[/quote]
You mean D2?
If so, see S>C 0x01 ingame, its the 1st byte in :)
(...)
[/quote]

Exactly what I was looking for. Sorry for not seeing it there.
Anyway, thanks, a lot.  I appreciate it!
February 24, 2007, 10:23 AM

Search