XConquer

MsgUserInfo 6891 - 6905

Oct 9th, 2020
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. byte[] Buffer = new byte[173 + client.Player.Spouse.Length + client.Player.Name.Length + 8];
  2. Writer.WriteUInt16((ushort)((int)Buffer.Length - 8), 0, Buffer);
  3. Writer.WriteUInt16(MsgTypes.MsgUserInfo, 2, Buffer);
  4. Writer.WriteUInt32(this.client.Player.UID, 4, Buffer);
  5. Writer.WriteUInt32(this.client.Player.Mesh, 10, Buffer);
  6. Writer.WriteUInt16(this.client.Player.HairStyle, 14, Buffer);
  7. Writer.WriteUInt32(this.client.Player.Money, 18, Buffer);
  8. Writer.WriteUInt32(this.client.Player.ConquerPoints, 26, Buffer);
  9. Writer.WriteUInt64(this.client.Player.Experience, 30, Buffer);
  10. Writer.WriteUInt16(this.client.Player.Strength, 58, Buffer);
  11. Writer.WriteUInt16(this.client.Player.Agility, 60, Buffer);
  12. Writer.WriteUInt16(this.client.Player.Vitality, 62, Buffer);
  13. Writer.WriteUInt16(this.client.Player.Spirit, 64, Buffer);
  14. Writer.WriteUInt16(this.client.Player.Atributes, 66, Buffer);
  15. Writer.WriteUInt32(this.client.Player.Hitpoints, 68, Buffer);
  16. Writer.WriteUInt16(this.client.Player.Mana, 72, Buffer);
  17. Writer.WriteUInt16(this.client.Player.PKPoints, 70, Buffer);
  18. Writer.WriteByte(this.client.Player.Level, 76, Buffer);
  19. Writer.WriteUInt16(this.client.Player.Class, 77, Buffer);
  20. Writer.WriteUInt16(this.client.Player.FirstRebornClass, 81, Buffer);
  21. Writer.WriteUInt16(this.client.Player.SecondRebornClass, 85, Buffer);
  22. Writer.WriteByte(this.client.Player.Reborn, 90, Buffer);
  23. Writer.WriteUInt32(this.client.Player.QuizPoints, 92, Buffer);
  24. if (client.Player.Class >= 160 && client.Player.Class <= 165)
  25. Writer.WriteUInt32(this.client.Player.Windwalker, 96, Buffer);
  26. Writer.WriteUInt16(this.client.Player.VIPLevel, 101, Buffer);
  27. Writer.WriteUInt16((ushort)this.client.Player.MyTitle, 110, Buffer);
  28. Writer.WriteUInt32(this.client.Player.BConquerPoints, 114, Buffer);
  29. Writer.WriteUInt16((ushort)this.client.Player.CountryFlag, 131, Buffer);
  30. Writer.WriteUInt32(client.Player.UID + 3100001, 145, Buffer);//Character Uid
  31. //Writer.WriteUInt64((ulong)client.Player.Domino, 137, Buffer);//Domino
  32. Writer.WriteByte(3, 153, Buffer);
  33. Writer.WriteByte((byte)this.client.Player.Name.Length, 154, Buffer);
  34. Writer.WriteString(this.client.Player.Name, 156, Buffer);
  35. Writer.WriteByte((byte)this.client.Player.Spouse.Length, 158 + this.client.Player.Name.Length, Buffer);
  36. Writer.WriteString(this.client.Player.Spouse, 160 + this.client.Player.Name.Length, Buffer);
  37.  
  38. لسورس اليكس
  39.  
  40.  
  41.  
  42. كود:
  43. public static unsafe ServerSockets.Packet HeroInfo(this ServerSockets.Packet stream, Role.Player client, int inittransfer = 0)
  44. {
  45. stream.InitWriter();
  46. stream.Write(client.UID);
  47. stream.Write((ushort)client.AparenceType);
  48. stream.Write(client.Mesh);
  49. stream.Write((uint)client.Hair);
  50. stream.Write(client.Money);
  51. stream.Write(client.ConquerPoints);
  52. stream.Write(client.Experience);
  53. stream.Write((ushort)Database.GroupServerList.MyServerInfo.ID);
  54. stream.Write(client.SetLocationType);
  55. stream.Write(client.SpecialTitleID);
  56. stream.Write(client.SpecialWingID);
  57. stream.Write(client.VirtutePoints);
  58. stream.Write(client.HeavenBlessing);
  59. stream.Write(client.Strength);
  60. stream.Write(client.Agility);
  61. stream.Write(client.Vitality);
  62. stream.Write(client.Spirit);
  63. stream.Write(client.Atributes);
  64. stream.Write(client.HitPoints);
  65. stream.Write(client.Mana);
  66. stream.Write(client.PKPoints);
  67. stream.Write((byte)client.Level);
  68. stream.Write(client.Class);
  69. stream.Write(client.FirstClass);
  70. stream.Write(client.SecoundeClass);
  71. stream.Write((byte)client.NobilityRank);
  72. stream.Write(client.Reborn);
  73. stream.Write((byte)0);
  74. stream.Write(client.QuizPoints);
  75. stream.Write((uint)client.MainFlag);
  76. stream.Write((ushort)client.Enilghten);
  77. stream.Write((uint)0);
  78. stream.Write((ushort)(client.EnlightenReceive * 100));
  79. stream.Write((uint)client.VipLevel);
  80. stream.Write((ushort)client.MyTitle);
  81. stream.Write(client.BoundConquerPoints);
  82. if (client.SubClass != null)
  83. {
  84. stream.Write((byte)client.ActiveSublass);
  85. stream.Write((ulong)client.SubClass.GetHashPoint());
  86. }
  87. else
  88. stream.ZeroFill(9);
  89. stream.Write(client.RacePoints);
  90. stream.Write((ushort)client.CountryID);
  91. stream.Write((uint)0);
  92. stream.Write(client.DominoCoins);
  93. stream.Write(client.DominoCode);
  94. stream.Write(client.Name, "", client.Spouse);
  95. stream.Finalize(GamePackets.HeroInfo);
  96. return stream;
  97. }
RAW Paste Data