Example #1
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		self.addStartNpc(self.NPCID)
		self.addFirstTalkId(self.NPCID)
		self.addTalkId(self.NPCID)
		print "%s loaded" % (self.qn,)
	def __init__(self, id, name, descr):
		JQuest.__init__(self, id, name, descr)
		self.SpawnedMobs = {}
		self.hellboundLevel = HellboundManager.getInstance().getLevel()
		if self.hellboundLevel < 6:
			self.startQuestTimer("levelCheckMeg", 60000, None, None, True)
		megaliths = 6
		try:
			megaliths = int(self.loadGlobalQuestVar("megaliths_portals"))
		except:
			pass
		self.saveGlobalQuestVar("megaliths_portals", str(megaliths))
		if megaliths <= 0:
			HellboundManager.getInstance().setMegalithsCompleted(1)
		if self.hellboundLevel == 6:
			# spawn the megaliths and hellinark
			xx2, yy2, zz2 = HellinarkSpawn
			newHellinark = HellboundManager.getInstance().addSpawn(Hellinark, xx2, yy2, zz2, 5000, 0)
			if megaliths > 0:
				for i in range(megaliths):
					self.SpawnedMobs[i] = []
					xx, yy, zz, headg = MegalithSpawnLocs[i]
					respawnTime = Rnd.get(90, 180) # between 90 seconds and 3 minutes
					newMegalith = HellboundManager.getInstance().addSpawn(Megalith, xx, yy, zz, headg, respawnTime)
					self.SpawnedMobs[i].append(newMegalith)
Example #3
0
 def __init__(self, id=qID, name=qn, descr=qDesc):
     self.qID, self.qn, self.qDesc = id, name, descr
     JQuest.__init__(self, id, name, descr)
     self.addStartNpc(self.NPCID)
     self.addFirstTalkId(self.NPCID)
     self.addTalkId(self.NPCID)
     self.log("Init:" + self.qn + " loaded")
Example #4
0
	def __init__(self, id, name, descr):
		JQuest.__init__(self, id, name, descr)
		for id in self.NPCID:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		print "Init:" + qn + " loaded"
Example #5
0
	def __init__(self,id,name,descr):
		JQuest.__init__(self,id,name,descr)
		self.questItemIds = range(7141,7148)
		self.priest = ""
		self.tifaren = 0
		self.soul = 0
		self.well = 0
Example #6
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)
		for id in self.NPCID:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		self.npcNameTable = NpcNameTable()
		#init pages
		rb_id = {}
		bosses = NpcTable.getInstance().getAllNpcOfClassType(["L2RaidBoss"])
		for boss in bosses:
			lv = boss.getLevel()
			if lv not in rb_id:
				rb_id[lv] = []
			rb_id[lv] += [boss.getNpcId()]
		rb_id = rb_id.items()
		rb_id.sort()
		for lv,id_list in rb_id:
			if lv in xrange(20,30):
				self.pages["2x"] += [[lv, id_list]]
			elif lv in xrange(30,40):
				self.pages["3x"] += [[lv, id_list]]
			elif lv in xrange(40,50):
				self.pages["4x"] += [[lv, id_list]]
			elif lv in xrange(50,60):
				self.pages["5x"] += [[lv, id_list]]
			elif lv in xrange(60,70):
				self.pages["6x"] += [[lv, id_list]]
			elif lv in xrange(70,80):
				self.pages["7x"] += [[lv, id_list]]
			elif lv in xrange(80,90):
				self.pages["8x"] += [[lv, id_list]]
		for name in self.backlistByName:
			self.backlist += self.getNpcIDsByName(name)
		print "Init:" + self.qn + " loaded", "rb:", len(bosses), "backlist:", len(self.backlist)
Example #7
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		for npcid in selfTalkData:
			delay = Rnd.get(15, 25)
			self.startQuestTimer("say_%d_%d" % (npcid, 0), 1000 * delay, None, None, False)
		print "%s loaded" % self.qn
