Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.Reflection


    return true;
  }
 
  private void activateTombGuards(Player player)
  {
    Reflection r = player.getReflection();
    if ((r == null) || r.isDefault())
    {
      return;
    }
    r.openDoor(21100101);
    r.openDoor(21100102);
    r.openDoor(21100103);
    r.openDoor(21100104);
    r.spawnByGroup("tombguards1");
    r.spawnByGroup("tombguards2");
    r.spawnByGroup("tombguards3");
    r.spawnByGroup("tombguards4");
  }
View Full Code Here


            {
              st.giveItems(FragmentOfTheDungeonLeaderMark, RewardMarksCount);
              st.playSound(SOUND_ITEMGET);
              st.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            Reflection r = ReflectionManager.getInstance().get(prison.getReflectionId());
            if (r != null)
            {
              r.startCollapseTimer(300000);
            }
            break;
        }
        break;
      }
View Full Code Here

          return null;
        }
      }
      prison = new Prison(castle.getId(), iz);
      _prisons.put(prison.getCastleId(), prison);
      Reflection r = ReflectionManager.getInstance().get(prison.getReflectionId());
      r.setReturnLoc(player.getLoc());
      for (Player member : player.getParty().getPartyMembers())
      {
        if (member != player)
        {
          newQuestState(member, STARTED);
        }
        member.setReflection(r);
        member.teleToLocation(iz.getTeleportCoord());
        member.setVar("backCoords", r.getReturnLoc().toXYZString(), -1);
        member.setInstanceReuse(iz.getId(), System.currentTimeMillis());
      }
      player.getParty().setReflection(r);
      r.setParty(player.getParty());
      r.startCollapseTimer(iz.getTimelimit() * 60 * 1000L);
      player.getParty().broadCast(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(iz.getTimelimit()));
      prison.initSpawn(type1[Rnd.get(type1.length)], true);
    }
    return null;
  }
View Full Code Here

   */
  @Override
  protected void onEvtSpawn()
  {
    super.onEvtSpawn();
    final Reflection r = getActor().getReflection();
    for (Player p : r.getPlayers())
    {
      this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 5);
    }
  }
View Full Code Here

      player.standUp();
    }
    player.setTarget(null);
    player.setIsInOlympiadMode(true);
    player.leaveParty();
    Reflection ref = _game.getReflection();
    InstantZone instantZone = ref.getInstancedZone();
    Location tele = Location.findPointToStay(instantZone.getTeleportCoords().get(_side - 1), 50, 50, ref.getGeoIndex());
    player._stablePoint = _returnLoc;
    player.teleToLocation(tele, ref);
    if (_type == CompType.TEAM)
    {
      player.setTeam(_side == 1 ? TeamType.BLUE : TeamType.RED);
View Full Code Here

  @Override
  public void teleportPlayers(String name)
  {
    InstantZone instantZone = InstantZoneHolder.getInstance().getInstantZone(1);
   
    Reflection reflection = new Reflection();
    reflection.init(instantZone);
   
    List<DuelSnapshotObject> team = getObjects(BLUE_TEAM);
   
    for (int i = 0; i < team.size(); i++)
    {
View Full Code Here

   * @see lineage2.gameserver.model.entity.events.objects.InitableObject#initObject(GlobalEvent)
   */
  @Override
  public void initObject(GlobalEvent e)
  {
    Reflection r = e.getReflection();
    _zone = r.getZone(_name);
  }
View Full Code Here

   */
  @Override
  protected void onEvtSpawn()
  {
    super.onEvtSpawn();
    final Reflection r = getActor().getReflection();
    if ((r != null) && (r.getPlayers() != null))
    {
      for (Player p : r.getPlayers())
      {
        this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 5);
      }
    }
  }
View Full Code Here

    return null;
  }
 
  private void enterInstance(Player player)
  {
    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

    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

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.