Jump to content

Small bug with belt system


Go to solution Solved by xP3NG3Rx,

Recommended Posts

  • Management

Hello

After I implemented transmutation system (or change look system) I've got this small bug on the belt system:

This happens after I use a belt and put something on those slots, but after teleportation the slots return to their normal state.

Someone can help me?

Thank you

raw

raw

Link to comment
Share on other sites

  • Honorable Member
  • Solution

The system was written like that, it modify the CoverButton image of the slot  and don't reset back to the base.

Open your uiInventory.py and search the RefreshSlot function of the BeltInventoryWindow class, and replace it with this:

	def RefreshSlot(self):
		getItemVnum=player.GetItemIndex
		for i in xrange(item.BELT_INVENTORY_SLOT_COUNT):
			slotNumber = item.BELT_INVENTORY_SLOT_START + i
			self.wndBeltInventorySlot.SetCoverButton(slotNumber,
				"d:/ymir work/ui/game/quest/slot_button_01.sub",\
				"d:/ymir work/ui/game/quest/slot_button_01.sub",\
				"d:/ymir work/ui/game/quest/slot_button_01.sub",\
				"d:/ymir work/ui/game/belt_inventory/slot_disabled.tga", False, False)
			self.wndBeltInventorySlot.SetItemSlot(slotNumber, getItemVnum(slotNumber), player.GetItemCount(slotNumber))
			self.wndBeltInventorySlot.SetAlwaysRenderCoverButton(slotNumber, True)

			if player.IsAvailableBeltInventoryCell(slotNumber):
				self.wndBeltInventorySlot.EnableCoverButton(slotNumber)
			else:
				self.wndBeltInventorySlot.DisableCoverButton(slotNumber)

		self.wndBeltInventorySlot.RefreshSlot()

 

  • Metin2 Dev 1
  • Love 3
Link to comment
Share on other sites

  • 4 months later...

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.