Normally i'd create a new Demonstration object inside the Main class to call its method. However, when it comes to l2j i dont know how to actually execute the code from inside the game.
I can write newbie code but i cant even test if it is actually working!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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
Malfey
Greetings mxc community,
This is will be the most silly question that you'd ever heard from someone and apologize for that..
I will try to demonstrate my issue so you guys can clearly understand it.
Let's say that i have the following class inside one package
Normally i'd create a new Demonstration object inside the Main class to call its method. However, when it comes to l2j i dont know how to actually execute the code from inside the game.
I can write newbie code but i cant even test if it is actually working!
Any help would be highly appreciated
Thank you
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.