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;
Question
Damid
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:
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.