2
0

ExShowSeedMapInfo.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.instancemanager.GraciaSeedsManager;
  17. /**
  18. * format: 0xfe cd(dddd)
  19. * FE - packet id
  20. * A1 00 - packet subid
  21. * d - seed count
  22. * d - x pos
  23. * d - y pos
  24. * d - z pos
  25. * d - sys msg no
  26. *
  27. */
  28. public class ExShowSeedMapInfo extends L2GameServerPacket
  29. {
  30. private static final String _S__FE_A1_EXSHOWSEEDMAPINFO = "[S] FE:A1 ExShowSeedMapInfo";
  31. /* (non-Javadoc)
  32. * @see com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket#writeImpl()
  33. */
  34. @Override
  35. protected void writeImpl()
  36. {
  37. writeC(0xFE); // Id
  38. writeH(0xa1); // SubId
  39. writeD(2); // seed count
  40. // Seed of Destruction
  41. writeD(-246857); // x coord
  42. writeD(251960); // y coord
  43. writeD(4331); // z coord
  44. writeD(2770 + GraciaSeedsManager.getInstance().getSoDState()); // sys msg id
  45. // Seed of Infinity
  46. writeD(-213770); // x coord
  47. writeD(210760); // y coord
  48. writeD(4400); // z coord
  49. // Manager not implemented yet
  50. writeD(2766); // sys msg id
  51. }
  52. @Override
  53. public String getType()
  54. {
  55. return _S__FE_A1_EXSHOWSEEDMAPINFO;
  56. }
  57. }