Jump to content

Recommended Posts

hi, i have bug invisible, when i have dead, and start again, i invisible 2-3min, but i in source  in char.cpp del:

if (IsAffectFlag(AFF_REVIVE_INVISIBLE))

RemoveAffect(AFFECT_REVIVE_INVISIBLE);
 
 

but don`t helped it... how to fix?

Edited by bumxd
Link to comment
https://metin2.dev/topic/7418-invisible-bug/
Share on other sites

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

Open char_affect.cpp and find:

bool CHARACTER::RemoveAffect(CAffect * pkAff)

After

    if (AFFECT_REVIVE_INVISIBLE != pkAff->dwType)
		ComputePoints();

Add

    else
		UpdatePacket();

And it should look like this:

	ComputeAffect(pkAff, false);

	if (AFFECT_REVIVE_INVISIBLE != pkAff->dwType)
		ComputePoints();
	else
		UpdatePacket();

	CheckMaximumPoints();

 

This is the fix, as I remember. If it's not working, leave a reply. I'll search the original topic.

Link to comment
https://metin2.dev/topic/7418-invisible-bug/#findComment-47609
Share on other sites

Open char_affect.cpp and find:

bool CHARACTER::RemoveAffect(CAffect * pkAff)

After

    if (AFFECT_REVIVE_INVISIBLE != pkAff->dwType)
		ComputePoints();

Add

    else
		UpdatePacket();

And it should look like this:

	ComputeAffect(pkAff, false);

	if (AFFECT_REVIVE_INVISIBLE != pkAff->dwType)
		ComputePoints();
	else
		UpdatePacket();

	CheckMaximumPoints();

 

This is the fix, as I remember. If it's not working, leave a reply. I'll search the original topic.

maybe so?

 

if (AFFECT_REVIVE_INVISIBLE != pkAff->dwType)
	{
		ComputePoints();
	}
	else
	{
		UpdatePacket();
	}
Link to comment
https://metin2.dev/topic/7418-invisible-bug/#findComment-47701
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.