Package lineage2.gameserver.model.entity

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


    return null;
  }
 
  private void enterInstance(Player player, int instancedZoneId)
  {
    Reflection r = player.getActiveReflection();
    if (r != null)
    {
      if (player.canReenterInstance(instancedZoneId))
      {
        player.teleToLocation(r.getTeleportLoc(), r);
      }
    }
    else if (player.canEnterInstance(instancedZoneId))
    {
      ReflectionUtils.enterReflection(player, instancedZoneId);
View Full Code Here


    {
      return;
    }
    if (command.equalsIgnoreCase("enter"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(fortunaId))
          player.teleToLocation(r.getTeleportLoc(), r);
      }
      else if (player.canEnterInstance(fortunaId))
      {
        ReflectionUtils.enterReflection(player, new FortunaInstance(), fortunaId);
      }
View Full Code Here

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

  }

  @Override
  protected void onDeath(Creature killer)
  {
    Reflection reflection = getReflection();
    if(reflection != ReflectionManager.DEFAULT)
      reflection.collapse();

    super.onDeath(killer);
  }
View Full Code Here

  protected void onEvtDead(Creature killer)
  {
    NpcInstance actor = getActor();
    if (actor.getNpcId() == 22985)
    {
      Reflection r = actor.getReflection();
      if(r instanceof SpezionNormal)
      {
        SpezionNormal spezion = (SpezionNormal) r;
        spezion.openGate(26190004);
      }
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 TaskSetBlue(actor, player, ref), (timeToBlue + Rnd.get(maxRandomTimeBlue)) * 1000);
      _activated = true;
    }
    if (!_poisoned)
    {
View Full Code Here

    return htmltext;
  }
 
  private void enterInstance(Player player, int izId)
  {
    Reflection r = player.getActiveReflection();
    if (r != null)
    {
      if (player.canReenterInstance(izId))
      {
        player.teleToLocation(r.getTeleportLoc(), r);
      }
    }
    else if (player.canEnterInstance(izId))
    {
      ReflectionUtils.enterReflection(player, izId);
View Full Code Here

    return null;
  }
 
  private void enterInstance(Player player, int izId)
  {
    Reflection r = player.getActiveReflection();
    if (r != null)
    {
      if (player.canReenterInstance(izId))
      {
        player.teleToLocation(r.getTeleportLoc(), r);
      }
    }
    else if (player.canEnterInstance(izId))
    {
      ReflectionUtils.enterReflection(player, izId);
View Full Code Here

    {
      return htmltext;
    }
    if (event.equalsIgnoreCase("MemoryOfDisaster"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(MEMORY_OF_DISASTER_ID))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(MEMORY_OF_DISASTER_ID))
      {
        ReflectionUtils.enterReflection(player, new MemoryOfDisaster(player), MEMORY_OF_DISASTER_ID);
      }
      htmltext = null;
    }
    if (npc == null)
    {
      return htmltext;
    }
    switch (npc.getNpcId())
    {
      case CELLPHINE_ID:
        if (event.equalsIgnoreCase("quest_ac"))
        {
          st.setState(STARTED);
          st.setCond(1);
          st.playSound(SOUND_ACCEPT);
          htmltext = "0-2.htm";
        }
        break;
      case HADEL_ID:
        if (event.equalsIgnoreCase("1-5.htm"))
        {
          st.setCond(2);
          st.playSound(SOUND_MIDDLE);
        }
        else if (event.equalsIgnoreCase("EnterInstance"))
        {
          Reflection r = player.getActiveReflection();
          if (r != null)
          {
            if (player.canReenterInstance(INSTANCE_ID))
            {
              player.teleToLocation(r.getTeleportLoc(), r);
            }
          }
          else if (player.canEnterInstance(INSTANCE_ID))
          {
            if (st.getCond() < 3)
View Full Code Here

    if (isVisible())
    {
      decayMe();
      respawn = true;
    }
    Reflection r = getReflection();
    if (!r.isDefault())
    {
      r.removeObject(this);
    }
    _reflection = reflection;
    if (!reflection.isDefault())
    {
      reflection.addObject(this);
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.