Yardım tab hatası hk

  • Konuyu açan Konuyu açan uqursen
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 2
  • Gösterim Gösterim 52
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

uqursen

Üye
Üye
Mesaj
128
Çözümler
2
Beğeni
20
Puan
469
Ticaret Puanı
0
benim bloğum şu şekilde

Python:
Genişlet Daralt Kopyala
    def RefreshBagSlotWindow(self):
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        setItemVNum=self.wndItem.SetItemSlot
      
        for i in xrange(player.INVENTORY_PAGE_SIZE):
            slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
          
            itemCount = getItemCount(slotNumber)
            # itemCount == 0�̸� ������ ����.
            if 0 == itemCount:
                self.wndItem.ClearSlot(i)
                continue
            elif 1 == itemCount:
                itemCount = 0
              
            itemVnum = getItemVNum(slotNumber)
            setItemVNum(i, itemVnum, itemCount)

            ## �ڵ����� (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Ư��ó�� - �������ε��� ���Կ� Ȱ��ȭ/��Ȱ��ȭ ǥ�ø� ���� �۾��� - [hyo]

                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

                for j in xrange(acce.WINDOW_MAX_MATERIALS):
                    (isHere, iCell) = acce.GetAttachedItem(j)
                    if isHere:
                        if iCell == slotNumber:
                            self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
                            if not slotNumber in self.listAttachedAcces:
                                self.listAttachedAcces.append(slotNumber)

                            slotNumberChecked = 1
                    else:
                        if slotNumber in self.listAttachedAcces and not slotNumberChecked:
                            self.wndItem.DeactivateSlot(i)
                            self.listAttachedAcces.remove(slotNumber)

            elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                if not slotNumber in self.liHighlightedItems:
                    self.wndItem.DeactivateSlot(i)


eklemeek istediğim
bu ve
Python:
Genişlet Daralt Kopyala
                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

bu

Python:
Genişlet Daralt Kopyala
            elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                if not slotNumber in self.liHighlightedItems:
                    self.wndItem.DeactivateSlot(i)

doğru yeri bulup bir türlü ekleyemedim yardımcı olurmusunuz.
 
Python:
Genişlet Daralt Kopyala
    def RefreshBagSlotWindow(self):
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        setItemVNum=self.wndItem.SetItemSlot

        if app.ENABLE_HIGHLIGHT_SYSTEM:
            for i in xrange(self.wndItem.GetSlotCount()):
                self.wndItem.DeactivateSlot(i)
     
        for i in xrange(player.INVENTORY_PAGE_SIZE):
            slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
         
            itemCount = getItemCount(slotNumber)
            # itemCount == 0�̸� ������ ����.
            if 0 == itemCount:
                self.wndItem.ClearSlot(i)
                continue
            elif 1 == itemCount:
                itemCount = 0
             
            itemVnum = getItemVNum(slotNumber)
            setItemVNum(i, itemVnum, itemCount)

            ## �ڵ����� (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Ư��ó�� - �������ε��� ���Կ� Ȱ��ȭ/��Ȱ��ȭ ǥ�ø� ���� �۾��� - [hyo]

                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

                elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                    if not slotNumber in self.liHighlightedItems:
                        self.wndItem.DeactivateSlot(i)

                for j in xrange(acce.WINDOW_MAX_MATERIALS):
                    (isHere, iCell) = acce.GetAttachedItem(j)
                    if isHere:
                        if iCell == slotNumber:
                            self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
                            if not slotNumber in self.listAttachedAcces:
                                self.listAttachedAcces.append(slotNumber)

                            slotNumberChecked = 1
                    else:
                        if slotNumber in self.listAttachedAcces and not slotNumberChecked:
                            self.wndItem.DeactivateSlot(i)
                            self.listAttachedAcces.remove(slotNumber)
 
