I open the l2j server and see
1. XOR->NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt()); ---> XOR can also be taken from l2j
2. _staticCrypt.crypt(raw, offset, size);
----->
I scroll down the code and see this code
----->
===================================================
I'm transferring this code to C#
And in c# I first do decryptBlock and then XOR and everything works, I get the package
and the first 2 bytes have already been removed as far as I remember
This only works for the login server.
The blowfish encryption key is used static, it can be found in the l2j server
Question
abecikxp
Hey any body know how fix this error in db ?
I have imported db from Dvamp files but i have errors when try run kation files , on clear db all works perfect but i want use old db.
03/18/2013 17:49:17.937, fetch errorś
03/18/2013 17:49:17.937, sqlstate 22003
03/18/2013 17:49:17.937, msgText [Microsoft][ODBC SQL Server Driver]Numeric value out of range
03/18/2013 17:49:17.937, sql EXEC lin_GetUserDataByCharId 249763
03/18/2013 17:49:17.937, [.\User.cpp][4243] undefined (or unregistered) char Id[249763]
03/18/2013 17:49:17.937, --- call stack ---
10 answers to this question
Recommended Posts