- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
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