Got this problem
'NoneType' object has no attribute 'GetInventoryType'
if app.WJ_ENABLE_TRADABLE_ICON:
def CantTradableItem(self, destSlotIndex, srcSlotIndex):
if app.ENABLE_SPECIAL_INVENTORY:
invenType = player.GetSpecialInventoryTypeByGlobalSlot(srcSlotIndex)
if invenType == player.INVENTORY_TYPE_INVENTORY:
itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE
localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE)
else:
(specialSlotStart, specialSlotEnd) = player.GetSpecialInventoryRange(invenType)
specialInventorySlot = srcSlotIndex - specialSlotStart
itemInvenPage = specialInventorySlot / player.INVENTORY_PAGE_SIZE
localSlotPos = specialInventorySlot - (itemInvenPage * player.INVENTORY_PAGE_SIZE)
self.lockedItems[destSlotIndex] = (invenType, itemInvenPage, localSlotPos)
if self.wndInventory.GetInventoryType() == invenType and self.wndInventory.GetInventoryPageIndex() == itemInvenPage and self.IsShow():
self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos)
else:
itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE
localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE)
self.lockedItems[destSlotIndex] = (itemInvenPage, localSlotPos)
if self.wndInventory.GetInventoryPageIndex() == itemInvenPage:
self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos)
anyone a solution for that (using great offshop)