Package lineage2.gameserver.model

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


      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    if (activeChar.isInTrade())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
      return;
    }
    ItemInstance targetItem = activeChar.getInventory().getItemByObjectId(_targetItemObjId);
    if ((targetItem == null) || !targetItem.isAugmented())
    {
View Full Code Here


      return;
    }
    ItemInstance targetItem = activeChar.getInventory().getItemByObjectId(_targetItemObjId);
    if ((targetItem == null) || !targetItem.isAugmented())
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.AUGMENTATION_REMOVAL_CAN_ONLY_BE_DONE_ON_AN_AUGMENTED_ITEM);
      return;
    }
    int price = getRemovalPrice(targetItem.getTemplate());
    if (price < 0)
    {
View Full Code Here

      return;
    }
    int price = getRemovalPrice(targetItem.getTemplate());
    if (price < 0)
    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
    }
    if (!activeChar.reduceAdena(price, true))
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
View Full Code Here

    {
      activeChar.sendPacket(new ExVariationCancelResult(0));
    }
    if (!activeChar.reduceAdena(price, true))
    {
      activeChar.sendPacket(new ExVariationCancelResult(0), Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
    }
    boolean equipped = targetItem.isEquipped();
    if (equipped)
    {
View Full Code Here

      activeChar.getInventory().equipItem(targetItem);
    }
    InventoryUpdate iu = new InventoryUpdate().addModifiedItem(targetItem);
    SystemMessage sm = new SystemMessage(SystemMessage.AUGMENTATION_HAS_BEEN_SUCCESSFULLY_REMOVED_FROM_YOUR_S1);
    sm.addItemName(targetItem.getItemId());
    activeChar.sendPacket(new ExVariationCancelResult(1), iu, sm);
    for (ShortCut sc : activeChar.getAllShortCuts())
    {
      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        activeChar.sendPacket(new ShortCutRegister(activeChar, sc));
View Full Code Here

    activeChar.sendPacket(new ExVariationCancelResult(1), iu, sm);
    for (ShortCut sc : activeChar.getAllShortCuts())
    {
      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        activeChar.sendPacket(new ShortCutRegister(activeChar, sc));
      }
    }
    activeChar.sendChanges();
  }
 
View Full Code Here

    Player activeChar = getClient().getActiveChar();
    if (activeChar == null)
    {
      return;
    }
    activeChar.sendPacket(new ExBR_ProductList());
  }
}
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, getCastRange()))
    {
      player.sendPacket(SystemMsg.YOUR_TARGET_IS_OUT_OF_RANGE);
      return false;
    }
    if (first)
    {
      siegeEvent.broadcastTo(new SystemMessage2(SystemMsg.S1_CLAN_IS_TRYING_TO_DISPLAY_A_FLAG).addString(player.getClan().getName()), SiegeEvent.DEFENDERS);
View Full Code Here

      return;
    }
    Clan clan = activeChar.getClan();
    if (clan != null)
    {
      activeChar.sendPacket(clan.listAll());
    }
  }
}
View Full Code Here

    }
    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

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.