ExPCCafePointInfo.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /**
  17. * Format: ch ddcdc
  18. * @author KenM
  19. */
  20. public class ExPCCafePointInfo extends L2GameServerPacket
  21. {
  22. private static final String _S__FE_31_EXPCCAFEPOINTINFO = "[S] FE:32 ExPCCafePointInfo";
  23. private int _unk1, _unk2, _unk3, _unk4, _unk5 = 0;
  24. public ExPCCafePointInfo(int val1, int val2, int val3, int val4, int val5)
  25. {
  26. _unk1 = val1;
  27. _unk2 = val2;
  28. _unk3 = val3;
  29. _unk4 = val4;
  30. _unk5 = val5;
  31. }
  32. @Override
  33. protected void writeImpl()
  34. {
  35. writeC(0xFE);
  36. writeH(0x32);
  37. writeD(_unk1); // num points
  38. writeD(_unk2); // points inc display
  39. writeC(_unk3); // period(0=don't show window,1=acquisition,2=use points)
  40. writeD(_unk4); // period hours left
  41. writeC(_unk5); // points inc display color(0=yellow,1=cyan-blue,2=red,all other black)
  42. }
  43. /**
  44. * @see com.l2jserver.gameserver.BasePacket#getType()
  45. */
  46. @Override
  47. public String getType()
  48. {
  49. return _S__FE_31_EXPCCAFEPOINTINFO;
  50. }
  51. }