[1.13c] Chance of normal (white) items come socketed

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

Post Reply
mrnorris
Posts: 10
Joined: Wed Jul 05, 2017 2:11 pm

[1.13c] Chance of normal (white) items come socketed

Post by mrnorris » Thu Aug 02, 2018 11:16 pm

This applies to vendors and dropped items

Code: Select all

D2Game.ED5A

6FC2ED5A  |. 83F8 21        CMP EAX,21	; change this value to your desired chance

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: [1.13c] Chance of normal (white) items come socketed

Post by devurandom » Fri Aug 03, 2018 1:12 am

Good Find!
:)
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2057
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: [1.13c] Chance of normal (white) items come socketed

Post by kidpaddle94 » Fri Aug 03, 2018 5:20 pm

For other qualities, you'll want to look into this function. Not gonna post the code because I heavily changed it from vanilla's code

Code: Select all

/*
    Function:        ITEMS_RollSocketed
    Address:         D2Game.0x0EC90
    Notes:
*/
void __fastcall ITEMS_RollSocketed(Game* pGame, Item* pItemArgs, Unit* pItem)
Also, original function is not a fastcall

Code: Select all

__declspec (naked) void __fastcall STUB_RollSocketedItem()
{
	__asm
	{
		push edi
		push ebx
		push ecx
		mov ecx, [esp+0x10]
		mov edx, ebx
		call ITEMS_RollSocketed
		pop ebx
		pop edi
		retn 0x04
	}
}

Post Reply

Return to “Code Editing”