[1.13c]How to disable highlighted[alt] gold number

Post anything else Diablo II legacy related here but remember this ISN'T a hack site. All posts directly related to battle.net hacking will be deleted.
rafineria888
Posts: 12
Joined: Thu Apr 27, 2017 10:29 am
Poland

[1.13c]How to disable highlighted[alt] gold number

Post by rafineria888 » Sat Apr 29, 2017 7:11 pm

Hi. Please move this topic to CE category if it's necessary.

I want to hide annoying tons of gold when I press ALT.
I can delete string in key[gld] from tbl file but number of gold is still visible...

"How to disable highlighted[alt] gold number"?
Thanks.

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

Re: [1.13c]How to disable highlighted[alt] gold number

Post by devurandom » Sat Apr 29, 2017 8:10 pm

how about removing gld from junk drops in TCEX?
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..

Cossack
Posts: 26
Joined: Sat Oct 08, 2011 2:14 pm

Re: [1.13c]How to disable highlighted[alt] gold number

Post by Cossack » Sat Apr 29, 2017 8:25 pm

I think the best way it will be code edit it's simple patch

Patch D2CLIENT at 0x5908A

Code: Select all

void D2CLIENT_HideItems_STUB()
{
	__asm
	{
		push esi
		CALL OnALTDraw;
		TEST EAX,EAX;
		je skip;
		CMP EBP,0x20
		JGE skip;
		RETN;
		
		skip:
		ADD DWORD PTR SS:[ESP],0x38A
		RETN
	}
}

bool __stdcall OnALTDraw(UnitAny *ptItem)
 {

	ItemsTxt* pTxt = D2COMMON_GetItemTxt(ptItem->dwClassId);
	if(pTxt->dwcode == ' dlg') return FALSE;

	/*
	if u want to add showing only specified amount of gold use this
	if(pTxt->dwcode == ' dlg' && (D2COMMON_GetUnitStat(ptItem,14,0) < 10000)) return FALSE;
	*/
	return TRUE;
}
I know it's not ce section but I think that will help
And it might be useful to somebody

Return to “Diablo II Chatter”