[1.13c] Inventory/Stash button position offsets

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

Canight
Posts: 2
Joined: Wed Apr 01, 2020 9:37 pm

[1.13c] Inventory/Stash button position offsets

Post by Canight » Fri Nov 05, 2021 8:15 pm

I have posted this to the PK discord before but I've had a couple people ask about it and the post on discord is just an image, so I'll post the offsets here in text form to make it easier to search for. Hopefully someone finds it useful:

Code: Select all

	// Move stash gold text/button for increased stash size
	{D2DLL_D2CLIENT, 0x8B6C8, {0x7C}, 0x01}, // Stash gold button top click location
	{D2DLL_D2CLIENT, 0x8B6CA, {0xCD, 0x90, 0x90, 0x90}, 0x04}, // Stash gold button top click location
	{D2DLL_D2CLIENT, 0x8B6D3, {0x4C}, 0x01}, // Stash gold button bottom click location
	{D2DLL_D2CLIENT, 0x8B6D5, {0xDD, 0x90, 0x90, 0x90}, 0x04}, // Stash gold button bottom click location
	{D2DLL_D2CLIENT, 0x8D170, {0x58, 0xD8, 0x90, 0x90, 0x90}, 0x05}, // Stash current gold text top location
	{D2DLL_D2CLIENT, 0x8D176, {0x68, 0xDC, 0x90, 0x90, 0x90}, 0x05}, // Stash gold button top location
	{D2DLL_D2CLIENT, 0x8D1B9, {0x48, 0xDC, 0x90, 0x90, 0x90}, 0x05}, // Stash gold button hover location
	{D2DLL_D2CLIENT, 0x8D1F2, {0x83, 0xC0, 0xC6, 0x90, 0x90}, 0x05}, // Stash gold button hover text location
	{D2DLL_D2CLIENT, 0x99A12, {0x54}, 0x01}, // Stash max gold amount text location
	{D2DLL_D2CLIENT, 0x99A14, {0xEB, 0x90, 0x90, 0x90}, 0x04}, // Stash max gold amount text location
	{D2DLL_D2CLIENT, 0x8BED7, {0xEB}, 0x01}, // Stash close button Y pos
	{D2DLL_D2CLIENT, 0x99A84, {0x11}, 0x01}, // Stash close button X pos
	{D2DLL_D2CLIENT, 0x8CD59, {0xEB}, 0x01}, // Stash close button click Y pos

	// Move inventory buttons/text
	{D2DLL_D2CLIENT, 0x9A70A, {0xEB}, 0x01}, // Inventory close button Y pos
	{D2DLL_D2CLIENT, 0x9A716, {0x32}, 0x01}, // Inventory close button X pos
	{D2DLL_D2CLIENT, 0x93845, {0xCB}, 0x01}, // Inventory close button hover Y bottom pos
	{D2DLL_D2CLIENT, 0x9384D, {0xEB}, 0x01}, // Inventory close button hover Y top pos
	{D2DLL_D2CLIENT, 0x8BDBD, {0xCB}, 0x01}, // Inventory close button click Y bottom pos
	{D2DLL_D2CLIENT, 0x8BDC5, {0xEB}, 0x01}, // Inventory close button click Y top pos
	{D2DLL_D2CLIENT, 0x93857, {0xC8}, 0x01}, // Inventory close button hover text Y pos
	{D2DLL_D2CLIENT, 0x8D126, {0xE5}, 0x01}, // Inventory gold button Y pos
	{D2DLL_D2CLIENT, 0x8D11A, {0x08}, 0x01}, // Inventory gold button X pos
	{D2DLL_D2CLIENT, 0x8D3F3, {0xD3}, 0x01}, // Inventory gold button click Y bottom pos
	{D2DLL_D2CLIENT, 0x8D3FB, {0xE5}, 0x01}, // Inventory gold button click Y top pos
	{D2DLL_D2CLIENT, 0x8D40D, {0x08}, 0x01}, // Inventory gold button click X left pos
	{D2DLL_D2CLIENT, 0x8D416, {0x1C}, 0x01}, // Inventory gold button click X right pos
	{D2DLL_D2CLIENT, 0x9389E, {0xE5}, 0x01}, // Inventory gold button hover Y top pos
	{D2DLL_D2CLIENT, 0x93895, {0x08}, 0x01}, // Inventory gold button hover X left pos
	{D2DLL_D2CLIENT, 0x938FA, {0xD0}, 0x01}, // Inventory gold button hover text Y pos
	{D2DLL_D2CLIENT, 0x8D117, {0xE2}, 0x01}, // Inventory gold text Y pos
	{D2DLL_D2CLIENT, 0x8D106, {0x23}, 0x01}, // Inventory gold text X pos

	// Move Cube buttons
	{D2DLL_D2CLIENT, 0x9963C, {0xEB}, 0x01}, // Stash close button Y pos
	{D2DLL_D2CLIENT, 0x99648, {0x11}, 0x01}, // Stash close button X pos
	{D2DLL_D2CLIENT, 0x8B679, {0xCB}, 0x01}, // Stash close button click Y bottom pos
	{D2DLL_D2CLIENT, 0x8B681, {0xEB}, 0x01}, // Stash close button click Y top pos
	{D2DLL_D2CLIENT, 0x99758, {0xC8}, 0x01}, // Stash close button Y pos
