Examples of SetupGauge


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

      if(obj instanceof L2Character)
      {
        L2Character Char = (L2Character) obj;
        MagicSkillUser msk = new MagicSkillUser(Char, 1008, 1, 4000, 0);
        Char.broadcastPacket(msk);
        SetupGauge sg = new SetupGauge(0, 4000);
        Char.sendPacket(sg);
        Char = null;
        sg = null;
        msk = null;
      }
View Full Code Here

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

  }

  private void doAnimation(L2PcInstance activeChar)
  {
    Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, 1008, 1, 4000, 0), 2250000/*1500*/);
    activeChar.sendPacket(new SetupGauge(0, 4000));
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.SetupGauge

      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(SetupGauge.RED, reuse));
          _attackReuseEndTime = reuse + System.currentTimeMillis() - 75;
          if(reuse > sAtk)
          {
            ThreadPoolManager.getInstance().scheduleAi(new NotifyAITask(this, CtrlEvent.EVT_READY_TO_ACT, null, null), reuse, isPlayable());
          }
View Full Code Here

Examples of l2p.gameserver.serverpackets.SetupGauge

    {
      callSkill(skill, skill.getTargets(this, target, forceUse), true);
    }
    if(isPlayer())
    {
      sendPacket(new SetupGauge(SetupGauge.BLUE, skillTime));
    }
    _scheduledCastCount = skill.getCastCount();
    _scheduledCastInterval = skill.getCastCount() > 0 ? skillTime / _scheduledCastCount : skillTime;
    // Create a task MagicUseTask with Medium priority to launch the MagicSkill at the end of the casting time
    _skillLaunchedTask = ThreadPoolManager.getInstance().scheduleAi(new MagicLaunchedTask(this, forceUse), skillInterruptTime, isPlayable());
View Full Code Here

Examples of l2p.gameserver.serverpackets.SetupGauge

    }
    activeChar.reduceAdena(Config.WEDDING_TELEPORT_PRICE, true);
    activeChar.sendMessage(new CustomMessage("scripts.commands.voiced.Wedding.Teleport", activeChar).addNumber(teleportTimer / 60000));
    // SoE Animation section
    activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1050, 1, teleportTimer, 0));
    activeChar.sendPacket(new SetupGauge(0, teleportTimer));
    // End SoE Animation section
    // continue execution later
    activeChar._skillTask = ThreadPoolManager.getInstance().scheduleAi(new EscapeFinalizer(activeChar, partner.getLoc()), teleportTimer, true);
    return true;
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.SetupGauge

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

Examples of l2p.gameserver.serverpackets.SetupGauge

      return;
    }
    // Soul Crystal Casting section
    int skillHitTime = SkillTable.getInstance().getInfo(2096, 1).getHitTime();
    player.broadcastPacket(new MagicSkillUse(player, 2096, 1, skillHitTime, 0));
    player.sendPacket(new SetupGauge(0, skillHitTime));
    // End Soul Crystal Casting section
    // Continue execution later
    player._skillTask = ThreadPoolManager.getInstance().scheduleAi(new CrystalFinalizer(player, target), skillHitTime, true);
  }
View Full Code Here

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

Examples of lineage2.gameserver.network.serverpackets.SetupGauge

  {
    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

Examples of lineage2.gameserver.network.serverpackets.SetupGauge

      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
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.