Example #8
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [SCROLL_OF_DARKELF_TRUST_ID, SCROLL_OF_ELF_TRUST_ID, SCROLL_OF_DWARF_TRUST_ID, SCROLL_OF_ORC_TRUST_ID, BREATH_OF_WINDS_ID,
                SEED_OF_VERDURE_ID, ORDER_OF_OZZY_ID, LETTER_TO_ELF_ID, ORDER_OF_CLAYTON_ID, BASILISK_PLASMA_ID, STAKATO_ICHOR_ID, HONEY_DEW_ID,
                LETTER_TO_DARKELF_ID, LETTER_OF_THIFIELL_ID, LETTER_TO_SERESIN_ID, LETTER_TO_ORC_ID, LETTER_OF_MANAKIA_ID, LETTER_TO_MANAKIA_ID,
                PARASITE_OF_LOTA_ID, LETTER_TO_DWARF_ID, LETTER_TO_NICHOLA_ID, HEART_OF_PORTA_ID, ORDER_OF_NICHOLA_ID, RECOMMENDATION_OF_HOLLIN_ID,
                BLOOD_OF_GUARDIAN_BASILISK_ID, STAKATOS_FLUIDS_ID, GIANT_APHID_ID]
Example #9
0
	def __init__(self,id,name,descr):
		JQuest.__init__(self,id,name,descr)
		self.questItemIds = [CAMOMILE_CHARM_ID, CARDIENS_LETTER_ID, WATER_OF_LIFE_ID, MOONFLOWER_CHARM_ID, HIERARCHS_LETTER_ID, STARDUST_ID,
			PURE_MITHRIL_CUP_ID, THALIAS_INSTRUCTIONS_ID, ISAELS_LETTER_ID, TEARS_OF_UNICORN_ID, GRAIL_DIAGRAM_ID, PUSHKINS_LIST_ID,
			THALIAS_LETTER1_ID, ARKENIAS_CONTRACT_ID, ANDARIEL_SCRIPTURE_COPY_ID, ARKENIAS_INSTRUCTIONS_ID, ADONIUS_LIST_ID,
			THALIAS_LETTER2_ID, TALINS_SPEAR_BLADE_ID, TALINS_SPEAR_SHAFT_ID, TALINS_RUBY_ID, TALINS_AQUAMARINE_ID, TALINS_AMETHYST_ID,
			TALINS_PERIDOT_ID, ISAELS_INSTRUCTIONS_ID, GRAIL_OF_PURITY_ID]
Example #10
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		self.setOnEnterWorld(True)
		VoicedCommandHandler.getInstance().registerHandler(self)
		self.startQuestTimer("check", self.interval + (1000 * self.getRandom(self.interval_random_delay_sec)), None, None, False)
		print "玩家可用 .%s" % " .".join(self.commands)
		print "%s loaded" % self.qn
Example #11
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ALDERS_SKULL1_ID, KAIRAS_INSTRUCTIONS_ID, REVELATIONS_MANUSCRIPT_ID, KAIRAS_LETTER1_ID, KASANDRAS_REMAINS_ID,
                BELLADONNA_ID, HERBALISM_TEXTBOOK_ID, IXIAS_LIST_ID, MEDUSA_ICHOR_ID, TYRANTS_BLOOD_ID, M_SPIDER_FLUIDS_ID,
                DEAD_SEEKER_DUNG_ID, NIGHTSHADE_ROOT_ID, ALDERS_SKULL2_ID, ALDERS_RECEIPT_ID, KAIRAS_RECOMMEND_ID,
                ARKENIAS_LETTER_ID, PALUS_CHARM_ID, THIFIELS_LETTER_ID, ARKENIAS_NOTE_ID, RED_FAIRY_DUST_ID, TIMIRIRAN_SAP_ID,
                PIXY_GARNET_ID, GRANDIS_SKULL_ID, KARUL_BUGBEAR_SKULL_ID, BREKA_OVERLORD_SKULL_ID, LETO_OVERLORD_SKULL_ID,
                BLACK_WILLOW_LEAF_ID, TIMIRIRAN_SEED_ID, METHEUS_FUNERAL_JAR_ID]
Example #12
0
	def __init__(self, id=qID, name=qn, descr=qDesc):
		qID, qn, qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		for id in self.NPCID:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		print "Init:" + self.qn + " loaded"
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.captainState = 0
     hellboundLevel = HellboundManager.getInstance().getLevel()
     if hellboundLevel != 8:
         return
     xx, yy, zz = CaptainLoc
     newCaptain = HellboundManager.getInstance().addSpawn(Captain, xx, yy, zz, 36561, 0)
Example #14
0
File: cQA.py Project: 6009821/s4L2J
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		self.addStartNpc(self.NPCID)
		self.addFirstTalkId(self.NPCID)
		self.addTalkId(self.NPCID)
		ChatHandler.getInstance().registerHandler(self)
		print "%s loaded" % self.qn
