Jump to content

Recommended Posts

  • Active+ Member

 

 
This is the hidden content, please

Hello. For servers which don't use fast pickup (like 1 click and everything is in inventory) here's small q&l. Hold ~ or Z key down to pick item.

Preview:

.gif

 

 

  • Metin2 Dev 77
  • kekw 3
  • Flame 1
  • Good 13
  • muscle 1
  • Love 2
  • Love 40
Link to comment
https://metin2.dev/topic/31922-pickup-items-when-holding-down-z~/
Share on other sites

  • 8 months later...
  • Active+ Member

Cool! I can confirm is working as mentioned in the post and its a great release!

Just one thing: If you have enabled the Pick-Up animation, a strange "bug" is occurring, like if you hold the Z or ~, the character freezes until you release the buttons. This is because of how the animation is working. 

The animation is starting from the beginning everytime when you press the pick up button, so, by holding it, the animation will get stuck in the first frame. 

 

This is a bug that is occurring regarding of how the animation is working, not related to this post but I wanted to mention for visibility for others. maybe someone will have the same problem as me. (I'm still looking for solutions since i don t know programming)

 

  • Good 2
  • 3 weeks later...
  • Active+ Member

An archive update will be available probably tomorrow once the migration is done as such option is unavailable for now.

Added check to prevent picking up items while typing in chat etc [editline].

Here updated lines:

Spoiler

 

void CPythonApplication::OnKeyDown(int iIndex)
{
	UI::CWindowManager& rkWndMgr=UI::CWindowManager::Instance();
#ifdef PICK_ITEMS_DOWN_KEY
	CPythonPlayer & rkPlayer = CPythonPlayer::Instance();
	bool ImeStatus = CPythonIME::Instance().IsCaptureEnabled();
	if ((DIK_Z == iIndex || DIK_GRAVE == iIndex) && !ImeStatus)
	{
		rkPlayer.SetPickKeyState(true);
		return;
	}
#endif

	if (DIK_ESCAPE == iIndex)
	{
		rkWndMgr.RunPressEscapeKey();
	}

	rkWndMgr.RunKeyDown(iIndex);
}

void CPythonApplication::OnKeyUp(int iIndex)
{
	UI::CWindowManager& rkWndMgr=UI::CWindowManager::Instance();
#ifdef PICK_ITEMS_DOWN_KEY
	CPythonPlayer & rkPlayer = CPythonPlayer::Instance();
	bool ImeStatus = CPythonIME::Instance().IsCaptureEnabled();
	if ((DIK_Z == iIndex || DIK_GRAVE == iIndex) && !ImeStatus)
	{
		rkPlayer.SetPickKeyState(false);
		return;
	}
#endif
	rkWndMgr.RunKeyUp(iIndex);
}
Edited by m2Ciaran
Core X - External 2 Internal
  • Love 1
  • Active+ Member

Niceee! Thank you M2Ciaran! I'll add it asap ❤️ 

 

Also, Here I provided a "not profesional" solution but working for sure,  for multiple issues regarding pickup animation and your system (i've mentioned it below at some point): 

 

sharing the above for visibility. 

 

  • 1 year later...

it is possible items picked up by group member to stack as well? because they are not automatically stacking. Or maybe to block them to pick them up

Edited by minigutza
  • 4 months 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.