Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance.openMe()


          return;
        }
       
        if (success && (!door.getOpen()))
        {
          door.openMe();
          door.onOpen();
          SystemMessage msg = new SystemMessage(SystemMessageId.S1_S2);
          msg.addString("Unlock the door!");
          activeChar.sendPacket(msg);
          msg = null;
View Full Code Here


      if(door == null || castle == null)
        return false;

      if(castle.checkIfInZone(door.getX(), door.getY(), door.getZ()))
      {
        door.openMe();
      }

      door = null;
      castle = null;
    }
View Full Code Here

    L2DoorInstance door = getDoor(doorId);
    if(door != null)
    {
      if(open)
      {
        door.openMe();
      }
      else
      {
        door.closeMe();
      }
View Full Code Here

        if (door.getDoorName().startsWith("Anteroom"))
        {
          if (openChance > 0 && Rnd.get(100) < openChance)
          {
            activeChar.sendMessage("You opened Anterooms Door.");
            door.openMe();
            door.onOpen(); // Closes the door after 60sec
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
          }
          else
          {
View Full Code Here

        if (door.getDoorName().startsWith("Altar_Entrance") || door.getDoorName().startsWith("Chapel_Door"))
        {
          if (openChance > 0 && Rnd.get(100) < openChance)
          {
            activeChar.sendMessage("You opened Altar Entrance.");
            door.openMe();
            door.onOpen();
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
          }
          else
          {
View Full Code Here

        if (door.getDoorName().startsWith("Door_of_Darkness"))
        {
          if (openChance > 0 && Rnd.get(100) < openChance)
          {
            activeChar.sendMessage("You opened Door of Darkness.");
            door.openMe();
            door.onOpen();
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
          }
          else
          {
View Full Code Here

    if(door != null)
    {
      if(open)
      {
        door.openMe();
      }
      else
      {
        door.closeMe();
      }
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.