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

Daraen

New member
Messages
134
Points
0
Emulator
regen.png        regen2.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?

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

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.







Did you modify a few things to achieve this result?

 
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

Code:
	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);
	}
 
Yes, my teammate find the solution, I upvote the answer so that everyone who has the problem can solve it!

 
Last edited by a moderator:
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.

 
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.

 
Back
Top