Snoop.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. public class Snoop extends L2GameServerPacket
  17. {
  18. private static final String _S__D5_SNOOP = "[S] db Snoop";
  19. private int _convoId;
  20. private String _name;
  21. private int _type;
  22. private String _speaker;
  23. private String _msg;
  24. public Snoop(int id, String name, int type, String speaker, String msg)
  25. {
  26. _convoId = id;
  27. _name = name;
  28. _type = type;
  29. _speaker = speaker;
  30. _msg = msg;
  31. }
  32. /* (non-Javadoc)
  33. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#writeImpl()
  34. */
  35. @Override
  36. protected void writeImpl()
  37. {
  38. writeC(0xdb);
  39. writeD(_convoId);
  40. writeS(_name);
  41. writeD(0x00); //??
  42. writeD(_type);
  43. writeS(_speaker);
  44. writeS(_msg);
  45. }
  46. /* (non-Javadoc)
  47. * @see com.l2jserver.gameserver.BasePacket#getType()
  48. */
  49. @Override
  50. public String getType()
  51. {
  52. return _S__D5_SNOOP;
  53. }
  54. }