Basically if I click on an item with a bonus it shows the info, if I click on an item without a bonus it doesn't show anything.
And in addition, it shows 3 stone slots without me having stones. Can help?
Errors:
Bitte melden Sie sich an, um diesen Link zu sehen.
Bitte melden Sie sich an, um diesen Link zu sehen.
My class:
class HyperlinkItemToolTip(ItemToolTip):
def __init__(self):
ItemToolTip.__init__(self, isPickable=True)
def SetHyperlinkItem(self, tokens):
minTokenCount = 3 + player.METIN_SOCKET_MAX_NUM
if app.ENABLE_TRANSMUTATION_SYSTEM:
minTokenCount += 1
maxTokenCount = minTokenCount + 2 * player.ATTRIBUTE_SLOT_MAX_NUM
if tokens and len(tokens) >= minTokenCount and len(tokens) <= maxTokenCount:
head, vnum, flag = tokens[:3]
itemVnum = int(vnum, 16)
if app.ENABLE_EXTENDED_SOCKET:
metinSlot = [int(metin, 16) for metin in tokens[3:8]]
else:
metinSlot = [int(metin, 16) for metin in tokens[3:6]]
transmutation = 0
if app.ENABLE_TRANSMUTATION_SYSTEM:
cnv = [int(cnv, 16) for cnv in tokens[6:7]]
rests = tokens[7:]
else:
rests = tokens[6:]
if rests:
attrSlot = []
rests.reverse()
while rests:
key = int(rests.pop(), 16)
if rests:
val = int(rests.pop())
attrSlot.append((key, val))
attrSlot += [(0, 0)] * (player.ATTRIBUTE_SLOT_MAX_NUM - len(attrSlot))
else:
attrSlot = [(0, 0)] * player.ATTRIBUTE_SLOT_MAX_NUM
self.ClearToolTip()
if app.ENABLE_TRANSMUTATION_SYSTEM:
if not transmutation:
self.AddItemData(itemVnum, metinSlot, attrSlot)
else:
self.AddItemData(itemVnum, metinSlot, attrSlot, 0, player.INVENTORY, -1, transmutation)
else:
self.AddItemData(itemVnum, metinSlot, attrSlot)
ItemToolTip.OnUpdate(self)
My Tooltip:
Bitte melden Sie sich an, um diesen Link zu sehen.