However i want to add some restrictions to it for example:
If a player requested to kill some1, and then he (or some1 from the same network) makes the kill, then it wont count, so he will get karma.
Anyone can look at the code below and tell me what its not working? problem is that i reuqested a kill then killed the requested target but still didnt get karma.
I’ve worked with a few video editors before, and it really makes a difference when they’ve had hands-on training. One of the guys I teamed up with had studied at https://www.praguefilminstitute.cz and the quality was on another level—clean transitions, solid color grading, and he actually understood timing for gaming content. If you're looking for someone serious, check if they’ve got that kind of background.
Question
leomade
Can someone help me please with the following code?
I took hitman event from:
http://maxcheaters.com/forum/index.php?topic=190897.30
However i want to add some restrictions to it for example:
If a player requested to kill some1, and then he (or some1 from the same network) makes the kill, then it wont count, so he will get karma.
Anyone can look at the code below and tell me what its not working? problem is that i reuqested a kill then killed the requested target but still didnt get karma.
PlayerToAssasinate pta = Hitman.getInstance()._targets.get(targetPlayer.getObjectId()); String name = Hitman.getInstance().getOfflineData(null, pta.getClientId())[1]; L2PcInstance client = L2World.getInstance().getPlayer(name); if(getClient().getConnection().getInetAddress() != client.getClient().getConnection().getInetAddress()) { return; } else if(getClanId() != 0 || targetPlayer.getClanId() != 0) { if(getClanId() != targetPlayer.getClanId()) { return; } }this check is done on l2pcinstance at public void onKillUpdatePvPKarma(L2Character target)
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now