Hello, I have in the game source a title that offers 20k pv, I would like to change it to set the MAX PV to 150k for the German duel, not to offer pv but to set 150k pv
on char.cpp i have this
if (item->GetVnum() == 39377 && (GetMapIndex() != 61 && GetMapIndex() != 63 && GetMapIndex() != 72))
return;
else if (item->GetVnum() == 39377 && (GetMapIndex() == 61 || GetMapIndex() == 63 || GetMapIndex() == 72))
{
CAffect* pAffect1 = FindAffect(AFFECT_BOOST_PV);
CAffect* pAffect2 = FindAffect(AFFECT_BOOST_CAST);
if (!pAffect1)
AddAffect(AFFECT_BOOST_PV, POINT_MAX_HP, 120000, 0, 60*60*60*365, 0, true);
if (!pAffect2)
AddAffect(AFFECT_BOOST_CAST, POINT_CASTING_SPEED, -20, 0, 60*60*60*365, 0, true);
}
DWORD iTitle = item->GetValue(1);
SetPoint(POINT_TITLE, iTitle);
ComputePoints();
PointsPacket();
UpdatePacket();
}
How could I have it set my MAX PV to 150k, not give me 120k pv in + because i don't want to one player have 140k, other 145k etc etc.