Examples of CTBBossInstance


Examples of lineage2.gameserver.model.instances.residences.clanhall.CTBBossInstance

   * @return boolean
   */
  @Override
  protected boolean checkAggression(Creature target)
  {
    final CTBBossInstance actor = getActor();
    if (getIntention() != CtrlIntention.AI_INTENTION_ACTIVE)
    {
      return false;
    }
    if (target.isAlikeDead() || target.isInvul())
    {
      return false;
    }
    if (!actor.isAttackable(target))
    {
      return false;
    }
    if (!GeoEngine.canSeeTarget(actor, target, false))
    {
      return false;
    }
    actor.getAggroList().addDamageHate(target, 0, 2);
    if ((target.isServitor() || target.isPet()))
    {
      actor.getAggroList().addDamageHate(target.getPlayer(), 0, 1);
    }
    startRunningTask(AI_TASK_ATTACK_DELAY);
    setIntention(CtrlIntention.AI_INTENTION_ATTACK, target);
    return true;
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.residences.clanhall.CTBBossInstance

   */
  @Override
  public void onEvtSpawn()
  {
    super.onEvtSpawn();
    final CTBBossInstance actor = getActor();
    final int x = (int) (actor.getX() + (800 * Math.cos(actor.headingToRadians(actor.getHeading() - 32768))));
    final int y = (int) (actor.getY() + (800 * Math.sin(actor.headingToRadians(actor.getHeading() - 32768))));
    actor.setSpawnedLoc(new Location(x, y, actor.getZ()));
    addTaskMove(actor.getSpawnedLoc(), true);
    doTask();
  }
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.