Render Target

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
emi996
Nivel 1

Nivel 1
Mesaje: 50
Membru din: 15 Apr 2018, 14:50
Server: ROK2
Regat: Shinsoo
Aprecieri: 227  
Mulţumiri: 0
Medalii

*Întrebare: As vrea sa adaug sistemul de render target pe buton, sa fie activat doar atunci cand apas ctrl+click sau ceva de genul. Am implementat deja sistemul de emoji care sa imi arate butoanele deasupra itemului. Insa nu gasesc nimic concret despre cum as putea adauga acest sistem pe buton.
Tipologie server: PVM
*Resursă folosită: Zearth
*ServerFiles utilizat: Zearth
*Syserr: nu e cazul
Poză: -
*Detalii suplimentare: Daca m-ar putea ajuta cineva cu ceva informatii as fi foarte recunoscator. Multumesc!
Avatar utilizator
FALLEN1
Nivel 4

Nivel 4
Mesaje: 585
Membru din: 14 Noi 2015, 20:12
Server: Dark-Fusion2
Regat: Chunjo
Aprecieri: 366  
Mulţumiri: 758  
  Rezolvări prob.: 2
Discord: Copiază ID
Medalii

game.py
Cauta:

Cod: Selectaţi tot

def BINARY_LoverInfo(self, name, lovePoint):
Adauga deasupra:

Cod: Selectaţi tot

	def OnIMEReturn(self):
		if app.IsPressed(app.DIK_LSHIFT):
			self.interface.OpenWhisperDialogWithoutTarget()
		else:
			self.interface.ToggleChat()
		return True
uiinventory.py
Cauta:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LALT):
				link = player.GetItemLink(itemSlotIndex)
				ime.PasteString(link)
Adauga sub:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LSHIFT):
				itemCount = player.GetItemCount(itemSlotIndex)

				if itemCount > 1:
					self.dlgPickMoney.SetTitleName(localeInfo.PICK_ITEM_TITLE)
					self.dlgPickMoney.SetAcceptEvent(ui.__mem_func__(self.OnPickItem))
					self.dlgPickMoney.Open(itemCount)
					self.dlgPickMoney.itemGlobalSlotIndex = itemSlotIndex
uitooltyp.py
Cauta:

Cod: Selectaţi tot

bHasRealtimeFlag = 0
Adauga deasupra:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if itemSubType == 0: #body
						self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Cauta:

Cod: Selectaţi tot

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
Se afla in

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
Cauta:

Cod: Selectaţi tot

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
Se afla in :

Cod: Selectaţi tot

		elif item.ITEM_TYPE_ARMOR == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())
Cauta:

Cod: Selectaţi tot

		elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
Adauga sub:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and not itemVnum == 71136 and not itemVnum == 71143:
					if isCostumeHair:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(item.GetValue(3), 1, self.__ItemGetRace())
					else:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(itemVnum, 2, self.__ItemGetRace())
					
				if itemSubType == 3: #Mount
					self.__ModelPreview(itemVnum, 0, item.GetValue(1))
					
				elif itemSubType == 5: #pet	
					self.__ModelPreview(itemVnum, 3, player.GetRace())
Cauta:

Cod: Selectaţi tot

				else:
					self.__AppendAffectInformation()
					self.__AppendAttributeInformation(attrSlot)
Adauga deasupra:

Cod: Selectaţi tot

						if app.IsPressed(app.DIK_LSHIFT):
							if itemVnum >= 85001 and itemVnum <= 86058:
								self.__ModelPreview(itemVnum, 4, self.__ItemGetRace())
Ai si pt mount/pet esarfa sper ca te prinzi
Pentru acest mesaj, FALLEN1 for the post:
emi996
Avatar utilizator
emi996
Nivel 1

Nivel 1
Mesaje: 50
Membru din: 15 Apr 2018, 14:50
Server: ROK2
Regat: Shinsoo
Aprecieri: 227  
Mulţumiri: 0
Medalii

FALLEN1 scrie: ↑05 Mai 2021, 14:39 game.py
Cauta:

Cod: Selectaţi tot

def BINARY_LoverInfo(self, name, lovePoint):
Adauga deasupra:

