Examples of MagicLaunchedTask


Examples of l2p.gameserver.model.L2ObjectTasks.MagicLaunchedTask

      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());
    _skillTask = ThreadPoolManager.getInstance().scheduleAi(new MagicUseTask(this, forceUse), skill.getCastCount() > 0 ? skillTime / skill.getCastCount() : skillTime, isPlayable());
  }
View Full Code Here

Examples of l2p.gameserver.model.L2ObjectTasks.MagicLaunchedTask

      }
    }
    if(_scheduledCastCount > 0)
    {
      _scheduledCastCount--;
      _skillLaunchedTask = ThreadPoolManager.getInstance().scheduleAi(new MagicLaunchedTask(this, forceUse), _scheduledCastInterval, isPlayable());
      _skillTask = ThreadPoolManager.getInstance().scheduleAi(new MagicUseTask(this, forceUse), _scheduledCastInterval, isPlayable());
      return;
    }
    int skillCoolTime = Formulas.calcMAtkSpd(this, skill, skill.getCoolTime());
    if(skillCoolTime > 0)
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.MagicLaunchedTask

    }
    _scheduledCastCount = skill.getCastCount();
    _scheduledCastInterval = skill.getCastCount() > 0 ? skillTime / _scheduledCastCount : skillTime;
    if (!isDoubleCastingNow() && IsEnabledDoubleCast())
    {
      _skillDoubleLaunchedTask = ThreadPoolManager.getInstance().schedule(new MagicLaunchedTask(this, forceUse), skillInterruptTime);
      _skillDoubleTask = ThreadPoolManager.getInstance().schedule(new MagicUseTask(this, forceUse), skill.getCastCount() > 0 ? skillTime / skill.getCastCount() : skillTime);
    }
    else
    {
      _skillLaunchedTask = ThreadPoolManager.getInstance().schedule(new MagicLaunchedTask(this, forceUse), skillInterruptTime);
      _skillTask = ThreadPoolManager.getInstance().schedule(new MagicUseTask(this, forceUse), skill.getCastCount() > 0 ? skillTime / skill.getCastCount() : skillTime);
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.MagicLaunchedTask

    if (_scheduledCastCount > 0)
    {
      _scheduledCastCount--;
      if (!isDoubleCastingNow() && IsEnabledDoubleCast())
      {
        _skillDoubleLaunchedTask = ThreadPoolManager.getInstance().schedule(new MagicLaunchedTask(this, forceUse), _scheduledCastInterval);
        _skillDoubleTask = ThreadPoolManager.getInstance().schedule(new MagicUseTask(this, forceUse), _scheduledCastInterval);
      }
      else
      {
        _skillLaunchedTask = ThreadPoolManager.getInstance().schedule(new MagicLaunchedTask(this, forceUse), _scheduledCastInterval);
        _skillTask = ThreadPoolManager.getInstance().schedule(new MagicUseTask(this, forceUse), _scheduledCastInterval);
      }
      return;
    }
    int skillCoolTime = 0;
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.