Quote:
Originally Posted by KraHen
Or start debugging binaries.
|
Or you could poke around the EO server source. There's a lot of useful information inside it.
The main function that decrements durability:
Code:
bool CUser::DecEquipmentDurability(bool bBeAttack, bool bMagic, int bDurValue/*=1*/)
{
int nInc = -1 * bDurValue;
for(int i = ITEMPOSITION_EQUIPBEGIN; i < ITEMPOSITION_EQUIPEND; i++)
{
if (!bMagic)
{
if (i == ITEMPOSITION_RINGR ||
i == ITEMPOSITION_RINGL ||
i == ITEMPOSITION_SHOES ||
i == ITEMPOSITION_WEAPONR ||
i == ITEMPOSITION_WEAPONL)
{
if(!bBeAttack)
AddEquipmentDurability(i, nInc);
}
else
{
if(bBeAttack)
AddEquipmentDurability(i, nInc);
}
}
else
{
if (i == ITEMPOSITION_RINGR ||
i == ITEMPOSITION_RINGL ||
i == ITEMPOSITION_SHOES ||
i == ITEMPOSITION_WEAPONR ||
i == ITEMPOSITION_WEAPONL)
{
if(!bBeAttack)
AddEquipmentDurability(i, -5);
}
else
{
if(bBeAttack)
AddEquipmentDurability(i, nInc);
}
}
}
return true;
}
You can find where/how its called fairly easily.