7 mesaje
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    *Problemă/Întrebare:
    Hi, I'm trying to sort out the rubinum inventory. And why when I assign item.EQUIPMENT_WEAPON to page 3 I don't see the weapon icon? But when I set it to 1 I see it? And the same with talismans when I assign it to page 4 I don't see it either. Could you please help me?


    *Resursă folosită (sistem/funcție/modificare):

    *Syserr:

    *Fișier(e) cu problema (link pastebin / code):

    *Poze / Video:

    Slot Page - Rubinum Style Inventory - Mesaj 1 - Imagine 1

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48307
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    You have to make sure indexes are correct!

    If you want to change order of things, you have to adapt it in uiinventory.

    EQUIPMENT_START_INDEX+0 is for equipments: armor,weapon,earrings,bracelet,etc.


    I dont really understand what you want to do.

    Do you want to move the equipment page to be the third tab or what?
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    @[HF]White
    I don't want to move it... I want to put something else there. But I can't think of anything else if the basic weapon doesn't even show up there. It's there, but it's not showing up. And I really need to know why it's not showing up.
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    You can close solved
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48307
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    GreposX scrie: You can close solved
    How did you solve?
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    In def RefreshEquipSlotWindow(self): I didn't have any slots written, so the icons weren't displayed.

    Code:
    	def RefreshEquipSlotWindow(self):
    		getItemVNum=player.GetItemIndex
    		getItemCount=player.GetItemCount
    		setItemVNum=self.wndEquip.SetItemSlot
    		for i in xrange(player.EQUIPMENT_PAGE_COUNT):
    			slotNumber = player.EQUIPMENT_SLOT_START + i
    			itemCount = getItemCount(slotNumber)
    			if itemCount <= 1:
    				itemCount = 0
    			setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
    		for i in xrange(item.COSTUME_SLOT_COUNT):
    			slotNumber = item.COSTUME_SLOT_START + i
    			self.wndCostume.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)
    			if app.ENABLE_WEAPON_COSTUME_SYSTEM:
    				self.wndCostume.SetItemSlot(item.COSTUME_SLOT_WEAPON, getItemVNum(item.COSTUME_SLOT_WEAPON), 0)
    			self.wndEquip.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)
    		if app.ENABLE_NEW_EQUIPMENT_SYSTEM:
    			for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT):
    				slotNumber = player.NEW_EQUIPMENT_SLOT_START + i
    				itemCount = getItemCount(slotNumber)
    				if itemCount <= 1:
    					itemCount = 0
    				self.wndSecondary.SetItemSlot(slotNumber, getItemVNum(slotNumber), itemCount)
    				print "ENABLE_NEW_EQUIPMENT_SYSTEM", slotNumber, itemCount, getItemVNum(slotNumber)
    
    
    		self.wndEquip.RefreshSlot()
    
    Administrator Administrator
  • Mesaje: 3449
  • Reacții: 48307
  • Mesaje utile: 29
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    GreposX scrie: In def RefreshEquipSlotWindow(self): I didn't have any slots written, so the icons weren't displayed.

    Code:
    	def RefreshEquipSlotWindow(self):
    		getItemVNum=player.GetItemIndex
    		getItemCount=player.GetItemCount
    		setItemVNum=self.wndEquip.SetItemSlot
    		for i in xrange(player.EQUIPMENT_PAGE_COUNT):
    			slotNumber = player.EQUIPMENT_SLOT_START + i
    			itemCount = getItemCount(slotNumber)
    			if itemCount <= 1:
    				itemCount = 0
    			setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
    		for i in xrange(item.COSTUME_SLOT_COUNT):
    			slotNumber = item.COSTUME_SLOT_START + i
    			self.wndCostume.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)
    			if app.ENABLE_WEAPON_COSTUME_SYSTEM:
    				self.wndCostume.SetItemSlot(item.COSTUME_SLOT_WEAPON, getItemVNum(item.COSTUME_SLOT_WEAPON), 0)
    			self.wndEquip.SetItemSlot(slotNumber, getItemVNum(slotNumber), 0)
    		if app.ENABLE_NEW_EQUIPMENT_SYSTEM:
    			for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT):
    				slotNumber = player.NEW_EQUIPMENT_SLOT_START + i
    				itemCount = getItemCount(slotNumber)
    				if itemCount <= 1:
    					itemCount = 0
    				self.wndSecondary.SetItemSlot(slotNumber, getItemVNum(slotNumber), itemCount)
    				print "ENABLE_NEW_EQUIPMENT_SYSTEM", slotNumber, itemCount, getItemVNum(slotNumber)
    
    
    		self.wndEquip.RefreshSlot()
    
    yeah, that was gonna be my next recommendation.

    I also struggled with my pet slot when tried to move it to another page, and it was from the refresh function.
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem peste 1700 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator

    Discord ID copiat: