JAVA 161
Untitled Guest on 11th February 2020 07:02:25 PM
  1. package com.DAGuard.network.clientpackets;
  2.  
  3. import com.l2jserver.gameserver.network.L2GameClient;
  4. import com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket;
  5.  
  6. public class GameGuardReply extends L2GameClientPacket
  7. {
  8.         private int _dx;
  9.  
  10.         @Override
  11.         protected void readImpl()
  12.         {
  13.            while (buf.hasRemaining())
  14.                 System.out.println(buf.position() + " -> " + buf.get());
  15.         }
  16.  
  17.         @Override
  18.         protected void runImpl()
  19.         {
  20.                 L2GameClient client = getClient();
  21.                 if (_dx == 104)
  22.                         client.setGameGuardOk(true);
  23.                 else
  24.                         client.setGameGuardOk(false);
  25.  
  26.         }
  27.  
  28.         @Override
  29.         public String getType()
  30.         {
  31.                 return "[C] CB GameGuardReply";
  32.         }
  33. }
Raw Paste

Login or Register to edit or fork this paste. It's free.