示例#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)
     self.log("Init:" + self.qn + " loaded")
示例#2
0
文件: noquest.py 项目: 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)
		print "%s loaded" % (self.qn,)
示例#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)
		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
示例#4
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]
示例#5
0
文件: RBTools.py 项目: cass1984/s4L2J
	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)
示例#6
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
	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)
示例#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]
示例#9
0
文件: powerUp.py 项目: 6009821/s4L2J
	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"
示例#10
0
文件: cQA.py 项目: 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
示例#11
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"
示例#12
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
 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)
示例#14
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"
示例#15
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]
示例#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"
示例#17
0
文件: Memo.py 项目: 6009821/s4L2J
	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"
示例#18
0
文件: AutoBuff.py 项目: 6009821/s4L2J
	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"
示例#19
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,
     ]
示例#20
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,
     ]
示例#21
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,
     ]
示例#22
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,
     ]
	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)
示例#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
示例#25
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)
示例#26
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)
示例#27
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,
     ]
示例#28
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)
示例#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)
示例#30
0
文件: vcBuff.py 项目: cass1984/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)
		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
示例#31
0
	def __init__(self,id,name,descr):
		JQuest.__init__(self,id,name,descr)
		#self.questItemIds = [Mark]
		self.Lock = 0
示例#32
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [EVIL_SPIRIT, BROKEN_CRYSTAL]
示例#33
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(2763, 2784)
示例#34
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [TISSUE_BO, TISSUE_WB]
示例#35
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [GIANT_SPIDER_LEG]
示例#36
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onAdvEvent (self,event,npc,player) :
示例#37
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.isSpawned = 0
     self.questItemIds = [
         Starstone, Detector, Detector2, Letter, Starstone2
     ]
示例#38
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         SORIUS_LETTER1, EMERALD_PIECE, TOPAZ_PIECE, KLUTO_MEMO, KLUTO_BOX
     ]
示例#39
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]
示例#40
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [FT_LEAF]
     self.killedTrees = []
示例#41
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(2810, 2820)
示例#42
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [GEMSTONE_BEAST_CRYSTAL]
示例#43
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [10867, 10868]
     self.isNpcSpawned = 0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [NicolasMap,BrokenMetal,Metal]
示例#46
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(1262, 1270)
示例#47
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]
示例#48
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [HILLS]
示例#49
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [BROKEN_HEARTSTONE, GOLEM_HEARTSTONE]
示例#50
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         GREENIS_LETTER, ARUJIENS_LETTER3, ARUJIENS_LETTER1,
         ARUJIENS_LETTER2, POETRY_BOOK
     ]
示例#51
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [BEAR_SKIN]
示例#52
0
文件: __init__.py 项目: zixela/DevAit
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(3239,3276)+[3428,3023,3030]
示例#53
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [WATCHING_EYES, DELU_LIZARDMAN_SCALE, ROUGHLY_HEWN_ROCK_GOLEM_SHARD]
示例#54
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [FUNGUS_SAC]
示例#55
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [FLOATING_STONE]
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         ECTOPLASM, STABILIZED_ECTOPLASM, ORDER, GLASS_JAGUAR_CRYSTAL,
         BOOK_OF_SEAL
     ]
示例#57
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         SENTRY_BLADE1_ID, OLD_BRONZE_SWORD_ID, JENNIES_LETTER_ID,
         SENTRY_BLADE2_ID, SENTRY_BLADE3_ID
     ]
示例#58
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Tayr_Head]
示例#59
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [BONE_FRAGMENT]
示例#60
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [BROKEN_GOLEM_FRAGMENT]