Package l2p.gameserver.model.L2ObjectTasks

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


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

TOP

Related Classes of l2p.gameserver.model.L2ObjectTasks.MagicLaunchedTask

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.