Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- */Projekt Harz4 source made by XeTazzy/*
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using DevComponents.DotNetBar.Metro;
- using JRPC_Client;
- using XRPCLib;
- using DevComponents.Editors;
- using Projekt_Harz4_by_XeTazzy;
- using System.Threading;
- using DevComponents.DotNetBar.Controls;
- using DevComponents.AdvTree;
- using System.Text.RegularExpressions;
- using DevComponents.DotNetBar;
- using Extras;
- namespace Projekt_Harz4_by_XeTazzy
- {
- public partial class Form1 : MetroForm
- {
- XRPC Jtag = new XRPC();
- private ComboItem CC1;
- private ComboItem CC10;
- private ComboItem CC2;
- private ComboItem CC3;
- private ComboItem CC4;
- private ComboItem CC5;
- private ComboItem CC6;
- private ComboItem CC7;
- private ComboItem CC8;
- private ComboItem CC9;
- private Node client0;
- private Node client1;
- private Node client10;
- private Node client11;
- private Node client12;
- private Node client13;
- private Node client14;
- private Node client15;
- private Node client16;
- private Node client17;
- private Node client2;
- private Node client3;
- private Node client4;
- private Node client5;
- private Node client6;
- private Node client7;
- private Node client8;
- private Node client9;
- public Form1()
- {
- InitializeComponent();
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- labelX1.Location = new Point(labelX1.Location.X + 10, labelX1.Location.Y);
- if (labelX1.Location.X > this.Width)
- {
- labelX1.Location = new Point(0 - labelX1.Width, labelX1.Location.Y);
- }
- }
- private void timer2_Tick(object sender, EventArgs e)
- {
- 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);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- timer1.Enabled = true;
- timer2.Start(); timer2.Enabled = true;
- this.lblTeam.ForeColor = Color.Orange;
- }
- private void buttonX1_Click(object sender, EventArgs e) //Connect
- {
- this.Jtag.Connect();
- if (this.Jtag.activeConnection)
- {
- this.connectionLabel.Text = "Connected";
- this.connectionLabel.ForeColor = Color.Green;
- MessageBoxEx.Show("Successful Conneced");
- }
- else
- {
- this.connectionLabel.ForeColor = Color.Red;
- this.connectionLabel.Text = "Not Connected";
- }
- }
- private void buttonX2_Click(object sender, EventArgs e) //ban bypass BO2 TU18
- {
- byte[] data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825c9130, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825c6070, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599630, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x822d19e0, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599670, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599680, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825996ac, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x8259964c, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825996b4, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599644, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599658, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825dd384, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825dd3a0, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x82599618, data);
- data = new byte[4];
- data[0] = 0x60;
- this.Jtag.SetMemory(0x825c5354, data);
- this.Jtag.Notify(XRPC.XNotiyLogo.FLASHING_HAPPY_FACE, "BO2 Ban Bypass Enabled, Wait 10 Seconds");
- MessageBoxEx.Show("Bypass Successful! Wait 10 second, then sign in and play online.");
- }
- private void buttonX3_Click(object sender, EventArgs e)
- {
- this.Jtag.SetMemory(Online.live_spoof1, new byte[] { 0x7c, 0x6b, 0x1b, 120 });
- this.Jtag.SetMemory(Online.live_spoof2, new byte[] { 0x7f, 0x2b, 0xcb, 120 });
- this.Jtag.SetMemory(Online.live_spoof3, new byte[] { 0x7d, 0x6b, 80, 0x38 });
- this.Jtag.SetMemory(Online.live_spoof4, new byte[] { 0x81, 0x61, 0, 80 });
- MessageBoxEx.Show("Gold Spoofed Successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- this.Jtag.Notify(XRPC.XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER, "Account Gold Spoofing Successful");
- }
- public class Online
- {
- public static uint live_spoof1 = (XamUserCheckPrivilege + 320);
- public static uint live_spoof2 = (XamUserCheckPrivilege + 0x1a0);
- public static uint live_spoof3 = (XamUserCheckPrivilege + 0x1ac);
- public static uint live_spoof4 = (XamUserCheckPrivilege + 0x1b4);
- public static uint XamUserCheckPrivilege = 0x816dcb90;
- public static uint XUserBaseAddr = 0x83bfddf8;
- public static uint XUserGamertag = (XUserBaseAddr + 0x4c);
- public static uint XUserXUID = (XUserBaseAddr + 0x38);
- }
- private void buttonX4_Click(object sender, EventArgs e)
- {
- try
- {
- OpenFileDialog ofd = new OpenFileDialog();
- if (ofd.ShowDialog() == DialogResult.OK)
- {
- BinaryReader br = new BinaryReader(File.OpenRead(ofd.FileName));
- br.BaseStream.Position = 0x1858;
- foreach (char bread in br.ReadChars(3000)) richTextBoxEx1.Text += bread;
- br.Dispose();
- textBoxX1.Text = ofd.FileName;
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("Fehlgeschlagen: \n\n" + ex);
- }
- }
- private void buttonX6_Click(object sender, EventArgs e)
- {
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dom_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_conf_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_ctf_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dd_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_dm_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_grnd_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_sd_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_sab_score_kill " + this.integerInput1.Value + "\"" });
- this.Jtag.Call(BO2.Cbuf_addText, new object[] { 0, "set scr_tdef_score_kill " + this.integerInput1.Value + "\"" });
- }
- public class BO2
- {
- public static uint Cbuf_addText = 0x82110108;
- public static uint Deaths = (EntryStats + 0x10a);
- public static uint EntryStats = 0x840c0500;
- public static uint FallDamage = 0x82003fd4;
- public static uint Headshots = (EntryStats + 0x20c);
- public static uint Kills = (EntryStats + 0x338);
- public static uint Killstreak = (EntryStats + 0x620);
- public static uint Losses = (EntryStats + 0xc0e);
- public static uint Prestige = (EntryStats + 0x7dc);
- public static uint Rank = (EntryStats + 0x7ee);
- public static uint RankXP = (EntryStats + 0x7f4);
- public static uint Redboxes = 0x821f5b7f;
- public static uint Score = (EntryStats + 0x818);
- public static uint SuperJump = 0x82085654;
- public static uint TimePlayed = (EntryStats + 0x8d2);
- public static uint Tokens = (EntryStats + 0x9f66);
- public static uint VSAT = 0x821b8fd3;
- public static uint Wins = (EntryStats + 0x91a);
- public static uint ZombieRank1 = (EntryStats + 0x243);
- public static uint ZombieRank2 = (EntryStats + 0x5f);
- public static uint ZombieRank3 = (EntryStats + 0x24f);
- }
- private void buttonX5_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.UnlockAll();
- }
- }
- private void buttonX7_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- if (!Funcs.cycleState)
- {
- Funcs.cycleThread = new Thread(new ThreadStart(Funcs.CyclePrestige));
- Funcs.cycleState = true;
- Funcs.cycleThread.Start();
- }
- else
- {
- Funcs.cycleState = false;
- Funcs.cycleThread.Abort();
- }
- }
- }
- private void buttonX12_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.ClassCost();
- }
- }
- private void buttonX13_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.ForceHost();
- }
- }
- private void buttonX11_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.comboBoxEx1.SelectedItem != null))
- {
- if (this.comboBoxEx1.SelectedItem == this.CC1)
- {
- Funcs.CustomClasses(0, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC2)
- {
- Funcs.CustomClasses(1, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC3)
- {
- Funcs.CustomClasses(2, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC4)
- {
- Funcs.CustomClasses(3, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC5)
- {
- Funcs.CustomClasses(4, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC6)
- {
- Funcs.CustomClasses(5, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC7)
- {
- Funcs.CustomClasses(6, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC8)
- {
- Funcs.CustomClasses(7, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC9)
- {
- Funcs.CustomClasses(8, this.textBoxX2.Text, this.switchButton1.Value);
- }
- else if (this.comboBoxEx1.SelectedItem == this.CC10)
- {
- Funcs.CustomClasses(9, this.textBoxX2.Text, this.switchButton1.Value);
- }
- }
- }
- private void buttonX10_Click(object sender, EventArgs e)
- {
- this.RefreshClients();
- }
- private void RefreshClients()
- {
- if (Funcs.Jtag.activeConnection)
- {
- this.client0.Visible = false;
- this.client1.Visible = false;
- this.client2.Visible = false;
- this.client3.Visible = false;
- this.client4.Visible = false;
- this.client5.Visible = false;
- this.client6.Visible = false;
- this.client7.Visible = false;
- this.client8.Visible = false;
- this.client9.Visible = false;
- this.client10.Visible = false;
- this.client11.Visible = false;
- this.client12.Visible = false;
- this.client13.Visible = false;
- this.client14.Visible = false;
- this.client15.Visible = false;
- this.client16.Visible = false;
- this.client17.Visible = false;
- this.doClients();
- }
- }
- private void doClients()
- {
- for (int i = -1; i <= 0x11; i++)
- {
- byte[] memory = Funcs.Jtag.GetMemory(Funcs.getPlayerState(i) + 0x5534, 20);
- memory.Reverse<byte>();
- if ((i == 0) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client0.Visible = true;
- this.client0.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 1) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client1.Visible = true;
- this.client1.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 2) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client2.Visible = true;
- this.client2.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 3) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client3.Visible = true;
- this.client3.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 4) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client4.Visible = true;
- this.client4.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 5) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client5.Visible = true;
- this.client5.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 6) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client6.Visible = true;
- this.client6.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 7) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client7.Visible = true;
- this.client7.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 8) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client8.Visible = true;
- this.client8.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 9) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client9.Visible = true;
- this.client9.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 10) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client10.Visible = true;
- this.client10.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 11) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client11.Visible = true;
- this.client11.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 12) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client12.Visible = true;
- this.client12.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 13) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client13.Visible = true;
- this.client13.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 14) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client14.Visible = true;
- this.client14.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 15) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client15.Visible = true;
- this.client15.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 0x10) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client16.Visible = true;
- this.client16.Text = Encoding.ASCII.GetString(memory);
- }
- if ((i == 0x11) && char.IsLetterOrDigit(Encoding.ASCII.GetString(memory), 0))
- {
- this.client17.Visible = true;
- this.client17.Text = Encoding.ASCII.GetString(memory);
- }
- }
- }
- private void buttonX9_Click(object sender, EventArgs e)
- {
- }
- private void buttonX8_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- this.integerInput2.Value = Funcs.Stats.readStat(Funcs.Stats.prestige);
- this.integerInput10.Value = Funcs.Stats.readStat(Funcs.Stats.rank);
- this.integerInput9.Value = Funcs.Stats.readStat(Funcs.Stats.score);
- this.integerInput8.Value = Funcs.Stats.readStat(Funcs.Stats.kills);
- this.integerInput7.Value = Funcs.Stats.readStat(Funcs.Stats.deaths);
- this.integerInput6.Value = Funcs.Stats.readStat(Funcs.Stats.wins);
- this.integerInput5.Value = Funcs.Stats.readStat(Funcs.Stats.losses);
- this.integerInput4.Value = Funcs.Stats.readStat(Funcs.Stats.killstreak);
- this.integerInput3.Value = Funcs.Stats.readStat(Funcs.Stats.headshots);
- this.integerInput12.Value = Funcs.Stats.readStat(Funcs.Stats.timeplayed);
- this.integerInput11.Value = Funcs.Stats.readStat(Funcs.Stats.tokens);
- }
- }
- private void buttonX14_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- if (this.advTree1.SelectedNodes.Count == this.getClientCount())
- {
- Funcs.Achievements(-1, "All Clients");
- }
- else
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- Funcs.Achievements(int.Parse(Regex.Match(node.Name, @"\d+").Value), node.Text);
- }
- }
- }
- }
- private int getClientCount()
- {
- this.RefreshClients();
- int num = 0;
- foreach (Node node in this.advTree1.Nodes)
- {
- if (node.IsVisible)
- {
- num++;
- }
- }
- return num;
- }
- private void buttonX16_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- Funcs.Gamertag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX4.Text);
- }
- }
- }
- private void buttonX17_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- if (this.advTree1.SelectedNodes.Count != this.getClientCount())
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- int client = int.Parse(Regex.Match(node.Name, @"\d+").Value);
- Funcs.Killstreaks(client);
- Funcs.CenterText(client, "^7Killstreaks [^2Given^7]");
- }
- }
- else
- {
- for (int i = 0; i <= 0x11; i++)
- {
- Funcs.Killstreaks(i);
- }
- }
- }
- }
- private void slider1_ValueChanged(object sender, EventArgs e)
- {
- this.slider1.Text = this.slider1.Value.ToString();
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.Jump_Height((float)this.slider1.Value);
- Thread.Sleep(250);
- }
- }
- private void slider2_ValueChanged(object sender, EventArgs e)
- {
- this.slider2.Text = this.slider2.Value.ToString();
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.GSpeed(this.slider2.Value);
- Thread.Sleep(250);
- }
- }
- private void slider3_ValueChanged(object sender, EventArgs e)
- {
- this.slider3.Text = this.slider3.Value.ToString();
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.NoFallDamage((float)this.slider3.Value);
- Thread.Sleep(250);
- }
- }
- private void slider4_ValueChanged(object sender, EventArgs e)
- {
- this.slider4.Text = this.slider4.Value.ToString();
- if (Funcs.Jtag.activeConnection)
- {
- Funcs.FOV(this.slider4.Value);
- Thread.Sleep(250);
- }
- }
- private void buttonX15_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- Funcs.Gamertag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX3.Text);
- }
- }
- }
- private void buttonX19_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- this.integerInput22.Value = Funcs.Stats.readStat(Funcs.Stats.zmkills);
- this.integerInput14.Value = Funcs.Stats.readStat(Funcs.Stats.zmdeaths);
- this.integerInput15.Value = Funcs.Stats.readStat(Funcs.Stats.zmheadshots);
- this.integerInput16.Value = Funcs.Stats.readStat(Funcs.Stats.zmgrenkills);
- this.integerInput17.Value = Funcs.Stats.readStat(Funcs.Stats.zmdoorsopen);
- this.integerInput18.Value = Funcs.Stats.readStat(Funcs.Stats.zmbulletsfired);
- this.integerInput19.Value = Funcs.Stats.readStat(Funcs.Stats.zmrevives);
- this.integerInput20.Value = Funcs.Stats.readStat(Funcs.Stats.zmgibs);
- this.integerInput21.Value = Funcs.Stats.readStat(Funcs.Stats.zmperks);
- this.integerInput13.Value = Funcs.Stats.readStat(Funcs.Stats.zmdowns);
- }
- }
- private void buttonX18_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection)
- {
- if (!string.IsNullOrWhiteSpace(this.integerInput22.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmkills, this.integerInput22.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput14.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmdeaths, this.integerInput14.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput15.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmheadshots, this.integerInput15.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput22.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmgrenkills, this.integerInput22.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput21.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmdoorsopen, this.integerInput21.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput20.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmbulletsfired, this.integerInput20.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput19.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmrevives, this.integerInput19.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput18.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmgibs, this.integerInput18.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput17.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmperks, this.integerInput17.Value);
- }
- if (!string.IsNullOrWhiteSpace(this.integerInput16.Value.ToString()))
- {
- Funcs.Stats.writeStat(Funcs.Stats.zmdowns, this.integerInput16.Value);
- }
- MessageBox.Show("Zombie Stats set successfully!", "Stats Set!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- }
- private void buttonX20_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- Funcs.ClanTag(int.Parse(Regex.Match(node.Name, @"\d+").Value), this.textBoxX5.Text + "^7");
- }
- }
- }
- private void buttonX21_Click(object sender, EventArgs e)
- {
- if (Funcs.Jtag.activeConnection & (this.advTree1.SelectedNode != null))
- {
- foreach (Node node in this.advTree1.SelectedNodes)
- {
- int client = int.Parse(Regex.Match(node.Name, @"\d+").Value);
- Funcs.IGPrestige(client, this.integerInput23.Value);
- Funcs.IGRank(client, this.integerInput24.Value);
- }
- }
- }
- ApXRPCUpdater ApXRPCUpdater = new ApXRPCUpdater("1.0.0.0"); //Updatesystem
- private void buttonX22_Click(object sender, EventArgs e)
- {
- switch (ApXRPCUpdater.CheckVersion())
- {
- case UpdateResponse.Correct:
- MessageBoxEx.Show("The version is Up-To-Date!");
- break;
- case UpdateResponse.Incorrect:
- if (MessageBoxEx.Show("Would you like to download the latest version of Projekt Harz4?", "New Update Available!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
- {
- 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\"");
- }
- break;
- case UpdateResponse.NetworkInactive:
- MessageBoxEx.Show("Your network has returned as inactive, please check your connection and try again!", "Network Inactive!");
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement