Jump to content
  • 0

Help condition in Item level text/icon

Go to solution Solved by Mali61,


		####Item level text/icon ###
		if itemNameP>0 and len(itemName)>itemNameP+1:
			if level.isdigit():
				wndMgr.SetSlotLevelImage(self.hWnd, renderingSlotNumber, ("icon/level/%d.tga"%int(level)))
		####Item level text/icon END ###

How can I create a condition to not apply the level icon to stones, because as they are stackable, the level icon is above the quantity, but I was not successful, could someone give an example of how I can do it?


I tried by condition in the function above.



Link to post

1 answer to this question

Recommended Posts

  • 0
  • Honorable Member
  • Solution
item.GetItemType() != item.ITEM_TYPE_METIN


more exception:

if not item.GetItemType() in (item.ITEM_TYPE_METIN, item.ITEM_TYPE_ARMOR)


Edited by Mali61
  • Love 1


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.