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

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.