Jump to content

Recommended Posts

  • 4 months later...

I have a problem, i installed this system well and when i want to unlock slots by keys nothing happend.
There is no syserr in client and server.
Type and subtype are good.
I tryied debug but it say nothing.

Can someone help me with it? ❤️

Edited by Insigin
  • 1 year later...

Hi Metin2Dev,

someone had this error and solved it? I added everything ok and still..

https://metin2.download/picture/oiAQ63bj74lMQNYX2klxhM721pyyuihP/.png/2eb96007

Thank you.

Edited by Metin2 Dev International
Core X - External 2 Internal
  • Metin2 Dev 1
  • 1 year later...

Hi everyone, again, i might be late on this one, BUT, i had a little problem with the inv_lock image positioning.

They were offplace by a little margin. I found a way to fix this in uiinventory.py:

 

def __CreateExtendInvenButton(self):
			# Parent to the slot window so we’re in the same local coordinate space
			slotWnd = self.GetChild("ItemSlot")

			self.ExInvenButton = []

			board = self.GetChild("board")
			bL, bT = board.GetGlobalPosition()
			sL, sT = slotWnd.GetGlobalPosition()
			start_x = (sL - bL) + 2
			start_y = (sT - bT) + 2

			# Use the actual Y step your grid uses. 32 the default i guess, but
			# if you see a 1px drift per row, try 33 or 31.
			SLOT_Y_STEP = 32

			for button_index in range(player.INVENTORY_LOCKED_PAGE_COUNT * 9):
				btn = ui.Button()
				btn.SetParent(board)  # parent is board; positions are in board coords we computed above
				row = button_index % 9
				btn.SetPosition(start_x, start_y + row * SLOT_Y_STEP)
				btn.SetUpVisual(EX_INVEN_COVER_IMG_CLOSE)
				btn.SetOverVisual(EX_INVEN_COVER_IMG_CLOSE)
				btn.SetDownVisual(EX_INVEN_COVER_IMG_CLOSE)
				btn.SetDisableVisual(EX_INVEN_COVER_IMG_CLOSE)
				btn.SetEvent(ui.__mem_func__(self.__ClickExtendInvenButton), button_index)
				btn.Hide()
				self.ExInvenButton.append(btn)

So, instead of hardcoding the coordinates where the inv_lock should "spawn", we anchor to the actual ItemSlot position to compute it.

  • 1 month later...
On 10/16/2025 at 12:41 PM, RobinHoodye said:

anyone have idea why covers only work if put item in inv 3 and inv 4 have missing cover of inv 3 unlocked 
.gif

It probably has to do with the inventory refresh. Check the implementation again where the code creates and assign the inventory locks.

  • 1 month later...
  • 2 months later...
  • 2 weeks later...

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.