PledgeStatusChanged.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.network.serverpackets;
  16. import com.l2jserver.gameserver.model.L2Clan;
  17. /**
  18. *
  19. *
  20. * sample
  21. * 0000: cd b0 98 a0 48 1e 01 00 00 00 00 00 00 00 00 00 ....H...........
  22. * 0010: 00 00 00 00 00 .....
  23. *
  24. * format ddddd
  25. *
  26. * @version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:39 $
  27. */
  28. public final class PledgeStatusChanged extends L2GameServerPacket
  29. {
  30. private L2Clan _clan;
  31. public PledgeStatusChanged(L2Clan clan)
  32. {
  33. _clan = clan;
  34. }
  35. @Override
  36. protected final void writeImpl()
  37. {
  38. writeC(0xCD);
  39. writeD(_clan.getLeaderId());
  40. writeD(_clan.getClanId());
  41. writeD(_clan.getCrestId());
  42. writeD(_clan.getAllyId());
  43. writeD(_clan.getAllyCrestId());
  44. writeD(0);
  45. writeD(0);
  46. }
  47. /* (non-Javadoc)
  48. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#getType()
  49. */
  50. @Override
  51. public String getType()
  52. {
  53. return "[S] CD PledgeStatusChanged";
  54. }
  55. }