covfefe 33 Posted April 22, 2022 Share Posted April 22, 2022 (edited) Hello im having a strange issue, I set Gold of item to be sold for 15kk by NPC, however ingame it shows 4.5kk instead of 15kk Edited April 22, 2022 by covfefe Link to comment Share on other sites More sharing options...
ARiniii 5 Posted May 9, 2022 Share Posted May 9, 2022 Please send one item proto... 1 line is enough Link to comment Share on other sites More sharing options...
Active Member Thorek 286 Posted May 9, 2022 Active Member Share Posted May 9, 2022 (edited) 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 May 9, 2022 by Thorek Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now