Package lineage2.gameserver.model.entity.boat

Examples of lineage2.gameserver.model.entity.boat.Boat


  private void init()
  {
    _zoneListener = new ZoneListener();
    for (String s : zones)
    {
      Zone zone = ReflectionUtils.getZone(s);
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here


   * Method init.
   */
  private void init()
  {
    _zoneListener = new ZoneListener();
    Zone zone = ReflectionUtils.getZone(ZONE_NAME);
    if (zone != null)
    {
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here

    {
      return;
    }
    if (command.equalsIgnoreCase("request_nightzaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(nightZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(nightZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenNight(), nightZakenIzId);
      }
    }
    else if (command.equalsIgnoreCase("request_dayzaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(dayZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(dayZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenDay(), dayZakenIzId);
      }
    }
    else if (command.equalsIgnoreCase("request_ultrazaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(ultraZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(ultraZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenDay83(), ultraZakenIzId);
View Full Code Here

  {
    try
    {
      Class<?> cl = Class.forName("lineage2.gameserver.model.entity.boat." + clazz);
      Constructor<?> constructor = cl.getConstructor(Integer.TYPE, CharTemplate.class);
      Boat boat = (Boat) constructor.newInstance(IdFactory.getInstance().getNextId(), TEMPLATE);
      boat.setName(name);
      addBoat(boat);
      return boat;
    }
    catch (Exception e)
    {
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_shuttleId);
    if (boat == null)
    {
      return;
    }
    boat.addPlayer(player, _loc);
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
View Full Code Here

   * Method onEvtArrived.
   */
  @Override
  protected void onEvtArrived()
  {
    Boat actor = (Boat) getActor();
    if (actor == null)
    {
      return;
    }
    actor.onEvtArrived();
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_shuttleId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    if (player.isClanAirShipDriver())
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.boat.Boat

Copyright © 2018 www.massapicom. 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.