Jump to content

HP not same for all characters


Go to solution Solved by Kidro,

Recommended Posts

  • Active Member

Hey guys,

I was trying to remove random HP & SP on characters by doing following:

src/char.cpp:

Spoiler
// these lines:
int iHP = number(JobInitialPoints[GetJob()].hp_per_lv_begin, JobInitialPoints[GetJob()].hp_per_lv_end);
int iSP = number(JobInitialPoints[GetJob()].sp_per_lv_begin, JobInitialPoints[GetJob()].sp_per_lv_end);

// changed to this:
int iHP = JobInitialPoints[GetJob()].hp_per_lv_end;
int iSP = JobInitialPoints[GetJob()].sp_per_lv_end;

// these lines:
SetRandomHP((iLv - 1) * number(JobInitialPoints[GetJob()].hp_per_lv_begin, JobInitialPoints[GetJob()].hp_per_lv_end));
SetRandomSP((iLv - 1) * number(JobInitialPoints[GetJob()].sp_per_lv_begin, JobInitialPoints[GetJob()].sp_per_lv_end));

// changed to this:
SetRandomHP((iLv - 1) * JobInitialPoints[GetJob()].hp_per_lv_end);
SetRandomSP((iLv - 1) * JobInitialPoints[GetJob()].sp_per_lv_end);

src/questlua_pc.cpp:

Spoiler
// this line:
ch->SetRandomHP((ch->GetLevel()-1) * number(JobInitialPoints[job].hp_per_lv_begin, JobInitialPoints[job].hp_per_lv_end));

// changed to this:
ch->SetRandomHP((ch->GetLevel()-1) * JobInitialPoints[job].hp_per_lv_end);

// this line:
ch->SetRandomSP((ch->GetLevel()-1) * number(JobInitialPoints[job].sp_per_lv_begin, JobInitialPoints[job].sp_per_lv_end));

// changed to this:
ch->SetRandomSP((ch->GetLevel()-1) * JobInitialPoints[job].sp_per_lv_end);

But the characters still have little bit different HP. What else I must change to have same HP on all characters?

At max status, which is 125 max HP looks like this (SP looks like same on all characters) with no items equipped, no bonuses attached:

Spoiler

spacer.png

Thanks for possible answers!

Sincerely,

ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Active Member
  • Solution

lol, just modify in constants.cpp https://metin2.download/picture/ymF3qBxJs3sNCWJ48ZUKOdjwmvUBy33D/.png

default is 36, 44

modify with 44, 44 https://metin2.download/picture/HWIeMSV1EnRVDZ9Jn8r6r2t8H1qP1oHX/.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.