Jump to content

Sash unequip problem


Go to solution Solved by Syreldar,

Recommended Posts

  • Contributor

in item_proto.txt make sure that the item that you collect 40 times (forget it's name in english) , make it's id from 85000 to 85009 and pack the item_proto and see what happens

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113552
Share on other sites

14 minutes ago, MrQuin said:

in item_proto.txt make sure that the item that you collect 40 times (forget it's name in english) , make it's id from 85000 to 85009 and pack the item_proto and see what happens

i already have the fine cloth as 85009..

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113554
Share on other sites

  • Honorable Member

Show me your SetAcce method on InstanceBase.cpp.

  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113555
Share on other sites

void CInstanceBase::SetAcce(DWORD dwAcce)
{
	if (!IsPC())
		return;
	
	if (IsPoly())
		return;
	
	dwAcce += 85000;
	ClearAcceEffect();
	
	float fSpecular = 65.0f;
	fSpecular /= 100.0f;
	m_awPart[CRaceData::PART_ACCE] = dwAcce;
	
	CItemData * pItemData;
	if (!CItemManager::Instance().GetItemDataPointer(dwAcce, &pItemData))
		return;
	
	m_GraphicThingInstance.AttachAcce(pItemData, fSpecular);
	#ifdef ENABLE_OBJ_SCALLING
	DWORD dwRace = GetRace(), dwPos = RaceToJob(dwRace), dwSex = RaceToSex(dwRace);
	dwPos += 1;
	if (dwSex == 0)
		dwPos += 5;
	
	float fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ;
	if (pItemData->GetItemScale(dwPos, fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ))
	{
		m_GraphicThingInstance.SetScale(fScaleX, fScaleY, fScaleZ, true);
		if (m_kHorse.IsMounting())
			fPositionZ += 10.0f;
		
		m_GraphicThingInstance.SetScalePosition(fPositionX, fPositionY, fPositionZ);
	}
	#endif
}

 

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113556
Share on other sites

  • Honorable Member
  • Solution
2 minutes ago, Paikei said:


 

 

 

take this part:

	dwAcce += 85000;
	ClearAcceEffect();

Change into:

	__ClearAcceEffect();
	if (dwAcce == 0)
	{
		m_GraphicThingInstance.AttachAcce(false, 0);
		return;
	}

	dwAcce += 85000;

 

  • Love 2

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113557
Share on other sites

11 minutes ago, Syreldar said:

take this part:


	dwAcce += 85000;
	ClearAcceEffect();

Change into:


		__ClearAcceEffect();
		if (dwAcce == 0)
		{
			m_GraphicThingInstance.AttachAcce(false, 0);
			return;
		}

		dwAcce += 85000;

 

Thank you so much, it works now! :)

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113558
Share on other sites

  • Honorable Member
Just now, Paikei said:

Thank you so much, it works now! :)

A "like" and "solved" is enough. No problem.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113559
Share on other sites

  • Bot

I had that same problem, and I solved it thanks to this response from @ManiacRobert (I found the solution a little weird since I would never have thought that the problem would be there, but it worked)

Likewise, thank you @Syreldar for this solution that looks more elaborate.

4 hours ago, Syreldar said:

Change into:


	__ClearAcceEffect();
	if (dwAcce == 0)
	{
		m_GraphicThingInstance.AttachAcce(false, 0);
		return;
	}

	dwAcce += 85000;

 

english_banner.gif

Link to comment
https://metin2.dev/topic/20945-sash-unequip-problem/#findComment-113564
Share on other sites

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.