Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using XDevkit;
- using XRPCLib;
- using XRPCPlusPlus;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApplication6
- {
- public partial class Form1 : Form
- {
- public uint DV = 0x82540410;
- public uint SV = 0x822C9278; //this is the sv_gamesendservercommand offset
- XRPC Jtag = new XRPC(); //this is used to define our console
- public Form1()
- {
- InitializeComponent();
- }
- public uint getClientState(uint client)
- {
- return (0x82f99580 + (client * 0x3980));
- }
- private uint getPlayerState(uint clientIndex)
- {
- uint num;
- byte[] data = new byte[4];
- Jtag.xbCon.DebugTarget.GetMemory((0x82dccc80 + (clientIndex * 640)) + 0x158, 4, data, out num);
- Array.Reverse(data);
- return BitConverter.ToUInt32(data, 0);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Jtag.WriteFloat(0x82001D68, 999f); //this sets the jump hieght
- Jtag.WriteFloat(0x82000C04, 9999f); //this sets fall damage
- Jtag.Call(SV, -1, 1, "c \" super jump ^20n!\"");
- }
- private void button4_Click(object sender, EventArgs e)
- {
- int client = (int)numericUpDown1.Value; //selects the client
- Jtag.Call(SV, client, 1, textBox1.Text); //sends the command in text box
- }
- private void button3_Click(object sender, EventArgs e)
- {
- Jtag.WriteFloat(0x82001D68, 39f); //sets the normal jump hieght
- Jtag.Call(SV, -1, 1, "c \" normal jump ^20n!\"");
- }
- private void button5_Click(object sender, EventArgs e)
- {
- int client = (int)numericUpDown2.Value; //selects client
- Jtag.Call(SV, -1, 1, "c \"" + textBox2.Text + "\"");
- }
- private void button6_Click(object sender, EventArgs e)
- {
- Jtag.Call(DV, 0x82540410); //ignore this as i never used it
- }
- private void button7_Click(object sender, EventArgs e)
- {
- }
- private void button6_Click_1(object sender, EventArgs e)
- {
- Jtag.WriteByte(0x8215A2C0, 0x1); //writes the byte for laser on
- Jtag.Call(SV, 0, 1, "c \" Laser ^20n!\"");
- }
- private void button7_Click_1(object sender, EventArgs e)
- {
- Jtag.WriteByte(0x8215A2C0, 0x0); //writes the byte for laser off
- Jtag.Call(SV, 0, 1, "c \" Laser ^20n!\"");
- }
- private void connectToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Jtag.Connect(); //this is the connection sequence i use
- if (Jtag.activeConnection)
- MessageBox.Show("Connected!");
- else
- MessageBox.Show("Failed To Connect");
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void toolStripLabel1_Click(object sender, EventArgs e)
- {
- try
- {
- System.Diagnostics.Process.Start("http://www.xpgamesaves.com/page/homepage.html");
- }
- catch { } //this redirects you to we website, in this case xpg
- }
- private void button1_Click(object sender, EventArgs e)
- {
- this.Jtag.SetMemory(0x820ea214, new byte[] { 0x39, 0x60, 0, 2 });
- }//noclip
- private void button8_Click(object sender, EventArgs e)
- {
- Jtag.SetMemory(0x820F63E0, new byte[] { 60, 00, 00, 00 });
- Jtag.SetMemory(0x821614D4, new byte[] { 60, 00, 00, 00 });
- Jtag.Call(SV, -1, 1, "c \" Max ^2Amm0!\"");
- }
- private void button9_Click(object sender, EventArgs e)
- {
- Jtag.WriteFloat(0x82001D68, 9999f);
- Jtag.WriteFloat(0x82000C04, 9999f);
- Jtag.Call(SV, -1, 1, "c \" Super super jump ^20n!\"");
- }
- private void button10_Click(object sender, EventArgs e)
- {
- Jtag.SetMemory(0x821154A4, new byte[] { 0x60, 0x00, 0x00, 0x00 });
- }//for redboxes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement