Examples of Earthquake


Examples of lineage2.gameserver.network.serverpackets.Earthquake

      }
      _item.dropToTheGround(attackable, Location.findPointToStay(attackable, 100));
      _loc = _item.getLoc();
      _item.setDropTime(0);
      L2GameServerPacket redSky = new ExRedSky(10);
      L2GameServerPacket eq = new Earthquake(killer.getLoc(), 30, 12);
      for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      {
        player.sendPacket(redSky, eq);
      }
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

    _loc = oldItem.getLoc();
    oldItem.setDropTime(0);
    _item = oldItem;
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(oldItem.getItemId()));
    player.broadcastUserInfo();
    player.broadcastPacket(new Earthquake(player.getLoc(), 30, 12));
    return true;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

        player.sendPacket(new NpcHtmlMessage(player, this).setHtml("Cannon:<br><br>\"Huge Charges\" not available."));
        return;
      }

      broadcastPacketToOthers(new MagicSkillUse(this, this, 14175, 1, 3000, 0));
      broadcastPacket(new Earthquake(player.getLoc(), 10, 7));
      ThreadPoolManager.getInstance().schedule(new Shot(), 300 * 1000L);
      checkShot = false;
      ThreadPoolManager.getInstance().schedule(new RunnableImpl() {
      @Override
      public void runImpl() throws Exception {
        decayMe();
        spawnMe();
      }
      }, 3100);
      setTitle("Cannon is loading");

      Location loc = point_bombs[getNpcId()-32939];
     
      for (NpcInstance monster : World.getAroundNpcCor(loc, getCurrentRegion(), getReflectionId(), 650, 500))
      {
        if (monster == null || !monster.isNpc() || monster.getNpcId() != 22966 && monster.getNpcId() != 22965 && monster.getNpcId() != 22967)
          continue;
     
        if (monster.getNpcId() == 22966)
          Functions.spawn(monster.getLoc(), 22980);
        else if (monster.getNpcId() == 22965)
          Functions.spawn(monster.getLoc(), 22979);
        else if (monster.getNpcId() == 22967)
          Functions.spawn(monster.getLoc(), 22981);
         
        monster.decayMe();
        monster.doDie(this);
     
    } else if (command.equalsIgnoreCase("spezion_bomb"))
    {
      if (!checkShot) {
        Functions.npcSay(this, NpcString.CANNON_READY_TO_FIRE);
        player.sendPacket(new NpcHtmlMessage(player, this).setHtml("Cannon:<br><br>Preparations are underway to re-activate the cannon. This process can take up to 5 minutes."));
        return;
      } else if (!player.getInventory().destroyItemByItemId(17611, 1)) {
        player.sendPacket(new NpcHtmlMessage(player, this).setHtml("Cannon:<br><br>\"Huge Charges\" not available."));
        return;
      }
     
      checkShot = false;
      broadcastPacketToOthers(new MagicSkillUse(this, this, 14175, 1, 3000, 0));
      broadcastPacket(new Earthquake(player.getLoc(), 10, 7));
      ThreadPoolManager.getInstance().schedule(new RunnableImpl() {
      @Override
      public void runImpl() throws Exception {
        checkShot = true;
        setTitle("Empty Cannon");
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

  @Override
  protected void onEvtFinishCasting(int skill_id, boolean success)
  {
    if (success && (skill_id == SKILL_ID))
    {
      getActor().broadcastPacket(new Earthquake(getActor().getLoc(), 50, 4));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

  @Override
  protected void onEvtFinishCasting(int skill_id, boolean success)
  {
    if(success && skill_id == SKILL_ID)
      getActor().broadcastPacket(new Earthquake(getActor().getLoc(), 50, 4));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

     * Method runImpl.
     */
    @Override
    public void runImpl()
    {
      final Earthquake eq = new Earthquake(baium.getLoc(), 40, 5);
      baium.broadcastPacket(eq);
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Earthquake

      case admin_earthquake:
        try
        {
          int intensity = Integer.parseInt(wordList[1]);
          int duration = Integer.parseInt(wordList[2]);
          activeChar.broadcastPacket(new Earthquake(activeChar.getLoc(), intensity, duration));
        }
        catch (Exception e)
        {
          activeChar.sendMessage("USAGE: //earthquake intensity duration");
          return false;
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.Earthquake

      {
        String val1 = st.nextToken();
        int intensity = Integer.parseInt(val1);
        String val2 = st.nextToken();
        int duration = Integer.parseInt(val2);
        Earthquake eq = new Earthquake(activeChar.getX(), activeChar.getY(), activeChar.getZ(), intensity, duration);
        activeChar.broadcastPacket(eq);
      }
      catch (Exception e)
      {
        activeChar.sendMessage("Use: //earthquake <intensity> <duration>");
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.Earthquake

      _item = attackable.DropItem(player, _itemId, 1);
      _item.setDropTime(0); // Prevent item from being removed by ItemsAutoDestroy

      // RedSky and Earthquake
      ExRedSky packet = new ExRedSky(10);
      Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
      for (L2PcInstance aPlayer : L2World.getInstance().getAllPlayers()) {
        aPlayer.sendPacket(packet);
        aPlayer.sendPacket(eq);
      }
    } else
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.