Jump to content
  • 0

[Request]Java Code


•MeLe•

Question


 

Καλησπερα MaxCheaters®.

 


 

Θα ηθελα μια βοηθεια με ενα "Java Code" ενα protection για να μην περνουν PvP Reward Με Bots

 

 

Δηλαδη ενα protection να μην περνουν PvP Με Same IP και να μην γινεται να παρεις Reward αν εχεις κιλλ πανω απο μερικες Φορες το Ιδιο ατομο!

 

 

 

Χρειαζομαι Το Code  Σε Interlude Client L2J Αναλυτικοτερα L2JSigmo

 

 

[move]Χρειαζομαι Την βοηθεια Σας Ευχαριστω πολυ![/move]

 

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

+        //Anti Feed Same IP

+        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+

+        if (ip1.equals(ip2))

+        {

+        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");

+        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");

+        return;

+        }

 

 

edit: L2Pc instance katw apo to :

 

private void addItemReword(L2PcInstance targetPlayer)
  {

Link to comment
Share on other sites

  • 0

+        //Anti Feed Same IP

+        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+

+        if (ip1.equals(ip2))

+        {

+        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");

+        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");

+        return;

+        }

ma afou exeis idi protection re file gia idia ip
Link to comment
Share on other sites

  • 0

e? :S zitaei protect gia ip :s

+        //Anti Feed Same IP

+        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+

+        if (ip1.equals(ip2))

+        {

+        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");

+        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");

+        return;

+        }

autos o kodikas prostatevei apo idia IP afou, pos zitaei afou exei idi.

Link to comment
Share on other sites

  • 0

Alone ekana ena proxeiro code auto des.

public void increasePvpKills()
{
	if (isFightingInEvent())
		return;

	setPvpKills(getPvpKills() + 1);

	+addItem("Loot", 13016, 1, this, true); 
	+sendMessage("You won 1 PvP Coin for a pvp kill!");

Paidia 8elo protect gia same ip kai otan px killareis 5 fores to idio atomo na mn perneis reward xRISIMOPOIO L2JSigmo..

+        //Anti Feed Same IP
+        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+
+        if (ip1.equals(ip2))
+        {
+        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");
+        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");
+        return;
+        }

Auto dn 3erw gt alla m vgazei error

        //Anti Feed Same IP

        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

 

        if (ip1.equals(ip2))

        {

        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");

        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");

        return;

        }


Xrisimopoio L2JSigmo

Link to comment
Share on other sites

  • 0

Alone ekana ena proxeiro code auto des.

public void increasePvpKills()
{
	if (isFightingInEvent())
		return;

	setPvpKills(getPvpKills() + 1);

	+addItem("Loot", 13016, 1, this, true); 
	+sendMessage("You won 1 PvP Coin for a pvp kill!");

Paidia 8elo protect gia same ip kai otan px killareis 5 fores to idio atomo na mn perneis reward xRISIMOPOIO L2JSigmo..

+        //Anti Feed Same IP
+        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+
+        if (ip1.equals(ip2))
+        {
+        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");
+        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");
+        return;
+        }

Auto dn 3erw gt alla m vgazei error

        //Anti Feed Same IP

        String ip1 = this.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

        String ip2 = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

 

        if (ip1.equals(ip2))

        {

        this.sendMessage("Same ip farming? Gotcha tard.. Malzahax owns!");

        _log.warning("FEEDER DETECTION QQ HIM: " + this.getName() + " and " + targetPlayer.getName() +". type:SAME IP.");

        return;

        }


Xrisimopoio L2JSigmo

 

l2pcinstance create methods for getSocket (eclipse can help you) kai gia t alla

Link to comment
Share on other sites

  • 0

l2pcinstance create methods for getSocket (eclipse can help you) kai gia t alla

dn ghnete auto p les


kapios alos mporei na me help? :/ me ena full code na mn vgazei error?

Link to comment
Share on other sites

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...