Examples of NotifyAITask


Examples of l2p.gameserver.model.L2ObjectTasks.NotifyAITask

        {
          sendPacket(new SetupGauge(SetupGauge.RED, reuse));
          _attackReuseEndTime = reuse + System.currentTimeMillis() - 75;
          if(reuse > sAtk)
          {
            ThreadPoolManager.getInstance().scheduleAi(new NotifyAITask(this, CtrlEvent.EVT_READY_TO_ACT, null, null), reuse, isPlayable());
          }
        }
      }
      ssGrade = weaponItem.getCrystalType().externalOrdinal;
    }
View Full Code Here

Examples of l2p.gameserver.model.L2ObjectTasks.NotifyAITask

    }
    setMassUpdating(false);
    sendChanges();
    updateEffectIcons();
    broadcastStatusUpdate();
    ThreadPoolManager.getInstance().executeGeneral(new NotifyAITask(this, CtrlEvent.EVT_DEAD, killer, null));
    Object[] script_args = new Object[]
    {
      this, killer
    };
    for(ScriptClassAndMethod handler : ScriptManager.onDie)
View Full Code Here

Examples of l2p.gameserver.model.L2ObjectTasks.NotifyAITask

        isMoving = false;
        destination = null;
        if(isFollow)
        {
          isFollow = false;
          ThreadPoolManager.getInstance().executeAi(new NotifyAITask(this, CtrlEvent.EVT_ARRIVED_TARGET, null, null), isPlayable());
        }
        else
        {
          ThreadPoolManager.getInstance().executeAi(new NotifyAITask(this, CtrlEvent.EVT_ARRIVED, null, null), isPlayable());
        }
        validateLocation(isPlayer() ? 2 : 1);
        return;
      }
      moveList = _targetRecorder.remove(0);
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

        {
          sendPacket(new SetupGauge(this, SetupGauge.RED_MINI, reuse));
          _attackReuseEndTime = (reuse + System.currentTimeMillis()) - 75;
          if (reuse > sAtk)
          {
            ThreadPoolManager.getInstance().schedule(new NotifyAITask(this, CtrlEvent.EVT_READY_TO_ACT, null, null), reuse);
          }
        }
      }
      ssGrade = weaponItem.getCrystalType().externalOrdinal;
    }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

        {
          e.exit();
        }
      }
    }
    ThreadPoolManager.getInstance().execute(new NotifyAITask(this, CtrlEvent.EVT_DEAD, killer, null));
    getListeners().onDeath(killer);
    updateEffectIcons();
    updateStats();
    broadcastStatusUpdate();
  }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

    }
    if (_targetRecorder.isEmpty())
    {
      CtrlEvent ctrlEvent = isFollow ? CtrlEvent.EVT_ARRIVED_TARGET : CtrlEvent.EVT_ARRIVED;
      stopMove(false, true);
      ThreadPoolManager.getInstance().execute(new NotifyAITask(this, ctrlEvent));
      return;
    }
    moveList = _targetRecorder.remove(0);
    Location begin = moveList.get(0).clone().geo2world();
    Location end = moveList.get(moveList.size() - 1).clone().geo2world();
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

    if(target.getEffectList().getEffectByType(EffectType.DispelOnHit) != null && !miss)
    {
      target.getEffectList().getEffectByType(EffectType.DispelOnHit).onActionTime();
    }
    displayGiveDamageMessage(target, damage, crit, miss, shld, false);
    ThreadPoolManager.getInstance().execute(new NotifyAITask(target, CtrlEvent.EVT_ATTACKED, this, damage));
    boolean checkPvP = checkPvP(target, null);
    if (!miss && (damage > 0))
    {
      target.reduceCurrentHp(damage, reflectableDamage, this, null, true, true, false, true, false, false, true);
      if (!target.isDead())
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

            return;
          }
          if (isInRangeZ(follow, _offset) && GeoEngine.canSeeTarget(Creature.this, follow, false))
          {
            stopMove();
            ThreadPoolManager.getInstance().execute(new NotifyAITask(Creature.this, CtrlEvent.EVT_ARRIVED_TARGET));
            return;
          }
        }
        if (alldist <= 0)
        {
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.NotifyAITask

    if (getAI().isGlobalAI() || ((getCurrentRegion() != null) && getCurrentRegion().isActive()))
    {
      getAI().startAITask();
      startRandomAnimation();
    }
    ThreadPoolManager.getInstance().execute(new NotifyAITask(this, CtrlEvent.EVT_SPAWN));
    getListeners().onSpawn();
  }
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.