Jump to content
metin2dev
  • 0
Sign in to follow this  
kasko30

solved Random hp player max level

Question

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 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

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));
}

 

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0
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 .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×