Hi,
Go in npc.cpp :
after that :
case NPCE_LOGIN:
return script_config.login_event_name;
Add that :
case NPCE_USESKILL:
return script_config.useskill_event_name;
Go in skill.cpp :
after that :
if( sd && sd->autobonus3[0].rate ) {
for( i = 0; i < ARRAYLENGTH(sd->autobonus3); i++ ) {
if( rnd()%1000 >= sd->autobonus3[i].rate )
continue;
if( sd->autobonus3[i].atk_type != skill_id )
continue;
pc_exeautobonus(sd,&sd->autobonus3[i]);
}
}
add :
npc_script_event(sd, NPCE_USESKILL);
It should be enough.