Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if app.ENABLE_CHANGELOOK_SYSTEM:
- slotClNumberChecked = 0
- if not constInfo.IS_AUTO_POTION(itemVnum) and not constInfo.IS_NEW_PET_SEAL(itemVnum) and not constInfo.IS_PET_SEAL(itemVnum):
- if app.ENABLE_HIGHLIGHT_SYSTEM:
- if not slotNumber in self.listHighlightedSlot:
- self.wndItem.DeactivateSlot(i)
- else:
- self.wndItem.DeactivateSlot(i)
- for q in xrange(changelook.WINDOW_MAX_MATERIALS):
- (isHereCL, iCellCL) = changelook.GetAttachedItem(q)
- if isHereCL:
- if iCellCL == 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)
- if app.ENABLE_SASH_SYSTEM:
- slotNumberChecked = 0
- if not constInfo.IS_AUTO_POTION(itemVnum) and not constInfo.IS_NEW_PET_SEAL(itemVnum) and not constInfo.IS_PET_SEAL(itemVnum):
- if app.ENABLE_HIGHLIGHT_SYSTEM:
- if not slotNumber in self.listHighlightedSlot:
- self.wndItem.DeactivateSlot(i)
- else:
- self.wndItem.DeactivateSlot(i)
- for j in xrange(sash.WINDOW_MAX_MATERIALS):
- (isHereAC, iCellAC) = sash.GetAttachedItem(j)
- if isHereAC:
- if iCellAC == 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement