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

AuthorMessageTime
KermEd
[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]

DueL::   Two Ways That I know Of,

---- C++ And Reading Process Memory, Heres The Memory Locations

[code]
#define CHAR_X                       0x6FBC5630
#define CHAR_Y                       0x6FBC5634
[/code]

The X and Y Locations Will Be Off By A Value (-24) (ie: X Would Read 5024, Instead Of 5000).  I Don't Know Why, But Its Not Matching Up With My Recieved Packet (X & Y)

(If Your New To Reading Diablo 2's Memory, Heres A Great Place To Start)

[url]http://r-1.ch/d2viewitemlevel.c[/url]


Or If You Want To Do It Using Packets:

---- Packet 0x96
https://davnit.net/bnet/vL/index.php?topic=15381.msg155635#msg155635

[code]
(BITS[15]) Stamina
(BITS[15]) Location X
(BITS[1]) Unknown
(BITS[15]) Location Y
(BITS[18]) Unknown
[/code]

[quote author=LivedKrad link=topic=12332.msg122019#msg122019 date=1122346161]
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?
[/quote]

---- Mapping Techniques:

LivedKrad::

Good Question.  I am also stumped on this one.  I have everything up and working on my bot minus a decent mapping technique.  I keep track of all items/players/npcs/etc.  I read the post on offsets for room sizes, but also am unsure how to impliment them.  I am guessing it can be done that way, however.  I mean you can exit one of two ways from rogue encampment, and packet 0x95 will tell you if you can walk there, but thats kind of a harsh way to do it. 

By Standard1 and Standard2 I believe he is referring to the [link=https://davnit.net/bnet/vL/index.php?topic=11756.msg155943#msg155943]Unique Object Codes 35/36[/link]

It seems to me the map size and area is mostly predefined in the data files, I'll check into the MPQ and see if there is anything else to be pulled out.

Peace

~ KermEd  [modified July18, 2006]
July 18, 2006, 4:43 PM

Search