Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.NpcInstance.stopMove()


              doTask();
              step_stage2 = 2;
              return true;
            case 2:
              actor.setHeading(0);
              actor.stopMove();
              actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 454, 1, 3000, 0));
              step_stage2 = 3;
              return true;
            case 3:
              actor.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK_SPEED, 0x40, actor, 5));
View Full Code Here


  @Override
  protected void onIntentionIdle()
  {
    NpcInstance actor = getActor();
    clearTasks();
    actor.stopMove();
    actor.getAggroList().clear(true);
    setAttackTimeout(Long.MAX_VALUE);
    setAttackTarget(null);
    changeIntention(CtrlIntention.AI_INTENTION_IDLE, null, null);
  }
View Full Code Here

   */
  @Override
  protected void onIntentionActive()
  {
    NpcInstance actor = getActor();
    actor.stopMove();
    setAttackTimeout(Long.MAX_VALUE);
    if (getIntention() != CtrlIntention.AI_INTENTION_ACTIVE)
    {
      switchAITask(AI_TASK_ACTIVE_DELAY);
      changeIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
View Full Code Here

  @Override
  protected void onIntentionAttack(Creature target)
  {
    NpcInstance actor = getActor();
    clearTasks();
    actor.stopMove();
    setAttackTarget(target);
    setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis());
    setGlobalAggro(0);
    if (getIntention() != CtrlIntention.AI_INTENTION_ATTACK)
    {
View Full Code Here

        }
      }
    }
    if (mob != null)
    {
      actor.stopMove();
      actor.setRunning();
      getActor().getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, mob, 1);
      return true;
    }
    return false;
View Full Code Here

        }
      }
    }
    if (mob != null)
    {
      actor.stopMove();
      actor.setRunning();
      getActor().getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, mob, 1);
      return true;
    }
    return false;
View Full Code Here

  protected void returnHome(boolean clearAggro, boolean teleport)
  {
    NpcInstance actor = getActor();
    Location sloc = actor.getSpawnedLoc();
    clearTasks();
    actor.stopMove();
    if (clearAggro)
    {
      actor.getAggroList().clear(true);
    }
    setAttackTimeout(Long.MAX_VALUE);
View Full Code Here

        }
      case 5:
        _currentWalkerPoint += 1;
        if (_currentWalkerPoint >= _walkerRoute.size() - 1)
        {
          actor.stopMove();
        }
        break;
    }
    WalkerRoutePoint route = _walkerRoute.getPoint(_currentWalkerPoint);
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.