Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.teleToClosestTown()


      int pcabal = SevenSigns.getInstance().getPlayerCabal(player);
      int wcabal = SevenSigns.getInstance().getCabalHighestScore();
      if(pcabal != wcabal && wcabal != SevenSigns.CABAL_NULL)
      {
        player.sendMessage("You have been teleported to the nearest town because you not signed for winning cabal.");
        player.teleToClosestTown();
        return;
      }
    }
    actor.setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis());
    setGlobalAggro(0);
View Full Code Here


        player.teleToLocation(_returnLoc);
      }
      else
      {
        player.setReflection(0);
        player.teleToClosestTown();
      }
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

    }
    else if(!activeChar.isInWater() && _dz >= (activeChar.isFlying() ? 1024 : 512))
    {
      if(activeChar.getIncorrectValidateCount() >= 3)
      {
        activeChar.teleToClosestTown();
      }
      else
      {
        activeChar.teleToLocation(activeChar.getLoc());
        activeChar.setIncorrectValidateCount(activeChar.getIncorrectValidateCount() + 1);
View Full Code Here

    }
    else if(_loc.z < -30000 || _loc.z > 30000)
    {
      if(activeChar.getIncorrectValidateCount() >= 3)
      {
        activeChar.teleToClosestTown();
      }
      else
      {
        if(activeChar.isGM())
        {
View Full Code Here

    }
    else if(_diff > 1024)
    {
      if(activeChar.getIncorrectValidateCount() >= 3)
      {
        activeChar.teleToClosestTown();
      }
      else
      {
        activeChar.teleToLocation(activeChar.getLoc());
        activeChar.setIncorrectValidateCount(activeChar.getIncorrectValidateCount() + 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.