[Fix] Bug fix for TransformCha() function (character transformation)
Hello friends!
I think many people know about the bug associated with the TransformCha() function, when using it, the character's hat disappears. In this thread I will show you how to fix this bug.
Thanks to @Де-Компанье for the solution!
1) Open GameServer.exe with the character transformation function (TransformCha()) in any HEX editor. For example, in HxD.
2) Find the sequence of bytes:
05 98 00 00 00 89 45 EC 8B 45 FC 05 32 6E 00 00 8B 5D F8 89 18 8B 45 FC 83 C0 58 8B 5D F8 89 18 6A 00
3) Replace these bytes with the following ones:
05 98 00 00 00 89 45 EC 8B 45 FC 50 05 32 6E 00 00 8B 5D F8 66 89 18 58 83 C0 58 8B 5D F8 89 18 6A 00
4) Save the changes.
Now, when transforming character, the hat will not disappear.