Examples of TrapInstance


Examples of lineage2.gameserver.model.instances.TrapInstance

  {
    for (Creature target : targets)
    {
      if ((target != null) && target.isTrap())
      {
        TrapInstance trap = (TrapInstance) target;
        if (trap.getLevel() <= getPower())
        {
          trap.deleteMe();
        }
      }
    }
    if (isSSPossible())
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.TrapInstance

  {
    for (Creature target : targets)
    {
      if ((target != null) && target.isTrap())
      {
        TrapInstance trap = (TrapInstance) target;
        if (trap.getLevel() <= getPower())
        {
          trap.setDetected(true);
          for (Player player : World.getAroundPlayers(trap))
          {
            player.sendPacket(new NpcInfo(trap, player));
          }
        }
View Full Code Here

Examples of lineage2.gameserver.model.instances.TrapInstance

        Skill trapSkill = getFirstAddedSkill();
        if (activeChar.getTrapsCount() >= 5)
        {
          activeChar.destroyFirstTrap();
        }
        TrapInstance trap = new TrapInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(getNpcId()), activeChar, trapSkill);
        activeChar.addTrap(trap);
        trap.spawnMe();
        break;
      case SERVITOR:
      case MULTI_SERVITOR:
      case SIEGE_SUMMON:
        Location loc = null;
View Full Code Here

Examples of lineage2.gameserver.model.instances.TrapInstance

      final NpcInstance actor = getActor();
      if (actor.isDead())
      {
        return;
      }
      TrapInstance trap;
      for (int i = 0; i < 10; i++)
      {
        trap = new TrapInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(13037), actor, trapSkills[Rnd.get(trapSkills.length)], new Location(Rnd.get(151896, 153608), Rnd.get(145032, 146808), -12584));
        trap.spawnMe();
      }
    }
View Full Code Here

Examples of lineage2.gameserver.model.instances.TrapInstance

    if (_traps == null)
    {
      return null;
    }
    Collection<TrapInstance> result = new ArrayList<TrapInstance>(getTrapsCount());
    TrapInstance trap;
    for (Integer trapId : _traps.keySet())
    {
      if ((trap = (TrapInstance) GameObjectsStorage.get(_traps.get(trapId))) != null)
      {
        result.add(trap);
View Full Code Here

Examples of lineage2.gameserver.model.instances.TrapInstance

    Map<Integer, Long> traps = _traps;
    if ((traps == null) || traps.isEmpty())
    {
      return;
    }
    TrapInstance trap;
    for (Integer trapId : traps.keySet())
    {
      if ((trap = (TrapInstance) GameObjectsStorage.get(traps.get(trapId))) != null)
      {
        trap.deleteMe();
        return;
      }
      return;
    }
  }
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.