Python:
Genişlet Daralt Kopyala
    def RefreshBagSlotWindow(self):
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        setItemVNum=self.wndItem.SetItemSlot

        if app.ENABLE_HIGHLIGHT_SYSTEM:
            for i in xrange(self.wndItem.GetSlotCount()):
                self.wndItem.DeactivateSlot(i)
 
        for i in xrange(player.INVENTORY_PAGE_SIZE):
            slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
     
            itemCount = getItemCount(slotNumber)
            # itemCount == 0�̸� ������ ����.
            if 0 == itemCount:
                self.wndItem.ClearSlot(i)
                continue
            elif 1 == itemCount:
                itemCount = 0
         
            itemVnum = getItemVNum(slotNumber)
            setItemVNum(i, itemVnum, itemCount)

            ## �ڵ����� (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Ư��ó�� - �������ε��� ���Կ� Ȱ��ȭ/��Ȱ��ȭ ǥ�ø� ���� �۾��� - [hyo]

                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

                elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                    if not slotNumber in self.liHighlightedItems:
                        self.wndItem.DeactivateSlot(i)

                for j in xrange(acce.WINDOW_MAX_MATERIALS):
                    (isHere, iCell) = acce.GetAttachedItem(j)
                    if isHere:
                        if iCell == slotNumber:
                            self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
                            if not slotNumber in self.listAttachedAcces:
                                self.listAttachedAcces.append(slotNumber)

                            slotNumberChecked = 1
                    else:
                        if slotNumber in self.listAttachedAcces and not slotNumberChecked:
                            self.wndItem.DeactivateSlot(i)
                            self.listAttachedAcces.remove(slotNumber)
o kadar çok clas varki benzersiz anlayamadım hocam bu sökmeye çalıştığım ui blogu

buda sökmeye çalıştığım.
Python:
Genişlet Daralt Kopyala
    def RefreshBagSlotWindow(self):
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        setItemVNum=self.wndItem.SetItemSlot

        for i in xrange(player.INVENTORY_PAGE_SIZE):
            slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)

            itemCount = getItemCount(slotNumber)
            if 0 == itemCount:
                self.wndItem.ClearSlot(i)
                continue
            elif 1 == itemCount:
                itemCount = 0

            itemVnum = getItemVNum(slotNumber)
            setItemVNum(i, itemVnum, itemCount)

            if constInfo.IS_AUTO_POTION(itemVnum):
                metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]

                isActivated = 0 != metinSocket[0]

                if isActivated:
                    self.wndItem.ActivateSlot(i)
                    potionType = 0
                    if constInfo.IS_AUTO_POTION_HP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_HP
                    elif constInfo.IS_AUTO_POTION_SP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_SP

                    usedAmount = int(metinSocket[1])
                    totalAmount = int(metinSocket[2])
                    player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i))

                else:
                    self.wndItem.DeactivateSlot(i)

            if app.ENABLE_ACCE_COSTUME_SYSTEM:
                slotNumberChecked = 0
                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

                for j in xrange(acce.WINDOW_MAX_MATERIALS):
                    (isHere, iCell) = acce.GetAttachedItem(j)
                    if isHere:
                        if iCell == slotNumber:
                            self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
                            if not slotNumber in self.listAttachedAcces:
                                self.listAttachedAcces.append(slotNumber)

                            slotNumberChecked = 1
                    else:
                        if slotNumber in self.listAttachedAcces and not slotNumberChecked:
                            self.wndItem.DeactivateSlot(i)
                            self.listAttachedAcces.remove(slotNumber)

            elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                if not slotNumber in self.liHighlightedItems:
                    self.wndItem.DeactivateSlot(i)

            if constInfo.ENABLE_ACTIVE_PET_SEAL_EFFECT and constInfo.IS_PET_SEAL(itemVnum):
                metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
                isActivated = 0 != metinSocket[2]
                if isActivated:
                    self.wndItem.ActivateSlot(i)
                else:
                    self.wndItem.DeactivateSlot(i)

        self.wndItem.RefreshSlot()
        if app.ENABLE_HIGHLIGHT_NEW_ITEM:
            self.__RefreshHighlights()

        if self.wndBelt:
            self.wndBelt.RefreshSlot()


buda benim classım


Python:
Genişlet Daralt Kopyala
    def RefreshBagSlotWindow(self):
        getItemVNum=player.GetItemIndex
        getItemCount=player.GetItemCount
        setItemVNum=self.wndItem.SetItemSlot
    
        for i in xrange(player.INVENTORY_PAGE_SIZE):
            slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
        
            itemCount = getItemCount(slotNumber)
            # itemCount == 0�̸� ������ ����.
            if 0 == itemCount:
                self.wndItem.ClearSlot(i)
                continue
            elif 1 == itemCount:
                itemCount = 0
            
            itemVnum = getItemVNum(slotNumber)
            setItemVNum(i, itemVnum, itemCount)

            if constInfo.IS_AUTO_POTION(itemVnum):
                metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]

                isActivated = 0 != metinSocket[0]

                if isActivated:
                    self.wndItem.ActivateSlot(i)
                    potionType = 0
                    if constInfo.IS_AUTO_POTION_HP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_HP
                    elif constInfo.IS_AUTO_POTION_SP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_SP

            ## �ڵ����� (HP: #72723 ~ #72726, SP: #72727 ~ #72730) Ư��ó�� - �������ε��� ���Կ� Ȱ��ȭ/��Ȱ��ȭ ǥ�ø� ���� �۾��� - [hyo]

                if not constInfo.IS_AUTO_POTION(itemVnum):
                    if app.ENABLE_HIGHLIGHT_NEW_ITEM:
                        if not slotNumber in self.liHighlightedItems:
                            self.wndItem.DeactivateSlot(i)
                    else:
                        self.wndItem.DeactivateSlot(i)

                for j in xrange(acce.WINDOW_MAX_MATERIALS):
                    (isHere, iCell) = acce.GetAttachedItem(j)
                    if isHere:
                        if iCell == slotNumber:
                            self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
                            if not slotNumber in self.listAttachedAcces:
                                self.listAttachedAcces.append(slotNumber)

                            slotNumberChecked = 1
                    else:
                        if slotNumber in self.listAttachedAcces and not slotNumberChecked:
                            self.wndItem.DeactivateSlot(i)
                            self.listAttachedAcces.remove(slotNumber)

            elif app.ENABLE_HIGHLIGHT_NEW_ITEM and not constInfo.IS_AUTO_POTION(itemVnum):
                if not slotNumber in self.liHighlightedItems:
                    self.wndItem.DeactivateSlot(i)

            if constInfo.IS_AUTO_POTION(itemVnum):
                # metinSocket - [0] : Ȱ��ȭ ����, [1] : ����� ��, [2] : �ִ� �뷮
                metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
            
                if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
                    slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
                
                isActivated = 0 != metinSocket[0]
            
                if isActivated:
                    self.wndItem.ActivateSlot(slotNumber)
                    potionType = 0;
                    if constInfo.IS_AUTO_POTION_HP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_HP
                    elif constInfo.IS_AUTO_POTION_SP(itemVnum):
                        potionType = player.AUTO_POTION_TYPE_SP                   
                
                    usedAmount = int(metinSocket[1])
                    totalAmount = int(metinSocket[2])               
                    player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i))
                
                else:
                    self.wndItem.DeactivateSlot(slotNumber)       

        self.wndItem.RefreshSlot()
        if app.ENABLE_HIGHLIGHT_NEW_ITEM:
            self.__RefreshHighlights()

        if self.wndBelt:
            self.wndBelt.RefreshSlot()


geçirmeye çalıştığım tab kodu

ENABLE_HIGHLIGHT_NEW_ITEM bu clasları benim bloğuma geçirmeye çalişiyorum attığınız olmadı malesef.
 
En son bir moderatör tarafından düzenlenmiş:
Üst