Jump to content
  • 0

Opposite of Health Conversion (Indulge)


Damid

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/20/14
  • Last Seen:  

I'd like to change First Aid to do the absolute opposite of health conversion, using SP to heal and getting an amount of HP based on the SP used; but I don't actually know how to do this :/

 

I tried to just use the health conversion and change the HP for SP and vice-versa, but it doesn't seem to be that easy. This is the configuration of health conversion on .../src/map/skill.c:

 

case PF_HPCONVERSION:
{
int hp, sp;
hp = sstatus->max_hp/10;
sp = hp * 10 * skill_lv / 100;
if (!status_charge(src,hp,0)) {
if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
break;
}
clif_skill_nodamage(src, bl, skill_id, skill_lv, 1);
status_heal(bl,0,sp,2);
}
break;
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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