Jump to content
  • 0

Heal Skill 100%stronger


Question

Posted

Heya =)

I wanna make the Skill Heal 100% Stronger.

I already have Search in the src/map/(skill.c /skill.h) .

Can anywhone tell me how i change the amount of heal for exaple like lvl10 Heal = 5k to 10k.

4 answers to this question

Recommended Posts

Posted

there may be an option by config but I don't know it so I'm telling you how I'd do it in src.

skill.c :: skill_castend_nodammage_id

case AL_HEAL :
int heal = skill_calc_heal(src, bl, (skillid == AB_HIGHNESSHEAL)?AL_HEAL:skillid, (skillid == AB_HIGHNESSHEAL)?10:skilllv, true);

//here you calculate how much you should heal.

so you just need

 if(skillid == AL_HEAL) heal <<= 1; //2time stronger 

//just make sure to do this condition before this

 heal_get_jobexp = status_heal(bl,heal,0,0); 

it's where we apllying this heal.

nota :

here we need the condition so only AL_HEAL will be increase and not highnessheal or hlif_heal, but if you want for all you don't need that ofc.

also you can take a look and see heal is already double if it's your partner who's healing you :

if( sd && dstsd && sd->status.partner_id == dstsd->status.char_id && (sd->class_&MAPID_UPPERMASK) == MAPID_SUPER_NOVICE && sd->status.sex == 0 )
               heal = heal*2;

Finally I prefer put it in skill_calc_heal, since it would be more conherent from the name of the fonction and the purpose I assumed but you may have issues doing this since some skills (like highnessheal as we can see up here) using also AL_HEAL to calculate there so it may be more annoying atm.

Hope you got it =)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...