Example #15
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)
		for id in self.NPCID:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		self.sceneNameTable = SceneNameTable()
		print "Init:" + self.qn + " loaded"
Example #16
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		self.addStartNpc(self.NPCID)
		self.addFirstTalkId(self.NPCID)
		self.addTalkId(self.NPCID)
		self.htm_select_part = self.htm_select_part % {"qn":self.qn}
		self.htm_show_2nd_item = self.htm_show_2nd_item % {"qn":self.qn, "tmp":"%d_%d", "tmp2":"%s"}
		print "Init:" + self.qn + " loaded"
Example #17
0
	def __init__(self, id, name, descr):
		JQuest.__init__(self, id, name, descr)
		for i in xrange(self.max_lines):
			self.Memo += [GlobalVariablesManager.getInstance().getStoredVariable('Memo'+str(i)) or ""]
		for id in self.NPCID:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		print "Init:" + qn + " loaded"
Example #18
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         CLAY_URN_FRAGMENT,
         BRASS_TRINKET_PIECE,
         BRONZE_MIRROR_PIECE,
         JADE_NECKLACE_BEAD,
         TUREK_DOGTAG,
         TUREK_MEDALLION,
     ]
Example #19
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         GALLADUCCIS_ORDER_DOCUMENT_ID_1,
         GALLADUCCIS_ORDER_DOCUMENT_ID_2,
         GALLADUCCIS_ORDER_DOCUMENT_ID_3,
         MAGIC_SWORD_HILT_ID,
         GEMSTONE_POWDER_ID,
         PURIFIED_MAGIC_NECKLACE_ID,
     ]
Example #20
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         MINING_BOOTS,
         MINERS_PICK,
         BOOMBOOM_POWDER,
         REDSTONE_BEER,
         BOLTERS_LIST,
         BOLTERS_SMELLY_SOCKS,
     ]
Example #21
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         MONEY_OF_SWINDLER,
         DAIRY_OF_ALLANA,
         LIZARD_CAPTAIN_ORDER,
         CRYSTAL_MEDALLION,
         HALF_OF_DAIRY,
         TAMATOS_NECKLACE,
     ]
Example #22
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		JQuest.__init__(self, id, name, descr)
		for id in self.BuffCEOs:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		self.startQuestTimer('buff_time', self.wait_time, None, None, True)
		if self.isShowIcon:
			self.si_table = SkillIconTable()
		print self.qn + " loaded"
	def __init__(self, id, name, descr):
		JQuest.__init__(self, id, name, descr)
		hellboundLevel = HellboundManager.getInstance().getLevel()
		self.hellboundLevel = hellboundLevel
		self.corpses = []
		# if the level of hellbound is below level 5, this replaces
		# the natives with native corpses
		if hellboundLevel < 5:
			self.startQuestTimer("levelCheck", 30000, None, None)
			self.corpses = changeNativeSpawn(0, None, self)
Example #24
0
    def __init__(self, id=qID, name=qn, descr=qDesc):
        self.qID, self.qn, self.qDesc = id, name, descr
        JQuest.__init__(self, id, name, descr)
        self.addStartNpc(self.NPCID)
        self.addFirstTalkId(self.NPCID)
        self.addTalkId(self.NPCID)

        self.addKillId(self.wave1mobid)
        self.addKillId(self.wave2flagid)
        self.addKillId(self.bossid)
        print "%s loaded" % self.qn
Example #25
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [Ice_Heart]
     test = self.loadGlobalQuestVar("610_respawn")
     if test.isdigit() :
        remain = long(test) - System.currentTimeMillis()
        if remain <= 0 :
           self.addSpawn(31560,105452,-36775,-1050,34000, False, 0, True)
        else :
           self.startQuestTimer("spawn_npc", remain, None, None)
     else :
        self.addSpawn(31560,105452,-36775,-1050,34000, False, 0, True)
Example #26
0
 def __init__(self,id,name,descr):
 	JQuest.__init__(self,id,name,descr)
 	self.questItemIds = [FOOD, MEAT]
 	test = self.loadGlobalQuestVar("625_respawn")
 	if test.isdigit() :
 	   remain = long(test) - System.currentTimeMillis()
 	   if remain <= 0 :
 	      self.addSpawn(31542,157136,-121456,-2363,40000, False, 0, True)
 	   else :
 	      self.startQuestTimer("spawn_npc", remain, None, None)
 	else:
 	   self.addSpawn(31542,157136,-121456,-2363,40000, False, 0, True)
