Jump to content

Fix Accessory Bug - 0 Minutes when Create a Jewel


Metin2 Dev

Recommended Posts

  • Bot

item_manager.cpp:

 

go to the bottom of the "LPITEM ITEM_MANAGER::CreateItem" Function

 

Find this:

 

	else if (item->GetType() == ITEM_UNIQUE)
	{
		for (itertype (m_map_pkSpecialItemGroup) it = m_map_pkSpecialItemGroup.begin(); it != m_map_pkSpecialItemGroup.end(); it++)
		{
			if (it->second->m_bType == CSpecialItemGroup::SPECIAL && it->second->Contains(vnum))
			{
				item->SetSIGVnum(it->first);
			}
		}
	}

	if (item->IsDragonSoul() && 0 == id)
	{
		DSManager::instance().DragonSoulItemInitialize(item);
	}
	return item;
}

REPLACE WITH THIS:

	else if (item->GetType() == ITEM_UNIQUE)
	{
		for (itertype (m_map_pkSpecialItemGroup) it = m_map_pkSpecialItemGroup.begin(); it != m_map_pkSpecialItemGroup.end(); it++)
		{
			if (it->second->m_bType == CSpecialItemGroup::SPECIAL && it->second->Contains(vnum))
			{
				item->SetSIGVnum(it->first);
			}
		}
	}
	//FIX!!!
	if (item->IsAccessoryForSocket()) {
		item->SetSocket(0, 0);
		item->SetSocket(1, 0);
		item->SetSocket(2, 0);
	}
	//END OF FIX!!!
	if (item->IsDragonSoul() && 0 == id)
	{
		DSManager::instance().DragonSoulItemInitialize(item);
	}
	return item;
}

 

 

THIS FIX NOW IS FREE, MARTY SAMA SELL THIS FOR 20€... THAT NOOB!

english_banner.gif

Link to comment
Share on other sites

  • Active+ Member

I seen this on 2089 game (3-4 years ago), but is not actually a bug and the "fix" is not in server source.

Check item_proto -> GainSocket collumn (for accessories need to pe 0) =)))

I don't know why you try to fix everything on server source. To look smart ? 

		if (table->bGainSocketPct)
			item->AlterToSocketItem(table->bGainSocketPct);

 

  • Love 2
Link to comment
Share on other sites

  • Premium

At least the people you always mention are recognized, for good or bad, in their area.

They're not like you who renames functions(community projects from chinese boards)into "frankie_hook".

Continuing to be "the best" will lead you no where, just do your own stuff and don't involve 3rd parties or you will always get unwanted attention.

On: thanks for fix.

  • Love 1
Link to comment
Share on other sites

  • Premium
Il y a 15 heures, M2BobFixed a dit :

THIS FIX NOW IS FREE, MARTY SAMA SELL THIS FOR 20€... THAT NOOB!

What is your obsession with marty ? He's only selling sources and other services but I don't think he's selling these kind of fix - appart from his sources - for X€

Anyways, thanks for the fix but you can do it simply with item_proto

Link to comment
Share on other sites

  • Bot
7 hours ago, Abel(Tiger) said:

I seen this on 2089 game (3-4 years ago), but is not actually a bug and the "fix" is not in server source.

Check item_proto -> GainSocket collumn (for accessories need to pe 0) =)))

I don't know why you try to fix everything on server source. To look smart ? 


		if (table->bGainSocketPct)
			item->AlterToSocketItem(table->bGainSocketPct);

 

Good idea. :)

english_banner.gif

Link to comment
Share on other sites

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 2

      Feeding game source to LLM

    2. 0

      Target Information System

    3. 2

      Feeding game source to LLM

    4. 2

      anti exp explanation pls

    5. 2

      Feeding game source to LLM

    6. 2

      anti exp explanation pls

    7. 0

      [GR2] Positioning an object added with "Attach"

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.