xranzei 1
xranzei
Best Studio 1
Best Studio
Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle
Kaynak ikonu

iteme Göre Npc Boyutlandırma 1

indirmek için izniniz yok
  • Konuyu başlatan Konuyu başlatan MaTEQ
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 49
  • Görüntüleme Görüntüleme 7K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
/Tekrardan\
\Teşekkürler/


2.jpg

1.jpg

3.jpg
Reis server max 80li soket mesela 90 soket yer kaplayacak şekilde item eklediğinde 90a mı ayarlıyor yoksa sadece küçültüyor mu
 
Work with shop 80 slot
036de7bcdaf5a104e3b004d2a1820e76.png


7fe5f9aa61c511b4b092944a310a7ddc.jpg


This is for 80Slot shop :p

Python:
        def GetEmptyLines(self):
        emptyLines = 9
        for i in xrange(10):
            empty = 9
            for j in xrange(9):
                itemIndex = shop.GetItemID(10*j+i)
                if itemIndex > 0:
                    item.SelectItem(itemIndex)
                    (w, h) = item.GetItemSize()
                    empty -= h
            if empty < emptyLines:
                emptyLines = empty
        return emptyLines
        def GetEmptyLines(self):
        emptyLines = 9
        for i in xrange(10):
            empty = 9
            for j in xrange(9):
                itemIndex = shop.GetItemID(10*j+i)
                if itemIndex > 0:
                    item.SelectItem(itemIndex)
                    (w, h) = item.GetItemSize()
                    empty -= h
            if empty < emptyLines:
                emptyLines = empty
        return emptyLines
  
  
  
    def Open(self, vid):
        isPrivateShop = FALSE
        isMainPlayerPrivateShop = FALSE

        import chr
        if chr.IsNPC(vid):
            isPrivateShop = FALSE
        else:
            isPrivateShop = TRUE

        self.board.SetSize(346, 330)
        self.itemSlotWindow.ArrangeSlot(0, 10, 9, 32, 32, 0, 0)
        self.itemSlotWindow.RefreshSlot()
        self.itemSlotWindow.SetSlotBaseImage("d:/ymir work/ui/public/Slot_Base.sub", 1.0, 1.0, 1.0, 1.0)


        if player.IsMainCharacterIndex(vid):

            isMainPlayerPrivateShop = TRUE
            self.btnClose.Show()

        else:
            if isPrivateShop == FALSE:
                EMPTY_LINES = 32 * self.GetEmptyLines()

                self.board.SetSize(346, 330 - EMPTY_LINES)

                self.itemSlotWindow.ArrangeSlot(0, 10, 9 - EMPTY_LINES / 32, 32, 32, 0, 0)
                self.itemSlotWindow.RefreshSlot()
                self.itemSlotWindow.SetSlotBaseImage("d:/ymir work/ui/public/Slot_Base.sub", 1.0, 1.0, 1.0, 1.0)
              

            isMainPlayerPrivateShop = FALSE
            self.btnClose.Hide()

        shop.Open(isPrivateShop, isMainPlayerPrivateShop)
        self.Refresh()
        self.SetTop()
        self.Show()

        (self.xShopStart, self.yShopStart, z) = player.GetMainCharacterPosition()
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst