Jump to content
  • 0

Bowling Bash Damage


Question

4 answers to this question

Recommended Posts

Posted

How to edit this script to increase the damage of bowling bash ?

case KN_BOWLINGBASH:
case MS_BOWLINGBASH:
 if(flag&1){
  if(bl->id==skill_area_temp[1])
   break;
  //two hits for 500%
  skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,SD_ANIMATION);
  skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,SD_ANIMATION);
 } else {
  int i,c;
  c = skill_get_blewcount(skillid,skilllv);
  // keep moving target in the direction that src is looking, square by square
  for(i=0;i<c;i++){
   if (!skill_blown(src,bl,1,(unit_getdir(src)+4)%8,0x1))
 break; //Can't knockback
   skill_area_temp[0] = map_foreachinrange(skill_area_sub, bl, skill_get_splash(skillid, skilllv), BL_CHAR, src, skillid, skilllv, tick, flag|BCT_ENEMY, skill_area_sub_count);
   if( skill_area_temp[0] > 1 ) break; // collision
  }
  clif_blown(bl); //Update target pos.
  if (i!=c) { //Splash
   skill_area_temp[1] = bl->id;
   map_foreachinrange(skill_area_sub, bl, skill_get_splash(skillid, skilllv), splash_target(src), src, skillid, skilllv, tick, flag|BCT_ENEMY|1, skill_castend_damage_id);
  }
  //Weirdo dual-hit property, two attacks for 500%
  skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
  skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,0);
 }
 break;

Posted

Most of damage calculation is done in battle.c not skill.c (Skill.c is to store special value)

battle.c line 1881:

   case KN_BOWLINGBASH:
   case MS_BOWLINGBASH:
 skillratio+= 40*skill_lv;
 break;

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