Example #27
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [Fire_Heart]
     test = self.loadGlobalQuestVar("616_respawn")
     if test.isdigit() :
        remain = long(test) - System.currentTimeMillis()
        if remain <= 0 :
           self.addSpawn(31558,142368,-82512,-6487,58000, False, 0, True)
        else :
           self.startQuestTimer("spawn_npc", remain, None, None)
     else:
        self.addSpawn(31558,142368,-82512,-6487,58000, False, 0, True)
Example #28
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         KENDNELLS_ORDER1,
         KENDNELLS_ORDER2,
         KENDNELLS_ORDER3,
         KENDNELLS_ORDER4,
         KENDNELLS_ORDER5,
         KENDNELLS_ORDER6,
         KENDNELLS_ORDER7,
         KENDNELLS_ORDER8,
     ]
Example #29
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(7193,7195)
     test = self.loadGlobalQuestVar("604_respawn")
     if test.isdigit() :
        remain = long(test) - System.currentTimeMillis()
        if remain <= 0 :
           self.addSpawn(31541,186304,-43744,-3193,57000, False, 0, True)
        else :
           self.startQuestTimer("spawn_npc", remain, None, None)
     else :
        self.addSpawn(31541,186304,-43744,-3193,57000, False, 0, True)
Example #30
0
	def __init__(self, id = qID, name = qn, descr = qDesc):
		self.qID, self.qn, self.qDesc = id, name, descr
		JQuest.__init__(self, id, name, descr)
		for id in self.BuffCEOs:
			self.addStartNpc(id)
			self.addFirstTalkId(id)
			self.addTalkId(id)
		if self.isShowIcon:
			self.si_table = SkillIconTable()
		VoicedCommandHandler.getInstance().registerHandler(self)
		print "vcBuff registered"
		print "玩家可用 .%s" % " .".join(self.commands)
		print "%s loaded" % self.qn
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CH_SKULL, K_HORN]
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [RELICS, ENTRANCE]
Example #33
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [BRACELET]
Example #34
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ORCISH_ARROWHEAD]
Example #35
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
Example #36
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [PACKAGE]
Example #37
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CURSED_BURIAL]
Example #38
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [GOLDEN_FEATHER]
Example #39
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(2634, 2647)+[3027]
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(1207, 1217) + [RUSTED_KEY]
Example #41
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [TITAN_ANCIENT_BOOK]
Example #42
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ORC_AMULET, ORC_NECKLACE]
Example #43
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [SCROLL_OF_SHYSLASSY, LETTER_OF_KASH, WATCHERS_EYE1, BROKEN_KEY, WATCHERS_EYE2]
Example #44
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(2784,2809)
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [TISSUE_KA, TISSUE_KM]
Example #46
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onEvent (self,event,st) :
Example #47
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [ZOMBIE_SKIN]
Example #48
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.npcobject = {}
Example #49
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(3204,3238)
Example #50
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [JACOB_NECK, DEADMANS_HERB, SCULPTURE]
Example #51
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         ALLTRANS_NOTE, HOWTOGO_RUINS, BROKEN_BLADE_TOP,
         BROKEN_BLADE_BOTTOM, ROIENS_LETTER, BROKEN_SWORD_HANDLE
     ]
Example #52
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [PREDATORS_FANG]
Example #53
0
 def __init__(self,id,name,descr):
   JQuest.__init__(self,id,name,descr)
   self.questItemIds = []
   self.games = {}
Example #54
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [SGOODS]
Example #55
0
 def __init__(self,id,name,descr): 
    JQuest.__init__(self,id,name,descr)
    self.questItemIds = range(3337,3390)
    # list to hold the player and pet instance of the player in the duel and an "isFoul" flag, indexed by npcId 
    self.inProgressDuelMobs = {} # [player, player.getSummon(), True/False]
Example #56
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(7173,7178)
Example #57
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(3239,3276)+[3428,3023,3030]
Example #58
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         LEGEND_OF_SEVENTEEN, MALRUK_SUCCUBUS_CLAW, ECHO_CRYSTAL,
         POETRY_BOOK, CRIMSON_MOSS, RAHORAKTIS_MEDICINE
     ]
Example #59
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(2864, 2867) + range(2868, 2879) + range(
         3294, 3307) + [3028]
Example #60
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(9762, 9772)