Cod: Selectaţi tot

	def OnIMEReturn(self):
		if app.IsPressed(app.DIK_LSHIFT):
			self.interface.OpenWhisperDialogWithoutTarget()
		else:
			self.interface.ToggleChat()
		return True
uiinventory.py
Cauta:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LALT):
				link = player.GetItemLink(itemSlotIndex)
				ime.PasteString(link)
Adauga sub:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LSHIFT):
				itemCount = player.GetItemCount(itemSlotIndex)

				if itemCount > 1:
					self.dlgPickMoney.SetTitleName(localeInfo.PICK_ITEM_TITLE)
					self.dlgPickMoney.SetAcceptEvent(ui.__mem_func__(self.OnPickItem))
					self.dlgPickMoney.Open(itemCount)
					self.dlgPickMoney.itemGlobalSlotIndex = itemSlotIndex
uitooltyp.py
Cauta:

Cod: Selectaţi tot

bHasRealtimeFlag = 0
Adauga deasupra:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if itemSubType == 0: #body
						self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Cauta:

Cod: Selectaţi tot

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
Se afla in

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
Cauta:

Cod: Selectaţi tot

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
Se afla in :

Cod: Selectaţi tot

		elif item.ITEM_TYPE_ARMOR == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())
Cauta:

Cod: Selectaţi tot

		elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
Adauga sub:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and not itemVnum == 71136 and not itemVnum == 71143:
					if isCostumeHair:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(item.GetValue(3), 1, self.__ItemGetRace())
					else:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(itemVnum, 2, self.__ItemGetRace())
					
				if itemSubType == 3: #Mount
					self.__ModelPreview(itemVnum, 0, item.GetValue(1))
					
				elif itemSubType == 5: #pet	
					self.__ModelPreview(itemVnum, 3, player.GetRace())
Cauta:

Cod: Selectaţi tot

				else:
					self.__AppendAffectInformation()
					self.__AppendAttributeInformation(attrSlot)
Adauga deasupra:

Cod: Selectaţi tot

						if app.IsPressed(app.DIK_LSHIFT):
							if itemVnum >= 85001 and itemVnum <= 86058:
								self.__ModelPreview(itemVnum, 4, self.__ItemGetRace())
Ai si pt mount/pet esarfa sper ca te prinzi
Multumesc mult! O sa incerc. Revin cu un raspuns. if app.IsPressed(app.DIK_LSHIFT):
if -cenzurat- != 0: (imi poti spune ce e aici? vad ca e cenzurat si nu-mi dau seama)
if itemSubType == 0: #body
self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Avatar utilizator
FALLEN1
Nivel 4

Nivel 4
Mesaje: 585
Membru din: 14 Noi 2015, 20:12
Server: Dark-Fusion2
Regat: Chunjo
Aprecieri: 366  
Mulţumiri: 758  
  Rezolvări prob.: 2
Discord: Copiază ID
Medalii

emi996 scrie: ↑05 Mai 2021, 15:03
FALLEN1 scrie: ↑05 Mai 2021, 14:39 game.py
Cauta:

Cod: Selectaţi tot

def BINARY_LoverInfo(self, name, lovePoint):
Adauga deasupra:

Cod: Selectaţi tot

	def OnIMEReturn(self):
		if app.IsPressed(app.DIK_LSHIFT):
			self.interface.OpenWhisperDialogWithoutTarget()
		else:
			self.interface.ToggleChat()
		return True
uiinventory.py
Cauta:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LALT):
				link = player.GetItemLink(itemSlotIndex)
				ime.PasteString(link)
Adauga sub:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LSHIFT):
				itemCount = player.GetItemCount(itemSlotIndex)

				if itemCount > 1:
					self.dlgPickMoney.SetTitleName(localeInfo.PICK_ITEM_TITLE)
					self.dlgPickMoney.SetAcceptEvent(ui.__mem_func__(self.OnPickItem))
					self.dlgPickMoney.Open(itemCount)
					self.dlgPickMoney.itemGlobalSlotIndex = itemSlotIndex
uitooltyp.py
Cauta:

Cod: Selectaţi tot

