Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2DoorInstance.openMe()


    }
    if(target.equals("doors") && activeChar.isClanLeader() && castle.checkIfInZone(door.getX(), door.getY()))
    {
      if(command.startsWith("open"))
      {
        door.openMe();
      }
      else if(command.startsWith("close"))
      {
        door.closeMe();
      }
View Full Code Here


    for(int i : doors)
    {
      L2DoorInstance door = DoorTable.getInstance().getDoor(i);
      if(open)
      {
        door.openMe();
      }
      else
      {
        door.closeMe();
      }
View Full Code Here

    if(!L2NpcInstance.canBypassCheck(player, player.getLastNpc()))
    {
      return;
    }
    L2DoorInstance door = DoorTable.getInstance().getDoor(DoorId);
    door.openMe();
  }

  public void closeDoor()
  {
    L2Player player = (L2Player) getSelf();
View Full Code Here

  {
    final int CLOSE_TIME = 10000; // 10 секунд
    L2DoorInstance door = DoorTable.getInstance().getDoor(doorId);
    if(!door.isOpen())
    {
      door.openMe();
      door.scheduleCloseMe(CLOSE_TIME);
    }
  }
}
View Full Code Here

            L2DoorInstance doorObj = DoorTable.getInstance().getDoor(door);
            if(door != 19260051 && door != 19260052)
            {
              ThreadPoolManager.getInstance().scheduleAi(new CloseDoor(door), 60000, false);
            }
            doorObj.openMe();
          }
        }
        //saveGlobalQuestVar("OpenDoor - " + npc.getNpcId(), String.valueOf(Calendar.getInstance().getTimeInMillis() + 120000));
      }
    }
View Full Code Here

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

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

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

          r.addDoor(door);
          door.setReflection(r);
          door.spawnMe();
          if(d.isOpen())
          {
            door.openMe();
          }
        }
      }
    }
    World world = new World();
View Full Code Here

      player.sendPacket(Msg.YOU_ARE_UNABLE_TO_UNLOCK_THE_DOOR);
      return;
    }
    L2ItemInstance ri = player.getInventory().destroyItem(item, 1, true);
    player.sendPacket(SystemMessage.removeItems(ri.getItemId(), 1), new SystemMessage("l2p.gameserver.skills.skillclasses.Unlock.Success", player));
    door.openMe();
    door.onOpen();
  }

  public int[] getItemIds()
  {
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.