• 0
Hnomkeng

How to change HP SP recovery

Question

I need change HP SP recovery,

I need change recovery on sit only.

 

Thank you for help.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Check :-

 

 

  • Love 1

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Cyro said:

Check :-

 

 

How to recovery on sit only ?

*PS : no recovery on stand or run.

Edited by Hnomkeng

Share this post


Link to post
Share on other sites
  • 0

status.c

		// Skill-related recovery (only when sit)
		sregen = regen->ssregen;

		val = 0;
		
		val += status->max_hp/5;
		sregen->hp = cap_value(val, 0, SHRT_MAX);
		
		if( (skill=pc_checkskill(sd,MO_SPIRITSRECOVERY)) > 0 )
			val += skill*4 + skill*status->max_hp/500;

i added this part right on top of the mo_spiritrecovery and right under the declaration of the sitting regen ... you guys were just playing with the rates and time and no code exists for it afaik 

		val += status->max_hp/5;
		sregen->hp = cap_value(val, 0, SHRT_MAX);

 

  • Love 1

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.   Paste as plain text instead

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