Melding Book

08/22/2020 13:12 [HGS]Pikachu#1
Hi does anyone know how to change the max + you can make with a meld book (i.e stop it at +25 with a +3 meld book)

Thanks!
08/22/2020 15:30 Desarija#2
in GameServer/PC.cpp

void CPC::ApplyItemValue(bool bSend)
Quote:
if (bNormalItem && (item->m_itemProto->getItemFlag() & ITEM_FLAG_COMPOSITE) && (item->getFlag() & FLAG_ITEM_COMPOSITION))
{
CItem* pItemEquip = m_inventory.FindByVirtualIndex(item->m_nCompositeItem);
if (pItemEquip)
{
pItemNormal = pItemEquip;
}
else
{
pItemNormal = m_wearInventory.FindByVirtualIndex(item->m_nCompositeItem);
}
if (nNormalPlus > MAX_UPGRADE_PLUS+3)
nNormalPlus = MAX_UPGRADE_PLUS+3;
}
change nNormalPlus = MAX_UPGRADE_PLUS+3 to whatever you want, for example if (nNormalPlus > 25) nNormalPlus = 25;

you need to do this 2 times, once for weapons and once for armors

Client:

Engine/Interface/UITooltip.cpp
lines 752...

search for COMPOSITION

Quote:
if (m_pItem->IsFlag(FLAG_ITEM_COMPOSITION) && m_pItem->ComItem_index > 0)
{
if (nPlatinum_Ent > 0)
{
strEnt.PrintF("+%d", nPlatinum_Ent);
strTmp += strEnt;
}

if (nEnt > 0)
{
if (nEnt + nPlatinum_Ent <= 25) // upgrade limit +25
{
strEnt.PrintF("[+%d]", nEnt);
strTmp += strEnt;
}
else
{
strEnt.PrintF("[+%d]", nEnt-1);
strTmp += strEnt;
}
}
}
else
{
if (nEnt > 0)
{
strEnt.PrintF("+%d", nEnt);
strTmp += strEnt;
}

if (nPlatinum_Ent > 0)
{
strEnt.PrintF("[+%d]", nPlatinum_Ent);
strTmp += strEnt;
}
}
08/23/2020 11:52 [HGS]Pikachu#3
Thank you so much <3