Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.sendPacket()


    }
    else if (event.equalsIgnoreCase("32557-09.htm"))
    {
      if (player.getTransformation() != 0)
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      st.set("transform", "1");
      SkillTable.getInstance().getInfo(5982, 1).getEffects(player, player, false, false);
    }
View Full Code Here


    }
    else if (event.equalsIgnoreCase("32557-10.htm"))
    {
      if (player.getTransformation() != 0)
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      SkillTable.getInstance().getInfo(5983, 1).getEffects(player, player, false, false);
    }
    else if (event.equalsIgnoreCase("32557-13.htm"))
View Full Code Here

    }
    else if (event.equalsIgnoreCase("32557-13.htm"))
    {
      if (player.getTransformation() != 0)
      {
        player.sendPacket(Msg.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
        return null;
      }
      if (st.getInt("transform") == 1)
      {
        SkillTable.getInstance().getInfo(5982, 1).getEffects(player, player, false, false);
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isProcessingRequest())
    {
      activeChar.sendPacket(Msg.WAITING_FOR_ANOTHER_REPLY);
      return;
    }
    if (!activeChar.isInParty())
    {
      activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_INVITE_SOMEONE_TO_THE_COMMAND_CHANNEL);
View Full Code Here

      activeChar.sendPacket(Msg.WAITING_FOR_ANOTHER_REPLY);
      return;
    }
    if (!activeChar.isInParty())
    {
      activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_AUTHORITY_TO_INVITE_SOMEONE_TO_THE_COMMAND_CHANNEL);
      return;
    }
    Player target = World.getPlayer(_name);
    if (target == null)
    {
View Full Code Here

      activeChar.sendPacket(new SystemMessage2(SystemMsg.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addSkillName(this));
      return false;
    }
    if (!player.isInRangeZ(target, 185))
    {
      player.sendPacket(SystemMsg.YOUR_TARGET_IS_OUT_OF_RANGE);
      return false;
    }
    if (first)
    {
      siegeEvent.broadcastTo(SystemMsg.THE_OPPOSING_CLAN_HAS_STARTED_TO_ENGRAVE_THE_HOLY_ARTIFACT, SiegeEvent.DEFENDERS);
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isInStoreMode())
    {
      activeChar.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
      return;
    }
    if (activeChar.isInTrade())
    {
      activeChar.sendActionFailed();
View Full Code Here

      return false;
    }
    if (player.isFishing())
    {
      player.stopFishing();
      player.sendPacket(Msg.CANCELS_FISHING);
      return false;
    }
    if (player.isInBoat())
    {
      activeChar.sendPacket(Msg.YOU_CANT_FISH_WHILE_YOU_ARE_ON_BOARD);
View Full Code Here

      activeChar.sendPacket(Msg.YOU_CANNOT_FISH_WHILE_USING_A_RECIPE_BOOK_PRIVATE_MANUFACTURE_OR_PRIVATE_STORE);
      return false;
    }
    if (!player.isInZone(ZoneType.FISHING) || player.isInWater())
    {
      player.sendPacket(Msg.YOU_CANT_FISH_HERE);
      return false;
    }
    WeaponTemplate weaponItem = player.getActiveWeaponItem();
    if ((weaponItem == null) || (weaponItem.getItemType() != WeaponType.ROD))
    {
View Full Code Here

      return false;
    }
    WeaponTemplate weaponItem = player.getActiveWeaponItem();
    if ((weaponItem == null) || (weaponItem.getItemType() != WeaponType.ROD))
    {
      player.sendPacket(Msg.FISHING_POLES_ARE_NOT_INSTALLED);
      return false;
    }
    ItemInstance lure = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND);
    if ((lure == null) || (lure.getCount() < 1))
    {
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.