.@bonus = 5;
.@type = getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_VIEW);
if (.@type == W_DAGGER) {
   .@r = getrefine();
   if (.@r>=10) {
      .@bonus += 20;
   }
   if (.@r>=14) {
      .@bonus += 20;
   }
}
bonus bBaseAtk,.@bonus;
bonus bMatk,.@bonus;