Jump to content

Recommended Posts

Hi, sorted not exit in my python do you know what to do?

0221 03:30:04746 ::   File "game.py", line 1665, in BINARY_RefreshTargetMonsterDropInfo

0221 03:30:04746 ::   File "uiTarget.py", line 546, in RefreshMonsterInfoBoard

0221 03:30:04746 ::   File "uiTarget.py", line 151, in Refresh

0221 03:30:04746 ::   File "uiTarget.py", line 168, in __LoadInformation

0221 03:30:04746 ::   File "uiTarget.py", line 248, in __LoadInformation_Drops

0221 03:30:04747 ::   File "uiTarget.py", line 295, in AppendItem

0221 03:30:04747 :: NameError
0221 03:30:04747 :: : 
0221 03:30:04747 :: global name 'sorted' is not defined
0221 03:30:04747 :: 


here is the python part


 

				item.SelectItem(vnum)
				itemName = item.GetItemName()
				if type(vnums) != int and len(vnums) > 1:
					vnums = sorted(vnums)
					realName = itemName[:itemName.find("+")]
					if item.GetItemType() == item.ITEM_TYPE_METIN:
						realName = localeInfo.TARGET_INFO_STONE_NAME
						itemName = realName + "+0 - +4"
					else:
						itemName = realName + "+" + str(vnums[0] % 10) + " - +" + str(vnums[len(vnums) - 1] % 10)
					vnum = vnums[len(vnums) - 1]

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.