LCKB
[Guide] Increase HP Steel Potion rate: - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124)
+----- Forum: Ep4 Guides (https://lckb.dev/forum/forumdisplay.php?fid=125)
+----- Thread: [Guide] Increase HP Steel Potion rate: (/showthread.php?tid=4674)



- cooldude - 12-23-2020


Server Side. battle.cpp look for hcHPSteelPotion:

if (pPCOffense->m_assist.m_avAddition.hcHPSteelPotion == true )
{
int prob = GetRandom( 1, 100 );
if( prob > 70 ) // 30% // chance of absorbing HP. Change the number 70 to increase it.
{
int nStealHP = realdamage * 5 / 100; // percent of damge you deal that gets absorbed as HP. change 5 to the amount you want
if( nStealHP > 0 )
{
pPCOffense->m_hp += nStealHP;
if( pPCOffense->m_hp > pPCOffense->m_maxHP )
pPCOffense->m_hp = pPCOffense->m_maxHP;
pPCOffense->m_bChangeStash = true;
bSendOFStatusMsg = true;

{
CNetMsg::SP rmsg(new CNetMsg);
EffectEtcMsg(rmsg, pPCOffense, MSG_EFFECT_ETC_HP_STEEL);
pPCOffense->m_pArea->SendToCell(rmsg, pPCOffense, true);
}
}
}

 




- dethunter12 - 12-23-2020


Example . Would be change 70 to 60 and now its 40% (chance to get numbers higher then 60 out of 100)