Jump to content
  • 0

How to add skills here? And Penalty XP by mob level


Question

Posted (edited)

1) Help here

// Skills that bHealPower has effect on
// 1: Heal, 2: Sanctuary, 4: Potion Pitcher, 8: Slim Pitcher, 16: Apple of Idun,
// 32: Coluceo Heal, 64: Highness Heal, 128: Mediale Votum, 256: Dilectio Heal
skill_add_heal_rate: 487 <--- default

 

This is on the skill.config archive and do not know how to add varius skills. The 487 is the default numer, but... if i wanna add heals and sanctuary.... how i add both of them? 

Just:  skill_add_heal_rate: 24487 ??? Dunno 

2) Is editable the penalty EXP by difference level between mob and user?? Where? 

 

Edited by aleph075

7 answers to this question

Recommended Posts

  • 0
Posted (edited)
5 hours ago, aleph075 said:

1) Help here

// Skills that bHealPower has effect on
// 1: Heal, 2: Sanctuary, 4: Potion Pitcher, 8: Slim Pitcher, 16: Apple of Idun,
// 32: Coluceo Heal, 64: Highness Heal, 128: Mediale Votum, 256: Dilectio Heal
skill_add_heal_rate: 487 <--- default

 

This is on the skill.config archive and do not know how to add varius skills. The 487 is the default numer, but... if i wanna add heals and sanctuary.... how i add both of them? 

Just:  skill_add_heal_rate: 24487 ??? Dunno 

2) Is editable the penalty EXP by difference level between mob and user?? Where? 

 

1) You add the numbers together that you want it enabled for. For example if you only want Heal and Sactuary to be boosted by this bonus, then you would put "3" (1+2). If you want everything to be affected from that list you put 1+2+4+8+16+32+64+128+256=511.

2) If you are running renewal, you can define the exp and drop penalty here: https://github.com/rathena/rathena/blob/master/db/re/level_penalty.yml

Edited by Playtester
  • Upvote 1
  • 0
Posted
40 minutes ago, aleph075 said:

1) Help here

// Skills that bHealPower has effect on
// 1: Heal, 2: Sanctuary, 4: Potion Pitcher, 8: Slim Pitcher, 16: Apple of Idun,
// 32: Coluceo Heal, 64: Highness Heal, 128: Mediale Votum, 256: Dilectio Heal
skill_add_heal_rate: 487 <--- default

 

This is on the skill.config archive and do not know how to add varius skills. The 487 is the default numer, but... if i wanna add heals and sanctuary.... how i add both of them? 

Just:  skill_add_heal_rate: 24487 ??? Dunno 

2) Is editable the penalty EXP by difference level between mob and user?? Where? 

 



 

You can add a skill in pc.cpp (src/map/pc.cpp)

 

int pc_skillheal_bonus(map_session_data *sd, uint16 skill_id) {
    int bonus = sd->bonus.add_heal_rate;

    nullpo_ret(sd);

    skill_id = skill_dummy2skill_id(skill_id);

    if( bonus ) {
        switch( skill_id ) {
            case AL_HEAL:           if( !(battle_config.skill_add_heal_rate&1) ) bonus = 0; break;
            case PR_SANCTUARY:      if( !(battle_config.skill_add_heal_rate&2) ) bonus = 0; break;
            case AM_POTIONPITCHER:  if( !(battle_config.skill_add_heal_rate&4) ) bonus = 0; break;
            case CR_SLIMPITCHER:    if( !(battle_config.skill_add_heal_rate&8) ) bonus = 0; break;
            case BA_APPLEIDUN:      if( !(battle_config.skill_add_heal_rate&16)) bonus = 0; break;
            case AB_CHEAL:          if (!(battle_config.skill_add_heal_rate & 32)) bonus = 0; break;
            case AB_HIGHNESSHEAL:   if (!(battle_config.skill_add_heal_rate & 64)) bonus = 0; break;
            case CD_MEDIALE_VOTUM:  if (!(battle_config.skill_add_heal_rate & 128)) bonus = 0; break;
            case CD_DILECTIO_HEAL:  if (!(battle_config.skill_add_heal_rate & 256)) bonus = 0; break;
        }
    }

    for (auto &it : sd->skillheal) {
        if (it.id == skill_id) {
            bonus += it.val;
            break;
        }
    }

    return bonus;
}

skill_add_heal_rate: 487 <--- means skill number designed, 1 = Heal Skill, 2 = Sanctuary Skill, etc so 487 means Heal + Sanctuary + Potion Pitcher + Cheal + highness heal + mediale + dialectio

  • Upvote 1
  • 0
Posted
37 minutes ago, Playtester said:

1) You add the numbers together that you want it enabled for. For example if you only want Heal and Sactuary to be boosted by this bonus, then you would put "3" (1+2). If you want everything to be affected from that list you put 1+2+4+8+16+32+64+128+256=511.

2) If you are running renewal, you can define the exp and drop penalty here: https://github.com/rathena/rathena/blob/master/db/re/level_penalty.yml

Oooh thx! Now I discover that "differencce level" also affect the DROP RATE?!?! What??? So, if i am looking for a low level mob card.... I really have less drop chance? Do the servers edit this?

  • 0
Posted
On 4/17/2024 at 11:53 AM, aleph075 said:

Oooh thx! Now I discover that "differencce level" also affect the DROP RATE?!?! What??? So, if i am looking for a low level mob card.... I really have less drop chance? Do the servers edit this?

Official servers have a drop penalty on level difference, but many private server remove that "feature".

I only play on pre-renewal servers so not sure how many there are that actually have a drop penalty.

  • Upvote 1

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