Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.TrapInstance.deleteMe()


          if(officer != null)
            officerMoveToLocation(officer, new Location(-119112, 213672, -8617, 8191));

          NpcInstance generator = getNpcFromReflection(ELECTRICITY_GENERATOR, reflect);
          if(generator != null)
            generator.deleteMe();
        }
      }
      return null;
    }
    else if(event.equalsIgnoreCase("start_stage_7"))
View Full Code Here


        for (int i = 0; i < 4; i++)
        {
          actor.getReflection().addSpawnWithoutRespawn(20845, actor.getLoc(), 200);
          actor.getReflection().addSpawnWithoutRespawn(20847, actor.getLoc(), 200);
        }
        actor.deleteMe();
        return true;
      }
      else if (actor.getReflection().getInstancedZoneId() == 135)
      {
        for (NpcInstance npc : actor.getReflection().getNpcs())
View Full Code Here

        for (int i = 0; i < 4; i++)
        {
          actor.getReflection().addSpawnWithoutRespawn(29184, actor.getLoc(), 300);
          actor.getReflection().addSpawnWithoutRespawn(29183, actor.getLoc(), 300);
        }
        actor.deleteMe();
        return true;
      }
    }
    else
    {
View Full Code Here

    final NpcInstance actor = getActor();
    if (master == null)
      master = getActor().getFollowTarget();
    //if master exit from instance delete me
    if (actor.getReflectionId() != master.getReflectionId())
      actor.deleteMe();
    //Check for Heal
    if (actor.getNpcId() == 33639 || actor.getNpcId() == 33628 || actor.getNpcId() == 33617)
    {
      if (master != null && !master.isDead() && master.getCurrentHpPercents() < 80)
      {
View Full Code Here

    final NpcInstance actor = getActor();
    if (Rnd.chance(30))
    {
      Functions.npcSay(actor, "Враги! В�?�?ду враги! В�?е �?�?да, враги зде�?�?!");
    }
    actor.deleteMe();
  }
}
View Full Code Here

          poslofAttacker = npc;
        }
      }
      if (!monsterFound && (poslofAttacker != null))
      {
        poslofAttacker.deleteMe();
      }
    }
    return true;
  }
 
View Full Code Here

    if (_lastPoint >= _points.length)
    {
      if (!npc.getReflection().isDefault())
      {
        ((HeartInfinityDefence) npc.getReflection()).notifyWagonArrived();
        npc.deleteMe();
        return;
      }
    }
    addTaskMove(Location.findPointToStay(_points[_lastPoint], 250, npc.getGeoIndex()), true);
    doTask();
View Full Code Here

          p.sendPacket(new ExShowScreenMessage(NpcString.THE_TUMOR_INSIDE_S1_HAS_BEEN_DESTROYED_NTHE_SPEED_THAT_EKIMUS_CALLS_OUT_HIS_PREY_HAS_SLOWED_DOWN, 8000, ExShowScreenMessage.ScreenMessageAlign.MIDDLE_CENTER, false, 1, -1, false, "#" + NpcString.HEART_OF_IMMORTALITY.getId()));
        ThreadPoolManager.getInstance().schedule(new RunnableImpl(){
          @Override
          public void runImpl() throws Exception
          {
            deadTumor.deleteMe();
            addSpawnWithoutRespawn(AliveTumor, deadTumor.getLoc(), 0);
            wagonRespawnTime -= 10000L;
            handleTumorHp(0.25);
            invokeDeathListener();
            for(Player p : getPlayers())
View Full Code Here

    {
      @Override
      public void runImpl()
      {
        List<Player> around = World.getAroundPlayers(npc, 750, 100);
        npc.deleteMe();
        for (Player player : around)
        {
          player.teleToLocation(miniGameEvent.getResidence().getOwnerRestartPoint());
        }
        miniGameEvent.processStep(_winner.getClan());
View Full Code Here

                            npc.callSkill(SkillTable.getInstance().getInfo(14065, 1), target, true);
                        }
                    }
        if (target.size() > 0) {
          target.clear();
          npc.deleteMe();
        }
        }
    }
    return true;
    }
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.