Ejemplo n.º 1
0
 @Override
 public String onFirstTalk(L2Npc npc, L2PcInstance player) {
   String htmltext = "";
   boolean hellboundLock = HellboundManager.getInstance().isLocked();
   QuestState st1 = player.getQuestState("133_ThatsBloodyHot");
   QuestState st2 = player.getQuestState("130_PathToHellbound");
   if (st1 != null) npc.showChatWindow(player);
   else if (st2 != null) {
     if (hellboundLock) npc.showChatWindow(player);
     else htmltext = "warpgate-locked.htm";
   } else if (!hellboundLock) htmltext = "warpgate-locked.htm";
   else if (hellboundLock) npc.showChatWindow(player);
   return htmltext;
 }
Ejemplo n.º 2
0
 @Override
 public String onTalk(L2Npc npc, L2PcInstance player) {
   String htmltext = "";
   boolean hellboundLock = HellboundManager.getInstance().isLocked();
   QuestState st1 = player.getQuestState("133_ThatsBloodyHot");
   QuestState st2 = player.getQuestState("130_PathToHellbound");
   if (st1 != null) {
     if (st1.getState() == State.COMPLETED) player.teleToLocation(-11272, 236464, -3248);
     else htmltext = "cant-port.htm";
   } else if (st2 != null) {
     if (st2.getState() == State.COMPLETED && hellboundLock)
       player.teleToLocation(-11272, 236464, -3248);
     else htmltext = "cant-port.htm";
   } else htmltext = "cant-port.htm";
   return htmltext;
 }