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.
[1.13c]How to disable highlighted[alt] gold number
Re: [1.13c]How to disable highlighted[alt] gold number
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..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
-
- Posts: 26
- Joined: Sat Oct 08, 2011 2:14 pm
Re: [1.13c]How to disable highlighted[alt] gold number
I think the best way it will be code edit it's simple patch
Patch D2CLIENT at 0x5908A
I know it's not ce section but I think that will help
And it might be useful to somebody
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;
}
And it might be useful to somebody