Jump to content

Invisible Bug Fix 34k


Recommended Posts

  • Former Staff

Hey i found a Dif by Inverss that should fix the invisibility bug on 34083 game.
Even though there is the fact its not made by me i want to release it here because its so important and belongs to the MUST HAVE stuff.
 

Dif

Spoiler

 

Here is it:


00025B1E: D7 CB
data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==

It changes an affect casted on the character on appearing (login, revive)

 

 

C++

Spoiler

Well, this is just a workaround, if you want to fix it correctly just open char.cpp, search for void CHARACTER::OnMove(bool bIsAttack)

and delete or comment these two strings:
 


if (IsAffectFlag(AFF_REVIVE_INVISIBLE))
RemoveAffect(AFFECT_REVIVE_INVISIBLE);

 

 

  • Love 2
Link to comment
Share on other sites

  • Premium

source c++ fix?

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Well, this is just a workaround, if you want to fix it correctly just open char.cpp, search for void CHARACTER::OnMove(bool bIsAttack)

 

7xjN5.png

 and delete or comment these two strings:
if (IsAffectFlag(AFF_REVIVE_INVISIBLE))

RemoveAffect(AFFECT_REVIVE_INVISIBLE);
 
7xjRL.png
 
Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 6
Link to comment
Share on other sites

 

Well, this is just a workaround, if you want to fix it correctly just open char.cpp, search for void CHARACTER::OnMove(bool bIsAttack)

 

7xjN5.png

 and delete or comment these two strings:

if (IsAffectFlag(AFF_REVIVE_INVISIBLE))

RemoveAffect(AFFECT_REVIVE_INVISIBLE);

 

7xjRL.png

 

 

 

I tried it with IDA:

7xoDY.png

 

Diff:

This difference file is created by The Interactive Disassembler

game_r34083_32_striped
00027479: E8 90
0002747A: 82 90
0002747B: 60 90
0002747C: 01 90
0002747D: 00 90
00027480: 75 90
00027481: 20 90

Till now I wasn't invisible.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 1 month later...
  • Active Member

And what about char_skill.cpp ?

if ((0 != pkSk->dwAffectFlag || pkSk->dwVnum == SKILL_MUYEONG) && (pkSk->dwFlag & SKILL_FLAG_TOGGLE) && RemoveAffect(pkSk->dwVnum))
	{
		return true;
	}

	 if (IsAffectFlag(AFF_REVIVE_INVISIBLE))
		RemoveAffect(AFFECT_REVIVE_INVISIBLE); 
Link to comment
Share on other sites

 

And what about char_skill.cpp ?

if ((0 != pkSk->dwAffectFlag || pkSk->dwVnum == SKILL_MUYEONG) && (pkSk->dwFlag & SKILL_FLAG_TOGGLE) && RemoveAffect(pkSk->dwVnum))
	{
		return true;
	}

	 if (IsAffectFlag(AFF_REVIVE_INVISIBLE))
		RemoveAffect(AFFECT_REVIVE_INVISIBLE); 

 

Already you are deleted in char.cpp invisibility bug fixed and this line not work if you want, you can remove it.

 

Best Regards

Aveline

Plain logic saves lives.

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.