Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2


        Functions.npcSay(this, NpcString.IN_AIR_HARBOR_ALREADY_AIRSHIP_DOCKED_PLEASE_WAIT_AND_TRY_AGAIN, ChatType.SHOUT, 5000);
        return;
      }
      if (Functions.removeItem(player, ENERGY_STAR_STONE, 5) != 5)
      {
        player.sendPacket(new SystemMessage2(SystemMsg.AN_AIRSHIP_CANNOT_BE_SUMMONED_BECAUSE_YOU_DONT_HAVE_ENOUGH_S1).addItemName(ENERGY_STAR_STONE));
        return;
      }
      ClanAirShip dockedShip = new ClanAirShip(player.getClan());
      dockedShip.setDock(_dock);
      dockedShip.setPlatform(_platform);
View Full Code Here


        player.setVar("MenteeCertGet", "1", -1);
        ItemFunctions.addItem(player, 33800, 1, true);
      }
      else
      {
        player.sendPacket(new SystemMessage2(SystemMsg.YOU_ARE_NO_PRIORITY_RIGHTS_ON_A_SWEEPER));
      }
    }
    else if (actualCommand.equalsIgnoreCase("MenteeCertChange"))
    {
      if ((player.getInventory().getCountOf(33800) == 1) && (player.getLevel() >= 86))
      {
        ItemFunctions.addItem(player, 33805, 40, true);
        ItemFunctions.removeItem(player, 33800, 1, true);
      }
      else
      {
        player.sendPacket(new SystemMessage2(SystemMsg.YOU_ARE_NO_PRIORITY_RIGHTS_ON_A_SWEEPER));
      }
    }
    else
    {
      super.onBypassFeedback(player, command);
View Full Code Here

        i = itemCount;
        item.setCount(itemCount);
      }
      if (isRaid() || (this instanceof ReflectionBossInstance))
      {
        SystemMessage2 sm;
        if (itemId == 57)
        {
          sm = new SystemMessage2(SystemMsg.C1_HAS_DIED_AND_DROPPED_S2_ADENA);
          sm.addName(this);
          sm.addLong(item.getCount());
        }
        else
        {
          sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
          sm.addName(this);
          sm.addItemName(itemId);
          sm.addLong(item.getCount());
        }
        broadcastPacket(sm);
      }
      lastAttacker.doAutoLootOrDrop(item, this);
    }
View Full Code Here

    {
      return;
    }
    if (isRaid() || (this instanceof ReflectionBossInstance))
    {
      SystemMessage2 sm;
      if (item.getItemId() == 57)
      {
        sm = new SystemMessage2(SystemMsg.C1_HAS_DIED_AND_DROPPED_S2_ADENA);
        sm.addName(this);
        sm.addLong(item.getCount());
      }
      else
      {
        sm = new SystemMessage2(SystemMsg.C1_DIED_AND_DROPPED_S3_S2);
        sm.addName(this);
        sm.addItemName(item.getItemId());
        sm.addLong(item.getCount());
      }
      broadcastPacket(sm);
    }
    lastAttacker.doAutoLootOrDrop(item, this);
  }
