Jump to content

Cannot show items in PM


Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

class HyperlinkItemToolTip(ItemToolTip):
	def __init__(self):
		ItemToolTip.__init__(self, isPickable=TRUE)

	def SetHyperlinkItem(self, tokens):
		minTokenCount = 3 + player.METIN_SOCKET_MAX_NUM
		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)
			metinSlot = [int(metin, 16) for metin in tokens[3:6]]

			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()
			self.AddItemData(itemVnum, metinSlot, attrSlot)

			ItemToolTip.OnUpdate(self)

	def OnUpdate(self):
		pass

	def OnMouseLeftButtonDown(self):
		self.Hide()

I recently updated Python 2.2 to Python 2.7

 

Link to comment
Share on other sites

Everywhere.. On chat, on global chat and PM. But I found this syserr code:

1220 18:06:06344 :: Traceback (most recent call last):

1220 18:06:06344 ::   File "game.py", line 1366, in OnMouseLeftButtonUp

1220 18:06:06346 ::   File "interfaceModule.py", line 375, in MakeHyperlinkTooltip

1220 18:06:06346 ::   File "uiToolTip.py", line 2067, in SetHyperlinkItem

1220 18:06:06346 ::   File "uiToolTip.py", line 1068, in AddItemData

1220 18:06:06347 ::   File "uiToolTip.py", line 1863, in __AppendMetinSlotInfo

1220 18:06:06347 ::   File "uiToolTip.py", line 1874, in __AppendMetinSlotInfo_IsEmptySlotList

1220 18:06:06347 :: IndexError
1220 18:06:06347 :: : 
1220 18:06:06347 :: list index out of range
1220 18:06:06347 :: 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.