示例#1
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,)
	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)
示例#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")
示例#4
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"
示例#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
示例#6
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)
示例#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
示例#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
	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]
示例#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
示例#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]
示例#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)
示例#14
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
示例#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"
示例#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
 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,
     ]
示例#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,
     ]
示例#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,
     ]
示例#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,
     ]
示例#22
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"
	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 = [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)
示例#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)
示例#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)
示例#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,
     ]
示例#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
 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]
示例#33
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [BRACELET]
示例#34
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ORCISH_ARROWHEAD]
示例#35
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
示例#36
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [PACKAGE]
示例#37
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CURSED_BURIAL]
示例#38
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [GOLDEN_FEATHER]
示例#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]
示例#41
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [TITAN_ANCIENT_BOOK]
示例#42
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ORC_AMULET, ORC_NECKLACE]
示例#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]
示例#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]
示例#46
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onEvent (self,event,st) :
示例#47
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [ZOMBIE_SKIN]
示例#48
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.npcobject = {}
示例#49
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(3204,3238)
示例#50
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [JACOB_NECK, DEADMANS_HERB, SCULPTURE]
示例#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
     ]
示例#52
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [PREDATORS_FANG]
示例#53
0
 def __init__(self,id,name,descr):
   JQuest.__init__(self,id,name,descr)
   self.questItemIds = []
   self.games = {}
示例#54
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [SGOODS]
示例#55
0
文件: __init__.py 项目: zixela/DevAit
 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]
示例#56
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(7173,7178)
示例#57
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(3239,3276)+[3428,3023,3030]
示例#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
     ]
示例#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]
示例#60
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = range(9762, 9772)