Exemple #1
0
	def onEnterZone(self, player, zonetype):
		if isinstance(player, L2PcInstance) and not player.getName() in self.blacklist:
			area_name = zonetype.getName()
			if zonetype.getId() in self.zone_data.keys():
				if not self.zone_data[zonetype.getId()]["show"]:
					return JQuest.onEnterZone(self, player, zonetype)
				area_name = self.zone_data[zonetype.getId()]["name"]
			else:
				if not self.no_data_show:
					return JQuest.onEnterZone(self, player, zonetype)
			t = time.localtime()
			h = t[3]
			m = t[4]
			a = "%s 進入%s範圍! 於%d時%d分" % (player.getName(), area_name, h, m)
			Announcements.getInstance().announceToAll(a)
		return JQuest.onEnterZone(self, player, zonetype)
Exemple #2
0
 def onEnterZone(self, player, zonetype):
     if isinstance(player,
                   L2PcInstance) and not player.getName() in self.blacklist:
         area_name = zonetype.getName()
         if zonetype.getId() in self.zone_data.keys():
             if not self.zone_data[zonetype.getId()]["show"]:
                 return JQuest.onEnterZone(self, player, zonetype)
             area_name = self.zone_data[zonetype.getId()]["name"]
         else:
             if not self.no_data_show:
                 return JQuest.onEnterZone(self, player, zonetype)
         t = time.localtime()
         h = t[3]
         m = t[4]
         a = "%s 進入%s範圍! 於%d時%d分" % (player.getName(), area_name, h, m)
         Announcements.getInstance().announceToAll(a)
     return JQuest.onEnterZone(self, player, zonetype)
Exemple #3
0
	def onEnterZone(self, player, zonetype):
		if isinstance(player, L2PcInstance):
			st = player.getQuestState(self.qn)
			if not st:
				st = self.newQuestState(player)
				st.setState(State.STARTED)
			if not st.isCompleted():
				player.showQuestMovie(101)
				st.exitQuest(False)
		return JQuest.onEnterZone(self, player, zonetype)
Exemple #4
0
	def onEnterZone(self, player, zonetype):
		if isinstance(player, L2PcInstance):
			vz = ZoneManager.getInstance().getZoneById(self.valakas_zone_id)
			vz.allowPlayerEntry(player, 30)
			player.teleToLocation(211042,-113579,-1600)
		return JQuest.onEnterZone(self, player, zonetype)
Exemple #5
0
 def onEnterZone(self, player, zonetype):
     if isinstance(player, L2PcInstance):
         vz = ZoneManager.getInstance().getZoneById(self.valakas_zone_id)
         vz.allowPlayerEntry(player, 30)
         player.teleToLocation(211042, -113579, -1600)
     return JQuest.onEnterZone(self, player, zonetype)