1. When player kills someone in pvp/pk he gains 1 coin and killed player loses 1 coin.
2. If player has no coins then he won't gain/take others coins.
3. PK loses exact a-beep-t of player kills he has or if he hasn't enough coins for that he loses all he has.
4. Coin lose/gain system works only when PVP or PK counter is changed. no arena/tvt event...
i m using last stable revision of l2jserver. is there anything like that already made or can you guys make it? or just give me some hints how to make that, where to start and so on... anything... thats only way i could figure out to make protected pvp reward system...
p.s if you know anything similar it could've been very helpful if you gave me links for those threads.
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
bonkito
I want to make pvp reward system:
1. When player kills someone in pvp/pk he gains 1 coin and killed player loses 1 coin.
2. If player has no coins then he won't gain/take others coins.
3. PK loses exact a-beep-t of player kills he has or if he hasn't enough coins for that he loses all he has.
4. Coin lose/gain system works only when PVP or PK counter is changed. no arena/tvt event...
i m using last stable revision of l2jserver. is there anything like that already made or can you guys make it? or just give me some hints how to make that, where to start and so on... anything... thats only way i could figure out to make protected pvp reward system...
p.s if you know anything similar it could've been very helpful if you gave me links for those threads.
6 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.