Examples of Reflection


Examples of lineage2.gameserver.model.entity.Reflection

          }
        }, 500);
      }
    }
    final double actor_hp_precent = actor.getCurrentHpPercents();
    final Reflection r = actor.getReflection();
    switch (_stage)
    {
      case 0:
        if (actor_hp_precent < 90)
        {
          r.addSpawnWithoutRespawn(pirates_zombie_captain_b, actor.getLoc(), 300);
          _stage++;
        }
        break;
      case 1:
        if (actor_hp_precent < 80)
        {
          r.addSpawnWithoutRespawn(doll_blader_b, actor.getLoc(), 300);
          _stage++;
        }
        break;
      case 2:
        if (actor_hp_precent < 70)
        {
          r.addSpawnWithoutRespawn(vale_master_b, actor.getLoc(), 300);
          r.addSpawnWithoutRespawn(vale_master_b, actor.getLoc(), 300);
          _stage++;
        }
        break;
      case 3:
        if (actor_hp_precent < 60)
        {
          for (int i = 0; i < 5; i++)
          {
            r.addSpawnWithoutRespawn(pirates_zombie_b, actor.getLoc(), 300);
          }
          _stage++;
        }
        break;
      case 4:
        if (actor_hp_precent < 50)
        {
          for (int i = 0; i < 5; i++)
          {
            r.addSpawnWithoutRespawn(doll_blader_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(vale_master_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_captain_b, actor.getLoc(), 300);
          }
          _stage++;
        }
        break;
      case 5:
        if (actor_hp_precent < 40)
        {
          for (int i = 0; i < 6; i++)
          {
            r.addSpawnWithoutRespawn(doll_blader_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(vale_master_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_captain_b, actor.getLoc(), 300);
          }
          _stage++;
        }
        break;
      case 6:
        if (actor_hp_precent < 30)
        {
          for (int i = 0; i < 7; i++)
          {
            r.addSpawnWithoutRespawn(doll_blader_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(vale_master_b, actor.getLoc(), 300);
            r.addSpawnWithoutRespawn(pirates_zombie_captain_b, actor.getLoc(), 300);
          }
          _stage++;
        }
        break;
      default:
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

   * @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

Examples of lineage2.gameserver.model.entity.Reflection

    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

Examples of lineage2.gameserver.model.entity.Reflection

    {
      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

Examples of lineage2.gameserver.model.entity.Reflection

   * @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

Examples of lineage2.gameserver.model.entity.Reflection

  }

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

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

Examples of lineage2.gameserver.model.entity.Reflection

  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

Examples of lineage2.gameserver.model.entity.Reflection

  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

Examples of lineage2.gameserver.model.entity.Reflection

    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

Examples of lineage2.gameserver.model.entity.Reflection

    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
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.