Advertisement
IAmXeClutch

[Project] Destiny Ammo Editor

Sep 13th, 2014
1,227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.80 KB | None | 0 0
  1. using JRPC_Client;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Diagnostics;
  8. using System.Drawing;
  9. using System.Globalization;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading;
  13. using System.Threading.Tasks;
  14. using System.Windows;
  15. using System.Windows.Forms;
  16. using XDevkit;
  17.  
  18. namespace Destiny_Ammo_Editor
  19. {
  20.     public partial class Form1 : Form
  21.     {
  22.         IXboxConsole Console;
  23.  
  24.         public Form1()
  25.         {
  26.             InitializeComponent();
  27.         }
  28.  
  29.         private void connectToolStripMenuItem1_Click(object sender, EventArgs e)
  30.         {
  31.             try
  32.             {
  33.                 if (Console.Connect(out Console))
  34.                     MessageBox.Show("Successfully connected your console!");
  35.                 else
  36.                     MessageBox.Show("Unable to connect to your console!");
  37.             }
  38.             catch (Exception ex)
  39.             {
  40.                 MessageBox.Show("Unable to connect to your console!\n\n" + ex);
  41.             }
  42.         }
  43.  
  44.         private void downloadToolStripMenuItem1_Click(object sender, EventArgs e)
  45.         {
  46.             Process.Start("http://www.se7ensins.com/forums/threads/jrpcv2-ultimate-remote-procedure-call-release.983655/");
  47.         }
  48.  
  49.         private void aboutToolStripMenuItem2_Click(object sender, EventArgs e)
  50.         {
  51.             MessageBox.Show("JRPC\n- Created by Xx jAmes t xX\n- Version 2.0.0.0");
  52.         }
  53.  
  54.         private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
  55.         {
  56.             MessageBox.Show("This game is over hyped. Get over yourselves.\nHalo > Destiny\n\n- XeClutch");
  57.         }
  58.  
  59.         private void button1_Click(object sender, EventArgs e)
  60.         {
  61.             uint offset = 0xD9800000;
  62.             string str = "";
  63.             string cur = "";
  64.             byte[] buf = BitConverter.GetBytes((int)numericUpDown1.Value);
  65.             Array.Reverse(buf);
  66.             foreach (byte b in buf)
  67.                 cur += b.ToString("X2");
  68.             buf = BitConverter.GetBytes((int)numericUpDown2.Value);
  69.             Array.Reverse(buf);
  70.             foreach (byte b in buf)
  71.                 cur += b.ToString("X2");
  72.             byte[] mem = Console.GetMemory(offset, 0xFFFFFF);
  73.             for (int i = 0; i < 0xFFFFF7; i++)
  74.             {
  75.                 for (int x = 0; i < 8; i++)
  76.                     str += mem[x].ToString("X2");
  77.                 if (str == cur)
  78.                 {
  79.                     offset += (uint)i;
  80.                     Console.WriteInt32(offset, (int)numericUpDown3.Value);
  81.                     Console.WriteInt32(offset + 4, (int)numericUpDown4.Value);
  82.                 }
  83.                 else
  84.                     str = "";
  85.             }
  86.         }
  87.     }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement