Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.ShortCutInit


      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
View Full Code Here


   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
    Functions.npcSay(actor, "A fatal error has occurred");
    Functions.npcSay(actor, "System is being shut down...");
    Functions.npcSay(actor, "......");
    try
    {
View Full Code Here

    activeChar.sendPacket(new ExBR_PremiumState(activeChar, activeChar.hasBonus()));
   
    activeChar.getMacroses().sendUpdate(0x01, 0, true);
        activeChar.sendPacket(new SSQInfo(), new HennaInfo(activeChar));
    activeChar.sendItemList(false);
    activeChar.sendPacket(new ShortCutInit(activeChar));
        activeChar.sendPacket(new ShortCutInit(activeChar), new SkillList(activeChar), new SkillCoolTime(activeChar));
    activeChar.sendPacket(new SkillCoolTime(activeChar));
    //activeChar.sendPacket(new ExCastleState(_castle));
        activeChar.sendPacket(new ExVitalityEffectInfo(activeChar));
    for(Castle castle : ResidenceHolder.getInstance().getResidenceList(Castle.class))
    {
View Full Code Here

      return;
    }
    deleteShortCutFromDb(old);
    if (old.getType() == ShortCut.TYPE_SKILL)
    {
      player.sendPacket(new ShortCutInit(player));
      for (int shotId : player.getAutoSoulShot())
      {
        player.sendPacket(new ExAutoSoulShot(shotId, true));
      }
    }
View Full Code Here

      return;
    }
    player.getInventory().unEquipItem(item);
    player.sendPacket(new InventoryUpdate().addRemovedItem(item));
    item.setItemId(itemId);
    player.sendPacket(new ShortCutInit(player));
    for (int shotId : player.getAutoSoulShot())
    {
      player.sendPacket(new ExAutoSoulShot(shotId, true));
    }
    player.sendPacket(new InventoryUpdate().addNewItem(item));
View Full Code Here

      EffectsDAO.getInstance().restoreEffects(this);
      restoreDisableSkills();
      setCurrentHpMp(newActiveSub.getHp(), newActiveSub.getMp());
      setCurrentCp(newActiveSub.getCp());
      _shortCuts.restore();
      sendPacket(new ShortCutInit(this));
      for (int shotId : getAutoSoulShot())
      {
        sendPacket(new ExAutoSoulShot(shotId, true));
      }
      sendPacket(new SkillCoolTime(this));
View Full Code Here

      }
    }
    super.setTransformation(transformationId);
    sendPacket(new ExBasicActionList(this));
    sendSkillList();
    sendPacket(new ShortCutInit(this));
    for (int shotId : getAutoSoulShot())
    {
      sendPacket(new ExAutoSoulShot(shotId, true));
    }
    if(transformationId == 0)
View Full Code Here

  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here

          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here

            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.ShortCutInit

Copyright © 2018 www.massapicom. 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.