الي ماعنده نظام الالوان حق بنجر او مالي يقدر يستخدم هذا الكود :
uiinventory.py
if app.ENABLE_EXTENDED_BLEND and constInfo.IS_BLEND_ITEM(itemVnum):
metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
# blendColor = constInfo.GetBlendColor(itemVnum) ## In case you have the slot highlight system with colors.
isActivated = 0 != metinSocket[1]
ItemSlotNum = slotNumber
if isActivated:
if itemVnum == 51821:
self.wndItem.ActivateSlot(i, (255.00 / 255.0), (2.00 / 255.0), (2.00 / 255.0), 1.0)
elif itemVnum == 51822:
self.wndItem.ActivateSlot(i, (255.00 / 255.0), (167.00 / 255.0), (2.00 / 255.0), 1.0)
elif itemVnum == 51823:
self.wndItem.ActivateSlot(i, (255.00 / 255.0), (178.00 / 255.0), (2.00 / 255.0), 1.0)
elif itemVnum == 51824:
self.wndItem.ActivateSlot(ItemSlotNum, 28.0 / 255.0, 2.0 / 2.0, 8.0 / 255.0)
elif itemVnum == 51825:
self.wndItem.ActivateSlot(i, (2.00 / 255.0), (105.00 / 255.0), (255.00 / 255.0), 1.0)
elif itemVnum == 51826:
self.wndItem.ActivateSlot(ItemSlotNum)
elif itemVnum >= 40017 and itemVnum <= 40020:
self.wndItem.ActivateSlot(i, (144.00 / 255.0), (2.00 / 255.0), (255.00 / 255.0), 1.0)
elif itemVnum >= 40024 and itemVnum <= 40025:
self.wndItem.ActivateSlot(i, (159.00 / 255.0), (2.00 / 255.0), (255.00 / 255.0), 1.0)
else:
self.wndItem.ActivateSlot(i)
else:
self.wndItem.DeactivateSlot(i)