Jump to content

How to remove one item from stack


Recommended Posts

  • 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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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