Çözüldü İtem ayırma 2x sorunu

  • Konuyu açan Konuyu açan adv1453
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 3
  • Gösterim Gösterim 1K
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

adv1453

Yardımsever Üye
Yardımsever Üye
MT Üye
Mesaj
473
Çözümler
44
Beğeni
242
Puan
869
Ticaret Puanı
0
Selam, item ayırırken yazmış olduğum sayıyı 2 ile çarpıyor. 1 tane ayırmak istersem 2 tane ayırıyor 2 yazarsam 4 tane ayırıyor 4 yazarsam 8 tane ayırıyor. Nereden düzenleyebilirim?

 
Çözüm
Python:
Genişlet Daralt Kopyala
    Aratılır
    
def SelectEmptySlot(self, selectedSlotPos):
    
    Bulunur
    
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
                
    Ve değiştirilir
    
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount =...
Mobildeyim eklediğin k envanter kodlarını yeniden ekle uiinventory için o yüzden oluyor
 
Mobildeyim eklediğin k envanter kodlarını yeniden ekle uiinventory için o yüzden oluyor

Farklı files üzerindeki uiinventory.py ile karşılaştırıp kontrol ettim ancak farklı bir durum yok her şey olması gerektiği gibi gözüküyor.

uiinventory.py
 
Python:
Genişlet Daralt Kopyala
    Aratılır
    
def SelectEmptySlot(self, selectedSlotPos):
    
    Bulunur
    
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
                
    Ve değiştirilir
    
                itemCount = player.GetItemCount(attachedSlotPos)
                attachedCount = mouseModule.mouseController.GetAttachedItemCount()
                self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, attachedCount)
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst