Jump to content

Horse riding skill level uitooltip


Recommended Posts

Hi. I found error. I want to add description to horse riding skill depended on skill level so i tried like that

elif player.SKILL_INDEX_RIDING == skillIndex:
	slotIndex = player.GetSkillSlotIndex(skillIndex)
	skillLevel = player.GetSkillLevel(slotIndex)

	self.AppendDefaultData(skillIndex)
	if skillLevel == 1:
		self.AppendSpace(5)
		self.AppendTextLine("Test1", self.NORMAL_COLOR)
	elif skillLevel == 20:
		self.AppendSpace(5)
		self.AppendTextLine("Test20", self.NORMAL_COLOR)

It work's in 50%. I mean if i have 1 level it shows Test1 but when i have 20 level of that skill it also shows Test1. Any ideas?

Edited by avertuss
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Forum Moderator
On 2/23/2020 at 3:57 PM, avertuss said:


elif player.SKILL_INDEX_RIDING == skillIndex:
	slotIndex = player.GetSkillSlotIndex(skillIndex)
	skillLevel = player.GetSkillLevel(slotIndex)

	self.AppendDefaultData(skillIndex)
	if skillLevel == 1:
		self.AppendSpace(5)
		self.AppendTextLine("Test1", self.NORMAL_COLOR)
	elif skillLevel == 20:
		self.AppendSpace(5)
		self.AppendTextLine("Test20", self.NORMAL_COLOR)

Skill levels depends of skill grade also you've to clean the tooltip each time.

This is the hidden content, please

Edited by VegaS™
  • Metin2 Dev 5
  • Good 2
  • Love 4
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.