Package l2p.util

Examples of l2p.util.Location


    _socialTask2 = ThreadPoolManager.getInstance().scheduleGeneral(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().scheduleGeneral(new KillPc(awake_by, baium), 26000);
    _callAngelTask = ThreadPoolManager.getInstance().scheduleGeneral(new CallArchAngel(), 35000);
    _mobiliseTask = ThreadPoolManager.getInstance().scheduleGeneral(new SetMobilised(baium), 35500);
    // move at random.
    Location pos = new Location(Rnd.get(112826, 116241), Rnd.get(15575, 16375), 10078, 0);
    _moveAtRandomTask = ThreadPoolManager.getInstance().scheduleGeneral(new MoveAtRandom(baium, pos), 36000);
    _sleepCheckTask = ThreadPoolManager.getInstance().scheduleGeneral(new CheckLastAttack(), 600000);
  }
View Full Code Here


      return;
    }
    L2MonsterInstance boss = ((L2MinionInstance) actor).getLeader();
    if(boss != null && !boss.isDead())
    {
      Location loc = actor.getLoc();
      L2MinionInstance newMinion = new L2MinionInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(Eidolon_ID), boss);
      newMinion.setSpawnedLoc(loc);
      newMinion.onSpawn();
      newMinion.spawnMe(loc);
      newMinion.getAI().setGlobalAggro(0);
View Full Code Here

          _mobiliseTask = ThreadPoolManager.getInstance().scheduleGeneral(new SetMobilised(_antharas), 16);
          _antharas.setRunning();
          // move at random.
          if(FWA_MOVEATRANDOM)
          {
            Location pos = new Location(Rnd.get(175000, 178500), Rnd.get(112400, 116000), -7707, 0);
            _moveAtRandomTask = ThreadPoolManager.getInstance().scheduleGeneral(new MoveAtRandom(_antharas, pos), 32);
          }
          _sleepCheckTask = ThreadPoolManager.getInstance().scheduleGeneral(new CheckLastAttack(), 600000);
          break;
      }
View Full Code Here

    public void run()
    {
      L2MonsterInstance behemoth = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(29069));
      behemoth.onSpawn();
      behemoth.setSpawnedLoc(new Location(Rnd.get(175000, 179900), Rnd.get(112400, 116000), -7709));
      behemoth.spawnMe(behemoth.getSpawnedLoc());
      _monsters.add(behemoth);
      if(_behemothSpawnTask != null)
      {
        _behemothSpawnTask.cancel(false);
View Full Code Here

    public void run()
    {
      int npcId = Rnd.get(29070, 29076);
      L2MonsterInstance bomber = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(npcId));
      bomber.onSpawn();
      bomber.setSpawnedLoc(new Location(Rnd.get(175000, 179900), Rnd.get(112400, 116000), -7709));
      bomber.spawnMe(bomber.getSpawnedLoc());
      _monsters.add(bomber);
      // set self destruction.
      _selfDestructionTask = ThreadPoolManager.getInstance().scheduleGeneral(new SelfDestructionOfBomber(bomber), 3000);
      if(_bomberSpawnTask != null)
View Full Code Here

        player.sendPacket(Msg.YOU_HAVE_ALREADY_BOARDED_ANOTHER_AIRSHIP);
        return;
      }
      player._stablePoint = player.getLoc().setH(0);
      player.setVehicle(airship);
      player.setInVehiclePosition(new Location());
      player.setLoc(airship.getLoc());
      player.broadcastPacket(new ExGetOnAirShip(player, airship, player.getInVehiclePosition()));
    }
    else if(command.equalsIgnoreCase("summon"))
    {
View Full Code Here

  {
    World world = worlds.get(npc.getReflection().getId());
    if(world != null && world.status == 0)
    {
      world.status = 1;
      addSpawnToInstance(GardenGuard3, new Location(-110016, 74512, -12533, 0), 0, world.instanceId);
      addSpawnToInstance(GardenGuard2, new Location(-109729, 74913, -12533, 0), 0, world.instanceId);
      addSpawnToInstance(GardenGuard2, new Location(-109981, 74899, -12533, 0), 0, world.instanceId);
    }
    return null;
  }
View Full Code Here

    if(state == STARTING_RACE)
    {
      //state++;
      PlaySound SRace = new PlaySound("S_Race");
      broadcast(SRace);
      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, new Location(12125, 182487, -3559));
      broadcast(SRace2);
      packet = new MonRaceInfo(codes[1][0], codes[1][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
      ThreadPoolManager.getInstance().scheduleAi(new RunRace(), 5000, false);
    }
View Full Code Here

      if(Rnd.chance(92))
      {
        try
        {
          L2Spawn sp = new L2Spawn(NpcTable.getTemplate(Stakato_Cheif));
          Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 0, 0, actor.getReflection().getGeoIndex());
          sp.setLoc(pos);
          L2NpcInstance npc = sp.doSpawn(true);
          actor.broadcastPacket(new SocialAction(actor.getObjectId(), 1));
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster, Rnd.get(1, 100));
          actor.doDie(caster);
View Full Code Here

  public MasterFestina(L2Character actor)
  {
    super(actor);
    _zone = ZoneManager.getInstance().getZoneById(ZoneType.dummy, 704010, true);
    _mysticSpawnPoints = new Location[] {new Location(-11480, 273992, -11768), new Location(-11128, 273992, -11864),
      new Location(-10696, 273992, -11936), new Location(-12552, 274920, -11752),
      new Location(-12568, 275320, -11864), new Location(-12568, 275784, -11936),
      new Location(-13480, 273880, -11752), new Location(-13880, 273880, -11864),
      new Location(-14328, 273880, -11936), new Location(-12456, 272968, -11752),
      new Location(-12456, 272552, -11864), new Location(-12456, 272120, -11936)};
    _spiritGuardSpawnPoints = new Location[] {new Location(-12552, 272168, -11936),
      new Location(-12552, 272520, -11872), new Location(-12552, 272984, -11744),
      new Location(-13432, 273960, -11736), new Location(-13864, 273960, -11856),
      new Location(-14296, 273976, -11936), new Location(-12504, 275736, -11936),
      new Location(-12472, 275288, -11856), new Location(-12472, 274888, -11744),
      new Location(-11544, 273912, -11752), new Location(-11160, 273912, -11856),
      new Location(-10728, 273896, -11936)};
  }
View Full Code Here

TOP

Related Classes of l2p.util.Location

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.