2. Deasupra acesteia adauga urmatoarea functie:
def __SetFeaturesToolTip(self, itemVnum):
image = ui.ImageBox()
image.SetParent(self)
image.Show()
self.main = {
"vnums" : [
140, 150, 3130, 270, 12010, 12020, 12030, 12040, 480, 460, 470, 5120, 7120, 20250, 20750, 20000, 180, 190
]
}
######################################################################################################
# Example: vnums[480] = 480, 481, 482, 483, 484, 485, 486, 487, 488, 489 Put more items (need only first index from +0, and automatically will be increment from +0 to +9.)
for k in xrange(10):
for v in xrange(len(self.main["vnums"])):
tokens, index, iterator = self.main["vnums"][v], str(itemVnum)[-1:], str(k)
if ((tokens <= itemVnum and itemVnum <= tokens + 9) and (index == iterator)):
color = 0xffBD9460
self.AppendTextLine("[Text]", color)
3. Cauta din nou functia def AddItemData4. In aceasta functia cauta self.__SetItemTitle(itemVnum, metinSlot, attrSlot)
5. Adauga dedesupt self.__SetFeaturesToolTip(itemVnum)
Credite: VegaS



daca te-am ajutat


imi da eroarea asta cand l-am inlocuit cu ce mi-ai dat tu