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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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