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 

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