Jump to content

Recommended Posts

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.

Link to comment
https://metin2.dev/topic/30781-modify-bonus-title/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 4 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.