Jump to content
  • 0

I search a command to go to player with pvp kills, 10 kills for examples


dark5

Question

Recommended Posts

  • 0

I search that for this system of pvp or other system pvp,http://www.maxcheaters.com/forum/index.php?topic=78071.0

I want it for l2j server

please help me

thanks =)

 

This code is for l2j.But for what client do you want it?

Link to comment
Share on other sites

  • 0

Wait.

 

Go again at this link : http://www.maxcheaters.com/forum/index.php?topic=78071.0

 

And look again what Maestro says :

 

This is for last rev l2j CT3 but it can be made for other chronicles too

Link to comment
Share on other sites

  • 0

Wait.

 

Go again at this link : http://www.maxcheaters.com/forum/index.php?topic=78071.0

 

And look again what Maestro says :

 

This is for last rev l2j CT3 but it can be made for other chronicles too

 

yeah but I search a command to go to player with pvp kills no pvp system :S

Link to comment
Share on other sites

  • 0
/*

* This program is free software: you can redistribute it and/or modify it under

* the terms of the GNU General Public License as published by the Free Software

* Foundation, either version 3 of the License, or (at your option) any later

* version.

*

* This program is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS

* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more

* details.

*

* You should have received a copy of the GNU General Public License along with

* this program. If not, see <http://www.gnu.org/licenses/>.

*/

package com.equal.gameserver.handler.voicedcommandhandlers;

 

import com.equal.gameserver.handler.IVoicedCommandHandler;

import com.equal.gameserver.instancemanager.CastleManager;

import com.equal.gameserver.model.L2World;

import com.equal.gameserver.model.actor.instance.L2PcInstance;

 

 

/**

* @author VaGo

* @rework Leeroy

*/

public class wannapwn implements IVoicedCommandHandler

{

   private static final String[] VOICED_COMMANDS = { "wannapwn" };

 

   public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)

   {  

     

       if (command.equalsIgnoreCase("wannapwn"))

       {

 

          if (activeChar == null)

             {

                return false;

             }

     

           L2PcInstance player;

           String targetName = command.substring(17);

           player =  L2World.getInstance().getPlayer(targetName);

 

           if(player == null)

           {

               activeChar.sendMessage("Your target is not online.");

               return false;

           }

           else if(player.isInJail())

           {

               activeChar.sendMessage("Your target is in Jail.");

               return false;

           }

           else if(player.isInOlympiadMode())

           {

               activeChar.sendMessage("Your target is in the Olympiad now.");

               return false;

           }

           else if(player.atEvent)

           {

               activeChar.sendMessage("Your target is in an event.");

               return false;

           }

           else  if (player.isInDuel())

           {

               activeChar.sendMessage("Your target is in a duel.");

               return false;

           }

           else if (player.isFestivalParticipant())

           {

               activeChar.sendMessage("Your target is in a festival.");

               return false;

           }

           else if (player.isInParty() && player.getParty().isInDimensionalRift())

           {

               activeChar.sendMessage("Your target is in dimensional rift.");

               return false;

           }

           else if (player.inObserverMode())

           {

              activeChar.sendMessage("Your target is in the observation.");

           }

           else if(player.getClan() != null

                 && CastleManager.getInstance().getCastleByOwner(player.getClan()) != null

                 && CastleManager.getInstance().getCastleByOwner(player.getClan()).getSiege().getIsInProgress())

           {

              activeChar.sendMessage("Your target is in siege, you can't go to your leader.");

              return false;

           }

 

           else if(activeChar.isInJail())

           {

               activeChar.sendMessage("You are in Jail!");

               return false;

           }

           else if(activeChar.isInOlympiadMode())

           {

               activeChar.sendMessage("You are in the Olympiad now.");

               return false;

           }

           else if(activeChar.atEvent)

           {

               activeChar.sendMessage("You are in an event.");

               return false;

           }

           else  if (activeChar.isInDuel())

           {

               activeChar.sendMessage("You are in a duel!");

               return false;

           }

           else if (activeChar.inObserverMode())

           {

              activeChar.sendMessage("You are in the observation.");

           }

           else if(activeChar.getClan() != null

                 && CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null

                 && CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress())

           {

              activeChar.sendMessage("You are in siege, you can't go to your target.");

              return false;

           }

           else if (activeChar.isFestivalParticipant())

           {

               activeChar.sendMessage("You are in a festival.");

               return false;

           }

           else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift())

           {

               activeChar.sendMessage("You are in the dimensional rift.");

               return false;

           }

           else if (activeChar == player)

           {

               activeChar.sendMessage("You cannot teleport to yourself.");

               return false;

           }

 

              int playerx;

              int playery;

              int playerz;

             

              playerx = player.getX();

              playery = player.getY();

              playerz = player.getZ();

             

              activeChar.teleToLocation(playerx,playery,playerz);

    activeChar.sendMessage("You have been teleported to fight!");

       }

       return true;

   }

   public String[] getVoicedCommandList()

   {

       return VOICED_COMMANDS;

   }

 

}

It teleports you to the player you've chose via .wannapwn <player>

not tested ,no idea if it works.

Thanx VaGo for the ready-to-go code which i edited from his .cl share :]

Register the command and you're done..

I didnt rly get this part

"who has pvp kills"

alot of them have? kewl.

Explain it better and i`ll rework it ^^

Link to comment
Share on other sites

  • 0

Dont use google translator for gods sake..

i didnt get a single word of ur post -_-"

xD I'm spanish and my english are very bad xD

 

I search this command for people do to other people with 10 kills

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...