Jump to content
  • 0

How to change HP SP recovery


Hnomkeng

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   2
  • Joined:  02/23/14
  • Last Seen:  

I need change HP SP recovery,

I need change recovery on sit only.

 

Thank you for help.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Check :-

 

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   2
  • Joined:  02/23/14
  • Last Seen:  

3 hours ago, Cyro said:

Check :-

 

 

How to recovery on sit only ?

*PS : no recovery on stand or run.

Edited by Hnomkeng
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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
Link to comment
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.

×
×
  • Create New...