Jump to content
  • 0

Item count bug


Fryxion

Question

Hi everyone, I have encountered a bug and I don't seem to find the cause.. The items on the inventory or in mob info do not display the stack number. There are no errors on syserr either.

Anyone got any idea on what it could be ?

Preview (https://metin2.download/picture/pEMBlqZhd2i3g0Vr072NGrJiQigA6Fdp/.gif).

Thanks in advance.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Distinguished Member

Start your investiagtion in uiinventory.py:

	def RefreshBagSlotWindow(self):
		getItemVNum=player.GetItemIndex
		getItemCount=player.GetItemCount
		setItemVNum=self.wndItem.SetItemSlot
		
		for i in xrange(player.INVENTORY_PAGE_SIZE):
			slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
			
			itemCount = getItemCount(slotNumber)
			# itemCount == 0ŔĚ¸é ĽŇÄĎŔ» şńżî´Ů.
			if 0 == itemCount:
				self.wndItem.ClearSlot(i)
				continue
			elif 1 == itemCount:
				itemCount = 0
				
			itemVnum = getItemVNum(slotNumber)
			setItemVNum(i, itemVnum, itemCount)
  • Good 1
Link to comment
Share on other sites

  • 0
37 minutes ago, TMP4 said:

Start your investiagtion in uiinventory.py:

	def RefreshBagSlotWindow(self):
		getItemVNum=player.GetItemIndex
		getItemCount=player.GetItemCount
		setItemVNum=self.wndItem.SetItemSlot
		
		for i in xrange(player.INVENTORY_PAGE_SIZE):
			slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i)
			
			itemCount = getItemCount(slotNumber)
			# itemCount == 0ŔĚ¸é ĽŇÄĎŔ» şńżî´Ů.
			if 0 == itemCount:
				self.wndItem.ClearSlot(i)
				continue
			elif 1 == itemCount:
				itemCount = 0
				
			itemVnum = getItemVNum(slotNumber)
			setItemVNum(i, itemVnum, itemCount)

I've done that. I had the special inventory system, and I thought it was because of that, however it didn't work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.