Jump to content

Riding Passive skill icon problem


Recommended Posts

  • Active+ Member

 

spacer.png

 

The symbol of the riding skill(130) does not appear. Anyone have any ideas about this?

 

	def __RefreshSkillPage(self, name, slotCount):
			global SHOW_LIMIT_SUPPORT_SKILL_LIST
			#global BLOCK_SUPPORT_SKILL_LIST

			skillPage=self.skillPageDict[name]

			startSlotIndex=skillPage.GetStartIndex()

			if "ACTIVE"==name:
				if self.PAGE_HORSE==self.curSelectedSkillGroup:
					startSlotIndex+=slotCount

			getSkillType=skill.GetSkillType

			getSkillIndex=player.GetSkillIndex
			getSkillGrade=player.GetSkillGrade
			getSkillLevel=player.GetSkillLevel

			getSkillLevelUpPoint=skill.GetSkillLevelUpPoint
			getSkillMaxLevel=skill.GetSkillMaxLevel

			for i in xrange(slotCount+1):

				slotIndex=i + startSlotIndex
				skillIndex=getSkillIndex(slotIndex)

				for j in xrange(self.SKILL_GRADE_SLOT_COUNT):
					skillPage.ClearSlot(self.__GetRealSkillSlot(j, i))

				if 0==skillIndex:
					continue

				# if skillIndex in BLOCK_SUPPORT_SKILL_LIST:
					# continue

				skillGrade=getSkillGrade(slotIndex)
				skillLevel=getSkillLevel(slotIndex)
				skillType=getSkillType(skillIndex)

				if player.SKILL_INDEX_RIDING==skillIndex:
					if 1==skillGrade:
						skillLevel+=19
					elif 2==skillGrade:
						skillLevel+=29
					elif 3==skillGrade:
						skillLevel+=39
					elif 4==skillGrade:
						skillLevel=50

					skillPage.SetSkillSlotNew(slotIndex, skillIndex, max(skillLevel-1, 0), skillLevel)
					skillPage.SetSlotCount(slotIndex, skillLevel)
				elif skill.SKILL_TYPE_ACTIVE==skillType:
					for j in xrange(self.SKILL_GRADE_SLOT_COUNT):
						realSlotIndex = self.__GetRealSkillSlot(j, slotIndex)

						if (skillGrade >= self.SKILL_GRADE_SLOT_COUNT) and j == (self.SKILL_GRADE_SLOT_COUNT-1):
							skillPage.SetSkillSlotNew(realSlotIndex, skillIndex, skillGrade, skillLevel)
							skillPage.SetCoverButton(realSlotIndex)
							skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel)
						else:
							skillPage.SetSkillSlotNew(realSlotIndex, skillIndex, j, skillLevel)
							skillPage.SetCoverButton(realSlotIndex)
							if (not self.__CanUseSkillNow()) or (skillGrade != j):
								skillPage.SetSlotCount(realSlotIndex, 0)
								skillPage.DisableCoverButton(realSlotIndex)
							else:
								skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel)

						if player.IsSkillActive(slotIndex):
							skillPage.ActivateSlot(self.__GetRealSkillSlot(skillGrade, slotIndex))
				else:
					if not SHOW_LIMIT_SUPPORT_SKILL_LIST or skillIndex in SHOW_LIMIT_SUPPORT_SKILL_LIST:
						realSlotIndex = self.__GetETCSkillRealSlotIndex(slotIndex)

						skillPage.SetSkillSlot(realSlotIndex, skillIndex, skillLevel)
						skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel)

						if skill.CanUseSkill(skillIndex):
							skillPage.SetCoverButton(realSlotIndex)

				skillPage.RefreshSlot()

 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

  • 3 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      ImperiaWorld2 - SpeedServer - Opening 03/05/2024 - NewSchool - New Graphics M2 1.0.4b Terrain depth - International

    2. 2

      Very strange bug, when creating new char

    3. 6

      Voooxy aka m2core.tech scammer

    4. 117

      Ulthar SF V2 (TMP4 Base)

    5. 0

      UI types and attributes

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.