Examples of teleToClosestTown()


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

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

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

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

    }
    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

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

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

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

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

Examples of lineage2.gameserver.model.Player.teleToClosestTown()

        if (_fortress)
        {
          pcTarget.teleToFortress();
          return;
        }
        pcTarget.teleToClosestTown();
      }
    }
    if (isSSPossible())
    {
      activeChar.unChargeShots(isMagic());
View Full Code Here

Examples of lineage2.gameserver.model.Player.teleToClosestTown()

    }
    else if (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

Examples of lineage2.gameserver.model.Player.teleToClosestTown()

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

Examples of lineage2.gameserver.model.Player.teleToClosestTown()

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