skillBookVnum = player.GetItemIndex(self.SLOT_WINDOW_TYPE[self.categoryPageIndex]["window"], slotNumber)
if skillBookVnum == 50300:
metinSocket = [player.GetItemMetinSocket(self.SLOT_WINDOW_TYPE[self.categoryPageIndex]["window"], slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]
skillIndex = metinSocket[0]
if skillIndex != 0:
setItemVnum(i, 91000+skillIndex, itemCount)
else:
setItemVnum(i, itemVnum, itemCount)
else:
setItemVnum(i, itemVnum, itemCount)