Jump to content

Official Transmutation / Change Look


Recommended Posts

On 3/15/2024 at 12:49 AM, Jimmermania said:

This is the fix. item.cpp , search:
 

		case ITEM_COSTUME:
			{
				DWORD toSetValue = this->GetVnum();
				EParts toSetPart = PART_MAX_NUM;
				
				if (GetSubType() == COSTUME_BODY)

Replace the whole function with this:
 

				if (GetSubType() == COSTUME_BODY)
				{
					toSetPart = PART_MAIN;
					if (false == bAdd)
					{
						const CItem* pArmor = m_pOwner->GetWear(WEAR_BODY);
#if defined(__BL_TRANSMUTATION__)
						if (pArmor != NULL)
						{
							const DWORD dwVnum = pArmor->GetVnum();
							const DWORD dwTransmutationVnum = pArmor->GetTransmutationVnum();
							toSetValue = dwTransmutationVnum != 0 ? dwTransmutationVnum : dwVnum;
						}
						else
						{
							toSetValue = m_pOwner->GetOriginalPart(PART_MAIN);
						}
#else
						toSetValue = (NULL != pArmor) ? pArmor->GetVnum() : m_pOwner->GetOriginalPart(PART_MAIN);
#endif
					}
				}

 


can u share ur
 

else if (GetSubType() == COSTUME_WEAPON)

i have same problem in costume weapon too
 

  • Good 1
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Hey,

i did everything what it says in the files but at compiling client source i get the following error:

Fehler LNK2001 Nicht aufgelöstes externes Symbol ""public: unsigned long __thiscall CItemData::GetAntiFlags(void)const " (?GetAntiFlags@CItemData@@QBEKXZ)". UserInterface

 

I hope someone can help me to fix that.

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.