Valhalla Legends Forums Archive | Battle.net Bot Development | [D2GS] Map identification

AuthorMessageTime
LivedKrad
I'm trying to do some pathing, but as some of you know the map type changes between games and so do the specific coordinates for NPC's and stuff. I was wondering if there was an OnJoin packet that specified what map style it was or what the coordinates were so I can set up the pathing according to the current map style. Anyone?
July 26, 2005, 2:49 AM
PaiD
This might sound stupid but how do you know where you stand when you first join the game?
July 26, 2005, 3:05 AM
Infamous
[quote author=DueL link=topic=12332.msg122021#msg122021 date=1122347115]
This might sound stupid but how do you know where you stand when you first join the game?
[/quote]

Look into packet 0x96

As for the map types, I believe its packet 0x07
July 26, 2005, 3:49 AM
PaiD
Know what the format for 0x95 is?
July 26, 2005, 4:24 AM
LivedKrad
If you're talking about this post, https://davnit.net/bnet/vL/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.
July 27, 2005, 8:43 AM
Ringo
[quote author=LivedKrad.fe link=topic=12332.msg122113#msg122113 date=1122453828]
If you're talking about this post, https://davnit.net/bnet/vL/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.
[/quote]
Ever notice your X and Y for act1 can very from 5XXX/5XXX to 5XXX/4XXX? :p

The 0x07 packet will tell u what area your in and what floor type's are around you.
Also the 0x96 packet will verify if you can walk to the location or not, and if good, it will verify you made it there as well.
You could just use the placment of Standerd1 and 2 to get the dimentions of act1 town, altho you can normaly find your way out of town based on placment of town archers and objects (if u have emulated graphics and clicking).

[quote author=DueL link=topic=12332.msg122025#msg122025 date=1122351893]
Know what the format for 0x95 is?
[/quote]
If you grab your player ID from the 1st packet in the join data (your 0x59), then check the player ID's in 0x15 packets for a match to get your x and y.
If the end byte of your 0x15 packet is 0x01, then its telling you your X and Y, if the last byte is 0x00, then stick with your existing X and Y (ignore it).
0x95 is your mana and life packet, and its kind of a strange format.
For example:
the 1st 2 WORDS in the packet is your life and mana, but the 2nd byte of each WORD can be flaged (0x80 for life, 0xC0 for mana), so you need to remove the flag (if its there) and then turn it into a WORD.
Alot of 0x9X packets are kinda shabby like this :(

hope this helps
July 28, 2005, 12:36 AM
LivedKrad
[quote author=Ringo link=topic=12332.msg122211#msg122211 date=1122511010]
[quote author=LivedKrad.fe link=topic=12332.msg122113#msg122113 date=1122453828]
If you're talking about this post, https://davnit.net/bnet/vL/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.
[/quote]
Ever notice your X and Y for act1 can very from 5XXX/5XXX to 5XXX/4XXX? :p

The 0x07 packet will tell u what area your in and what floor type's are around you.
Also the 0x96 packet will verify if you can walk to the location or not, and if good, it will verify you made it there as well.
You could just use the placment of Standerd1 and 2 to get the dimentions of act1 town, altho you can normaly find your way out of town based on placment of town archers and objects (if u have emulated graphics and clicking).
[/quote]

Eh? What is "Standerd1 and 2"? Also, the post I mentioned above was found in the MPQ's I assume? The one I found looked like it displayed coordinates for Automap, not the actual town coordinates. If not, please explain to me how I can get the coordinates for the map.. you didn't really clarify it too well.

Edit: [quote]Ever notice your X and Y for act1 can very from 5XXX/5XXX to 5XXX/4XXX? :p[/quote]Yes I've noticed. Elaborate?
July 28, 2005, 2:07 AM

Search