Jump to content

Recommended Posts

Hi guys

im searching for a fix that removes only one item from stack:
i have 20 experience rings in stack when i use one it use all 20 i want to make it automaticly remove and wear one of them and keep rest in eq.

 

can somewon help me?

Link to comment
https://metin2.dev/topic/21620-how-to-remove-one-item-from-stack/
Share on other sites

  • Honorable Member
52 minutes ago, neversayyes9981 said:

Hi guys

im searching for a fix that removes only one item from stack:
i have 20 experience rings in stack when i use one it use all 20 i want to make it automaticly remove and wear one of them and keep rest in eq.

 

can somewon help me?

//Find at char_item.cpp

	if (true == item->IsEquipped())
	{

///Add

		if (item->GetCount() > 1) {
			AutoGiveItem(item->GetVnum(), item->GetCount() - 1, -1, false);
			item->SetCount(1);
		}

For stackable rings are using USE_AFFECT. I think you should use this

  • Love 1

 

6 minut temu, Mali61 napisał:

//Find at char_item.cpp


	if (true == item->IsEquipped())
	{

///Add


		if (item->GetCount() > 1) {
			AutoGiveItem(item->GetVnum(), item->GetCount() - 1);
			item->SetCount(1);
		}

For stackable rings are using USE_AFFECT. I think you should use this

will this work also for wind shoes and thief gloves?

2 minuty temu, Mali61 napisał:

I got it worng. He is not looking for this, sorry.

Code is for:

https://youtu.be/KMk2hDFcuhQ

and your question:Yes

 

thank you really much, you dont even know how long i was searching for a fix

  • 4 years 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.