Each line is a single patch with the format of { DLL_NAME, Offset, {Bytes to patch}, Number of bytes to patch}. The values listed in here are what I used for moving the buttons around for Project Diablo 2. Some of them require nop'ing out a few bytes after the offset.
No credits necessary, just use them if they're useful to you

User avatar
weili0677
Posts: 8
Joined: Tue Dec 14, 2021 5:46 am
China

Re: [1.13c] Inventory/Stash button position offsets

Post by weili0677 » Tue Dec 14, 2021 6:34 am

Hi,There...Where is the Cube Transmute Button Position offsets?
My English is very pool.

User avatar
weili0677
Posts: 8
Joined: Tue Dec 14, 2021 5:46 am
China

Re: [1.13c] Inventory/Stash button position offsets

Post by weili0677 » Wed Dec 15, 2021 9:31 am

I consult this topic => https://d2mods.info/forum/viewtopic.php?t=11545 and success find out the offsets of transmute button. :D

I find the offsets use OD,now post here,maybe can help someone...

Code: Select all

//cube transmute buttons
{D2DLL_D2CLIENT, 0x99679, {0x4C}, 0x01}, // transmute button icon Y OD command need modify?   | changed
{D2DLL_D2CLIENT, 0x9967B, {0xEC,0x90,0x90,0x90}, 0x04}, // transmute button icon Y  | changed
{D2DLL_D2CLIENT, 0x9968A, {0x90}, 0x01}, // transmute button icon X

//cube transmute button mouse over
{D2DLL_D2CLIENT, 0x8B609, {0x90,0x00,0x00,0x00}, 0x04}, // left 
{D2DLL_D2CLIENT, 0x8B613, {0xB8,0x00,0x00,0x00}, 0x04}, // right
{D2DLL_D2CLIENT, 0x8B627, {0x74}, 0x01}, // top OD command need modify?   | changed
{D2DLL_D2CLIENT, 0x8B629, {0xC4,0x90,0x90,0x90}, 0x04}, // top    | changed
{D2DLL_D2CLIENT, 0x8B632, {0x44}, 0x01}, // bottom OD command need modify?   | changed  
{D2DLL_D2CLIENT, 0x8B634, {0xEB,0x90,0x90,0x90}, 0x04}, // bottom   | changed

//cube transmute button text
{D2DLL_D2CLIENT, 0x997A2, {0x4C}, 0x01}, // top OD command need modify?   | changed
{D2DLL_D2CLIENT, 0x997A4, {0xCA,0x90,0x90,0x90}, 0x04}, // top   | changed
My English is very pool.

Return to “Code Editing”