Advertisement
XeTazzy

Source Code from Projekt Harz4 made by XeTazzy

Mar 10th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 29.57 KB | None | 0 0
  1. */Projekt Harz4 source made by XeTazzy/*
  2.  
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.IO;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13. using DevComponents.DotNetBar.Metro;
  14. using JRPC_Client;
  15. using XRPCLib;
  16. using DevComponents.Editors;
  17. using Projekt_Harz4_by_XeTazzy;
  18. using System.Threading;
  19. using DevComponents.DotNetBar.Controls;
  20. using DevComponents.AdvTree;
  21. using System.Text.RegularExpressions;
  22. using DevComponents.DotNetBar;
  23. using Extras;
  24.  
  25.  
  26. namespace Projekt_Harz4_by_XeTazzy
  27. {
  28.     public partial class Form1 : MetroForm
  29.     {
  30.         XRPC Jtag = new XRPC();
  31.         private ComboItem CC1;
  32.         private ComboItem CC10;
  33.         private ComboItem CC2;
  34.         private ComboItem CC3;
  35.         private ComboItem CC4;
  36.         private ComboItem CC5;
  37.         private ComboItem CC6;
  38.         private ComboItem CC7;
  39.         private ComboItem CC8;
  40.         private ComboItem CC9;
  41.         private Node client0;
  42.         private Node client1;
  43.         private Node client10;
  44.         private Node client11;
  45.         private Node client12;
  46.         private Node client13;
  47.         private Node client14;
  48.         private Node client15;
  49.         private Node client16;
  50.         private Node client17;
  51.         private Node client2;
  52.         private Node client3;
  53.         private Node client4;
  54.         private Node client5;
  55.         private Node client6;
  56.         private Node client7;
  57.         private Node client8;
  58.         private Node client9;
  59.  
  60.  
  61.         public Form1()
  62.         {
  63.             InitializeComponent();
  64.         }
  65.  
  66.         private void timer1_Tick(object sender, EventArgs e)
  67.         {
  68.             labelX1.Location = new Point(labelX1.Location.X + 10, labelX1.Location.Y);
  69.  
  70.             if (labelX1.Location.X > this.Width)
  71.             {
  72.                 labelX1.Location = new Point(0 - labelX1.Width, labelX1.Location.Y);
  73.             }
  74.         }
  75.  
  76.         private void timer2_Tick(object sender, EventArgs e)
  77.         {
  78.             Random rand = new Random(); int A = rand.Next(0, 255); int R = rand.Next(0, 255); int G = rand.Next(0, 255); int B = rand.Next(0, 255); labelX1.ForeColor = Color.FromArgb(A, R, G, B);
  79.         }
  80.  
  81.         private void Form1_Load(object sender, EventArgs e)
  82.         {
  83.             timer1.Enabled = true;
  84.             timer2.Start(); timer2.Enabled = true;
  85.             this.lblTeam.ForeColor = Color.Orange;
  86.         }
  87.  
  88.         private void buttonX1_Click(object sender, EventArgs e)  //Connect
  89.         {
  90.             this.Jtag.Connect();
  91.             if (this.Jtag.activeConnection)
  92.             {
  93.                 this.connectionLabel.Text = "Connected";
  94.                 this.connectionLabel.ForeColor = Color.Green;
  95.                 MessageBoxEx.Show("Successful Conneced");
  96.             }
  97.             else
  98.             {
  99.                 this.connectionLabel.ForeColor = Color.Red;
  100.                 this.connectionLabel.Text = "Not Connected";
  101.             }
  102.         }
  103.  
  104.  
  105.         private void buttonX2_Click(object sender, EventArgs e)  //ban bypass BO2 TU18
  106.         {
  107.             byte[] data = new byte[4];
  108.             data[0] = 0x60;
  109.             this.Jtag.SetMemory(0x825c9130, data);
  110.             data = new byte[4];
  111.             data[0] = 0x60;
  112.             this.Jtag.SetMemory(0x825c6070, data);
  113.             data = new byte[4];
  114.             data[0] = 0x60;
  115.             this.Jtag.SetMemory(0x82599630, data);
  116.             data = new byte[4];
  117.             data[0] = 0x60;
  118.             this.Jtag.SetMemory(0x822d19e0, data);
  119.             data = new byte[4];
  120.             data[0] = 0x60;
  121.             this.Jtag.SetMemory(0x82599670, data);
  122.             data = new byte[4];
  123.             data[0] = 0x60;
  124.             this.Jtag.SetMemory(0x82599680, data);
  125.             data = new byte[4];
  126.             data[0] = 0x60;
  127.             this.Jtag.SetMemory(0x825996ac, data);
  128.             data = new byte[4];
  129.             data[0] = 0x60;
  130.             this.Jtag.SetMemory(0x8259964c, data);
  131.             data = new byte[4];
  132.             data[0] = 0x60;
  133.             this.Jtag.SetMemory(0x825996b4, data);
  134.             data = new byte[4];
  135.             data[0] = 0x60;
  136.             this.Jtag.SetMemory(0x82599644, data);
  137.             data = new byte[4];
  138.             data[0] = 0x60;
  139.             this.Jtag.SetMemory(0x82599658, data);
  140.             data = new byte[4];
  141.             data[0] = 0x60;
  142.             this.Jtag.SetMemory(0x825dd384, data);
  143.             data = new byte[4];
  144.             data[0] = 0x60;
  145.             this.Jtag.SetMemory(0x825dd3a0, data);
  146.             data = new byte[4];
  147.             data[0] = 0x60;
  148.             this.Jtag.SetMemory(0x82599618, data);
  149.             data = new byte[4];
  150.             data[0] = 0x60;
  151.             this.Jtag.SetMemory(0x825c5354, data);
  152.             this.Jtag.Notify(XRPC.XNotiyLogo.FLASHING_HAPPY_FACE, "BO2 Ban Bypass Enabled, Wait 10 Seconds");
  153.             MessageBoxEx.Show("Bypass Successful! Wait 10 second, then sign in and play online.");
  154.         }
  155.  
  156.         private void buttonX3_Click(object sender, EventArgs e)
  157.         {
  158.             this.Jtag.SetMemory(Online.live_spoof1, new byte[] { 0x7c, 0x6b, 0x1b, 120 });
  159.             this.Jtag.SetMemory(Online.live_spoof2, new byte[] { 0x7f, 0x2b, 0xcb, 120 });
  160.             this.Jtag.SetMemory(Online.live_spoof3, new byte[] { 0x7d, 0x6b, 80, 0x38 });
  161.             this.Jtag.SetMemory(Online.live_spoof4, new byte[] { 0x81, 0x61, 0, 80 });
  162.             MessageBoxEx.Show("Gold Spoofed Successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  163.             this.Jtag.Notify(XRPC.XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER, "Account Gold Spoofing Successful");
  164.         }
  165.  
  166.         public class Online
  167.         {
  168.             public static uint live_spoof1 = (XamUserCheckPrivilege + 320);
  169.             public static uint live_spoof2 = (XamUserCheckPrivilege + 0x1a0);
  170.             public static uint live_spoof3 = (XamUserCheckPrivilege + 0x1ac);
  171.             public static uint live_spoof4 = (XamUserCheckPrivilege + 0x1b4);
  172.             public static uint XamUserCheckPrivilege = 0x816dcb90;
  173.             public static uint XUserBaseAddr = 0x83bfddf8;
  174.             public static uint XUserGamertag = (XUserBaseAddr + 0x4c);
  175.             public static uint XUserXUID = (XUserBaseAddr + 0x38);
  176.         }
  177.  
  178.         private void buttonX4_Click(object sender, EventArgs e)
  179.         {
  180.             try
  181.             {
  182.                 OpenFileDialog ofd = new OpenFileDialog();
  183.                 if (ofd.ShowDialog() == DialogResult.OK)
  184.                 {
  185.                     BinaryReader br = new BinaryReader(File.OpenRead(ofd.FileName));
  186.                     br.BaseStream.Position = 0x1858;
  187.                     foreach (char bread in br.ReadChars(3000)) richTextBoxEx1.Text += bread;
  188.                     br.Dispose();
  189.                     textBoxX1.Text = ofd.FileName;
  190.                 }
  191.             }
  192.             catch (Exception ex)
  193.             {
  194.                 MessageBox.Show("Fehlgeschlagen: \n\n" + ex);
  195.             }
  196.         }
  197.  
  198.         private void buttonX6_Click(object sender, EventArgs e)
  199.         {
  200.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dom_score_kill " + this.integerInput1.Value + "\"" });
  201.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_conf_score_kill " + this.integerInput1.Value + "\"" });
  202.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_ctf_score_kill " + this.integerInput1.Value + "\"" });
  203.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dd_score_kill " + this.integerInput1.Value + "\"" });
  204.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dm_score_kill " + this.integerInput1.Value + "\"" });
  205.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_grnd_score_kill " + this.integerInput1.Value + "\"" });
  206.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_sd_score_kill " + this.integerInput1.Value + "\"" });
  207.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_sab_score_kill " + this.integerInput1.Value + "\"" });
  208.             this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_tdef_score_kill " + this.integerInput1.Value + "\"" });
  209.         }
  210.         public class BO2
  211.         {
  212.             public static uint Cbuf_addText = 0x82110108;
  213.             public static uint Deaths = (EntryStats + 0x10a);
  214.             public static uint EntryStats = 0x840c0500;
  215.             public static uint FallDamage = 0x82003fd4;
  216.             public static uint Headshots = (EntryStats + 0x20c);
  217.             public static uint Kills = (EntryStats + 0x338);
  218.             public static uint Killstreak = (EntryStats + 0x620);
  219.             public static uint Losses = (EntryStats + 0xc0e);
  220.             public static uint Prestige = (EntryStats + 0x7dc);
  221.             public static uint Rank = (EntryStats + 0x7ee);
  222.             public static uint RankXP = (EntryStats + 0x7f4);
  223.             public static uint Redboxes = 0x821f5b7f;
  224.             public static uint Score = (EntryStats + 0x818);
  225.             public static uint SuperJump = 0x82085654;
  226.             public static uint TimePlayed = (EntryStats + 0x8d2);
  227.             public static uint Tokens = (EntryStats + 0x9f66);
  228.             public static uint VSAT = 0x821b8fd3;
  229.             public static uint Wins = (EntryStats + 0x91a);
  230.             public static uint ZombieRank1 = (EntryStats + 0x243);
  231.             public static uint ZombieRank2 = (EntryStats + 0x5f);
  232.             public static uint ZombieRank3 = (EntryStats + 0x24f);
  233.         }
  234.  
  235.         private void buttonX5_Click(object sender, EventArgs e)
  236.         {
  237.             if (Funcs.Jtag.activeConnection)
  238.             {
  239.                 Funcs.UnlockAll();
  240.             }
  241.         }
  242.  
  243.         private void buttonX7_Click(object sender, EventArgs e)
  244.         {
  245.             if (Funcs.Jtag.activeConnection)
  246.             {
  247.                 if (!Funcs.cycleState)
  248.                 {
  249.                     Funcs.cycleThread = new Thread(new ThreadStart(Funcs.CyclePrestige));
  250.                     Funcs.cycleState = true;
  251.                     Funcs.cycleThread.Start();
  252.                 }
  253.                 else
  254.                 {
  255.                     Funcs.cycleState = false;
  256.                     Funcs.cycleThread.Abort();
  257.                 }
  258.             }
  259.         }
  260.  
  261.         private void buttonX12_Click(object sender, EventArgs e)
  262.         {
  263.             if (Funcs.Jtag.activeConnection)
  264.             {
  265.                 Funcs.ClassCost();
  266.             }
  267.         }
  268.  
  269.         private void buttonX13_Click(object sender, EventArgs e)
  270.         {
  271.             if (Funcs.Jtag.activeConnection)
  272.             {
  273.                 Funcs.ForceHost();
  274.             }
  275.         }
  276.  
  277.         private void buttonX11_Click(object sender, EventArgs e)
  278.         {
  279.             if (Funcs.Jtag.activeConnection & (this.comboBoxEx1.SelectedItem != null))
  280.             {
  281.                 if (this.comboBoxEx1.SelectedItem == this.CC1)
  282.                 {
  283.                     Funcs.CustomClasses(0, this.textBoxX2.Text, this.switchButton1.Value);
  284.                 }
  285.                 else if (this.comboBoxEx1.SelectedItem == this.CC2)
  286.                 {
  287.                     Funcs.CustomClasses(1, this.textBoxX2.Text, this.switchButton1.Value);
  288.                 }
  289.                 else if (this.comboBoxEx1.SelectedItem == this.CC3)
  290.                 {
  291.                     Funcs.CustomClasses(2, this.textBoxX2.Text, this.switchButton1.Value);
  292.                 }
  293.                 else if (this.comboBoxEx1.SelectedItem == this.CC4)
  294.                 {
  295.                     Funcs.CustomClasses(3, this.textBoxX2.Text, this.switchButton1.Value);
  296.                 }
  297.                 else if (this.comboBoxEx1.SelectedItem == this.CC5)
  298.                 {
  299.                     Funcs.CustomClasses(4, this.textBoxX2.Text, this.switchButton1.Value);
  300.                 }
  301.                 else if (this.comboBoxEx1.SelectedItem == this.CC6)
  302.                 {
  303.                     Funcs.CustomClasses(5, this.textBoxX2.Text, this.switchButton1.Value);
  304.                 }
  305.                 else if (this.comboBoxEx1.SelectedItem == this.CC7)
  306.                 {
  307.                     Funcs.CustomClasses(6, this.textBoxX2.Text, this.switchButton1.Value);
  308.                 }
  309.                 else if (this.comboBoxEx1.SelectedItem == this.CC8)
  310.                 {
  311.                     Funcs.CustomClasses(7, this.textBoxX2.Text, this.switchButton1.Value);
  312.                 }
  313.                 else if (this.comboBoxEx1.SelectedItem == this.CC9)
  314.                 {
  315.                     Funcs.CustomClasses(8, this.textBoxX2.Text, this.switchButton1.Value);
  316.                 }
  317.                 else if (this.comboBoxEx1.SelectedItem == this.CC10)
  318.                 {
  319.                     Funcs.CustomClasses(9, this.textBoxX2.Text, this.switchButton1.Value);
  320.                 }
  321.             }
  322.         }
  323.  
  324.         private void buttonX10_Click(object sender, EventArgs e)
  325.         {
  326.             this.RefreshClients();
  327.         }
  328.  
  329.         private void RefreshClients()
  330.         {
  331.             if (Funcs.Jtag.activeConnection)
  332.             {
  333.                 this.client0.Visible = false;
  334.                 this.client1.Visible = false;
  335.                 this.client2.Visible = false;
  336.                 this.client3.Visible = false;
  337.                 this.client4.Visible = false;
  338.                 this.client5.Visible = false;
  339.                 this.client6.Visible = false;
  340.                 this.client7.Visible = false;
  341.                 this.client8.Visible = false;
  342.                 this.client9.Visible = false;
  343.                 this.client10.Visible = false;
  344.                 this.client11.Visible = false;
  345.                 this.client12.Visible = false;
  346.                 this.client13.Visible = false;
  347.                 this.client14.Visible = false;
  348.                 this.client15.Visible = false;
  349.                 this.client16.Visible = false;
  350.                 this.client17.Visible = false;
  351.                 this.doClients();
  352.             }
  353.         }
  354.  
  355.         private void doClients()
  356.         {
  357.             for (int i = -1; i <= 0x11; i++)
  358.             {
  359.                 byte[] memory = Funcs.Jtag.GetMemory(Funcs.getPlayerState(i) + 0x5534, 20);
  360.                 memory.Reverse<byte>();
  361.                 if ((i == 0) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  362.                 {
  363.                     this.client0.Visible = true;
  364.                     this.client0.Text = Encoding.ASCII.GetString(memory);
  365.                 }
  366.                 if ((i == 1) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  367.                 {
  368.                     this.client1.Visible = true;
  369.                     this.client1.Text = Encoding.ASCII.GetString(memory);
  370.                 }
  371.                 if ((i == 2) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  372.                 {
  373.                     this.client2.Visible = true;
  374.                     this.client2.Text = Encoding.ASCII.GetString(memory);
  375.                 }
  376.                 if ((i == 3) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  377.                 {
  378.                     this.client3.Visible = true;
  379.                     this.client3.Text = Encoding.ASCII.GetString(memory);
  380.                 }
  381.                 if ((i == 4) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  382.                 {
  383.                     this.client4.Visible = true;
  384.                     this.client4.Text = Encoding.ASCII.GetString(memory);
  385.                 }
  386.                 if ((i == 5) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  387.                 {
  388.                     this.client5.Visible = true;
  389.                     this.client5.Text = Encoding.ASCII.GetString(memory);
  390.                 }
  391.                 if ((i == 6) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  392.                 {
  393.                     this.client6.Visible = true;
  394.                     this.client6.Text = Encoding.ASCII.GetString(memory);
  395.                 }
  396.                 if ((i == 7) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  397.                 {
  398.                     this.client7.Visible = true;
  399.                     this.client7.Text = Encoding.ASCII.GetString(memory);
  400.                 }
  401.                 if ((i == 8) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  402.                 {
  403.                     this.client8.Visible = true;
  404.                     this.client8.Text = Encoding.ASCII.GetString(memory);
  405.                 }
  406.                 if ((i == 9) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  407.                 {
  408.                     this.client9.Visible = true;
  409.                     this.client9.Text = Encoding.ASCII.GetString(memory);
  410.                 }
  411.                 if ((i == 10) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  412.                 {
  413.                     this.client10.Visible = true;
  414.                     this.client10.Text = Encoding.ASCII.GetString(memory);
  415.                 }
  416.                 if ((i == 11) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  417.                 {
  418.                     this.client11.Visible = true;
  419.                     this.client11.Text = Encoding.ASCII.GetString(memory);
  420.                 }
  421.                 if ((i == 12) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  422.                 {
  423.                     this.client12.Visible = true;
  424.                     this.client12.Text = Encoding.ASCII.GetString(memory);
  425.                 }
  426.                 if ((i == 13) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  427.                 {
  428.                     this.client13.Visible = true;
  429.                     this.client13.Text = Encoding.ASCII.GetString(memory);
  430.                 }
  431.                 if ((i == 14) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  432.                 {
  433.                     this.client14.Visible = true;
  434.                     this.client14.Text = Encoding.ASCII.GetString(memory);
  435.                 }
  436.                 if ((i == 15) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  437.                 {
  438.                     this.client15.Visible = true;
  439.                     this.client15.Text = Encoding.ASCII.GetString(memory);
  440.                 }
  441.                 if ((i == 0x10) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  442.                 {
  443.                     this.client16.Visible = true;
  444.                     this.client16.Text = Encoding.ASCII.GetString(memory);
  445.                 }
  446.                 if ((i == 0x11) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
  447.                 {
  448.                     this.client17.Visible = true;
  449.                     this.client17.Text = Encoding.ASCII.GetString(memory);
  450.                 }
  451.             }
  452.         }
  453.  
  454.         private void buttonX9_Click(object sender, EventArgs e)
  455.         {
  456.  
  457.         }
  458.  
  459.  
  460.         private void buttonX8_Click(object sender, EventArgs e)
  461.         {
  462.             if (Funcs.Jtag.activeConnection)
  463.             {
  464.                 this.integerInput2.Value = Funcs.Stats.readStat(Funcs.Stats.prestige);
  465.                 this.integerInput10.Value = Funcs.Stats.readStat(Funcs.Stats.rank);
  466.                 this.integerInput9.Value = Funcs.Stats.readStat(Funcs.Stats.score);
  467.                 this.integerInput8.Value = Funcs.Stats.readStat(Funcs.Stats.kills);
  468.                 this.integerInput7.Value = Funcs.Stats.readStat(Funcs.Stats.deaths);
  469.                 this.integerInput6.Value = Funcs.Stats.readStat(Funcs.Stats.wins);
  470.                 this.integerInput5.Value = Funcs.Stats.readStat(Funcs.Stats.losses);
  471.                 this.integerInput4.Value = Funcs.Stats.readStat(Funcs.Stats.killstreak);
  472.                 this.integerInput3.Value = Funcs.Stats.readStat(Funcs.Stats.headshots);
  473.                 this.integerInput12.Value = Funcs.Stats.readStat(Funcs.Stats.timeplayed);
  474.                 this.integerInput11.Value = Funcs.Stats.readStat(Funcs.Stats.tokens);
  475.             }
  476.         }
  477.  
  478.         private void buttonX14_Click(object sender, EventArgs e)
  479.         {
  480.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  481.             {
  482.                 if (this.advTree1.SelectedNodes.Count == this.getClientCount())
  483.                 {
  484.                     Funcs.Achievements(-1, "All Clients");
  485.                 }
  486.                 else
  487.                 {
  488.                     foreach (Node node in this.advTree1.SelectedNodes)
  489.                     {
  490.                         Funcs.Achievements(int.Parse(Regex.Match(node.Name, @"\d+").Value), node.Text);
  491.                     }
  492.                 }
  493.             }
  494.         }
  495.  
  496.         private int getClientCount()
  497.         {
  498.             this.RefreshClients();
  499.             int num = 0;
  500.             foreach (Node node in this.advTree1.Nodes)
  501.             {
  502.                 if (node.IsVisible)
  503.                 {
  504.                     num++;
  505.                 }
  506.             }
  507.             return num;
  508.         }
  509.  
  510.         private void buttonX16_Click(object sender, EventArgs e)
  511.         {
  512.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  513.             {
  514.                 foreach (Node node in this.advTree1.SelectedNodes)
  515.                 {
  516.                     Funcs.Gamertag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX4.Text);
  517.                 }
  518.             }
  519.         }
  520.  
  521.         private void buttonX17_Click(object sender, EventArgs e)
  522.         {
  523.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  524.             {
  525.                 if (this.advTree1.SelectedNodes.Count != this.getClientCount())
  526.                 {
  527.                     foreach (Node node in this.advTree1.SelectedNodes)
  528.                     {
  529.                         int client = int.Parse(Regex.Match(node.Name, @"\d+").Value);
  530.                         Funcs.Killstreaks(client);
  531.                         Funcs.CenterText(client, "^7Killstreaks [^2Given^7]");
  532.                     }
  533.                 }
  534.                 else
  535.                 {
  536.                     for (int i = 0; i <= 0x11; i++)
  537.                     {
  538.                         Funcs.Killstreaks(i);
  539.                     }
  540.                 }
  541.             }
  542.         }
  543.  
  544.         private void slider1_ValueChanged(object sender, EventArgs e)
  545.         {
  546.             this.slider1.Text = this.slider1.Value.ToString();
  547.             if (Funcs.Jtag.activeConnection)
  548.             {
  549.                 Funcs.Jump_Height((float)this.slider1.Value);
  550.                 Thread.Sleep(250);
  551.             }
  552.         }
  553.  
  554.         private void slider2_ValueChanged(object sender, EventArgs e)
  555.         {
  556.             this.slider2.Text = this.slider2.Value.ToString();
  557.             if (Funcs.Jtag.activeConnection)
  558.             {
  559.                 Funcs.GSpeed(this.slider2.Value);
  560.                 Thread.Sleep(250);
  561.             }
  562.         }
  563.  
  564.         private void slider3_ValueChanged(object sender, EventArgs e)
  565.         {
  566.             this.slider3.Text = this.slider3.Value.ToString();
  567.             if (Funcs.Jtag.activeConnection)
  568.             {
  569.                 Funcs.NoFallDamage((float)this.slider3.Value);
  570.                 Thread.Sleep(250);
  571.             }
  572.         }
  573.  
  574.         private void slider4_ValueChanged(object sender, EventArgs e)
  575.         {
  576.             this.slider4.Text = this.slider4.Value.ToString();
  577.             if (Funcs.Jtag.activeConnection)
  578.             {
  579.                 Funcs.FOV(this.slider4.Value);
  580.                 Thread.Sleep(250);
  581.             }
  582.         }
  583.  
  584.         private void buttonX15_Click(object sender, EventArgs e)
  585.         {
  586.  
  587.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  588.             {
  589.                 foreach (Node node in this.advTree1.SelectedNodes)
  590.                 {
  591.                     Funcs.Gamertag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX3.Text);
  592.                 }
  593.             }
  594.         }
  595.  
  596.         private void buttonX19_Click(object sender, EventArgs e)
  597.         {
  598.             if (Funcs.Jtag.activeConnection)
  599.             {
  600.                 this.integerInput22.Value = Funcs.Stats.readStat(Funcs.Stats.zmkills);
  601.                 this.integerInput14.Value = Funcs.Stats.readStat(Funcs.Stats.zmdeaths);
  602.                 this.integerInput15.Value = Funcs.Stats.readStat(Funcs.Stats.zmheadshots);
  603.                 this.integerInput16.Value = Funcs.Stats.readStat(Funcs.Stats.zmgrenkills);
  604.                 this.integerInput17.Value = Funcs.Stats.readStat(Funcs.Stats.zmdoorsopen);
  605.                 this.integerInput18.Value = Funcs.Stats.readStat(Funcs.Stats.zmbulletsfired);
  606.                 this.integerInput19.Value = Funcs.Stats.readStat(Funcs.Stats.zmrevives);
  607.                 this.integerInput20.Value = Funcs.Stats.readStat(Funcs.Stats.zmgibs);
  608.                 this.integerInput21.Value = Funcs.Stats.readStat(Funcs.Stats.zmperks);
  609.                 this.integerInput13.Value = Funcs.Stats.readStat(Funcs.Stats.zmdowns);
  610.             }
  611.         }
  612.  
  613.         private void buttonX18_Click(object sender, EventArgs e)
  614.         {
  615.             if (Funcs.Jtag.activeConnection)
  616.             {
  617.                 if (!string.IsNullOrWhiteSpace(this.integerInput22.Value.ToString()))
  618.                 {
  619.                     Funcs.Stats.writeStat(Funcs.Stats.zmkills, this.integerInput22.Value);
  620.                 }
  621.                 if (!string.IsNullOrWhiteSpace(this.integerInput14.Value.ToString()))
  622.                 {
  623.                     Funcs.Stats.writeStat(Funcs.Stats.zmdeaths, this.integerInput14.Value);
  624.                 }
  625.                 if (!string.IsNullOrWhiteSpace(this.integerInput15.Value.ToString()))
  626.                 {
  627.                     Funcs.Stats.writeStat(Funcs.Stats.zmheadshots, this.integerInput15.Value);
  628.                 }
  629.                 if (!string.IsNullOrWhiteSpace(this.integerInput22.Value.ToString()))
  630.                 {
  631.                     Funcs.Stats.writeStat(Funcs.Stats.zmgrenkills, this.integerInput22.Value);
  632.                 }
  633.                 if (!string.IsNullOrWhiteSpace(this.integerInput21.Value.ToString()))
  634.                 {
  635.                     Funcs.Stats.writeStat(Funcs.Stats.zmdoorsopen, this.integerInput21.Value);
  636.                 }
  637.                 if (!string.IsNullOrWhiteSpace(this.integerInput20.Value.ToString()))
  638.                 {
  639.                     Funcs.Stats.writeStat(Funcs.Stats.zmbulletsfired, this.integerInput20.Value);
  640.                 }
  641.                 if (!string.IsNullOrWhiteSpace(this.integerInput19.Value.ToString()))
  642.                 {
  643.                     Funcs.Stats.writeStat(Funcs.Stats.zmrevives, this.integerInput19.Value);
  644.                 }
  645.                 if (!string.IsNullOrWhiteSpace(this.integerInput18.Value.ToString()))
  646.                 {
  647.                     Funcs.Stats.writeStat(Funcs.Stats.zmgibs, this.integerInput18.Value);
  648.                 }
  649.                 if (!string.IsNullOrWhiteSpace(this.integerInput17.Value.ToString()))
  650.                 {
  651.                     Funcs.Stats.writeStat(Funcs.Stats.zmperks, this.integerInput17.Value);
  652.                 }
  653.                 if (!string.IsNullOrWhiteSpace(this.integerInput16.Value.ToString()))
  654.                 {
  655.                     Funcs.Stats.writeStat(Funcs.Stats.zmdowns, this.integerInput16.Value);
  656.                 }
  657.                 MessageBox.Show("Zombie Stats set successfully!", "Stats Set!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  658.             }
  659.         }
  660.  
  661.         private void buttonX20_Click(object sender, EventArgs e)
  662.         {
  663.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  664.             {
  665.                 foreach (Node node in this.advTree1.SelectedNodes)
  666.                 {
  667.                     Funcs.ClanTag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX5.Text + "^7");
  668.                 }
  669.             }
  670.         }
  671.  
  672.         private void buttonX21_Click(object sender, EventArgs e)  
  673.         {
  674.             if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
  675.             {
  676.                 foreach (Node node in this.advTree1.SelectedNodes)
  677.                 {
  678.                     int client = int.Parse(Regex.Match(node.Name, @"\d+").Value);
  679.                     Funcs.IGPrestige(client, this.integerInput23.Value);
  680.                     Funcs.IGRank(client, this.integerInput24.Value);
  681.                 }
  682.             }
  683.         }
  684.  
  685.         ApXRPCUpdater ApXRPCUpdater = new ApXRPCUpdater("1.0.0.0");   //Updatesystem
  686.         private void buttonX22_Click(object sender, EventArgs e)
  687.         {
  688.             switch (ApXRPCUpdater.CheckVersion())
  689.             {
  690.                 case UpdateResponse.Correct:
  691.                     MessageBoxEx.Show("The version is Up-To-Date!");
  692.                     break;
  693.                 case UpdateResponse.Incorrect:
  694.                     if (MessageBoxEx.Show("Would you like to download the latest version of Projekt Harz4?", "New Update Available!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
  695.                     {
  696.                         ApXRPCUpdater.getUpdate("Projekt Harz4 by XeTazzy.rar", "Successfully downloaded Projekt Har4 Update! It has been saved in this version's directory as \"Projekt Harz4 by XeTazzy.rar\"");
  697.                     }
  698.                     break;
  699.                 case UpdateResponse.NetworkInactive:
  700.                     MessageBoxEx.Show("Your network has returned as inactive, please check your connection and try again!", "Network Inactive!");
  701.                     break;
  702.             }
  703.         }
  704.     }
  705. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement