Examples of onOpen()


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

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

        {
          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 com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance.onOpen()

        {
          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 com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance.onOpen()

        {
          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 com.ning.http.client.websocket.WebSocketListener.onOpen()

        WebSocketListener l = new TextListener();
        if (supportBinary) {
            l = new BinaryListener(l);
        }
        webSocket.addWebSocketListener(l);
        l.onOpen(webSocket);
    }

    void connectFutureException(Throwable t) {
        IOException e = IOException.class.isAssignableFrom(t.getClass()) ? IOException.class.cast(t) : new IOException(t);
        connectOperationFuture.ioException(e).done();
View Full Code Here

Examples of l2p.gameserver.model.instances.L2ChestInstance.onOpen()

        {
          return;
        }
        if(target.isFake())
        {
          target.onOpen((L2Player) activeChar);
          return;
        }
        double chance = getActivateRate();
        double levelmod = (double) getMagicLevel() - target.getLevel();
        chance += levelmod * getLevelModifier();
 
View Full Code Here

Examples of l2p.gameserver.model.instances.L2ChestInstance.onOpen()

          activeChar.sendMessage(new CustomMessage("l2p.gameserver.skills.skillclasses.Unlock.Chance", activeChar).addString(getName()).addNumber((long) chance));
        }
        if(Rnd.chance(chance))
        {
          activeChar.sendMessage(new CustomMessage("l2p.gameserver.skills.skillclasses.Unlock.Success", activeChar));
          target.onOpen((L2Player) activeChar);
        }
        else
        {
          activeChar.sendPacket(new SystemMessage(SystemMessage.S1_HAS_FAILED).addString(getName()));
          target.doDie(activeChar);
View Full Code Here

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

      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()
  {
    return _itemIds;
View Full Code Here

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

        {
          L2DoorInstance target = (L2DoorInstance) targ;
          if(!target.isOpen() && (target.key > 0 || Rnd.chance(_unlockPower - target.level * 100)))
          {
            target.openMe();
            target.onOpen();
          }
          else
          {
            activeChar.sendPacket(Msg.YOU_HAVE_FAILED_TO_UNLOCK_THE_DOOR);
          }
 
View Full Code Here

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

        {
          return;
        }
        if(target.isFake())
        {
          target.onOpen((L2Player) activeChar);
          return;
        }
        double chance = getActivateRate();
        double levelmod = (double) getMagicLevel() - target.getLevel();
        chance += levelmod * getLevelModifier();
 
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.