Jump to content
  • 0

Decrease Firebolt Damage


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

how will i decrease firebolt damage?? is it in battle.c?

eathena svn

Edited by glemor123
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

see battle.c

find

case MG_FIREWALL:

skillratio -= 50;

break;

add after

case MG_FIREBOLT:

skillratio -= (how many decrease);

break;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

how will i edit this

??

case MG_FIREWALL:
skillratio -= 50;
if( sc && sc->data[sC_PYROTECHNIC_OPTION] )
skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100;
break;
case MG_FIREBOLT:
if ( sc )
{
if ( sc->data[sC_SPELLFIST] && (!sd || !sd->state.autocast))
{
skillratio = sc->data[sC_SPELLFIST]->val2 * 50 + sc->data[sC_SPELLFIST]->val4 * 100;
ad.div_ = 1;
ad.flag = BF_WEAPON|BF_SHORT;
ad.type = 0;
}
if( sc->data[sC_PYROTECHNIC_OPTION] )
skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100;
}
break;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

but you said :

eathena svn

its not from eathena =\

in this just add:

...
case MG_FIREBOLT:
skillratio -= (how many decrease);
if ( sc )
{
...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

how will i decrease firebolt damage?? is it in battle.c?

eathena svn

how will i edit this

??

but you said :

eathena svn

its not from eathena =\

in this just add:

...
case MG_FIREBOLT:
skillratio -= (how many decrease);
if ( sc )
{
...

What Lilith is trying to say is that there's no damage formula in battle.c in eAthena's SVN... in other words, you gotta add it yourself. So, please head to battle.c and find:

switch(skill_num){
 case MG_NAPALMBEAT:
 case MG_FIREBALL:
  skillratio += skill_lv*10-30;
  break;
 case MG_SOULSTRIKE:
  if (battle_check_undead(tstatus->race,tstatus->def_ele))
   skillratio += 5*skill_lv;
  break;
 case MG_FIREWALL:
  skillratio -= 50;
  break;

Under MG_FIREWALL, please add:

case MG_FIREBOLT:
  skillratio -= 50;
  break;

So that it'll look like so:

switch(skill_num){
 case MG_NAPALMBEAT:
 case MG_FIREBALL:
  skillratio += skill_lv*10-30;
  break;
 case MG_SOULSTRIKE:
  if (battle_check_undead(tstatus->race,tstatus->def_ele))
   skillratio += 5*skill_lv;
  break;
 case MG_FIREWALL:
  skillratio -= 50;
  break;
case MG_FIREBOLT:
  skillratio -= 50;
  break;

then change the 50 to whatever you want. Higher it is, more damage firebolt will do. The less it is, the less damage it would do.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

what is the default value of skill ratio of firebolt??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

I'd give it a try at 50 then change it up, but how do we accomplish this with rAthena? ..... >.>' My Aunt wants to know....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

how will i decrease firebolt damage?? is it in battle.c?

eathena svn

how will i edit this

??

but you said :

eathena svn

its not from eathena =\

in this just add:

...
case MG_FIREBOLT:
skillratio -= (how many decrease);
if ( sc )
{
...

What Lilith is trying to say is that there's no damage formula in battle.c in eAthena's SVN... in other words, you gotta add it yourself. So, please head to battle.c and find:

switch(skill_num){
 case MG_NAPALMBEAT:
 case MG_FIREBALL:
  skillratio += skill_lv*10-30;
  break;
 case MG_SOULSTRIKE:
  if (battle_check_undead(tstatus->race,tstatus->def_ele))
   skillratio += 5*skill_lv;
  break;
 case MG_FIREWALL:
  skillratio -= 50;
  break;

Under MG_FIREWALL, please add:

case MG_FIREBOLT:
  skillratio -= 50;
  break;

So that it'll look like so:

switch(skill_num){
 case MG_NAPALMBEAT:
 case MG_FIREBALL:
  skillratio += skill_lv*10-30;
  break;
 case MG_SOULSTRIKE:
  if (battle_check_undead(tstatus->race,tstatus->def_ele))
   skillratio += 5*skill_lv;
  break;
 case MG_FIREWALL:
  skillratio -= 50;
  break;
case MG_FIREBOLT:
  skillratio -= 50;
  break;

then change the 50 to whatever you want. Higher it is, more damage firebolt will do. The less it is, the less damage it would do.

this is what my mg_firebolt contains

where to edit this

 case MG_FIREBOLT:
  if ( sc )
  {
   if ( sc->data[sC_SPELLFIST] && (!sd || !sd->state.autocast))
   {
    skillratio = sc->data[sC_SPELLFIST]->val2 * 50 + sc->data[sC_SPELLFIST]->val4 * 100;
    ad.div_ = 1;
    ad.flag = BF_WEAPON|BF_SHORT;
    ad.type = 0;
   }
   if( sc->data[sC_PYROTECHNIC_OPTION] )
    skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100;
  }
  break;

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