Jump to content

Recommended Posts

  • Active Member

Heya everyone,

when you try to edit your private shop and add items that have ANTI_SELL flag, their price will not be shown. This feature was meant for NPC shops only, but they forgot to add a check.

 

 

205751FsLKbab.png.cc1628d2a7dc5fbc545080

 

In uitooltip.py search for "def AppendSellingPrice" and edit it like the following:

	def AppendSellingPrice(self, price, isPrivateShopBuilder = False):
		if item.IsAntiFlag(item.ITEM_ANTIFLAG_SELL) and not isPrivateShopBuilder:
			self.AppendTextLine(localeInfo.TOOLTIP_ANTI_SELL, self.DISABLE_COLOR)
			self.AppendSpace(5)
		else:
			self.AppendTextLine(localeInfo.TOOLTIP_SELLPRICE % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))
			self.AppendSpace(5)

Then in "def SetPrivateShopBuilderItem" search for "self.AppendSellingPrice(shop.GetPrivateShopItemPrice(invenType, invenPos))" and replace it with:

self.AppendSellingPrice(shop.GetPrivateShopItemPrice(invenType, invenPos), True)

 

Not a game-breaking bug, but I still wanted to share it with you. It was already fixed by YMIR in their lastest patches(not sure when) so I chose their way of fixing it.

 

  • Love 12
Link to comment
https://metin2.dev/topic/18677-fix-append-selling-price-in-private-shop/
Share on other sites

  • Active Member
2 hours ago, Aerrow said:

I do not have "def SetEditPrivateShopItem" method.

Btw it works fine, thanks!

Woopsy, that function is from the offline-shop system that I am using. Thanks for the notice!

  • 2 years later...

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.