INSERT INTO `items` (`owner_id`,`object_id`,`item_id`,`count`,`enchant_level`,`loc`,`loc_data`,`custom_type1`,`custom_type2`,`mana_left`) VALUES ('".$char['obj_Id']."',(SELECT MAX(object_id)+1 FROM items AS object_id),'".$item."','1','".$row['enchant_level']."','INVENTORY',0,0,0,-1)
then at same time game server overwrite me insered item with same object id? because some time it just put without any error, but in table the row wrong.. cant find problem
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
wongerlt
Hello is possible?
Im with php insered item, example:
INSERT INTO `items` (`owner_id`,`object_id`,`item_id`,`count`,`enchant_level`,`loc`,`loc_data`,`custom_type1`,`custom_type2`,`mana_left`) VALUES ('".$char['obj_Id']."',(SELECT MAX(object_id)+1 FROM items AS object_id),'".$item."','1','".$row['enchant_level']."','INVENTORY',0,0,0,-1)
then at same time game server overwrite me insered item with same object id? because some time it just put without any error, but in table the row wrong.. cant find problem
2 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.