Jump to content

[BUG] When Equip & mount then unmount


Recommended Posts

  • Premium

Hello guys,

 

 

Can anyone help me to fix this fc..... shit of bugg is getting the way to sucide almost..

 

 

This bugg happen first like this.

 https://metin2.download/picture/F2wbYglMvaf4770F3T2kOcMBrrQpla06/.gif

Explanation:  When i equip the weapon with our without transmutate the weapon  then i mount on Horse the weapon disappears and unmount also  happen on " Mounts"  or when using a Skill 

 

Then i in Discord @flexio  helped me to do one thing i did this  in my "char.cpp"  was this unusual function:

 

In

void CHARACTER::EncodeInsertPacket(LPENTITY entity)

 I just removed this:

CItem * pWeapon = GetWear(WEAR_COSTUME_WEAPON);
	if (pWeapon)
		SetPart(PART_WEAPON, pWeapon->GetVnum());	

Result: 

 

NOW the bugg was fixed and work but only if i create a new CHARACTER   when i ask to a old user with this Bugg they said me that the still have that bugg 

 

How can i fix it please help me am able to pay for the fix:)

You can find me in Mt2dev discord or leave comment here Please am helpless right now for this error :( i need really fix i hope you great people help with this fix :)

 

I Can Pay for the Fix if anyone can fix it :)

Thank you very Much

Waiting for responsee............... 

 

 

 

Edited by Metin2 Dev
Core X - External 2 Internal

" Don`t pretend things change if you always do the same thing"

"Don`t give up on a dream for how long it will take, time will pass the same"

Link to comment
Share on other sites

  • Contributor

"NOW the bugg was fixed and work but only if i create a new CHARACTER   when i ask to a old user with this Bugg they said me that the still have that bugg"

 

I just can't beleive in it :D It's not how programming work, especially not serverside. Can you proof it showing an old char and a new char next to each other with same class and same weapon?

 

Edited by TMP4
Link to comment
Share on other sites

  • Premium

@TMP4

 

Here i post the proof  https://metin2.download/picture/nAW1vCdR8DaFs494Y8fOu3iN2jtTwlXd/.gif

 i hope someone will help me :(

Edited by Metin2 Dev
Core X - External 2 Internal

" Don`t pretend things change if you always do the same thing"

"Don`t give up on a dream for how long it will take, time will pass the same"

Link to comment
Share on other sites

  • Premium

@weedhex

 i have cheked x10 in very slow motion jajaja  to say all the fck....... night i didn`t find any other and thing where error occured

 

The problem was fixed for all but why still have on "old" chars and not on new char

Edited by Arkane2

" Don`t pretend things change if you always do the same thing"

"Don`t give up on a dream for how long it will take, time will pass the same"

Link to comment
Share on other sites

  • Premium

Solucion:

 

Char.cpp  >  

WORD CHARACTER::GetOriginalPart(BYTE bPartPos) const

 

In that function  look for this > 

       

case PART_WEAPON:
            return GetPart(PART_WEAPON);

 

i just add like this 

 

#if defined(CHANGELOOK_SYSTEM) && !defined(WEAPON_COSTUME_SYSTEM)
        case PART_WEAPON:
            return GetPart(PART_WEAPON);
#endif

 

This item.cpp part made by @MrQuin  thanks to him :)

 item.cpp 

 

search for >  

		case ITEM_WEAPON:
			{
				if (0 != m_pOwner->GetWear(WEAR_COSTUME_WEAPON))
					break;

				if (bAdd)
				{

 

above add

 

	if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
					{

 

  • Love 1

" Don`t pretend things change if you always do the same thing"

"Don`t give up on a dream for how long it will take, time will pass the same"

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.