Pointer & struct

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

User avatar
misiek1294
Junior Member
Paladin
Posts: 168
Joined: Mon Dec 29, 2014 3:58 pm
Poland

Pointer & struct

Post by misiek1294 » Thu Jun 22, 2017 10:15 am

Hi Guys, i will try rewrite waypoint panel draw function , i have almost all rewrite + working but 2 pointer i can't find what it is.
1.13c:

Code: Select all

D2CLIENT_6FB8E6D8
D2CLIENT_6FBACD8C
1.10

Code: Select all

D2CLIENT_6FBBA9CC
D2CLIENT_6FB907B8
Maybe someone can help.
Thanks

User avatar
Mnw1995
Junior Member
Paladin
Posts: 100
Joined: Sat Apr 02, 2011 6:28 pm

Re: Pointer & struct

Post by Mnw1995 » Thu Jun 22, 2017 11:31 am

For 1.10:

Code: Select all

struct D2WaypointCoordTableStrc
{
	int nX;									//0x00
	int nY;									//0x04
	int nTextX;								//0x08
	int nTextY;								//0x0C
	int nClickX;							//0x10
	int nClickY;							//0x14
};

Code: Select all

//D2Client.0x6FB907B8
static const D2WaypointCoordTableStrc gpWaypointCoordTable[] =
{
	{ 17,  89, 80,  84, 17,  60 },
	{ 17, 125, 80, 119, 17,  96 },
	{ 17, 161, 80, 154, 17, 132 },
	{ 17, 197, 80, 189, 17, 168 },
	{ 17, 234, 80, 224, 17, 205 },
	{ 17, 270, 80, 259, 17, 242 },
	{ 17, 306, 80, 294, 17, 277 },
	{ 17, 342, 80, 329, 17, 313 },
	{ 17, 378, 80, 364, 17, 349 }
};

Code: Select all

struct D2WaypointTableStrc
{
	int nLevelId;							//0x00
	bool bActivated;						//0x04
};
D2Client.0x6FBBA9CC is a D2WaypointTableStrc[9] array that gets filled during runtime by D2Client.0x6FB26440

Return to “Code Editing”