Jump to content

Metin2 - 4 Inventory Page


Recommended Posts

 

when i have my inventory 1 and 2 full and would trade get i the massage that i no empty slots have but i have 5 inventorys

 

You are add something codes in exchange.cpp?

 

Kind Regards

HaveBeen

 

 

I have change line 414 - 461

		else
		{
			int iPos = s_grid1.FindBlank(1, item->GetSize());

			if (iPos >= 0)
			{
				s_grid1.Put(iPos, 1, item->GetSize());
			}
			else
			{
				iPos = s_grid2.FindBlank(1, item->GetSize());

				if (iPos >= 0)
				{
					s_grid2.Put(iPos, 1, item->GetSize());
				}
				else
				{
					iPos = s_grid3.FindBlank(1, item->GetSize());

					if (iPos >= 0)
					{
						s_grid3.Put(iPos, 1, item->GetSize());
					}
					else
					{
						iPos = s_grid4.FindBlank(1, item->GetSize());

						if (iPos >= 0)
						{
							s_grid4.Put(iPos, 1, item->GetSize());
						}
						else
						{
							iPos = s_grid5.FindBlank(1, item->GetSize());

							if (iPos >= 0)
							{
								s_grid5.Put(iPos, 1, item->GetSize());
							}
							else
							{
								return false;
							}
						}
					}
				}
			}

and this:

	static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 5); // inven page 1
	static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 5); // inven page 2
	static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 5); // inven page 3
	static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 5); // inven page 4
	static CGrid s_grid5(5, INVENTORY_MAX_NUM/5 / 5); // inven page 5

	s_grid1.Clear();
	s_grid2.Clear();
	s_grid3.Clear();
	s_grid4.Clear();
	s_grid5.Clear();
Link to comment
Share on other sites

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.