The most basic way would be like:
In DPSrvr.cpp on Line 5647 under
Code:
BYTE nResult = CItemUpgrade::GetInstance()->OnSmeltSafety( pUser, pItemElem0, pItemElem1, pItemElem2, pItemElem3 );
Add:
Code:
if ( nResult == 1 && *pItemElem0->GetAbilityOptionPtr() == 9 ) // 9 + successs = 10
{
char szUpgradeNotice[150] = { 0, };
sprintf(szUpgradeNotice, "%s just successfully upgradet an item to +10", pUser->GetName());
g_DPCoreClient.SendSystem(szUpgradeNotice);
}
But keep in mind, that this message only appears on Safe Upgrade if a item reaches +10 and via the standard /sys notice.
You can also select the Itemname and print it out for example, or make a difference between accessory which acually should also print a message if it reach +10 instead of +20, but i wont give you everything fully done.
This is just as start point - go, get some expierence by yourself.
Synaptic