Examples of DoorStatusUpdate


Examples of com.l2jfrozen.gameserver.network.serverpackets.DoorStatusUpdate

          _activeChar.sendPacket(new SpawnItem((L2ItemInstance) object));
        }
        else if(object instanceof L2DoorInstance)
        {
          _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object, false));
          _activeChar.sendPacket(new DoorStatusUpdate((L2DoorInstance) object));
        }
        else if(object instanceof L2BoatInstance)
        {
          if(!_activeChar.isInBoat() && object != _activeChar.getBoat())
          {
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.DoorStatusUpdate

        }
      }
      else if(object instanceof L2DoorInstance)
      {
        active_char.sendPacket(new DoorInfo((L2DoorInstance) object, false));
        active_char.sendPacket(new DoorStatusUpdate((L2DoorInstance) object));
      }
      else if(object instanceof L2BoatInstance)
      {
        if(!active_char.isInBoat())
          if(object != active_char.getBoat())
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.DoorStatusUpdate

      player.sendPacket(my);
      my = null;
     
      // if (isAutoAttackable(player))
      // {
      DoorStatusUpdate su = new DoorStatusUpdate(this);
      player.sendPacket(su);
      su = null;
      // }
     
      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.DoorStatusUpdate

      player.sendPacket(my);
      my = null;

      if(isAutoAttackable(player))
      {
        DoorStatusUpdate su = new DoorStatusUpdate(this);
        player.sendPacket(su);
        su = null;
      }

      NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
      TextBuilder html1 = new TextBuilder("<html><body><table border=0>");
      html1.append("<tr><td>S.Y.L. Says:</td></tr>");
      html1.append("<tr><td>Current HP  " + getCurrentHp() + "</td></tr>");
      html1.append("<tr><td>Max HP       " + getMaxHp() + "</td></tr>");

      html1.append("<tr><td>Object ID: " + getObjectId() + "</td></tr>");
      html1.append("<tr><td>Door ID: " + getDoorId() + "</td></tr>");
      html1.append("<tr><td><br></td></tr>");

      html1.append("<tr><td>Class: " + getClass().getName() + "</td></tr>");
      html1.append("<tr><td><br></td></tr>");
      html1.append("</table>");

      html1.append("<table><tr>");
      html1.append("<td><button value=\"Open\" action=\"bypass -h admin_open " + getDoorId() + "\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
      html1.append("<td><button value=\"Close\" action=\"bypass -h admin_close " + getDoorId() + "\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
      html1.append("<td><button value=\"Kill\" action=\"bypass -h admin_kill\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
      html1.append("<td><button value=\"Delete\" action=\"bypass -h admin_delete\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
      html1.append("</tr></table></body></html>");

      html.setHtml(html1.toString());
      player.sendPacket(html);
      html1 = null;
      html = null;

      //openMe();
    }
    else
    {
      // ATTACK the mob without moving?
      player.setTarget(this);
      MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel());
      player.sendPacket(my);
      my = null;

      if(isAutoAttackable(player))
      {
        DoorStatusUpdate su = new DoorStatusUpdate(this);
        player.sendPacket(su);
        su = null;
      }
     
      NpcHtmlMessage reply = new NpcHtmlMessage(5);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.DoorStatusUpdate

    Collection<L2PcInstance> knownPlayers = getKnownList().getKnownPlayers().values();

    if(knownPlayers == null || knownPlayers.isEmpty())
      return;

    DoorStatusUpdate su = new DoorStatusUpdate(this);

    for(L2PcInstance player : knownPlayers)
    {
      player.sendPacket(su);
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.DoorStatusUpdate

                    getActiveChar().sendPacket(new SpawnItem((L2ItemInstance) object));
            }
            else if (object instanceof L2DoorInstance)
            {
                getActiveChar().sendPacket(new DoorInfo((L2DoorInstance) object));
                getActiveChar().sendPacket(new DoorStatusUpdate((L2DoorInstance) object));
            }
            else if (object instanceof L2BoatInstance)
            {
              if(!getActiveChar().isInBoat())
              if(object != getActiveChar().getBoat())
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.DoorStatusUpdate

            MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
            player.sendPacket(my);

//            if (isAutoAttackable(player))
//            {
                DoorStatusUpdate su = new DoorStatusUpdate(this);
                player.sendPacket(su);
//            }

            // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
            player.sendPacket(new ValidateLocation(this));
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.DoorStatusUpdate

            MyTargetSelected my = new MyTargetSelected(getObjectId(), player
                    .getLevel());
            player.sendPacket(my);

            if (isAutoAttackable(player)) {
                DoorStatusUpdate su = new DoorStatusUpdate(this);
                player.sendPacket(su);
            }

            NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
            TextBuilder html1 = new TextBuilder("<html><body><table border=0>");
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.DoorStatusUpdate

    {
        Collection<L2PcInstance> knownPlayers = getKnownList().getKnownPlayers().values();
        if (knownPlayers == null || knownPlayers.isEmpty())
            return;

        DoorStatusUpdate su = new DoorStatusUpdate(this);
        for (L2PcInstance player : knownPlayers)
            player.sendPacket(su);
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.DoorStatusUpdate

        if (object instanceof L2ItemInstance)
          _activeChar.sendPacket(new SpawnItem((L2ItemInstance) object));
        else if (object instanceof L2DoorInstance)
        {
          _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object));
          _activeChar.sendPacket(new DoorStatusUpdate((L2DoorInstance) object));
        }
        else if (object instanceof L2BoatInstance)
        {
          if(!_activeChar.isInBoat() && object != _activeChar.getBoat())
          {
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.