bHasRealtimeFlag = 0
Adauga deasupra:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if itemSubType == 0: #body
						self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Cauta:

Cod: Selectaţi tot

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
Se afla in

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
Cauta:

Cod: Selectaţi tot

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
Se afla in :

Cod: Selectaţi tot

		elif item.ITEM_TYPE_ARMOR == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())
Cauta:

Cod: Selectaţi tot

		elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
Adauga sub:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and not itemVnum == 71136 and not itemVnum == 71143:
					if isCostumeHair:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(item.GetValue(3), 1, self.__ItemGetRace())
					else:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(itemVnum, 2, self.__ItemGetRace())
					
				if itemSubType == 3: #Mount
					self.__ModelPreview(itemVnum, 0, item.GetValue(1))
					
				elif itemSubType == 5: #pet	
					self.__ModelPreview(itemVnum, 3, player.GetRace())
Cauta:

Cod: Selectaţi tot

				else:
					self.__AppendAffectInformation()
					self.__AppendAttributeInformation(attrSlot)
Adauga deasupra:

Cod: Selectaţi tot

						if app.IsPressed(app.DIK_LSHIFT):
							if itemVnum >= 85001 and itemVnum <= 86058:
								self.__ModelPreview(itemVnum, 4, self.__ItemGetRace())
Ai si pt mount/pet esarfa sper ca te prinzi
Multumesc mult! O sa incerc. Revin cu un raspuns. if app.IsPressed(app.DIK_LSHIFT):
if -cenzurat- != 0: (imi poti spune ce e aici? vad ca e cenzurat si nu-mi dau seama)
if itemSubType == 0: #body
self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Ah, e s.l.o.b.o.z
Minte stricata, poti sa iti pui ce cuvant vrei, doar sa editezi peste tot un intalnesti cenzurat
Avatar utilizator
emi996
Nivel 1

Nivel 1
Mesaje: 50
Membru din: 15 Apr 2018, 14:50
Server: ROK2
Regat: Shinsoo
Aprecieri: 227  
Mulţumiri: 0
Medalii

FALLEN1 scrie: ↑05 Mai 2021, 14:39 game.py
Cauta:

Cod: Selectaţi tot

def BINARY_LoverInfo(self, name, lovePoint):
Adauga deasupra:

Cod: Selectaţi tot

	def OnIMEReturn(self):
		if app.IsPressed(app.DIK_LSHIFT):
			self.interface.OpenWhisperDialogWithoutTarget()
		else:
			self.interface.ToggleChat()
		return True
uiinventory.py
Cauta:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LALT):
				link = player.GetItemLink(itemSlotIndex)
				ime.PasteString(link)
Adauga sub:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LSHIFT):
				itemCount = player.GetItemCount(itemSlotIndex)

				if itemCount > 1:
					self.dlgPickMoney.SetTitleName(localeInfo.PICK_ITEM_TITLE)
					self.dlgPickMoney.SetAcceptEvent(ui.__mem_func__(self.OnPickItem))
					self.dlgPickMoney.Open(itemCount)
					self.dlgPickMoney.itemGlobalSlotIndex = itemSlotIndex
uitooltyp.py
Cauta:

Cod: Selectaţi tot

bHasRealtimeFlag = 0
Adauga deasupra:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if itemSubType == 0: #body
						self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Cauta:

Cod: Selectaţi tot

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
Se afla in

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
Cauta:

Cod: Selectaţi tot

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
Se afla in :

Cod: Selectaţi tot

		elif item.ITEM_TYPE_ARMOR == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())
Cauta:

Cod: Selectaţi tot

		elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
Adauga sub:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and not itemVnum == 71136 and not itemVnum == 71143:
					if isCostumeHair:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(item.GetValue(3), 1, self.__ItemGetRace())
					else:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(itemVnum, 2, self.__ItemGetRace())
					
				if itemSubType == 3: #Mount
					self.__ModelPreview(itemVnum, 0, item.GetValue(1))
					
				elif itemSubType == 5: #pet	
					self.__ModelPreview(itemVnum, 3, player.GetRace())
Cauta:

Cod: Selectaţi tot

				else:
					self.__AppendAffectInformation()
					self.__AppendAttributeInformation(attrSlot)
Adauga deasupra:

Cod: Selectaţi tot

						if app.IsPressed(app.DIK_LSHIFT):
							if itemVnum >= 85001 and itemVnum <= 86058:
								self.__ModelPreview(itemVnum, 4, self.__ItemGetRace())
Ai si pt mount/pet esarfa sper ca te prinzi
Nu gasesc aceasta functie la mine in uitooltip.py: self.AppendSpace(10)
self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF) si nu gasesc nici asta: elif item.ITEM_TYPE_ARMOR == itemType:
Avatar utilizator
FALLEN1
Nivel 4

Nivel 4
Mesaje: 585
Membru din: 14 Noi 2015, 20:12
Server: Dark-Fusion2
Regat: Chunjo
Aprecieri: 366  
Mulţumiri: 758  
  Rezolvări prob.: 2
Discord: Copiază ID
Medalii

emi996 scrie: ↑07 Mai 2021, 22:26
FALLEN1 scrie: ↑05 Mai 2021, 14:39 game.py
Cauta:

Cod: Selectaţi tot

def BINARY_LoverInfo(self, name, lovePoint):
Adauga deasupra:

Cod: Selectaţi tot

	def OnIMEReturn(self):
		if app.IsPressed(app.DIK_LSHIFT):
			self.interface.OpenWhisperDialogWithoutTarget()
		else:
			self.interface.ToggleChat()
		return True
uiinventory.py
Cauta:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LALT):
				link = player.GetItemLink(itemSlotIndex)
				ime.PasteString(link)
Adauga sub:

Cod: Selectaţi tot

			elif app.IsPressed(app.DIK_LSHIFT):
				itemCount = player.GetItemCount(itemSlotIndex)

				if itemCount > 1:
					self.dlgPickMoney.SetTitleName(localeInfo.PICK_ITEM_TITLE)
					self.dlgPickMoney.SetAcceptEvent(ui.__mem_func__(self.OnPickItem))
					self.dlgPickMoney.Open(itemCount)
					self.dlgPickMoney.itemGlobalSlotIndex = itemSlotIndex
uitooltyp.py
Cauta:

Cod: Selectaţi tot

bHasRealtimeFlag = 0
Adauga deasupra:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if itemSubType == 0: #body
						self.__ModelPreview(itemVnum, 0, item.GetValue(1))
Cauta:

Cod: Selectaţi tot

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
Se afla in

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
Cauta:

Cod: Selectaţi tot

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
Se afla in :

Cod: Selectaţi tot

		elif item.ITEM_TYPE_ARMOR == itemType:
Adauga:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())
Cauta:

Cod: Selectaţi tot

		elif 0 != isCostumeItem:
			self.__AppendLimitInformation()
Adauga sub:

Cod: Selectaţi tot

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and not itemVnum == 71136 and not itemVnum == 71143:
					if isCostumeHair:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(item.GetValue(3), 1, self.__ItemGetRace())
					else:
						if itemVnum >= 1 and itemVnum <= 9999999999:
							self.__ModelPreview(itemVnum, 2, self.__ItemGetRace())
					
				if itemSubType == 3: #Mount
					self.__ModelPreview(itemVnum, 0, item.GetValue(1))
					
				elif itemSubType == 5: #pet	
					self.__ModelPreview(itemVnum, 3, player.GetRace())
Cauta:

Cod: Selectaţi tot

				else:
					self.__AppendAffectInformation()
					self.__AppendAttributeInformation(attrSlot)
Adauga deasupra:

Cod: Selectaţi tot

						if app.IsPressed(app.DIK_LSHIFT):
							if itemVnum >= 85001 and itemVnum <= 86058:
								self.__ModelPreview(itemVnum, 4, self.__ItemGetRace())
Ai si pt mount/pet esarfa sper ca te prinzi
Nu gasesc aceasta functie la mine in uitooltip.py: self.AppendSpace(10)
self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF) si nu gasesc nici asta: elif item.ITEM_TYPE_ARMOR == itemType:
Ar trebuii sa ai ITEM_TYPE_ARMOR in

