daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using XDevkit;
  9. using XRPCLib;
  10. using XRPCPlusPlus;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13.  
  14. namespace WindowsFormsApplication6
  15. {
  16. public partial class Form1 : Form
  17. {
  18. public uint DV = 0x82540410;
  19. public uint SV = 0x822C9278; //this is the sv_gamesendservercommand offset
  20. XRPC Jtag = new XRPC(); //this is used to define our console
  21. public Form1()
  22. {
  23. InitializeComponent();
  24. }
  25.  
  26. public uint getClientState(uint client)
  27. {
  28. return (0x82f99580 + (client * 0x3980));
  29. }
  30.  
  31. private uint getPlayerState(uint clientIndex)
  32. {
  33. uint num;
  34. byte[] data = new byte[4];
  35. Jtag.xbCon.DebugTarget.GetMemory((0x82dccc80 + (clientIndex * 640)) + 0x158, 4, data, out num);
  36. Array.Reverse(data);
  37. return BitConverter.ToUInt32(data, 0);
  38. }
  39.  
  40.  
  41.  
  42.  
  43. private void button2_Click(object sender, EventArgs e)
  44. {
  45. Jtag.WriteFloat(0x82001D68, 999f); //this sets the jump hieght
  46. Jtag.WriteFloat(0x82000C04, 9999f); //this sets fall damage
  47. Jtag.Call(SV, -1, 1, "c \" super jump ^20n!\"");
  48.  
  49. }
  50.  
  51. private void button4_Click(object sender, EventArgs e)
  52. {
  53. int client = (int)numericUpDown1.Value; //selects the client
  54. Jtag.Call(SV, client, 1, textBox1.Text); //sends the command in text box
  55. }
  56.  
  57. private void button3_Click(object sender, EventArgs e)
  58. {
  59. Jtag.WriteFloat(0x82001D68, 39f); //sets the normal jump hieght
  60. Jtag.Call(SV, -1, 1, "c \" normal jump ^20n!\"");
  61. }
  62.  
  63. private void button5_Click(object sender, EventArgs e)
  64. {
  65. int client = (int)numericUpDown2.Value; //selects client
  66. Jtag.Call(SV, -1, 1, "c \"" + textBox2.Text + "\"");
  67.  
  68. }
  69.  
  70. private void button6_Click(object sender, EventArgs e)
  71. {
  72. Jtag.Call(DV, 0x82540410); //ignore this as i never used it
  73.  
  74. }
  75.  
  76. private void button7_Click(object sender, EventArgs e)
  77. {
  78.  
  79.  
  80.  
  81.  
  82.  
  83. }
  84.  
  85. private void button6_Click_1(object sender, EventArgs e)
  86. {
  87. Jtag.WriteByte(0x8215A2C0, 0x1); //writes the byte for laser on
  88. Jtag.Call(SV, 0, 1, "c \" Laser ^20n!\"");
  89. }
  90.  
  91. private void button7_Click_1(object sender, EventArgs e)
  92. {
  93. Jtag.WriteByte(0x8215A2C0, 0x0); //writes the byte for laser off
  94. Jtag.Call(SV, 0, 1, "c \" Laser ^20n!\"");
  95. }
  96.  
  97. private void connectToolStripMenuItem_Click(object sender, EventArgs e)
  98. {
  99. Jtag.Connect(); //this is the connection sequence i use
  100. if (Jtag.activeConnection)
  101. MessageBox.Show("Connected!");
  102. else
  103. MessageBox.Show("Failed To Connect");
  104. }
  105.  
  106. private void Form1_Load(object sender, EventArgs e)
  107. {
  108.  
  109. }
  110.  
  111. private void toolStripLabel1_Click(object sender, EventArgs e)
  112. {
  113. try
  114. {
  115. System.Diagnostics.Process.Start("http://www.xpgamesaves.com/page/homepage.html");
  116. }
  117. catch { } //this redirects you to we website, in this case xpg
  118. }
  119.  
  120. private void button1_Click(object sender, EventArgs e)
  121. {
  122. this.Jtag.SetMemory(0x820ea214, new byte[] { 0x39, 0x60, 0, 2 });
  123. }//noclip
  124.  
  125. private void button8_Click(object sender, EventArgs e)
  126. {
  127. Jtag.SetMemory(0x820F63E0, new byte[] { 60, 00, 00, 00 });
  128. Jtag.SetMemory(0x821614D4, new byte[] { 60, 00, 00, 00 });
  129. Jtag.Call(SV, -1, 1, "c \" Max ^2Amm0!\"");
  130. }
  131.  
  132. private void button9_Click(object sender, EventArgs e)
  133. {
  134. Jtag.WriteFloat(0x82001D68, 9999f);
  135. Jtag.WriteFloat(0x82000C04, 9999f);
  136. Jtag.Call(SV, -1, 1, "c \" Super super jump ^20n!\"");
  137.  
  138. }
  139.  
  140. private void button10_Click(object sender, EventArgs e)
  141. {
  142. Jtag.SetMemory(0x821154A4, new byte[] { 0x60, 0x00, 0x00, 0x00 });
  143. }//for redboxes
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top