Jump to content
  • 0

[help]


AQueen
 Share

Question

Παιδια χρειαζομαι εναν code anti feed same ip εχω l2j interlude compile δοκιμασα αυτον http://www.maxcheaters.com/forum/index.php?topic=171893.0 αλλα μου βγαζει error :( pls help...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Αυτα που σου εχω checkarei φιλε μου look:

 

package net.sf.l2j.gameserver;

 

import java.net.InetAddress;

 

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

import net.sf.l2j.gameserver.network.L2GameClient;

 

public class AntiFeed

{

public static boolean antiFeed(L2PcInstance killed, L2PcInstance killer)

        {

               

                final L2GameClient killedClient = killed.getClient();

                final L2GameClient killerClient = killer.getClient();

               

                InetAddress killerip = killerClient.getConnection().getInetAddress();

                InetAddress killedip = killedClient.getConnection().getInetAddress();                

               

                //Check the IP address.

                if (killerip.equals(killedip)) return false;

                //Check party

                if (killer.getParty().equals(killed.getParty())) return false;

                //Check clan

                if (killer.getClanId() == killed.getClanId()) return false;

               

 

 

                return true;

        }

}

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.

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.

 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock