ExNeedToChangeName.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. /**
  17. * Dialog with input field<br>
  18. * type 0 = char name (Selection screen)<br>
  19. * type 1 = clan name
  20. *
  21. * @author JIV
  22. *
  23. */
  24. public class ExNeedToChangeName extends L2GameServerPacket
  25. {
  26. private int type, subType;
  27. private String name;
  28. public ExNeedToChangeName(int type, int subType, String name)
  29. {
  30. super();
  31. this.type = type;
  32. this.subType = subType;
  33. this.name = name;
  34. }
  35. /* (non-Javadoc)
  36. * @see com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket#writeImpl()
  37. */
  38. @Override
  39. protected void writeImpl()
  40. {
  41. writeC(0xFE);
  42. writeH(0x69);
  43. writeD(type);
  44. writeD(subType);
  45. writeS(name);
  46. }
  47. /* (non-Javadoc)
  48. * @see com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket#getType()
  49. */
  50. @Override
  51. public String getType()
  52. {
  53. return "[S] FE:69 ExNeedToChangeName".intern();
  54. }
  55. }