hi SmokexyzSomething like this?
find in battle.c -
struct Damage battle_calc_attack
Add the following right before #ifdef HMAP_ZONE_DAMAGE_CAP_TYPE
if(target && !skill_id && attack_type == BF_WEAPON && bl->type == BL_PC){ npc->event((TBL_PC*)src,"CalcBasicAttack::OnBasicAttack",0);}
And then make an npc :
- script CalcBasicAttack -1,{end;OnBasicAttack: @attackcount++; if(@attackcount == 10) { // Dance for me. }}
Just a rough idea , I haven't tested this.
We use essential cookies to make this site work, and optional cookies to enhance your experience.