Lucrăm la îmbunătățirea site-ului! Este posibil ca unele module să nu funcționeze corect!
7 mesaje

Autor subiect

  • Mesaje: 43
  • Reacții: 89
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • Discord: [Vezi ID]
  • 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ț
    Avatar utilizator
    Administrator
  • Administrator
  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator
    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/Kr9nUpWa4X

    Suntem aproape 1000 membri! - Avem chat activ zilnic, support, cereri, resurse.



    See full signature

    Autor subiect

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

    Medalii

    Avatar utilizator

    Autor subiect

    @[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.

    Autor subiect

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

    Medalii

    Avatar utilizator

    Autor subiect

    You can close solved
    Avatar utilizator
    Administrator
  • Administrator
  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator
    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/Kr9nUpWa4X

    Suntem aproape 1000 membri! - Avem chat activ zilnic, support, cereri, resurse.



    See full signature

    Autor subiect

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

    Medalii

    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()
    
    Avatar utilizator
    Administrator
  • Administrator
  • Mesaje: 2,607
  • Reacții: 29013
  • Mesaje utile: 17
  • Status: Pierd vremea ^.^
  • Server: Saga2 - Soon
  • Regat: Jinno
  • Discord: [Vezi ID]
  • Contact:
    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/Kr9nUpWa4X

    Suntem aproape 1000 membri! - Avem chat activ zilnic, support, cereri, resurse.



    See full signature
    Moved from Support to Probleme rezolvate on 15 Feb 2025, 14:06 by [HF]White

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Înregistrează-te și alătură-te comunității noastre

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra rapid utilizând contul tău de Discord sau Github

    Înregistrare

    Autentifică-te

    • Subiecte similare

      • de Dragos » » în FIX-uri
        0
        Răspunsuri
        427
        Vizualizări
        de Dragos
      • de [HF]White » » în Arhivă resurse
        1
        Răspunsuri
        1687
        Vizualizări
        de [HF]White
      • de [HF]White » » în Îmbunătățiri
        0
        Răspunsuri
        921
        Vizualizări
        de [HF]White
      • de Husumu » » în Caut - Plătesc
        0
        Răspunsuri
        148
        Vizualizări
        de Husumu
      • de [HF]White » » în Îmbunătățiri
        0
        Răspunsuri
        208
        Vizualizări
        de [HF]White

    Înapoi la “Probleme rezolvate”

    Informații

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