radjabov

Untitled

Jan 6th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package ru.catssoftware.gameserver.network.clientpackets;
  2.  
  3. import ru.catssoftware.gameserver.model.actor.instance.L2PcInstance;
  4.  
  5. public class RequestShortCutDel extends L2GameClientPacket
  6. {
  7. private static final String _C__35_REQUESTSHORTCUTDEL = "[C] 35 RequestShortCutDel";
  8. private int _slot, _page;
  9.  
  10. @Override
  11. protected void readImpl()
  12. {
  13. int id = readD();
  14. _slot = id % 12;
  15. _page = id / 12;
  16. }
  17.  
  18. @Override
  19. protected void runImpl()
  20. {
  21. L2PcInstance activeChar = getClient().getActiveChar();
  22. if (activeChar == null)
  23. return;
  24. activeChar.deleteShortCut(_slot, _page);
  25. }
  26.  
  27. @Override
  28. public String getType()
  29. {
  30. return _C__35_REQUESTSHORTCUTDEL;
  31. }
  32. }
Add Comment
Please, Sign In to add comment