Exemple #1
0
 def onTalk (self,npc,player):
   st = player.getQuestState("antharas")
   if not st : return "<html><body>You are either not carrying out your quest or don't meet the criteria.</body></html>"
   npcId = npc.getNpcId()
   if npcId == HEART:
     if AntharasManager.getInstance().isEnableEnterToLair():
       if st.getQuestItemsCount(PORTAL_STONE) >= 1:
         st.takeItems(PORTAL_STONE,1)
         AntharasManager.getInstance().setAntharasSpawnTask()
         AntharasManager.getInstance().addPlayerToLair(st.player)
         st.player.teleToLocation(173826,115333,-7708)
         return
       else:
         st.exitQuest(1)
         return '<html><body>Heart of Muscai:<br><br>You do not have the proper stones needed for teleport.<br>It is for the teleport where does 1 stone to you need.<br></body></html>'
     else:
       st.exitQuest(1)
       return '<html><body>Heart of Muscai:<br><br>Antharas has already awoke!<br>You are not allowed to enter into Lair of Antharas.<br></body></html>'
Exemple #2
0
 def onTalk(self, npc, player):
     st = player.getQuestState("antharas")
     if not st: return
     npcId = npc.getNpcId()
     if npcId == HEART:
         if AntharasManager.getInstance().isEnableEnterToLair():
             if st.getQuestItemsCount(PORTAL_STONE) > 0:
                 st.takeItems(PORTAL_STONE, 1)
                 AntharasManager.getInstance().setAntharasSpawnTask()
                 AntharasManager.getInstance().addPlayerToLair(st.player)
                 st.player.teleToLocation(180226, 114979, -7704)
                 return
             else:
                 st.exitQuest(1)
                 return MSG2
         else:
             st.exitQuest(1)
             return MSG1
     return
Exemple #3
0
 def onTalk (self,npc,player):
    st = player.getQuestState("antharas")
    if not st : return
    npcId = npc.getNpcId()
    if npcId == HEART :
       if AntharasManager.getInstance().isEnableEnterToLair():
          if st.getQuestItemsCount(PORTAL_STONE) > 0 :
             st.takeItems(PORTAL_STONE,1)
             AntharasManager.getInstance().setAntharasSpawnTask()
             AntharasManager.getInstance().addPlayerToLair(st.player)
             st.player.teleToLocation(180226,114979,-7704)
             return
          else:
             st.exitQuest(1)
             return MSG2
       else:
          st.exitQuest(1)
          return MSG1
    return
Exemple #4
0
 def onKill(self, npc, player, isPet):
     st = player.getQuestState("antharas")
     if not st: return
     AntharasManager.getInstance().setCubeSpawn()
     st.exitQuest(1)
     return
Exemple #5
0
 def onKill (self,npc,player,isPet):
    st = player.getQuestState("antharas")
    if not st: return
    AntharasManager.getInstance().setCubeSpawn()
    st.exitQuest(1)
    return