Python
- if app.ENABLE_CHANGELOOK_SYSTEM:
- slotClNumberChecked = 0
- if app.ENABLE_SASH_SYSTEM:
- slotNumberChecked = 0
- if not constInfo.IS_AUTO_POTION(itemVnum):
- self.wndItem.DeactivateSlot(i)
- for q in xrange(changelook.WINDOW_MAX_MATERIALS):
- (isHere, iCell) = changelook.GetAttachedItem(q)
- if isHere:
- if iCell == slotNumber:
- self.wndItem.ActivateSlot(i, (238.00 / 255.0), (11.00 / 255.0), (11.00 / 255.0), 1.0)
- if not slotNumber in self.listAttachedCl:
- self.listAttachedCl.append(slotNumber)
- slotClNumberChecked = 1
- else:
- if slotNumber in self.listAttachedCl and not slotClNumberChecked:
- self.wndItem.DeactivateSlot(i)
- self.listAttachedCl.remove(slotNumber)
- for j in xrange(sash.WINDOW_MAX_MATERIALS):
- (isHere, iCell) = sash.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.listAttachedSashs:
- self.listAttachedSashs.append(slotNumber)
- slotNumberChecked = 1
- else:
- if slotNumber in self.listAttachedSashs and not slotNumberChecked:
- self.wndItem.DeactivateSlot(i)
- self.listAttachedSashs.remove(slotNumber)