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

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


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

        {
          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

        {
          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

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.