Пример #1
0
 public Q10390_KekropusLetter() {
   super(10390, Q10390_KekropusLetter.class.getSimpleName(), "Kekropus' Letter");
   addStartNpc(DRIKUS, RAYMOND, RAINS, ELLENIA, ESRANDELL, TOBIAS, MENDIO, GERSHWIN);
   addTalkId(
       DRIKUS, BATHIS, GOSTA, ELI, RAYMOND, RAINS, ELLENIA, ESRANDELL, TOBIAS, MENDIO, GERSHWIN);
   registerQuestItems(
       SCROLL_OF_ESCAPE_ALIGATOR_ISLAND.getId(),
       SCROLL_OF_ESCAPE_HEINE.getId(),
       KEKROPUS_LETTER.getId());
   addCondLevel(MIN_LEVEL, MAX_LEVEL, "30505-noLevel.html");
   BypassHandler.getInstance().registerHandler(this);
 }
  @Override
  protected void runImpl() {
    final L2PcInstance player = getClient().getActiveChar();
    if (player == null) {
      return;
    }

    final IBypassHandler handler = BypassHandler.getInstance().getHandler(_bypass);
    if (handler != null) {
      handler.useBypass(_bypass, player, null);
    } else {
      L2ClassMasterInstance.onTutorialLink(player, _bypass);

      QuestState qs = player.getQuestState("255_Tutorial");
      if (qs != null) {
        qs.getQuest().notifyEvent(_bypass, null, player);
      }
    }
  }