Jump to content
  • 0

Anti Bot Check For Karma/pvp


Question

Posted

I have one advanced anti bot captcha , and i want to make it to dont count mobs if player if on karma or pvp mode

 

i think this should happen here

  public boolean doDie(L2Character killer)
  {
  // Antibot farm system
  AntibotSystem.sendFarmBotSignal(killer);

Here anti bot taking the info when a player kill the mob or not

 

its inside l2npc.java

 

How i could make it to dont send "signal" and counting mobs or % and don't acivate the bot ,when player is on karma , or pvp?

4 answers to this question

Recommended Posts

  • 0
Posted

Make a check inside the method

 

 

          L2Object target = player.getTarget();
           
            if (target instanceof L2RaidBossInstance || target instanceof L2GrandBossInstance || target instanceof L2PcInstance || target instanceof L2Summon)
                return false;
  • 0
Posted

The code you gave me if example i guess? XD Im not really good at this btw.. 

	public boolean doDie(L2Character killer)
	{
				// Antibot farm system
				AntibotSystem.sendFarmBotSignal(killer);
		
		if (!super.doDie(killer))
			return false;

This is how it is 

  • 0
Posted (edited)

[gr]sorry re trele xathika alla den exw xrono. tha mpw avrio na sou dosw to lib be to check ;)

Edited by NeverMore™

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

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

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 Disabled AdBlock