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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.