예제 #1
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)
		worldRegions = L2World.getInstance().getAllWorldRegions()
		self.zone_hell = L2BossZone(self.zone_hell_id)
		aX, aY = [196866,229289,229176,196880],[-130845,-130860,-98508,-98498]
		minZ = -22572
		maxZ = -2637
		self.zone_hell.setZone(ZoneNPoly(aX, aY, minZ, maxZ))
		self.zone_hell.setName("Valakas Hell")
		self.zone_hell.setParameter("default_enabled", "false")
		ZoneManager.getInstance().addZone(self.zone_hell_id, self.zone_hell)

		for x in xrange(len(worldRegions)):
			for y in xrange(len(worldRegions[x])):
				ax = (x - L2World.OFFSET_X) << L2World.SHIFT_BY;
				bx = ((x + 1) - L2World.OFFSET_X) << L2World.SHIFT_BY;
				ay = (y - L2World.OFFSET_Y) << L2World.SHIFT_BY;
				by = ((y + 1) - L2World.OFFSET_Y) << L2World.SHIFT_BY;
				if self.zone_hell.getZone().intersectsRectangle(ax, bx, ay, by):
					worldRegions[x][y].addZone(self.zone_hell)
		self.addEnterZoneId(self.zone_hell_id)
		print "Init:" + self.qn + " loaded"
예제 #2
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)

		worldRegions = L2World.getInstance().getAllWorldRegions()
		self.zone = L2ScriptZone(self.zone_id)
		self.zone.setInstanceId(0)
		self.zone.setName("F**k")
		self.zone.setZone(ZoneCylinder(-114359, 257451, -1200, -1100, 300))
		if ZoneManager.getInstance().checkId(self.zone_id):
			print "replace zone id:", self.zone_id
		ZoneManager.getInstance().addZone(self.zone_id, self.zone)

		for x in xrange(len(worldRegions)):
			for y in xrange(len(worldRegions[x])):
				ax = (x - L2World.OFFSET_X) << L2World.SHIFT_BY;
				bx = ((x + 1) - L2World.OFFSET_X) << L2World.SHIFT_BY;
				ay = (y - L2World.OFFSET_Y) << L2World.SHIFT_BY;
				by = ((y + 1) - L2World.OFFSET_Y) << L2World.SHIFT_BY;
				if self.zone.getZone().intersectsRectangle(ax, bx, ay, by):
					worldRegions[x][y].addZone(self.zone)
		self.addEnterZoneId(self.zone_id)
		print "Init:" + self.qn + " loaded"
예제 #3
0
    def __init__(self, id=qID, name=qn, descr=qDesc):
        JQuest.__init__(self, id, name, descr)
        worldRegions = L2World.getInstance().getAllWorldRegions()
        self.zone_hell = L2BossZone(self.zone_hell_id)
        aX, aY = [196866, 229289, 229176,
                  196880], [-130845, -130860, -98508, -98498]
        minZ = -22572
        maxZ = -2637
        self.zone_hell.setZone(ZoneNPoly(aX, aY, minZ, maxZ))
        self.zone_hell.setName("Valakas Hell")
        self.zone_hell.setParameter("default_enabled", "false")
        ZoneManager.getInstance().addZone(self.zone_hell_id, self.zone_hell)

        for x in xrange(len(worldRegions)):
            for y in xrange(len(worldRegions[x])):
                ax = (x - L2World.OFFSET_X) << L2World.SHIFT_BY
                bx = ((x + 1) - L2World.OFFSET_X) << L2World.SHIFT_BY
                ay = (y - L2World.OFFSET_Y) << L2World.SHIFT_BY
                by = ((y + 1) - L2World.OFFSET_Y) << L2World.SHIFT_BY
                if self.zone_hell.getZone().intersectsRectangle(
                        ax, bx, ay, by):
                    worldRegions[x][y].addZone(self.zone_hell)
        self.addEnterZoneId(self.zone_hell_id)
        print "Init:" + self.qn + " loaded"
예제 #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)
예제 #5
0
 def __init__(self, id=qID, name=qn, descr=qDesc):
     JQuest.__init__(self, id, name, descr)
     for zone in ZoneManager.getInstance().getAllZones(L2BossZone):
         self.addEnterZoneId(zone.getId())
     print "Init:" + self.qn + " loaded"
예제 #6
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)
예제 #7
0
파일: zoneAnno.py 프로젝트: 6009821/s4L2J
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)
		for zone in ZoneManager.getInstance().getAllZones(L2BossZone):
			self.addEnterZoneId(zone.getId())
		print "Init:" + self.qn + " loaded"