@Override
 public String onEvent(String event, QuestState qs) {
   if (event.equals("resetCurrentTalkingWithKier")) {
     currentTalkingWithKier = -1;
   }
   if (event.equals("quest_accept") && !qs.isCompleted()) {
     qs.startQuest();
     qs.setMemoState(1);
     return "repre_q10283_05.htm";
   }
   return null;
 }
 @Override
 public String onAsk(L2PcInstance player, L2Npc npc, QuestState st, int reply) {
   int npcId = npc.getNpcId();
   int cond = st.getCond();
   if (npcId == Rafforty) {
     switch (reply) {
       case 1:
         return "repre_q10283_04.htm";
       case 2:
         if (cond == 1) {
           return "repre_q10283_07.htm";
         }
       case 3:
         if (cond == 1) {
           return "repre_q10283_08.htm";
         }
       case 4:
         if (cond == 1) {
           st.setCond(2);
           st.setMemoState(2);
           st.playSound(QuestSound.ITEMSOUND_QUEST_MIDDLE);
           return "repre_q10283_09.htm";
         }
     }
   } else if (npcId == Kier) {
     switch (reply) {
       case 1:
         if (cond == 2) {
           return "keier_q10283_01.htm";
         }
       case 2:
         if (cond == 2) {
           if (currentTalkingWithKier == -1) {
             st.setCond(3);
             st.playSound(QuestSound.ITEMSOUND_QUEST_MIDDLE);
             currentTalkingWithKier = player.getObjectId();
             L2Npc jinia = addSpawn(Jinia, 104476, -107535, -3688, 44954, false, 60000);
             jinia.setOwner(player);
             startQuestTimer("resetCurrentTalkingWithKier", 60000, npc, player);
           } else {
             return currentTalkingWithKier == player.getObjectId()
                 ? "keier_q10283_03.htm"
                 : "keier_q10283_02.htm";
           }
         }
     }
   } else if (npcId == Jinia) {
     switch (reply) {
       case 1:
         if (st.getMemoState() == 2) {
           return "jinia_npc_q10283_01.htm";
         }
         break;
       case 2:
         if (st.getMemoState() == 2) {
           return "jinia_npc_q10283_02.htm";
         }
         break;
       case 3:
         if (st.getMemoState() == 2) {
           st.giveAdena(190000, true);
           st.addExpAndSp(627000, 50300);
           st.playSound(QuestSound.ITEMSOUND_QUEST_FINISH);
           st.exitQuest(QuestType.ONE_TIME);
           npc.getLocationController()
               .delete(); // TODO: myself->AddFleeDesire(talker,1000000); бежать в рандомном
           // направлении и deleteMe
           return "jinia_npc_q10283_03.htm";
         }
     }
   }
   return null;
 }