Cod: Selectaţi tot

def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0 ):
iar self.AppendTextLine in ITEM_TYPE_WEAPON

In caz ca nu le ai

Cod: Selectaţi tot

		elif item.ITEM_TYPE_WEAPON == itemType:

			self.__AppendLimitInformation()

			self.AppendSpace(5)

			## 부채일 경우 마공을 먼저 표시한다.
			if item.WEAPON_FAN == itemSubType:
				self.__AppendMagicAttackInfo()
				self.__AppendAttackPowerInfo()

			else:
				self.__AppendAttackPowerInfo()
				self.__AppendMagicAttackInfo()

			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)
			
			if app.ENABLE_CHANGELOOK_SYSTEM:
				self.AppendTransmutation(window_type, slotIndex, transmutation)

			
			self.AppendWearableInformation()
			self.__AppendMetinSlotInfo(metinSlot)

			self.AppendSpace(10)
			self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0:
					if item.WEAPON_SWORD == itemSubType: 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == itemSubType: 
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		
					if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())		

Cod: Selectaţi tot

		### Armor ###
		elif item.ITEM_TYPE_ARMOR == itemType:
			self.__AppendLimitInformation()

			## 방어력
			defGrade = item.GetValue(1)
			defBonus = item.GetValue(5)*2 ## 방어력 표시 잘못 되는 문제를 수정
			if defGrade > 0:
				self.AppendSpace(5)
				self.AppendTextLine(localeInfo.TOOLTIP_ITEM_DEF_GRADE % (defGrade+defBonus), self.GetChangeTextLineColor(defGrade))

			self.__AppendMagicDefenceInfo()
			self.__AppendAffectInformation()
			self.__AppendAttributeInformation(attrSlot)

			if app.IsPressed(app.DIK_LSHIFT):
				if -cenzurat- != 0 and itemSubType == 0:
					if self.__ItemGetRace() == player.GetRace():
						self.__ModelPreview(itemVnum, 2, player.GetRace())

			if app.ENABLE_CHANGELOOK_SYSTEM:
				self.AppendTransmutation(window_type, slotIndex, transmutation)

			
			self.AppendWearableInformation()

			if itemSubType in (item.ARMOR_WRIST, item.ARMOR_NECK, item.ARMOR_EAR):
				self.__AppendAccessoryMetinSlotInfo(metinSlot, constInfo.GET_ACCESSORY_MATERIAL_VNUM(itemVnum, itemSubType))
			else:
				self.__AppendMetinSlotInfo(metinSlot)

			self.AppendSpace(10)
			if not itemSubType in (item.ARMOR_WRIST, item.ARMOR_NECK, item.ARMOR_EAR, item.ARMOR_SHIELD, item.ARMOR_HEAD, item.ARMOR_FOOTS):
				self.AppendTextLine(localeInfo.VIZUALIZER_COSTUME_VIEW, 0xffFFFFFF)
ah, si ca sa nu uitam, in acel def trebuie sa iti pui cuvantul pe care l-ai definit
Ar trebuii sa arate cam asa

Cod: Selectaţi tot

def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0 cuvantul_tau = 1):
Facts!
Aici doar adaugi cuvantul tau deoarece poti sa mai ai chestii in + sau in -
Avatar utilizator
emi996
Nivel 1

Nivel 1
Mesaje: 50
Membru din: 15 Apr 2018, 14:50
Server: ROK2
Regat: Shinsoo
Aprecieri: 227  
Mulţumiri: 0
Medalii

A functionat. Multumesc mult!
Avatar utilizator
Kazuhiri
Nivel 9

Nivel 9
Mesaje: 2088
Membru din: 26 Mar 2017, 19:14
Server: Demetris
Regat: Shinsoo
Aprecieri: 396  
Mulţumiri: 3227  
  Rezolvări prob.: 2
Discord: Copiază ID
Medalii

#Rezolvat
Demetris2 Imagine
Afișează semnătura
Închis
Răspunsuri
0
Vizualizări
360
Răspunsuri
2
Vizualizări
260
Răspunsuri
2
Vizualizări
48
Răspunsuri
4
Vizualizări
569

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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