Membru Ucenic
Membru Ucenic
  • Mesaje: 43
    Membru din: 18 Ian 2025, 05:16
  • Reacții: 225
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • 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
    Fii primul care reacționează
    Administrator
    Administrator
  • Mesaje: 4969
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 125671
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Avatar utilizator - SCOOB
    Administrator
    Administrator

    Mesaj

    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?
    Fii primul care reacționează
    See full signature
    Membru Ucenic
    Membru Ucenic
  • Mesaje: 43
    Membru din: 18 Ian 2025, 05:16
  • Reacții: 225
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Medalii

    Avatar utilizator - GreposX
    Membru Ucenic
    Membru Ucenic

    Mesaj

    @[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.
    Fii primul care reacționează
    Membru Ucenic
    Membru Ucenic
  • Mesaje: 43
    Membru din: 18 Ian 2025, 05:16
  • Reacții: 225
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Medalii

    Avatar utilizator - GreposX
    Membru Ucenic
    Membru Ucenic

    Mesaj

    You can close solved
    Fii primul care reacționează
    Administrator
    Administrator
  • Mesaje: 4969
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 125671
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Avatar utilizator - SCOOB
    Administrator
    Administrator

    Mesaj

    GreposX scrie: ↑You can close solved
    How did you solve?
    Fii primul care reacționează
    See full signature
    Membru Ucenic
    Membru Ucenic
  • Mesaje: 43
    Membru din: 18 Ian 2025, 05:16
  • Reacții: 225
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Medalii

    Avatar utilizator - GreposX
    Membru Ucenic
    Membru Ucenic

    Mesaj

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

    Cod: Selectaţi tot

    	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()
    
    Fii primul care reacționează
    Administrator
    Administrator
  • Mesaje: 4969
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 125671
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Avatar utilizator - SCOOB
    Administrator
    Administrator

    Mesaj

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

    Cod: Selectaţi tot

    	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.
    Fii primul care reacționează
    See full signature

    Înapoi la “Probleme rezolvate”

    Informații

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

    Discord ID copiat: