- if exchange.isTrading() and item.IsAntiFlag(item.ANTIFLAG_GIVE):
- self.wndItem.SetUnusableSlot(i)
- self.listUnusableSlot.append(i)
- elif not exchange.isTrading() and item.IsAntiFlag(item.ANTIFLAG_GIVE) and slotNumber in self.listUnusableSlot:
- self.wndItem.SetUsableSlot(i)
- self.listUnusableSlot.remove(i)