Jump to content

Recommended Posts

  • Replies 16
  • Created
  • Last Reply

Top Posters In This Topic

It gives me this error

https://metin2.download/picture/8lUsvXiwyXmvwOw8xA711H1gbNj4RdZa/.png

I leave my item.cpp on attatchment so anyone can help me see whats the problem.

Thank you.

This is the hidden content, please

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 month later...

The solution to your problem is easier than you think.

Find:

	                    if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
#ifdef __CHANGELOOK_SYSTEM__
                        DWORD dwRes = GetTransmutation() != 0 ? GetTransmutation() : GetVnum();
                        m_pOwner->SetPart(PART_WEAPON, dwRes);
#else
                        m_pOwner->SetPart(PART_WEAPON, GetVnum());
#endif
	

Change:

	                    if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
#ifdef __CHANGELOOK_SYSTEM__
                    {
                        DWORD dwRes = GetTransmutation() != 0 ? GetTransmutation() : GetVnum();
                        m_pOwner->SetPart(PART_WEAPON, dwRes);
                    }
#else
                        m_pOwner->SetPart(PART_WEAPON, GetVnum());
#endif
	

And your problem will disappear ;)

Link to comment
Share on other sites

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.