Hi, I have successfully implemented a custom skill.
I just have a problem about the Success Message and Skill Failed Message:
When you have successfully break the enemy's weapon, the message must be "SUCCESS", and "Skill Failed" when you fail to break it.
But, it always throws me the Skill Failed message even though I successfully break the weapon.
Here is my code:
case WS_CRUSHWEAPON:
{
int s = 0;
skill_break_equip(src,bl, EQP_WEAPON, 150*skill_lv, BCT_ENEMY);
clif_displaymessage(sd->fd, "SUCCESS.");
if( sd && !s ){
clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return 0;
}
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
}
break;