Jump to content

Recommended Posts

https://paste2.org/jjObstd1

 

Spoiler

#SEARCH AND REPLACE CODE BLOCK COMPLETE

	def __RefreshSkillPage(self, name, slotCount):
		global SHOW_LIMIT_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(skill.SKILL_GRADE_COUNT):
				skillPage.ClearSlot(self.__GetRealSkillSlot(j, i))

			if 0 == skillIndex:
				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 = 40

				skillPage.SetSkillSlotNew(slotIndex, skillIndex, max(skillLevel-1, 0), skillLevel)
				skillPage.SetSlotCount(slotIndex, skillLevel)

			elif skill.SKILL_TYPE_ACTIVE == skillType:
				for j in xrange(skill.SKILL_GRADE_COUNT):
					realSlotIndex = self.__GetETCSkillRealSlotIndex(slotIndex)
					if not ((self.__CanUseSkillNow()) and (skillGrade != j)):
						skillPage.SetSkillSlotNew(realSlotIndex, skillIndex, j, skillLevel)
						skillPage.SetCoverButton(realSlotIndex)
						skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel)
					elif (skillGrade == skill.SKILL_GRADE_COUNT) and j == (skill.SKILL_GRADE_COUNT-1):
						skillPage.SetSkillSlotNew(realSlotIndex, skillIndex, j, skillLevel)
						skillPage.SetCoverButton(realSlotIndex)
						skillPage.SetSlotCountNew(realSlotIndex, skillGrade, skillLevel)
			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()

#SEARCH :

def OnUseSkill(self, slotIndex, coolTime):

#SEARCH AND REPLACE CODE BLOCK COMPLETE :

	def OnUseSkill(self, slotIndex, coolTime):

		skillIndex = player.GetSkillIndex(slotIndex)
		skillType = skill.GetSkillType(skillIndex)

		## ACTIVE
		if skill.SKILL_TYPE_ACTIVE == skillType:
			skillGrade = player.GetSkillGrade(slotIndex)
			slotIndex = self.__GetETCSkillRealSlotIndex(skillGrade, slotIndex)

		for slotWindow in self.skillPageDict.values():
			if slotWindow.HasSlot(slotIndex):
				slotWindow.SetSlotCoolTime(slotIndex, coolTime)
				return

#ENJOY IT!

 

 

Ameteur Video:

https://youtu.be/UmPq8kQGSjM

  • Metin2 Dev 5
  • Confused 2
Link to comment
https://metin2.dev/topic/22951-beta-skill-window-function/
Share on other sites

  • Premium
1 hour ago, Kori said:

Looks really bad. This is not the original beta skill windows 

Sure it does. And it has the bug on the tooltip after the skill is changing grade (see when berserk becomes m1). 
i have this page :D and the background in high quality.

 

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
https://metin2.dev/topic/22951-beta-skill-window-function/#findComment-124252
Share on other sites

  • Forum Moderator

In the video it has nothing to do with alpha nor beta skill window. You tried but it is slightly different in reality.

 

Alpha (a bit different, bigger and with slots):

https://metin2.download/picture/4IJQ9wT86rPH9yP95JTL7mSMPSlSLufg/.png

 

Beta :

https://metin2.download/picture/D5yIYIVgJXoMNXcs31LYcE5vZSmhGUfD/.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Not Good 1

Gurgarath
coming soon
My Services

Link to comment
https://metin2.dev/topic/22951-beta-skill-window-function/#findComment-124258
Share on other sites

This """things""" have nothing to do with original beta skill window gui.

Why you don't learn/inform about that before posting horrible turky selfmade shit and 99,9999% coded like shit aswell?

My eyes are burning becouse of that video.

 

OT:

Is 240p a standard in turkylandia?

  • Love 3
Link to comment
https://metin2.dev/topic/22951-beta-skill-window-function/#findComment-124259
Share on other sites

  

9 hours ago, Evo said:

This """things""" have nothing to do with original beta skill window gui.

Why you don't learn/inform about that before posting horrible turky selfmade shit and 99,9999% coded like shit aswell?

My eyes are burning becouse of that video.

 

OT:

Is 240p a standard in turkylandia?

 

Why do you insult turkey? is it the blame of turks? go and get some respect.

 

OT:

rude.

Edited by Dutschke
  • Love 1
Link to comment
https://metin2.dev/topic/22951-beta-skill-window-function/#findComment-124275
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.