Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.Earthquake


  private void EnterGM(L2PcInstance activeChar)
  {
    if (activeChar.isGM())
    {
      if (Config.GM_SPECIAL_EFFECT)
        activeChar.broadcastPacket(new Earthquake(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 50, 4));

      if (Config.SHOW_GM_LOGIN)
        Announcements.getInstance().announceToAll("GM " + activeChar.getName() + " has logged on.");

      if (Config.GM_STARTUP_INVULNERABLE && AdminCommandAccessRights.getInstance().hasAccess("admin_invul", activeChar.getAccessLevel()))
View Full Code Here


      {
        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);
        val1 = null;
        val2 = null;
      }
      catch(Exception e)
View Full Code Here

    long temp = 0;
    if (event.equalsIgnoreCase("waiting"))
    {
      startQuestTimer("close", 27000, npc, null);
      startQuestTimer("camera_1", 30000, npc, null);
      _Zone.broadcastPacket(new Earthquake(getXFix(174232), getYFix(-88020), getZFix(-5116), 45, 27));
    }
    else if (event.equalsIgnoreCase("room1_spawn"))
    {
      for (int i = 0; i <= 17; i++)
      {
View Full Code Here

          GrandBossManager.getInstance().setBossStatus(FRINTEZZA, WAITING);
          player.sendPacket(new CreatureSay(0, Say2.SHOUT, "Frintezza", "Intruders! You dare to enter my Kingdom! you shall suffer!"));
          //sm = new CreatureSay(0, Say2.SHOUT, "");
          startQuestTimer("close", 27000, npc, null);
          startQuestTimer("camera_1", 30000, npc, null);
          _Zone.broadcastPacket(new Earthquake(getXFix(174232), getYFix(-88020), getZFix(-5116), 45, 27));
         
          //startQuestTimer("close", 0, npc, null);
          //startQuestTimer("room1_spawn", 5000, npc, null);
          //startQuestTimer("room_final", 2100000, null, null);
          //startQuestTimer("frintezza_despawn", 60000, null, null, true);
View Full Code Here

      _KillHallAlarmDevice++;
      if (_KillHallAlarmDevice == 3) // Start quest
      {
        startQuestTimer("close", 27000, npc, null);
        startQuestTimer("camera_1", 30000, npc, null);
        _Zone.broadcastPacket(new Earthquake(getXFix(174232), getYFix(-88020), getZFix(-5116), 45, 27));
      }
      if (_KillHallAlarmDevice == 4)
      {
        startQuestTimer("room1_del", 100, npc, null);
        //startQuestTimer("room2_spawn", 100, npc, null);
View Full Code Here

        } else if (event.equalsIgnoreCase("clean_player")) {
            _target = getRandomTarget(npc);
        } else if (event.equalsIgnoreCase("baium_wakeup") && npc != null) {
            if (npc.getNpcId() == LIVE_BAIUM) {
                npc.broadcastPacket(new SocialAction(npc.getObjectId(), 1));
                npc.broadcastPacket(new Earthquake(npc.getX(), npc.getY(), npc.getZ(), 40, 5));
                // start monitoring baium's inactivity
                _LastAttackVsBaiumTime = System.currentTimeMillis();

                if (!npc.getSpawn().is_customBossInstance())
                    startQuestTimer("baium_despawn", 60000, npc, null, true);
View Full Code Here

    public void run()
    {
      GrandBossManager.getInstance().setBossStatus(_bossId,DORMANT);
      if (FWA_DOSERVEREARTHQUAKE)
        for(L2PcInstance p : L2World.getInstance().getAllPlayers())
          p.broadcastPacket(new Earthquake(185708,114298,-8221,20,10));
    }
View Full Code Here

      _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);
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.Earthquake

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.