Jump to content
  • 0

Need help with Hitman event


Question

Posted

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

There have been no answers to this question yet

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...