Jump to content

Recommended Posts

  • Active+ Member

A simple and fast way to split items directly from your inventory.

How it works:

1.Pick up an item
2.Hold SHIFT
3.Click on empty slots in your inventory

Each click will split the item stack automatically, making inventory management much faster and easier.

INSTALLATION

 uiinventory.py
 

Search in def SelectEmptySlot:

			if player.SLOT_TYPE_INVENTORY == attachedSlotType:
				itemCount = player.GetItemCount(attachedSlotPos)
				attachedCount = mouseModule.mouseController.GetAttachedItemCount()

Add below:

				if (app.IsPressed(app.DIK_LSHIFT) or app.IsPressed(app.DIK_RSHIFT)) and itemCount > 1:
					self.__SendMoveItemPacket(attachedSlotPos, selectedSlotPos, 1)
					mouseModule.mouseController.UpdateAttachedCount(itemCount-1)
					return

 

mousemodule.py
 

Search:

	def IsAttachedMoney(self):

Add before:

	def UpdateAttachedCount(self, count):
		self.AttachedCount = count
		self.countNumberLine.SetNumber("")
		self.countNumberLine.Hide()

		if count > 1:
			self.countNumberLine.SetNumber(str(count))
			self.countNumberLine.Show()


 

PREVIEW


spacer.png

 

  • Metin2 Dev 3
  • Good 1
  • Love 1
  • Love 1
Link to comment
https://metin2.dev/topic/34224-new-split-method-qol/
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.