Jump to content

[Share]Pvp Boting Protection


Kяaσh

Recommended Posts

same ip protection in big servers highly increase the network traffic...conclusion not a good idea to have it

well an easy way to fix this (even though i dont believe it can increase the traffic in a lvl where u gonna have problems :/) would be to store the character's ip in a custom column in the database when he logins... so the pvp check will read the ip from there..

Link to comment
Share on other sites

Nive share bro!!Keep the good work!

off topic: in every share where i already check the only think where you say is this :

Nive share bro!!Keep the good work!

anywayzzzz....

on topic : IMO my pvp boting protection is better than the other :D

Link to comment
Share on other sites

  • 2 weeks later...

First of all thanks man...i'll take your script its useful  for me...On my server if someone takes pvp is been awarded, so someone with his friend can bug the server by killing its other for taking pvps and the award ....

Link to comment
Share on other sites

it is useless, because all we know all is farming pvp ... and who care? maby on server where can get rewards with pvps....

 

 

 

And for which servers do you think is this share? :D

 

Ofc its kinda useless for "normal" servers but for servers where pvp rewards are given or the faction system is activated this share comes in handy.

Link to comment
Share on other sites

if someone kill the some character more than 1 time dont take pvp point (lol)

well for faction server's it may be good (propablY)

but for the boting pvp protection you can make something else like :

if someone try to increase his pvp point's from the SAME IP ADDRESS

       // Check if it's pvp

	String attacker = getClient().getConnection().getInetAddress().getHostAddress();
	String attacked = targetPlayer.getClient().getConnection().getInetAddress().getHostAddress();

	if (attacker.equals(attacked))
	{
		sendMessage("What you though? You cannot use dumb exploit's NOOB!");
		return;
	}
	if (
			(
					checkIfPvP(target) &&            //   Can pvp and
					targetPlayer.getPvpFlag() != 0   //   Target player has pvp flag set
			) ||                                     // or
			(
					isInsideZone(ZONE_PVP) &&         		 //   Player is inside pvp zone and
					targetPlayer.isInsideZone(ZONE_PVP) 	 //   Target player is inside pvp zone
			)
	)
	{
            increasePvpKills();
	}
	else                                                                        // Target player doesn't have pvp flag set
	{
            // check about wars
            if (targetPlayer.getClan() != null && getClan() != null)
            {
                if (getClan().isAtWarWith(targetPlayer.getClanId()))
                {
                    if (targetPlayer.getClan().isAtWarWith(getClanId()))
                    {
                        // 'Both way war' -> 'PvP Kill'
                        increasePvpKills();
                        return;
                    }
                }
            }
            
            // 'No war' or 'One way war' -> 'Normal PK'
    		if (attacker.equals(attacked))
    		{
    			sendMessage("What you though? You cannot use dumb exploit's NOOB!");
    			return;
    		}
            else if (targetPlayer.getKarma() > 0)                                        // Target player has karma
		{
			if ( Config.KARMA_AWARD_PK_KILL )
			{
                    increasePvpKills();
			}
		}
		else if (targetPlayer.getPvpFlag() == 0)                                                                    // Target player doesn't have karma
		{
			if (attacker.equals(attacked))
			{
				sendMessage("What you though? You cannot use dumb exploit's NOOB!");
				return;
			}

this is the protection for same IP w/e and your's it's correct

 

 

 

This works ?

Link to comment
Share on other sites

But there is no sense with the same IP. I was doing pvp points with friend, once I was killin a low lvl char of friend, then we swapped our roles and he was killing my low lvl char.

It,s not easy for lvl 5 char to hit a lvl 78, but possible, and when there are rewards for pvp point such protection is a must.

Thx for share.

Link to comment
Share on other sites

χαχα no if someone is at a net and do pvp with other one ? xD

if they are from net then they have to be friends and thats pvp farming (for me) plus its their fault they play from net lol.. nodays an internet connection and a pc costs almost nothing.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...