예제 #1
0
 @Override
 public String onEvent(String event, QuestState st, NpcInstance npc) {
   String htmltext = event;
   if (event.equalsIgnoreCase("30631-3.htm")) {
     st.setState(STARTED);
     st.setCond(1);
     st.playSound(SOUND_ACCEPT);
   } else if (event.equalsIgnoreCase("30631-5.htm")) {
     st.getPlayer().addExpAndSp(600000000, 0);
     st.takeItems(Deadmans_Flesh, 40);
     st.unset(SCALDISECT_KILL);
     st.setState(COMPLETED);
     st.playSound(SOUND_FINISH);
     st.exitCurrentQuest(this);
   }
   return htmltext;
 }