View Full Code Here

    if (counts == 0)
    {
      int minlevel = SkillAcquireHolder.getInstance().getMinLevelForNewSkill(player, AcquireType.NORMAL);
      if (minlevel > 0)
      {
        SystemMessage2 sm = new SystemMessage2(SystemMsg.YOU_DO_NOT_HAVE_ANY_FURTHER_SKILLS_TO_LEARN__COME_BACK_WHEN_YOU_HAVE_REACHED_LEVEL_S1);
        sm.addInteger(minlevel);
        player.sendPacket(sm);
      }
      else
      {
        player.sendPacket(SystemMsg.THERE_ARE_NO_OTHER_SKILLS_TO_LEARN);
View Full Code Here

      return;
    }
    if (_answer == 0)
    {
      request.cancel();
      requestor.sendPacket(new SystemMessage2(SystemMsg.S1_HAS_DECLINED_BECOMING_YOUR_MENTEE).addString(activeChar.getName()));
      return;
    }
    if (requestor.isActionsDisabled())
    {
      request.cancel();
      activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addString(requestor.getName()));
      activeChar.sendActionFailed();
      return;
    }
    try
    {
      requestor.getMenteeMentorList().addMentee(activeChar);
      activeChar.getMenteeMentorList().addMentor(requestor);
      activeChar.sendPacket(new SystemMessage2(SystemMsg.FROM_NOW_ON_S1_WILL_BE_YOUR_MENTOR).addName(requestor), new ExMentorList(activeChar));
      requestor.sendPacket(new SystemMessage2(SystemMsg.FROM_NOW_ON_S1_WILL_BE_YOUR_MENTEE).addName(activeChar), new ExMentorList(requestor));
      Mentoring.applyMenteeBuffs(activeChar);
      Mentoring.applyMentorBuffs(requestor);
    }
    finally
    {
View Full Code Here

          return;
        }
        final Player pcTarget = target.getPlayer();
        if (pcTarget.isProcessingRequest() && pcTarget.getRequest().isTypeOf(L2RequestType.COUPLE_ACTION))
        {
          activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ALREADY_PARTICIPATING_IN_A_COUPLE_ACTION_AND_CANNOT_BE_REQUESTED_FOR_ANOTHER_COUPLE_ACTION).addName(pcTarget));
          return;
        }
        if (pcTarget.isProcessingRequest())
        {
          activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addName(pcTarget));
          return;
        }
        if (!activeChar.isInRange(pcTarget, 300) || activeChar.isInRange(pcTarget, 25) || (activeChar.getTargetId() == activeChar.getObjectId()) || !GeoEngine.canSeeTarget(activeChar, pcTarget, false))
        {
          activeChar.sendPacket(SystemMsg.THE_REQUEST_CANNOT_BE_COMPLETED_BECAUSE_THE_TARGET_DOES_NOT_MEET_LOCATION_REQUIREMENTS);
          return;
        }
        if (!activeChar.checkCoupleAction(pcTarget))
        {
          activeChar.sendActionFailed();
          return;
        }
        new Request(L2RequestType.COUPLE_ACTION, activeChar, pcTarget).setTimeout(10000L);
        activeChar.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_REQUESTED_A_COUPLE_ACTION_WITH_C1).addName(pcTarget));
        pcTarget.sendPacket(new ExAskCoupleAction(activeChar.getObjectId(), action.value));
        if (Config.ALT_SOCIAL_ACTION_REUSE)
        {
          ThreadPoolManager.getInstance().schedule(new SocialTask(activeChar), 2600);
          activeChar.startParalyzed();
View Full Code Here

    {
      return;
    }
    if (target.isBusy())
    {
      player.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addName(target));
      return;
    }
    duelEvent.askDuel(player, target);
  }
View Full Code Here

      if (!player.consumeItem(skillLearn.getItemId(), skillLearn.getItemCount()))
      {
        return;
      }
    }
    player.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_EARNED_S1_SKILL).addSkillName(skill.getId(), skill.getLevel()));
    player.setSp(player.getSp() - skillLearn.getCost());
    player.addSkill(skill, true);
    player.sendUserInfo();
    player.updateStats();
    player.sendPacket(new SkillList(player, skill.getId()));
View Full Code Here

      if (!player.consumeItem(skillLearn.getItemId(), skillLearn.getItemCount()))
      {
        return;
      }
    }
    player.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_EARNED_S1_SKILL).addSkillName(skill.getId(), skill.getLevel()));
    player.addCertSkill(skill, isDual);
    player.sendUserInfo();
    player.updateStats();
    player.sendPacket(new SkillList(player, skill.getId()));
    player.sendPacket(new ExAcquirableSkillListByClass(player));
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.SystemMessage2

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.