• Welcome to Valhalla Legends Archive.
 

[D2GS] Map identification

Started by LivedKrad, July 25, 2005, 09:49 PM

Previous topic - Next topic

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?

PaiD

This might sound stupid but how do you know where you stand when you first join the game?

teK

#2
Quote from: DueL on July 25, 2005, 10:05 PM
This might sound stupid but how do you know where you stand when you first join the game?

Look into packet 0x96

As for the map types, I believe its packet 0x07

PaiD

Know what the format for 0x95 is?

LivedKrad

If you're talking about this post, http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.

Ringo

#5
Quote from: LivedKrad.fe on July 27, 2005, 03:43 AM
If you're talking about this post, http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.
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 from: DueL on July 25, 2005, 11:24 PM
Know what the format for 0x95 is?
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

LivedKrad

#6
Quote from: Ringo on July 27, 2005, 07:36 PM
Quote from: LivedKrad.fe on July 27, 2005, 03:43 AM
If you're talking about this post, http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.msg115815#msg115815, I still don't quite understand what he's trying to convey.
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).

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:
QuoteEver notice your X and Y for act1 can very from 5XXX/5XXX to 5XXX/4XXX? :p
Yes I've noticed. Elaborate?