Found it for my self after 16 hours of searching!
if someone need help search for function:
in this function search for:
this is where you receive the penya after the trade. You can make with modulo your own simple auto perin convert after sells.
you can use this code for you:
const long long MODULO = 100000000;
long long perin = nGold / MODULO;
long long penya = nGold % MODULO;
if (perin >= 1)
{
CItemElem pItem;
pItem.m_nItemNum = perin;
pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
BYTE nID;
pUser->CreateItem(&pItem, &nID);
}
pUser->AddGold(penya);
But you need to change a little bit with nGold to INT64 and recode gameguard to INT64_MAX.
hope i could help some ppl with this.
Creds to me<3!
have a nice day <3