Esempio n. 1
0
  @Override
  public final String onAdvEvent(String event, L2Npc npc, L2Player player) {
    String htmltext = event;
    QuestState st = player.getQuestState(QN);

    if (st == null) return htmltext;

    if (st.getQuestItemsCount(BIG_RED_NIMBLE_FISH) >= 25
        && st.getQuestItemsCount(GREAT_CODRAN) >= 50
        && st.getQuestItemsCount(MEMENTO_MORI) >= 4
        && st.getQuestItemsCount(EARTH_EGG) >= 5
        && st.getQuestItemsCount(NONLIVING_NUCLEUS) >= 5
        && st.getQuestItemsCount(DRAGON_HEART) >= 3
        && st.getQuestItemsCount(57) >= 7500000) {
      st.takeItems(BIG_RED_NIMBLE_FISH, 25);
      st.takeItems(GREAT_CODRAN, 50);
      st.takeItems(MEMENTO_MORI, 4);
      st.takeItems(EARTH_EGG, 5);
      st.takeItems(NONLIVING_NUCLEUS, 5);
      st.takeItems(DRAGON_HEART, 3);
      st.takeAdena(7500000);

      if (event.equalsIgnoreCase("Little_Angel")) st.giveItems(ANGEL_BRACELET, 1);
      else if (event.equalsIgnoreCase("Little_Devil")) st.giveItems(DEVIL_BRACELET, 1);
    } else htmltext = "30098-no.htm";

    st.exitQuest(true);
    return htmltext;
  }
Esempio n. 2
0
  @Override
  public final String onTalk(L2Npc npc, L2Player player) {
    QuestState st = player.getQuestState(QN);

    if (st == null) st = newQuestState(player);

    return "30098.htm";
  }