Jump to content

NPC selling price bug


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
Share on other sites

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.