Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SetupGauge


    activeChar.stopMove();
    activeChar.startParalyzed();
    activeChar.sendMessage(new CustomMessage("voicedcommandhandlers.Wedding.Teleport", activeChar).addNumber(teleportTimer / 60));
    activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
    activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1050, 1, teleportTimer, 0));
    activeChar.sendPacket(new SetupGauge(activeChar, SetupGauge.BLUE_DUAL, teleportTimer));
    ThreadPoolManager.getInstance().schedule(new EscapeFinalizer(activeChar, partner.getLoc()), teleportTimer * 1000L);
    return true;
  }
View Full Code Here


  {
    if (!ride(player, npc_id))
    {
      return;
    }
    player.sendPacket(new SetupGauge(player, 3, time * 1000));
    executeTask(player, "services.RideHire", "rideOver", new Object[0], time * 1000);
  }
 
View Full Code Here

      if (isPlayer() && (weaponItem.getAttackReuseDelay() > 0))
      {
        int reuse = (int) ((weaponItem.getAttackReuseDelay() * getReuseModifier(target) * 666 * calcStat(Stats.ATK_BASE, 0, target, null)) / 293. / getPAtkSpd());
        if (reuse > 0)
        {
          sendPacket(new SetupGauge(this, SetupGauge.RED_MINI, reuse));
          _attackReuseEndTime = (reuse + System.currentTimeMillis()) - 75;
          if (reuse > sAtk)
          {
            ThreadPoolManager.getInstance().schedule(new NotifyAITask(this, CtrlEvent.EVT_READY_TO_ACT, null, null), reuse);
          }
View Full Code Here

    {
      callSkill(skill, skill.getTargets(this, target, forceUse), true);
    }
    if (isPlayer())
    {
      sendPacket(new SetupGauge(this, SetupGauge.BLUE_DUAL, skillTime));
    }
    _scheduledCastCount = skill.getCastCount();
    _scheduledCastInterval = skill.getCastCount() > 0 ? skillTime / _scheduledCastCount : skillTime;
    if (!isDoubleCastingNow() && IsEnabledDoubleCast())
    {
View Full Code Here

      player.sendPacket(Msg.THE_SOUL_CRYSTAL_WAS_NOT_ABLE_TO_ABSORB_A_SOUL, ActionFail.STATIC);
      return false;
    }
    final int skillHitTime = SkillTable.getInstance().getInfo(2096, 1).getHitTime();
    player.broadcastPacket(new MagicSkillUse(player, player, 2096, 1, skillHitTime, 0));
    player.sendPacket(new SetupGauge(player, SetupGauge.BLUE, skillHitTime));
    player._skillTask = ThreadPoolManager.getInstance().schedule(new CrystalFinalizer(player, target), skillHitTime);
    return true;
  }
View Full Code Here

  {
    if (_taskWater != null)
    {
      _taskWater.cancel(false);
      _taskWater = null;
      sendPacket(new SetupGauge(this, SetupGauge.BLUE_MINI, 0));
      sendChanges();
    }
  }
View Full Code Here

      stopWaterTask();
    }
    else if (Config.ALLOW_WATER && (_taskWater == null))
    {
      int timeinwater = (int) (calcStat(Stats.BREATH, getTemplate().getBaseBreathBonus(), null, null) * 1000L);
      sendPacket(new SetupGauge(this, SetupGauge.BLUE_MINI, timeinwater));
      if ((getTransformation() > 0) && (getTransformationTemplate() > 0) && !isCursedWeaponEquipped())
      {
        setTransformation(0);
      }
      _taskWater = ThreadPoolManager.getInstance().scheduleAtFixedRate(new WaterTask(this), timeinwater, 1000L);
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.SetupGauge

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.