Jump to content

Reducir chance/daño de skills.


kittynamy

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/30/13
  • Last Seen:  

Hola ¡¡

 

Bueno directo al grano, me gustaría saber como reducir el chance de las skill Masquerade de los Shadow Chaser y el daño de la skil Tiger Cannon del Sura, busque las formulas en el SRC y las encontré, una en battle.c y otra en skill.c, pero no logro entenderla, podrían por favor explicármelas para saber que mover y que no?:

 

Formula de las máscaras:

rate = status_get_lv(src) / 10 + rnd_value(sstatus->dex / 12, sstatus->dex / 4) + ( sd ? sd->status.job_level : 50 ) + 10 * skill_lv

                                                                                 - (status_get_lv(bl) / 10 + rnd_value(tstatus->agi / 6, tstatus->agi / 3) + tstatus->luk / 10 + ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0));

                                               rate = cap_value(rate, skill_lv + sstatus->dex / 20, 100);

 

Formula de Tiger Cannon:

case SR_TIGERCANNON:// ATK [((Caster consumed HP + SP) / 4) x Caster Base Level / 100] %

                                               {

                                                               int hp = (int64)status_get_max_hp(src) * (10 + 2 * skill_lv) / 100,

                                                                              sp = (int64)status_get_max_sp(src) * (5 + 1 * skill_lv) / 100;

                                                               if( sc && sc->data[sC_COMBO] && sc->data[sC_COMBO]->val1 == SR_FALLENEMPIRE ) // ATK [((Caster consumed HP + SP) / 2) x Caster Base Level / 100] %

                                                                              skillratio = ((int64)hp+sp) / 2;

                                                               else

                                                                              skillratio = ((int64)hp+sp) / 4;

                                                               RE_LVL_DMOD(100);

 

 

Desde ante mano doy gracias y disculpen por las molestias, saludos.

Edited by Mael
codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Por cuanto quieres reducirlos?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/30/13
  • Last Seen:  

El daño del Tiiger Cannon en un 28% y la chance de las mascaras en un 45%.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Disculpa la espera, no estuve en casa todo el dia, en un momento edito este post y te doy tu nueva formula.


Masqs es tan facil como

 

rate = status_get_lv(src) / 10 + rnd_value(sstatus->dex / 12, sstatus->dex / 4) + ( sd ? sd->status.job_level : 50 ) + 10 * skill_lv
					   - (status_get_lv(bl) / 10 + rnd_value(tstatus->agi / 6, tstatus->agi / 3) + tstatus->luk / 10 + ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0));

rate = status_get_lv(src) / 10 + rnd_value(sstatus->dex / 12, sstatus->dex / 4) + ( sd ? sd->status.job_level : 50 ) + 10 * skill_lv
					   - (status_get_lv(bl) / 10 + rnd_value(tstatus->agi / 6, tstatus->agi / 3) + tstatus->luk / 10 + ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0)) - 45;

Y para Tiger Cannon:

 

SR_TIGERCANNON,1,15,-28 dentro de db/skill_damage_db.txt
Quita el comment en #define ADJUST_SKILL_DAMAGE dentro de src/config/core.h
Edited by Nova
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/30/13
  • Last Seen:  

Muchas gracias por la respuesta, pero el quitar el coment en #define ADJUST_SKILL_DAMAGE dentro de src/config/core.h, puede afectar en algo al resto de las skills?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

No.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/30/13
  • Last Seen:  

Oks, muchísimas gracias por tu rápida respuesta, probare lo que me has dicho y te diré que tal los resultados.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

De nada. Me avisas si falta algo, no tuve tiempo de hacer pruebas locales pero deberia de funcionar bien.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/30/13
  • Last Seen:  

Al parecer todo funciona muy bien, muchas gracias !!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Perfecto! :] Que tengas buen dia.

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  258
  • Reputation:   53
  • Joined:  01/09/12
  • Last Seen:  

Muchas gracias por la respuesta, pero el quitar el coment en #define ADJUST_SKILL_DAMAGE dentro de src/config/core.h, puede afectar en algo al resto de las skills?

Cabe destacar que db/skill_damage_db.txt es también para ajustar el daño de ciertas skill sin necesidad de tocar el source (no todas las skill funcionan correctamente con este sistema, algunas requieren modificación de source)

 

#define ADJUST_SKILL_DAMAGE dentro de src/config/core.h permite activar el uso de esta base de datos

// Examples:
// MC_MAMMONITE,1,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
// MO_EXTREMITYFIST,1,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
// AB_ADORAMUS,1,6,50,0,10,15 // In PVP and GVG, players deal +50% damage to other players, +0% to mobs, +10% to bosses, and +15% to other with Adoramus.

Edited by Namine210
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
Reply to this topic...

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