LCKB
Class change card - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Class change card (/showthread.php?tid=5047)



- Desarija - 05-02-2023


Hello, 

I have created an item that allows me to change my main character class at Crean, for example from Knight to Titan. Everything works fine, but apparently the character animations are not changed correctly so the character goes into a broken state like in the image below. As soon as I try to move around my client crashed with Send Error.



I have tried to fix it with the SetAnimation function but that didn't work. Has anyone done this before and can give me a hint?

Of course I could avoid this by forcing a disconnect/relog but that's not my prefered solution.




- dethunter12 - 05-02-2023


When changing the Class you should always push a relog to reset the animations etc. You will get alot of errors / glitches if not. you can do something like 

{
CNetMsg::SP rmsg(new CNetMsg);
ResponseClient::makeExRestart(rmsg, 1);
SEND_Q( rmsg, pc->m_desc );
}

pc->m_desc->returnToCharacterSelectMode();