ExEnchantSkillInfoDetail.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* This program is free software; you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License as published by
  3. * the Free Software Foundation; either version 2, or (at your option)
  4. * any later version.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. *
  11. * You should have received a copy of the GNU General Public License
  12. * along with this program; if not, write to the Free Software
  13. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  14. * 02111-1307, USA.
  15. *
  16. * http://www.gnu.org/copyleft/gpl.html
  17. */
  18. package net.sf.l2j.gameserver.serverpackets;
  19. /**
  20. *
  21. * @author KenM
  22. */
  23. public class ExEnchantSkillInfoDetail extends L2GameServerPacket
  24. {
  25. private final int _itemId;
  26. private final int _itemCount;
  27. public ExEnchantSkillInfoDetail(int itemId, int itemCount)
  28. {
  29. _itemId = itemId;
  30. _itemCount = itemCount;
  31. }
  32. /**
  33. * @see net.sf.l2j.gameserver.serverpackets.L2GameServerPacket#getType()
  34. */
  35. @Override
  36. public String getType()
  37. {
  38. return "[S] FE:5E ExEnchantSkillInfoDetail";
  39. }
  40. /**
  41. * @see net.sf.l2j.gameserver.serverpackets.L2GameServerPacket#writeImpl()
  42. */
  43. @Override
  44. protected void writeImpl()
  45. {
  46. writeC(0xfe);
  47. writeH(0x5e);
  48. writeD(0);
  49. writeD(0);
  50. writeD(0);
  51. writeD(0);
  52. writeQ(0);
  53. writeD(0);
  54. writeD(_itemCount); // Count
  55. writeD(0);
  56. writeD(_itemId); // ItemId Required
  57. writeD(0);
  58. }
  59. }