ExSetCompassZoneCode.java 1.7 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. /**
  17. * Format: ch d
  18. * @author KenM
  19. */
  20. public class ExSetCompassZoneCode extends L2GameServerPacket
  21. {
  22. private static final String _S__FE_32_EXSETCOMPASSZONECODE = "[S] FE:33 ExSetCompassZoneCode";
  23. public static final int ALTEREDZONE = 0x08;
  24. public static final int SIEGEWARZONE1 = 0x0A;
  25. public static final int SIEGEWARZONE2 = 0x0B;
  26. public static final int PEACEZONE = 0x0C;
  27. public static final int SEVENSIGNSZONE = 0x0D;
  28. public static final int PVPZONE = 0x0E;
  29. public static final int GENERALZONE = 0x0F;
  30. private int _zoneType;
  31. public ExSetCompassZoneCode(int val)
  32. {
  33. _zoneType = val;
  34. }
  35. /**
  36. * @see com.l2jserver.util.network.BaseSendablePacket.ServerBasePacket#writeImpl()
  37. */
  38. @Override
  39. protected void writeImpl()
  40. {
  41. writeC(0xFE);
  42. writeH(0x33);
  43. writeD(_zoneType);
  44. }
  45. /**
  46. * @see com.l2jserver.gameserver.BasePacket#getType()
  47. */
  48. @Override
  49. public String getType()
  50. {
  51. return _S__FE_32_EXSETCOMPASSZONECODE;
  52. }
  53. }