Jump to content

Recommended Posts

  • 3 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active+ Member

Hello, I think this is not a bug.

The problem that you have is (probably) caused by Is1GoldItem function used by uiShop.py and uiInventory.py.

# uiShop.py:
if item.Is1GoldItem():
	itemPrice = attachedCount / itemPrice / 5
else:
	itemPrice = itemPrice * max(1, attachedCount) / 5

# uiInventory.py:
if item.Is1GoldItem():
	itemPrice = itemCount / itemPrice / 5
else:
	itemPrice = itemPrice * itemCount / 5

As you can see, if you want sell item and this item has flag named ITEM_FLAG_COUNT_PER_1GOLD, price is changed.

So to fix your problem you can e.g. comment this checks.

Edited by Thorek
Link to comment
https://metin2.dev/topic/29005-npc-selling-price-bug/#findComment-149142
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.