Exemplo n.º 1
0
 def onAdvEvent (self,event,npc,pc):
   if event == "Close_Door1" :
      DoorTable.getInstance().getDoor(19160001).closeMe()
   elif event == "Close_Door2" :
      DoorTable.getInstance().getDoor(19160010).closeMe()
      DoorTable.getInstance().getDoor(19160011).closeMe()
   return
Exemplo n.º 2
0
  def onTalk (self,npc,player):
    st = player.getQuestState(qn)
    npcId = npc.getNpcId()
    htmltext = None
    if npcId == 32034 :
      if st.getQuestItemsCount(8064) == 0 and st.getQuestItemsCount(8065) == 0 and st.getQuestItemsCount(8067) == 0:
	htmltext = "Mark1.htm"        
	return htmltext
      else:
      	htmltext = "FadedMark.htm"
      	DoorTable.getInstance().getDoor(19160001).openMe()
      	self.startQuestTimer("Close_Door1",10000,None,None)
    elif npcId == 32035:
      DoorTable.getInstance().getDoor(19160001).openMe()
      self.startQuestTimer("Close_Door1",10000,None,None)
      htmltext = "FadedMark.htm"
    elif npcId == 32036:
      if not st.getQuestItemsCount(8067) :
	htmltext = "Mark2.htm"        
	return htmltext
      else:
        htmltext = "Mark3.htm"
        self.startQuestTimer("Close_Door2",10000,None,None)
        DoorTable.getInstance().getDoor(19160010).openMe()
        DoorTable.getInstance().getDoor(19160011).openMe()
    elif npcId == 32037:
      DoorTable.getInstance().getDoor(19160010).openMe()
      DoorTable.getInstance().getDoor(19160011).openMe()
      self.startQuestTimer("Close_Door2",10000,None,None)
      htmltext = "FadedMark.htm"
    st.exitQuest(1)
    return htmltext