Guest User

Untitled

a guest
Sep 29th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. /**
  2.  
  3. * Format: (ch)dddddd
  4.  
  5. * d: object id
  6.  
  7. * d: type (00 - no fence, 01 - only 4 columns, 02 - columns with fences)
  8.  
  9. * d: x coord
  10.  
  11. * d: y coord
  12.  
  13. * d: z coord
  14.  
  15. * d: width
  16.  
  17. * d: height
  18.  
  19. */
  20.  
  21. public class ExColosseumFenceInfoPacket extends L2GameServerPacket {
  22.  
  23.  
  24.  
  25. private static final String _S__FE_03_EXCOLOSSEUMFENCEINFOPACKET = "[S] FE:03 ExColosseumFenceInfoPacket";
  26.  
  27. private L2FenceInstance _activeChar;
  28.  
  29.  
  30.  
  31. public ExColosseumFenceInfoPacket(L2FenceInstance activeChar)
  32.  
  33. {
  34. _activeChar = activeChar;
  35. }
  36.  
  37.  
  38.  
  39. /* (non-Javadoc)
  40.  
  41. * @see net.sf.l2j.gameserver.serverpackets.ServerBasePacket#writeImpl()
  42.  
  43. */
  44.  
  45. @Override
  46.  
  47. protected void writeImpl()
  48.  
  49. {
  50.  
  51. writeC(0xfe);
  52.  
  53. writeH(0x09);
  54.  
  55.  
  56.  
  57. writeD(_activeChar.getObjectId()); // ?
  58.  
  59. writeD(_activeChar.getType());
  60.  
  61. writeD(_activeChar.getX());
  62.  
  63. writeD(_activeChar.getY());
  64.  
  65. writeD(_activeChar.getZ());
  66.  
  67. writeD(_activeChar.getWidth());
  68.  
  69. writeD(_activeChar.getHeight());
  70.  
  71. }
  72.  
  73.  
  74.  
  75. /* (non-Javadoc)
  76.  
  77. * @see net.sf.l2j.gameserver.BasePacket#getType()
  78.  
  79. */
  80.  
  81. @Override
  82.  
  83. public String getType()
  84.  
  85. {
  86.  
  87. return _S__FE_03_EXCOLOSSEUMFENCEINFOPACKET;
  88.  
  89. }
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment