Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.Reflection


    _notUsedTransform = true;
    _lastAttackTime = 0;
    lastFactionNotifyTime = 0;
    final NpcInstance actor = getActor();
    SoDManager.addTiatKill();
    final Reflection r = actor.getReflection();
    r.setReenterTime(System.currentTimeMillis());
    for (NpcInstance n : r.getNpcs())
    {
      n.deleteMe();
    }
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        for (Player pl : r.getPlayers())
        {
          if (pl != null)
          {
            pl.showQuestMovie(ExStartScenePlayer.SCENE_TIAT_SUCCESS);
          }
View Full Code Here


   * @param z int
   * @param refId int
   */
  public void teleToLocation(int x, int y, int z, int refId)
  {
    Reflection r = ReflectionManager.getInstance().get(refId);
    if (r == null)
    {
      return;
    }
    teleToLocation(x, y, z, r);
View Full Code Here

    {
      if (Rnd.chance(50))
      {
        Functions.npcSayInRange(getActor(), 1000, TEXT[Rnd.get(TEXT.length)]);
      }
      final Reflection r = getActor().getReflection();
      if (r instanceof MemoryOfDisaster)
      {
        ((MemoryOfDisaster) r).dieNextElf();
      }
      getActor().doDie(getActor());
View Full Code Here

   */
  @Override
  protected void onEvtTimer(int timerId, Object arg1, Object arg2)
  {
    super.onEvtTimer(timerId, arg1, arg2);
    final Reflection r = getActor().getReflection();
    if (!(r instanceof MemoryOfDisaster))
    {
      return;
    }
    final MemoryOfDisaster ad = (MemoryOfDisaster) r;
    switch (timerId)
    {
      case 1:
        Functions.npcSayInRange(getActor(), 1500, NpcString.MM_IM_SEE);
        final List<NpcInstance> list = r.getAllByNpcId(TOROCCO_ID, true);
        if (list.size() > 0)
        {
          final NpcInstance torocco = list.get(0);
          torocco.getAI().notifyEvent(CtrlEvent.EVT_SCRIPT_EVENT, "TOROCCO_1");
        }
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    final Reflection r = actor.getReflection();
    if (!r.isDefault())
    {
      if (checkMates(actor.getNpcId()))
      {
        if (findLostCaptain() != null)
        {
View Full Code Here

    //Eternal Blizzard Cast
    if(!actor.isCastingNow() && _eternalblizzardReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);

      Reflection r = getActor().getReflection();
      for(Player p : r.getPlayers())
        p.sendPacket(new ExShowScreenMessage(NpcString.I_FEEL_STRONG_MAGIC_FLOW, 3000, ScreenMessageAlign.MIDDLE_CENTER, true));

      _eternalblizzardReuseTimer = System.currentTimeMillis() + _eternalblizzardReuseDelay * 1000L;
    }

 
View Full Code Here

    _reflectReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _icestormReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _deathsentenceReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _angerReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;

    Reflection r = getActor().getReflection();
    for(Player p : r.getPlayers())
      this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 2);
  }
View Full Code Here

  protected boolean thinkActive()
  {
    if(_idleDelay == 0 && !getActor().isCurrentHpFull())
      _idleDelay = System.currentTimeMillis();

    Reflection ref = getActor().getReflection();
    if(!getActor().isDead() && _idleDelay > 0 && _idleDelay + 60000 < System.currentTimeMillis())
      if(!ref.isDefault())
      {
        for(Player p : ref.getPlayers())
          p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(1));
        ref.collapse();
      }

    super.thinkActive();
    return true;
  }
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    final Reflection r = actor.getReflection();
    if (!r.isDefault())
    {
      if (checkMates(actor.getNpcId()))
      {
        if (findLostCaptain() != null)
        {
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    final Reflection r = actor.getReflection();
    if (!r.isDefault())
    {
      if (checkMates(actor.getNpcId()))
      {
        if (findLostCaptain() != null)
        {
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.Reflection

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.