@Override public String onTalk(L2Npc npc, L2PcInstance player) { String htmltext = getNoQuestMsg(player); final QuestState st = getQuestState(player, true); if (st == null) { return htmltext; } switch (npc.getId()) { case NATOOLS: switch (st.getState()) { case State.STARTED: switch (st.getCond()) { case 1: htmltext = "30894-01.html"; break; default: htmltext = "30894-04.html"; break; } break; case State.COMPLETED: htmltext = getAlreadyCompletedMsg(player); break; } break; case TOBIAS: if (st.isStarted()) { switch (st.getCond()) { case 1: htmltext = "30297-01.html"; break; case 2: htmltext = (st.isSet("talk")) ? "30297-04.html" : "30297-02.html"; break; case 3: case 4: htmltext = "30297-06.html"; break; case 5: st.giveAdena(89046, true); if (player.getLevel() <= MAX_REWARD_LEVEL) { st.addExpAndSp(223036, 13901); } st.exitQuest(false, true); htmltext = "30297-07.html"; break; } } break; case CASIAN: if (st.isStarted()) { switch (st.getCond()) { case 1: case 2: htmltext = "30612-01.html"; break; case 3: htmltext = (st.isSet("talk")) ? "30612-04.html" : "30612-02.html"; break; default: htmltext = "30612-10.html"; break; } } break; case ROCK: if (st.isStarted()) { switch (st.getCond()) { case 1: case 2: case 3: htmltext = "32368-01.html"; break; case 4: htmltext = "32368-02.html"; break; case 5: htmltext = "32368-05.html"; break; } } break; case ANGEL: if (st.isStarted()) { switch (st.getCond()) { case 1: case 2: case 3: htmltext = "32369-01.html"; break; case 4: if (st.getInt("talk") == 1) { htmltext = "32369-04.html"; } else if (st.getInt("talk") == 2) { htmltext = "32369-07.html"; } else { htmltext = "32369-02.html"; } break; } } break; } return htmltext; }