Jump to content

Untradable items shown


Recommended Posts

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

5 hours ago, Cortana said:

Hi guys. I want to to the following thing, maybe someone can help me?

When you start exchange&safebox, untratable items gonna be red.

Like this:pPIfUej.png

 

Help would be nice!

I think, in uiexchange.py and exchangedialog.py is bug, effect.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...
  • Developer

You can try something like this at your uiInventory.py:

for i in xrange(180):
	itemVnum = player.GetItemIndex(i)
	if itemVnum > 0:
		item.SelectItem(itemVnum)
		if shop.IsOpen() and item.IsAntiFlag(item.ANTIFLAG_SELL):
			self.wndItem.LockSlot()
		else:
			self.wndItem.UnlockSlot()

I don't really know if this method does this without problems, you must try yourselves and even find other ways to do it.

when you return 0 and server doesn't boot:

unknown.png

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.