Examples of openMe()


Examples of lineage2.gameserver.model.instances.DoorInstance.openMe()

        boolean open = Integer.parseInt(val) == 1;
        while(st.hasMoreTokens())
        {
          DoorInstance door = ReflectionUtils.getDoor(Integer.parseInt(st.nextToken()));
          if(open)
            door.openMe(player, true);
          else
            door.closeMe(player, true);
        }
      }
View Full Code Here

Examples of lineage2.gameserver.model.instances.DoorInstance.openMe()

      return;
    }
    if (command.equals("openDoor"))
    {
      DoorInstance door = ReflectionUtils.getDoor(24170001);
      door.openMe();
    }
    else if (command.equals("closeDoor"))
    {
      DoorInstance door = ReflectionUtils.getDoor(24170001);
      door.closeMe();
View Full Code Here

Examples of lineage2.gameserver.model.instances.DoorInstance.openMe()

          {
            door.closeMe(player, true);
          }
          else
          {
            door.openMe(player, true);
          }
        }
       
        @Override
        public void sayNo()
View Full Code Here

Examples of lineage2.gameserver.model.instances.DoorInstance.openMe()

      player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
      return false;
    }
    player.sendPacket(SystemMessage2.removeItems(item.getItemId(), 1));
    player.sendMessage(new CustomMessage("lineage2.gameserver.skills.skillclasses.Unlock.Success", player));
    door.openMe(player, true);
    return true;
  }
 
  /**
   * Method getItemIds.
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

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

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

    switch (itemId){
    case 8273: //AnteroomKey
        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 {
                    //test with: activeChar.sendPacket(new SystemMessage(SystemMessage.FAILED_TO_UNLOCK_DOOR));
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

        break;
    case 8274: //Chapelkey, Capel Door has a Gatekeeper?? I use this key for Altar Entrance
      if (door.getDoorName().startsWith("Altar_Entrance")){
              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 {
                activeChar.sendMessage("You failed to open Altar Entrance.");
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

      break;
    case 8275: //Key of Darkness
      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 {
                activeChar.sendMessage("You failed to open Door of Darkness.");
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

    for (int doorId : Config.TVT_EVENT_DOOR_IDS)
    {
      L2DoorInstance doorInstance = DoorTable.getInstance().getDoor(doorId);

      if (doorInstance != null)
        doorInstance.openMe();
    }
  }

  /**
   * UnSpawns the TvTEvent npc
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance.openMe()

            L2DoorInstance door = (L2DoorInstance) activeChar.getTarget();
            Castle castle = CastleManager.getInstance().getCastleById(activeChar.getClan().getHasCastle());
            if (door == null || castle == null) return false;
            if (castle.checkIfInZone(door.getX(), door.getY(), door.getZ()))
          {
            door.openMe();
          }

      }
      else if(command.startsWith("close doors")&&target.equals("castle")&&(activeChar.isClanLeader())){
            L2DoorInstance door = (L2DoorInstance) activeChar.getTarget();
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.