Advertisement
Guest User

Untitled

a guest
May 26th, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const  
  2. Packet_Invite_Accept_Server =  '1701';
  3. Packet_After_Invite =  '5600';
  4. Osh_exp_noob = true;
  5. Osh_exp_high = false;
  6. SPacket_Invite_2 =             'C000';
  7. Packet_Party_Leave =          'E300';
  8.  
  9. procedure OnPacket(FromServer: Boolean; const Packet: string; Data: Pointer; Size: Word);
  10. var
  11. IDpck,IDpck2,IDpck3,IDpck4,IDpck5: String;
  12. begin
  13. IDpck:=copy(Packet,1,4);
  14. if FromServer and (IDpck = Packet_Invite_Accept_Server) and Osh_exp_noob and (User.LeveL < 50) then
  15. begin
  16. IDpck2:=copy(Packet,13,6);
  17. IDpck3:=copy(Packet,Length(Packet)-15,16);
  18. IDpck4:='EA 00 00 00 00 00 01' + IDpck2 + '00 00' + MemToHex(Length(User.Name),2) + MemToHex(User.Name) + '00' + IDpck3;
  19. print(IDpck4);
  20. Engine.SendToServer(IDpck4);
  21. end;
  22. if not FromServer and (IDpck = Packet_After_Invite) and Osh_exp_high then
  23. begin
  24. print('test1');
  25. IDpck2:=copy(Packet,5,4);
  26. IDpck4:='93 00' + IDpck2 + '00 00 00 00 00 00 00 00 01 02';
  27. IDpck5:='93 00' + IDpck2 + '00 00 00 00 00 00 00 00 00 08';
  28. Engine.SendToServer(IDpck4);
  29. Engine.SendToServer(IDpck5);
  30. end;
  31. if FromServer and (IDpck = SPacket_Invite_2) and Osh_exp_noob then
  32. begin
  33. print('test2');
  34. IDpck2:=copy(Packet,5,4);
  35. IDpck3:=copy(Packet,53,6);
  36. IDpck4:=Packet_Party_Leave + IDpck2 + '00 00' + IDpck3 + '00 00';
  37. print(IDpck4);
  38. SetValServer('Packet_Leave_Party',IDpck4);
  39. //Engine.SendToServer(GetValServer('Packet_Leave_Party'));
  40. end;
  41. end;
  42.  
  43. begin
  44. Delay(-1);
  45. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement