Jump to content

Shop buy price not appear


Go to solution Solved by iBeast,

Recommended Posts

5 hours ago, Ekinox said:

Hi,

I don't have buy price on item from all shop see :

1119-130942.jpg

syss err client and server is empty

Someone would have any idea ??

Thx

Sorry for my bad English

Hi.

Maybe you are missing function "AppendPrice" in uiToolTip.py.

 

Upload your uiToolTip.py.

iBeast

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
https://metin2.dev/topic/20036-shop-buy-price-not-appear/#findComment-108854
Share on other sites

  • Solution
1 hour ago, Ekinox said:

Hi,

Thanks for your reply

My uiToolTip : 

This is the hidden content, please

My problem can it come from the src ?

I was right. There is solution (probably):

1. Find:

def SetShopItem(self, slotIndex):

2. Add on the end of function this:

self.AppendPrice(price)

So it should be like that:

	def SetShopItem(self, slotIndex):
		itemVnum = shop.GetItemID(slotIndex)
		if 0 == itemVnum:
			return

		price = shop.GetItemPrice(slotIndex)
		self.ClearToolTip()
		self.isShopItem = TRUE

		metinSlot = []
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
		attrSlot = []
		for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
			attrSlot.append(shop.GetItemAttribute(slotIndex, i))

		self.AddItemData(itemVnum, metinSlot, attrSlot)
		self.AppendPrice(price)

 

iBeast

Link to comment
https://metin2.dev/topic/20036-shop-buy-price-not-appear/#findComment-108867
Share on other sites

il y a une heure, iBeast a dit :

I was right. There is solution (probably):

1. Find:


def SetShopItem(self, slotIndex):

2. Add on the end of function this:


self.AppendPrice(price)

So it should be like that:


	def SetShopItem(self, slotIndex):
		itemVnum = shop.GetItemID(slotIndex)
		if 0 == itemVnum:
			return

		price = shop.GetItemPrice(slotIndex)
		self.ClearToolTip()
		self.isShopItem = TRUE

		metinSlot = []
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
		attrSlot = []
		for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
			attrSlot.append(shop.GetItemAttribute(slotIndex, i))

		self.AddItemData(itemVnum, metinSlot, attrSlot)
		self.AppendPrice(price)

 

iBeast

It's work for NPC shop really thanx, but i have  the same problem for offline shop :(

Link to comment
https://metin2.dev/topic/20036-shop-buy-price-not-appear/#findComment-108870
Share on other sites

2 minutes ago, Ekinox said:

It's work for NPC shop really thanx, but i have  the same problem for offline shop :(

Then apply it for offline shops too... :)

I do not have offline shops so I can not check which things you should modify, but it should be similar.

Link to comment
https://metin2.dev/topic/20036-shop-buy-price-not-appear/#findComment-108871
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.