bonus bBaseAtk,5;
bonus bMatk,5;
if (getiteminfo(getequipid(EQI_HAND_R), ITEMINFO_VIEW) == W_BOOK) {
   .@r = getrefine();
   if (.@r>=10) {
      bonus bBaseAtk,20;
   bonus bMatk,20;
   }
   if (.@r>=14) {
      bonus bBaseAtk,20;
   bonus bMatk,20;
   }
}