@Override
 public L1NpcHtml executeWithAmount(String actionName, L1PcInstance pc, L1Object obj, int amount) {
   L1NpcInstance npc = (L1NpcInstance) obj;
   L1NpcHtml result = null;
   if (makeItems(pc, npc.getNpcTemplate().get_name(), amount)) {
     if (_actionOnSucceed != null) {
       result = _actionOnSucceed.execute(actionName, pc, obj, new byte[0]);
     }
   } else {
     if (_actionOnFail != null) {
       result = _actionOnFail.execute(actionName, pc, obj, new byte[0]);
     }
   }
   return result == null ? L1NpcHtml.HTML_CLOSE : result;
 }