Jump to content
Sign in to follow this  
flexio

[SMALL FIX] Taskbar highlight fix Python

Recommended Posts

 

about: 

Random video with bug https://youtu.be/zILVyU0YGHU?t=7479

look at the highlight effect of WP sura skills (taskbar)

 

Problem:

RefreshQuickSlot spam "ActivateSlot"

 

 

find:

self.selectSkillButtonList = []

under add:

self.Jeaktivni = []

 

find:

self.curSkillButton = 0

under add:

self.Jeaktivni = 0

 

find:

					if constInfo.IS_AUTO_POTION(itemIndex):
						# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
						metinSocket = [player.GetItemMetinSocket(window, Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
						
						if 0 != int(metinSocket[0]):
							slot.ActivateSlot(slotNumber)
						else:
							slot.DeactivateSlot(slotNumber)

edit to:

					if constInfo.IS_AUTO_POTION(itemIndex):
						# metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량
						metinSocket = [player.GetItemMetinSocket(window, Position, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
						
						if 0 != int(metinSocket[0]):
							if not slotNumber in self.Jeaktivni:
								slot.ActivateSlot(slotNumber)
								self.Jeaktivni.append(slotNumber)
						else:
							slot.DeactivateSlot(slotNumber)
							if slotNumber in self.Jeaktivni:
								self.Jeaktivni.remove(slotNumber)
					else:
						if slotNumber in self.Jeaktivni:
							self.Jeaktivni.remove(slotNumber)

 

find:

					if player.IsSkillActive(Position):
						slot.ActivateSlot(slotNumber)

edit to:

					if player.IsSkillActive(Position):
						if not slotNumber in self.Jeaktivni:
							slot.ActivateSlot(slotNumber)
							self.Jeaktivni.append(slotNumber)
					else:
						if slotNumber in self.Jeaktivni:
							slot.DeactivateSlot(slotNumber)
							self.Jeaktivni.remove(slotNumber)

 

 

 

  • Love 1

Share this post


Link to post
50 minutes ago, flexio said:

Yea,


self.Jeaktivni

so complicated :D

self.IsActive!
  • Love 1
  • Sad 1

Share this post


Link to post
On 10/27/2018 at 7:17 PM, flexio said:

 


					if player.IsSkillActive(Position):
						slot.ActivateSlot(slotNumber)

edit to:


					if player.IsSkillActive(Position):
						if not slotNumber in self.Jeaktivni:
							slot.ActivateSlot(slotNumber)
							self.Jeaktivni.append(slotNumber)
					else:
						if slotNumber in self.Jeaktivni:
							slot.DeactivateSlot(slotNumber)
							self.Jeaktivni.remove(slotNumber)

 

 

 

code not found pack ?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    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.