Skill-ul nu se pune in taskbar

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

*Problemă/Întrebare:Nu pot pune skill-urile in taskbar
Tipologie server:PVM
*Resursă folosită:--
*ServerFiles utilizat:--
*Syserr:--
Poză:
*Detalii suplimentare:Problema este ca nu pot pune skill-urile in taskbar, nu am nimic in syserr in client.
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

Le poti pune cu ctrl + click stanga pe ele sau nici asa nu merge?
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

Nici asa, acum am probat.
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

root/uicharacter.py cauta def SelectSkill(self, skillSlotIndex): si verifica sa fie asa:

Cod: Selectaţi tot

	def SelectSkill(self, skillSlotIndex):

		mouseController = mouseModule.mouseController

		if FALSE == mouseController.isAttached():

			srcSlotIndex = self.__RealSkillSlotToSourceSlot(skillSlotIndex)
			selectedSkillIndex = player.GetSkillIndex(srcSlotIndex)

			if skill.CanUseSkill(selectedSkillIndex):

				if app.IsPressed(app.DIK_LCONTROL):

					player.RequestAddToEmptyLocalQuickSlot(player.SLOT_TYPE_SKILL, srcSlotIndex)
					return

				mouseController.AttachObject(self, player.SLOT_TYPE_SKILL, srcSlotIndex, selectedSkillIndex)

		else:

			mouseController.DeattachObject()
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

Este la fel, sa fie din sursa?
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

Am incercat prin alt client, si functioneaza se vad pe slot-uri..
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

uitaskbar.py, verifica sa fie asa class-ul SkillButton:

Cod: Selectaţi tot

	class SkillButton(ui.SlotWindow):

		def __init__(self):
			ui.SlotWindow.__init__(self)

			self.event = 0
			self.arg = 0

			self.slotIndex = 0
			self.skillIndex = 0

			slotIndex = 0
			wndMgr.SetSlotBaseImage(self.hWnd, "d:/ymir work/ui/public/slot_base.sub", 1.0, 1.0, 1.0, 1.0)
			wndMgr.AppendSlot(self.hWnd, slotIndex, 0, 0, 32, 32)
			self.SetCoverButton(slotIndex,	"d:/ymir work/ui/public/slot_cover_button_01.sub",\
											"d:/ymir work/ui/public/slot_cover_button_02.sub",\
											"d:/ymir work/ui/public/slot_cover_button_03.sub",\
											"d:/ymir work/ui/public/slot_cover_button_04.sub", TRUE, FALSE)
			self.SetSize(32, 32)

		def __del__(self):
			ui.SlotWindow.__del__(self)

		def Destroy(self):
			if 0 != self.tooltipSkill:
				self.tooltipSkill.HideToolTip()

		def RefreshSkill(self):
			if 0 != self.slotIndex:
				self.SetSkill(self.slotIndex)

		def SetSkillToolTip(self, tooltip):
			self.tooltipSkill = tooltip

		def SetSkill(self, skillSlotNumber):
			slotNumber = 0
			skillIndex = player.GetSkillIndex(skillSlotNumber)
			skillGrade = player.GetSkillGrade(skillSlotNumber)
			skillLevel = player.GetSkillLevel(skillSlotNumber)
			skillType = skill.GetSkillType(skillIndex)

			self.skillIndex = skillIndex
			if 0 == self.skillIndex:
				self.ClearSlot(slotNumber)
				return

			self.slotIndex = skillSlotNumber

			self.SetSkillSlotNew(slotNumber, skillIndex, skillGrade, skillLevel)
			self.SetSlotCountNew(slotNumber, skillGrade, skillLevel)

			## NOTE : CoolTime 체크
			if player.IsSkillCoolTime(skillSlotNumber):
				(coolTime, elapsedTime) = player.GetSkillCoolTime(skillSlotNumber)
				self.SetSlotCoolTime(slotNumber, coolTime, elapsedTime)

			## NOTE : Activate 되어 있다면 아이콘도 업데이트
			if player.IsSkillActive(skillSlotNumber):
				self.ActivateSlot(slotNumber)

		def SetSkillEvent(self, event, arg=0):
			self.event = event
			self.arg = arg

		def GetSkillIndex(self):
			return self.skillIndex

		def GetSlotIndex(self):
			return self.slotIndex

		def Activate(self, coolTime):
			self.SetSlotCoolTime(0, coolTime)

			if skill.IsToggleSkill(self.skillIndex):
				self.ActivateSlot(0)

		def Deactivate(self):
			if skill.IsToggleSkill(self.skillIndex):
				self.DeactivateSlot(0)

		def OnOverInItem(self, dummy):
			self.tooltipSkill.SetSkill(self.skillIndex)

		def OnOverOutItem(self):
			self.tooltipSkill.HideToolTip()

		def OnSelectItemSlot(self, dummy):
			if 0 != self.event:
				if 0 != self.arg:
					self.event(self.arg)
				else:
					self.event()

Daca tot nu merge, compara tot uitaskbar.py de la clientul unde merge cu al tau.
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

Am verificat si le am comparat cu notepad++ si sunt match ambele.
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

Update: Am reusit sa le fac sa se puna pe slot, dar acum cand iau skill-ul/item-ul genereaza alte animatii, gen ambuscada cand o iau din taskbar are animatie de fiere.
[imagelink]https://pasteboard.co/TixyCt5Kh5Jy.jpg[/imagelink]
Avatar utilizator
marcantonion112
Nivel 1

Nivel 1
Mesaje: 101
Membru din: 17 Noi 2014, 20:06
Server: TimeLapse2
Regat: Jinno
Aprecieri: 69  
Mulţumiri: 2  
Medalii

up
Închis
Răspunsuri
1
Vizualizări
280
Răspunsuri
2
Vizualizări
404
Răspunsuri
1
Vizualizări
316
Răspunsuri
1
Vizualizări
245

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 49 vizitatori