Jump to content
  • 0
Daraen

Show 1 Regen HP/SP, how to remove it?

Question

regen.png.708d11cb04bb57552dc1aa84141e8ad3.png        regen2.png.e942f7fd5b859d77a238497c87af1356.png

 

Before switching to Hercules, I was using rAthena and there was no such regen showing. We would say that it displays a skill regen such as increase HP recovery or increase SP recovery when it is not. How to remove this effect please?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Finaly find it, it come from this:
In status.c, status_calc_regen, minimum value is 1, means all job whatever if they have skill or sitting regen bonus, will display this "1" heal regen

	if (regen->skill != NULL) {
		regen->skill->hp = cap_value(regen->skill->hp, 1, INT16_MAX);
		regen->skill->sp = cap_value(regen->skill->sp, 1, INT16_MAX);
	}

	if (regen->sitting != NULL) {
		regen->sitting->hp = cap_value(regen->sitting->hp, 1, INT16_MAX);
		regen->sitting->sp = cap_value(regen->sitting->sp, 1, INT16_MAX);
	}

We've change for this and it's work fine

	if (regen->skill != NULL) {
		regen->skill->hp = cap_value(regen->skill->hp, 0, INT16_MAX);
		regen->skill->sp = cap_value(regen->skill->sp, 0, INT16_MAX);
	}

	if (regen->sitting != NULL) {
		regen->sitting->hp = cap_value(regen->sitting->hp, 0, INT16_MAX);
		regen->sitting->sp = cap_value(regen->sitting->sp, 0, INT16_MAX);
	}

 

Share this post


Link to post
Share on other sites
  • 0

@anacondaq can you explain why i have this thing. I am using the files from your youtube video : -> 

 

 

 

Did you modify a few things to achieve this result?

Share this post


Link to post
Share on other sites
  • 0

Yes, my teammate find the solution, I upvote the answer so that everyone who has the problem can solve it!

Edited by Daraen

Share this post


Link to post
Share on other sites
  • 0
On 11/29/2020 at 8:09 AM, Huitzilopotchli said:

Finaly find it, it come from this:
In status.c, status_calc_regen, minimum value is 1, means all job whatever if they have skill or sitting regen bonus, will display this "1" heal regen

if (regen->skill != NULL) { regen->skill->hp = cap_value(regen->skill->hp, 1, INT16_MAX); regen->skill->sp = cap_value(regen->skill->sp, 1, INT16_MAX); } if (regen->sitting != NULL) { regen->sitting->hp = cap_value(regen->sitting->hp, 1, INT16_MAX); regen->sitting->sp = cap_value(regen->sitting->sp, 1, INT16_MAX); }


	if (regen->skill != NULL) {
		regen->skill->hp = cap_value(regen->skill->hp, 1, INT16_MAX);
		regen->skill->sp = cap_value(regen->skill->sp, 1, INT16_MAX);
	}

	if (regen->sitting != NULL) {
		regen->sitting->hp = cap_value(regen->sitting->hp, 1, INT16_MAX);
		regen->sitting->sp = cap_value(regen->sitting->sp, 1, INT16_MAX);
	}

We've change for this and it's work fine

if (regen->skill != NULL) { regen->skill->hp = cap_value(regen->skill->hp, 0, INT16_MAX); regen->skill->sp = cap_value(regen->skill->sp, 0, INT16_MAX); } if (regen->sitting != NULL) { regen->sitting->hp = cap_value(regen->sitting->hp, 0, INT16_MAX); regen->sitting->sp = cap_value(regen->sitting->sp, 0, INT16_MAX); }


	if (regen->skill != NULL) {
		regen->skill->hp = cap_value(regen->skill->hp, 0, INT16_MAX);
		regen->skill->sp = cap_value(regen->skill->sp, 0, INT16_MAX);
	}

	if (regen->sitting != NULL) {
		regen->sitting->hp = cap_value(regen->sitting->hp, 0, INT16_MAX);
		regen->sitting->sp = cap_value(regen->sitting->sp, 0, INT16_MAX);
	}

 

Hello can you tell me which folder this is? like the pathway so i can edit it. Because i am having the same effect. Im just testing out the server I made using Hercules tutorial :) i love it. Its just me though. Don't have plans yet in making it online.

Share this post


Link to post
Share on other sites
  • 0
On 12/4/2020 at 8:47 AM, buchachi11 said:

Hello can you tell me which folder this is? like the pathway so i can edit it. Because i am having the same effect. Im just testing out the server I made using Hercules tutorial :) i love it. Its just me though. Don't have plans yet in making it online.

its on hercules/src/map Folder.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.