Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.Reflection$ReflectionListenerList


    _selfnovaReuseTimer += generalReuse + (Rnd.get(1, 20) * 1000L);
    _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);
    final Reflection r = getActor().getReflection();
    for (Player p : r.getPlayers())
    {
      this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 2);
    }
  }
View Full Code Here


  {
    if ((_idleDelay == 0) && !getActor().isCurrentHpFull())
    {
      _idleDelay = System.currentTimeMillis();
    }
    final Reflection ref = getActor().getReflection();
    if (!getActor().isDead() && (_idleDelay > 0) && ((_idleDelay + 60000) < System.currentTimeMillis()))
    {
      if (!ref.isDefault())
      {
        for (Player p : ref.getPlayers())
        {
          p.sendMessage(new CustomMessage("scripts.ai.freya.FreyaFailure", p));
        }
        ref.collapse();
      }
    }
    super.thinkActive();
    return true;
  }
View Full Code Here

   */
  public OlympiadGame(int id, CompType type, List<Integer> opponents)
  {
    _type = type;
    _id = id;
    _reflection = new Reflection();
    InstantZone instantZone = InstantZoneHolder.getInstance().getInstantZone(Rnd.get(147, 150));
    _reflection.init(instantZone);
    _team1 = new OlympiadTeam(this, 1);
    _team2 = new OlympiadTeam(this, 2);
    for (int i = 0; i < (opponents.size() / 2); i++)
View Full Code Here

    final Creature randomHated = actor.getAggroList().getRandomHated();
    final Creature mostHated = actor.getAggroList().getMostHated();
    if (!actor.isCastingNow() && (_eternalblizzardReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);
      final 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

    _selfnovaReuseTimer += generalReuse + (Rnd.get(1, 20) * 1000L);
    _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);
    final Reflection r = getActor().getReflection();
    for (Player p : r.getPlayers())
    {
      this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 2);
    }
  }
View Full Code Here

  {
    if ((_idleDelay == 0) && !getActor().isCurrentHpFull())
    {
      _idleDelay = System.currentTimeMillis();
    }
    final Reflection ref = getActor().getReflection();
    if (!getActor().isDead() && (_idleDelay > 0) && ((_idleDelay + 60000) < System.currentTimeMillis()))
    {
      if (!ref.isDefault())
      {
        for (Player p : ref.getPlayers())
        {
          p.sendMessage(new CustomMessage("scripts.ai.freya.FreyaFailure", p));
        }
        ref.collapse();
      }
    }
    super.thinkActive();
    return true;
  }
View Full Code Here

   * @see lineage2.gameserver.model.entity.events.objects.SpawnableObject#despawnObject(GlobalEvent)
   */
  @Override
  public void despawnObject(GlobalEvent event)
  {
    Reflection ref = event.getReflection();
    if (ref == ReflectionManager.DEFAULT)
    {
      refreshObject(event);
    }
    else
View Full Code Here

  protected void thinkAttack()
  {
    if (!_battleActive)
    {
      _battleActive = true;
      final Reflection r = actor.getReflection();
      teredorEggs = r.getAllByNpcId(teredorLairEgg, true);
      ThreadPoolManager.getInstance().scheduleAtFixedDelay(new EggSpawnTask(r), 1000, delayEggTask * 1000);
    }
    if (!_eliteSpawned)
    {
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(eliteMillipede));
View Full Code Here

  protected void thinkAttack()
  {
    if (!_activated)
    {
      final Player player = (Player) actor.getAggroList().getMostHated();
      final Reflection ref = actor.getReflection();
      ThreadPoolManager.getInstance().schedule(new SpawnMonster(actor, player, ref), monsterSpawnDelay * 1000);
      if (player.getParty() != null)
      {
        for (Playable playable : player.getParty().getPartyMembersWithPets())
        {
View Full Code Here

   * @param killer Creature
   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final Reflection r = actor.getReflection();
    r.setReenterTime(System.currentTimeMillis());
    for (Player p : r.getPlayers())
    {
      p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
    }
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, actor.getObjectId(), actor.getLoc()));
    super.onEvtDead(killer);
View Full Code Here

TOP

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

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.