Jump to content

Random hp player max level


Go to solution Solved by metin2team,

Recommended Posts

Hello devs

So the problem is that when the player reached max level in game his hp of course raise but this raising is diffrent beetwen player there are some who get +200hp others +300 others +500 etc

I want to make it the same for all players and thnak you 

Link to comment
https://metin2.dev/topic/18990-random-hp-player-max-level/
Share on other sites

52 minutes ago, metin2team said:

some know but lazy to reply.

anyways,


if ( point == POINT_HT )
{
	BYTE job = ch->GetJob();
	ch->SetRandomHP((ch->GetLevel()-1) * number(JobInitialPoints[job].hp_per_lv_begin, JobInitialPoints[job].hp_per_lv_end));
}

 

Thank you , How do i make it stable or just disable it .

Link to comment
https://metin2.dev/topic/18990-random-hp-player-max-level/#findComment-103457
Share on other sites

  • Solution

to give based on max

ch->SetRandomHP((ch->GetLevel()-1) * JobInitialPoints[job].hp_per_lv_end);

to give based on min

ch->SetRandomHP((ch->GetLevel()-1) *JobInitialPoints[job].hp_per_lv_begin);

you can choose any and it will be static for each level

  • Love 2
Link to comment
https://metin2.dev/topic/18990-random-hp-player-max-level/#findComment-103458
Share on other sites

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.