Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

[BUG] When Equip & mount then unmount


ALF

Question

  • VIP
Posted (edited)

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://gyazo.com/53485f108ef06f9b006ef980e6d4b9e7

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 Arkane2 (see edit history)

" 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 post

8 answers to this question

Recommended Posts

  • 0
  • VIP

up

" 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 post
  • 0
Posted (edited)

"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 (see edit history)
Link to post
  • 0
  • VIP
Posted (edited)

@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 (see edit history)

" 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 post
  • 0
  • VIP

#Solved 

 

Thank you for your support :)❤️

" 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 post
  • 0
  • VIP

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 post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.