Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*BadLuckBrians MW3MenuDesigner PwN3D
- By:BaSs_HaXoR
- Download: http://adf.ly/rt7x4
- <3 BLB :)
- */
- mnamespace Mw3MenuDesigner
- {
- /*
- * °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
- * °°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- * _ _ _
- / /\ /\ \ /\_\ _
- / / \\ \ \ / / //\_\
- / / /\ \\ \ \_/ / / \/_/
- / / /\ \ \\ \___/ /
- / / /\ \_\ \\ \ \_/
- / / /\ \ \___\\ \ \
- / / / \ \ \__/ \ \ \ _
- / / /____\_\ \ \ \ \ /_/\
- / / /__________\ \ \_\ \_\/
- \/_____________/ \/_/
- °
- _____ _____ _____ _____ _____ _____ _______ _____
- /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ ______ /::\ \ /\ \
- /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \ |::| | /::::\ \ /::\ \
- /::::\ \ /::::\ \ /::::\ \ /::::\ \ /:::/ / /::::\ \ |::| | /::::::\ \ /::::\ \
- /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::/ / /::::::\ \ |::| | /::::::::\ \ /::::::\ \
- /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/ / /:::/\:::\ \ |::| | /:::/~~\:::\ \ /:::/\:::\ \
- /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/____/ /:::/__\:::\ \ |::| | /:::/ \:::\ \ /:::/__\:::\ \
- /::::\ \:::\ \ /::::\ \:::\ \ \:::\ \:::\ \ \:::\ \:::\ \ /::::\ \ /::::\ \:::\ \ |::| | /:::/ / \:::\ \ /::::\ \:::\ \
- /::::::\ \:::\ \ /::::::\ \:::\ \ ___\:::\ \:::\ \ ___\:::\ \:::\ \ /::::::\ \ _____ /::::::\ \:::\ \ |::| | /:::/____/ \:::\____\ /::::::\ \:::\ \
- /:::/\:::\ \:::\ ___\ /:::/\:::\ \:::\ \ /\ \:::\ \:::\ \ /\ \:::\ \:::\ \ /:::/\:::\ \ /\ \ /:::/\:::\ \:::\ \ ______|::|___|___ ____ |:::| | |:::| | /:::/\:::\ \:::\____\
- /:::/__\:::\ \:::| |/:::/ \:::\ \:::\____\/::\ \:::\ \:::\____\/::\ \:::\ \:::\____\/:::/ \:::\ /::\____\/:::/ \:::\ \:::\____\|:::::::::::::::::| ||:::|____| |:::| |/:::/ \:::\ \:::| |
- \:::\ \:::\ /:::|____|\::/ \:::\ /:::/ /\:::\ \:::\ \::/ /\:::\ \:::\ \::/ /\::/ \:::\ /:::/ /\::/ \:::\ /:::/ /|:::::::::::::::::|____| \:::\ \ /:::/ / \::/ |::::\ /:::|____|
- \:::\ \:::\/:::/ / \/____/ \:::\/:::/ / \:::\ \:::\ \/____/ \:::\ \:::\ \/____/ \/____/ \:::\/:::/ / \/____/ \:::\/:::/ / ~~~~~~|::|~~~|~~~ \:::\ \ /:::/ / \/____|:::::\/:::/ /
- \:::\ \::::::/ / \::::::/ / \:::\ \:::\ \ \:::\ \:::\ \ \::::::/ / \::::::/ / |::| | \:::\ /:::/ / |:::::::::/ /
- \:::\ \::::/ / \::::/ / \:::\ \:::\____\ \:::\ \:::\____\ \::::/ / \::::/ / |::| | \:::\__/:::/ / |::|\::::/ /
- \:::\ /:::/ / /:::/ / \:::\ /:::/ / \:::\ /:::/ / /:::/ / /:::/ / |::| | \::::::::/ / |::| \::/____/
- \:::\/:::/ / /:::/ / \:::\/:::/ / \:::\/:::/ / /:::/ / /:::/ / |::| | \::::::/ / |::| ~|
- \::::::/ / /:::/ / \::::::/ / \::::::/ / /:::/ / /:::/ / |::| | \::::/ / |::| |
- \::::/ / /:::/ / \::::/ / \::::/ / /:::/ / /:::/ / |::| | \::/____/ \::| |
- \::/____/ \::/ / \::/ / \::/ / \::/ / \::/ / |::|___| ~~ \:| |
- ~~ \/____/ \/____/ \/____/ \/____/ \/____/ ~~ \|___|
- *
- *
- Yb dP 8 w .d88b. w w dP"Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP " d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP
- *
- *
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ######## _ _ _
- | | | | | |
- _ _ _ __ ___ _ __ ___ _ __ _ _ _ __ | |_ ___ __| | | |__ ___ ___ __ _ _ _ ___ ___ __ _____ ___ __ _ _ __ ___
- | | | | '_ \ / _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | | '_ \ / _ \/ __/ _` | | | / __|/ _ \ \ \ /\ / / _ \ / __/ _` | '__/ _ \
- | |_| | | | | __/ | | | (__| | | |_| | |_) | || __/ (_| | | |_) | __/ (_| (_| | |_| \__ \ __/ \ V V / __/ | (_| (_| | | | __/
- \__,_|_| |_|\___|_| |_|\___|_| \__, | .__/ \__\___|\__,_| |_.__/ \___|\___\__,_|\__,_|___/\___| \_/\_/ \___| \___\__,_|_| \___|
- __/ | |
- |___/|_|
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ########
- */
- using DevComponents.DotNetBar;
- using DevComponents.DotNetBar.Metro;
- using DevComponents.DotNetBar.Metro.ColorTables;
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading;
- using System.Windows.Forms;
- using PS3Lib;
- public class Form1 : MetroForm
- {
- private NumericUpDown Alpha;
- private NumericUpDown Blue;
- private Button button1;
- private Button button2;
- private Button button3;
- private IContainer components;
- private NumericUpDown Green;
- private NumericUpDown Height;
- private NumericUpDown Index;
- private Label label1;
- private Label label10;
- private Label label11;
- private Label label12;
- private Label label13;
- private Label label14;
- private Label label15;
- private Label label16;
- private Label label17;
- private Label label2;
- private Label label3;
- private Label label4;
- private Label label5;
- private Label label6;
- private Label label7;
- private Label label8;
- private Label label9;
- private LinkLabel linkLabel1;
- private LinkLabel linkLabel2;
- private NumericUpDown Material;
- private NumericUpDown Red;
- private StyleManager styleManager1;
- private TextBox textBox1;
- private NumericUpDown Type;
- private NumericUpDown Width;
- private NumericUpDown XPos;
- private NumericUpDown YPos;
- private static PS3API PS3 = new PS3API();
- public Form1()
- {
- this.InitializeComponent();
- }
- private void Alpha_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void Blue_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void button1_Click(object sender, EventArgs e)
- {
- try
- {
- PS3.ChangeAPI(SelectAPI.ControlConsole);
- PS3.ConnectTarget("192.168.1.40");
- PS3.AttachProcess();
- RPC.RPC_Enable_124();
- MessageBox.Show("Ps3 is connected");
- }
- catch
- {
- MessageBox.Show("Failed to connect !");
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void button3_Click(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, 0, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- public static uint createText(string text)
- {
- byte[] bytes = new byte[4];
- RPC.CallFunc(0x1be6cc, RPC.str_pointer(text), 0, 0, 0, 0);
- Thread.Sleep(10);
- PS3.GetMemory(0x114ae64, bytes);
- Array.Reverse(bytes);
- return BitConverter.ToUInt32(bytes, 0);
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void Green_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void Height_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void Index_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void InitializeComponent()
- {
- this.components = new Container();
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.styleManager1 = new StyleManager(this.components);
- this.label14 = new Label();
- this.label13 = new Label();
- this.textBox1 = new TextBox();
- this.label12 = new Label();
- this.Type = new NumericUpDown();
- this.linkLabel2 = new LinkLabel();
- this.linkLabel1 = new LinkLabel();
- this.label11 = new Label();
- this.button3 = new Button();
- this.button2 = new Button();
- this.label9 = new Label();
- this.Height = new NumericUpDown();
- this.label10 = new Label();
- this.Width = new NumericUpDown();
- this.label8 = new Label();
- this.Alpha = new NumericUpDown();
- this.label7 = new Label();
- this.Green = new NumericUpDown();
- this.label6 = new Label();
- this.Blue = new NumericUpDown();
- this.label5 = new Label();
- this.Red = new NumericUpDown();
- this.label4 = new Label();
- this.YPos = new NumericUpDown();
- this.label3 = new Label();
- this.XPos = new NumericUpDown();
- this.label2 = new Label();
- this.Material = new NumericUpDown();
- this.label1 = new Label();
- this.Index = new NumericUpDown();
- this.button1 = new Button();
- this.label15 = new Label();
- this.label16 = new Label();
- this.label17 = new Label();
- this.Type.BeginInit();
- this.Height.BeginInit();
- this.Width.BeginInit();
- this.Alpha.BeginInit();
- this.Green.BeginInit();
- this.Blue.BeginInit();
- this.Red.BeginInit();
- this.YPos.BeginInit();
- this.XPos.BeginInit();
- this.Material.BeginInit();
- this.Index.BeginInit();
- base.SuspendLayout();
- this.styleManager1.ManagerStyle = eStyle.Metro;
- this.styleManager1.MetroColorParameters = new MetroColorGeneratorParameters(Color.White, Color.FromArgb(0x80, 0xff, 0x80));
- this.label14.AutoSize = true;
- this.label14.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label14.Location = new Point(0x22, 0xbd);
- this.label14.Name = "label14";
- this.label14.Size = new Size(0x60, 0x37);
- this.label14.TabIndex = 0x3f;
- this.label14.Text = "Type 4 = HUD\r\n\r\nType 1 = Text\r\n\r\nType 0 = Free\r\n";
- this.label13.AutoSize = true;
- this.label13.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label13.Location = new Point(0xc2, 0x135);
- this.label13.Name = "label13";
- this.label13.Size = new Size(0x52, 11);
- this.label13.TabIndex = 0x3e;
- this.label13.Text = "Text String";
- this.textBox1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.textBox1.Location = new Point(0xad, 0x143);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new Size(0x80, 0x12);
- this.textBox1.TabIndex = 0x3d;
- this.label12.AutoSize = true;
- this.label12.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label12.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label12.ForeColor = Color.Black;
- this.label12.Location = new Point(220, 0x9e);
- this.label12.Name = "label12";
- this.label12.Size = new Size(0x21, 11);
- this.label12.TabIndex = 60;
- this.label12.Text = "Type";
- this.Type.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Type.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Type.ForeColor = Color.Black;
- this.Type.Location = new Point(0xd4, 0xae);
- this.Type.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] bits = new int[4];
- bits[0] = 4;
- this.Type.Maximum = new decimal(bits);
- this.Type.Name = "Type";
- this.Type.Size = new Size(0x37, 0x12);
- this.Type.TabIndex = 0x3b;
- int[] numArray2 = new int[4];
- numArray2[0] = 4;
- this.Type.Value = new decimal(numArray2);
- this.Type.ValueChanged += new EventHandler(this.Type_ValueChanged);
- this.linkLabel2.AutoSize = true;
- this.linkLabel2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.linkLabel2.Location = new Point(0x28c, 0x1a5);
- this.linkLabel2.Name = "linkLabel2";
- this.linkLabel2.Size = new Size(0x4b, 11);
- this.linkLabel2.TabIndex = 0x3a;
- this.linkLabel2.TabStop = true;
- this.linkLabel2.Text = "Pm me here";
- this.linkLabel2.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
- this.linkLabel1.AutoSize = true;
- this.linkLabel1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.linkLabel1.LinkColor = Color.FromArgb(0xc0, 0, 0);
- this.linkLabel1.Location = new Point(12, 0x1a5);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new Size(0x59, 11);
- this.linkLabel1.TabIndex = 0x39;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "Youtube Here";
- this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
- this.label11.AutoSize = true;
- this.label11.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label11.ForeColor = Color.Black;
- this.label11.Location = new Point(0xa1, 0x1a5);
- this.label11.Name = "label11";
- this.label11.Size = new Size(0x1a2, 11);
- this.label11.TabIndex = 0x38;
- this.label11.Text = "Made By Bad Luck Brian || Nextgenupdate.com || WrM* || AM|T";
- this.button3.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.button3.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button3.ForeColor = Color.Black;
- this.button3.Location = new Point(0x1b5, 0x2e);
- this.button3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.button3.Name = "button3";
- this.button3.Size = new Size(0x59, 0x2b);
- this.button3.TabIndex = 0x37;
- this.button3.Text = "Hide This Index";
- this.button3.UseVisualStyleBackColor = false;
- this.button3.Click += new EventHandler(this.button3_Click);
- this.button2.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.button2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button2.ForeColor = Color.Black;
- this.button2.Location = new Point(0xc2, 0x2e);
- this.button2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.button2.Name = "button2";
- this.button2.Size = new Size(0x59, 0x2b);
- this.button2.TabIndex = 0x36;
- this.button2.Text = "Spawn This Index";
- this.button2.UseVisualStyleBackColor = false;
- this.button2.Click += new EventHandler(this.button2_Click);
- this.label9.AutoSize = true;
- this.label9.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label9.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label9.ForeColor = Color.Black;
- this.label9.Location = new Point(0x14c, 0x132);
- this.label9.Name = "label9";
- this.label9.Size = new Size(0x2f, 11);
- this.label9.TabIndex = 0x35;
- this.label9.Text = "Height";
- this.Height.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Height.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Height.ForeColor = Color.Black;
- this.Height.Location = new Point(0x147, 0x143);
- this.Height.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray3 = new int[4];
- numArray3[0] = 0x3e8;
- this.Height.Maximum = new decimal(numArray3);
- this.Height.Name = "Height";
- this.Height.Size = new Size(0x37, 0x12);
- this.Height.TabIndex = 0x34;
- int[] numArray4 = new int[4];
- numArray4[0] = 100;
- this.Height.Value = new decimal(numArray4);
- this.Height.ValueChanged += new EventHandler(this.Height_ValueChanged);
- this.label10.AutoSize = true;
- this.label10.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label10.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label10.ForeColor = Color.Black;
- this.label10.Location = new Point(0x14f, 0x105);
- this.label10.Name = "label10";
- this.label10.Size = new Size(40, 11);
- this.label10.TabIndex = 0x33;
- this.label10.Text = "Width";
- this.Width.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Width.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Width.ForeColor = Color.Black;
- this.Width.Location = new Point(0x147, 0x114);
- this.Width.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray5 = new int[4];
- numArray5[0] = 0x3e8;
- this.Width.Maximum = new decimal(numArray5);
- this.Width.Name = "Width";
- this.Width.Size = new Size(0x37, 0x12);
- this.Width.TabIndex = 50;
- int[] numArray6 = new int[4];
- numArray6[0] = 100;
- this.Width.Value = new decimal(numArray6);
- this.Width.ValueChanged += new EventHandler(this.Width_ValueChanged);
- this.label8.AutoSize = true;
- this.label8.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label8.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label8.ForeColor = Color.Black;
- this.label8.Location = new Point(0x1d0, 0x9e);
- this.label8.Name = "label8";
- this.label8.Size = new Size(40, 11);
- this.label8.TabIndex = 0x31;
- this.label8.Text = "Alpha";
- this.Alpha.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Alpha.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Alpha.ForeColor = Color.Black;
- this.Alpha.Location = new Point(0x1c8, 0xae);
- this.Alpha.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray7 = new int[4];
- numArray7[0] = 0xff;
- this.Alpha.Maximum = new decimal(numArray7);
- this.Alpha.Name = "Alpha";
- this.Alpha.Size = new Size(0x37, 0x12);
- this.Alpha.TabIndex = 0x30;
- int[] numArray8 = new int[4];
- numArray8[0] = 0xff;
- this.Alpha.Value = new decimal(numArray8);
- this.Alpha.ValueChanged += new EventHandler(this.Alpha_ValueChanged);
- this.label7.AutoSize = true;
- this.label7.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label7.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label7.ForeColor = Color.Black;
- this.label7.Location = new Point(0x1d0, 0x105);
- this.label7.Name = "label7";
- this.label7.Size = new Size(40, 11);
- this.label7.TabIndex = 0x2f;
- this.label7.Text = "Green";
- this.Green.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Green.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Green.ForeColor = Color.Black;
- this.Green.Location = new Point(0x1c8, 0x114);
- this.Green.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray9 = new int[4];
- numArray9[0] = 0xff;
- this.Green.Maximum = new decimal(numArray9);
- this.Green.Name = "Green";
- this.Green.Size = new Size(0x37, 0x12);
- this.Green.TabIndex = 0x2e;
- int[] numArray10 = new int[4];
- numArray10[0] = 0xff;
- this.Green.Value = new decimal(numArray10);
- this.Green.ValueChanged += new EventHandler(this.Green_ValueChanged);
- this.label6.AutoSize = true;
- this.label6.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label6.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label6.ForeColor = Color.Black;
- this.label6.Location = new Point(0x1d4, 210);
- this.label6.Name = "label6";
- this.label6.Size = new Size(0x21, 11);
- this.label6.TabIndex = 0x2d;
- this.label6.Text = "Blue";
- this.Blue.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Blue.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Blue.ForeColor = Color.Black;
- this.Blue.Location = new Point(0x1c8, 0xe2);
- this.Blue.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray11 = new int[4];
- numArray11[0] = 0xff;
- this.Blue.Maximum = new decimal(numArray11);
- this.Blue.Name = "Blue";
- this.Blue.Size = new Size(0x37, 0x12);
- this.Blue.TabIndex = 0x2c;
- int[] numArray12 = new int[4];
- numArray12[0] = 0xff;
- this.Blue.Value = new decimal(numArray12);
- this.Blue.ValueChanged += new EventHandler(this.Blue_ValueChanged);
- this.label5.AutoSize = true;
- this.label5.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label5.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label5.ForeColor = Color.Black;
- this.label5.Location = new Point(0x1d4, 0x132);
- this.label5.Name = "label5";
- this.label5.Size = new Size(0x1a, 11);
- this.label5.TabIndex = 0x2b;
- this.label5.Text = "Red";
- this.Red.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Red.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Red.ForeColor = Color.Black;
- this.Red.Location = new Point(0x1c8, 0x143);
- this.Red.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray13 = new int[4];
- numArray13[0] = 0xff;
- this.Red.Maximum = new decimal(numArray13);
- this.Red.Name = "Red";
- this.Red.Size = new Size(0x37, 0x12);
- this.Red.TabIndex = 0x2a;
- int[] numArray14 = new int[4];
- numArray14[0] = 0xff;
- this.Red.Value = new decimal(numArray14);
- this.Red.ValueChanged += new EventHandler(this.Red_ValueChanged);
- this.label4.AutoSize = true;
- this.label4.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label4.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label4.ForeColor = Color.Black;
- this.label4.Location = new Point(0x159, 0x9e);
- this.label4.Name = "label4";
- this.label4.Size = new Size(12, 11);
- this.label4.TabIndex = 0x29;
- this.label4.Text = "Y";
- this.YPos.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.YPos.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.YPos.ForeColor = Color.Black;
- this.YPos.Location = new Point(0x147, 0xae);
- this.YPos.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray15 = new int[4];
- numArray15[0] = 0x3e8;
- this.YPos.Maximum = new decimal(numArray15);
- this.YPos.Name = "YPos";
- this.YPos.Size = new Size(0x37, 0x12);
- this.YPos.TabIndex = 40;
- int[] numArray16 = new int[4];
- numArray16[0] = 250;
- this.YPos.Value = new decimal(numArray16);
- this.YPos.ValueChanged += new EventHandler(this.YPos_ValueChanged);
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label3.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label3.ForeColor = Color.Black;
- this.label3.Location = new Point(0x159, 210);
- this.label3.Name = "label3";
- this.label3.Size = new Size(12, 11);
- this.label3.TabIndex = 0x27;
- this.label3.Text = "X";
- this.XPos.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.XPos.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.XPos.ForeColor = Color.Black;
- this.XPos.Location = new Point(0x147, 0xe2);
- this.XPos.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray17 = new int[4];
- numArray17[0] = 0x3e8;
- this.XPos.Maximum = new decimal(numArray17);
- this.XPos.Name = "XPos";
- this.XPos.Size = new Size(0x37, 0x12);
- this.XPos.TabIndex = 0x26;
- int[] numArray18 = new int[4];
- numArray18[0] = 250;
- this.XPos.Value = new decimal(numArray18);
- this.XPos.ValueChanged += new EventHandler(this.XPos_ValueChanged);
- this.label2.AutoSize = true;
- this.label2.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label2.ForeColor = Color.Black;
- this.label2.Location = new Point(210, 0x106);
- this.label2.Name = "label2";
- this.label2.Size = new Size(0x3d, 11);
- this.label2.TabIndex = 0x25;
- this.label2.Text = "Material";
- this.Material.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Material.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Material.ForeColor = Color.Black;
- this.Material.Location = new Point(0xd4, 0x116);
- this.Material.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray19 = new int[4];
- numArray19[0] = 500;
- this.Material.Maximum = new decimal(numArray19);
- this.Material.Name = "Material";
- this.Material.Size = new Size(0x37, 0x12);
- this.Material.TabIndex = 0x24;
- this.Material.ValueChanged += new EventHandler(this.Material_ValueChanged);
- this.label1.AutoSize = true;
- this.label1.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.label1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label1.ForeColor = Color.Black;
- this.label1.Location = new Point(220, 210);
- this.label1.Name = "label1";
- this.label1.Size = new Size(40, 11);
- this.label1.TabIndex = 0x23;
- this.label1.Text = "index";
- this.Index.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.Index.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.Index.ForeColor = Color.Black;
- this.Index.Location = new Point(0xd4, 0xe2);
- this.Index.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- int[] numArray20 = new int[4];
- numArray20[0] = 600;
- this.Index.Maximum = new decimal(numArray20);
- int[] numArray21 = new int[4];
- numArray21[0] = 120;
- this.Index.Minimum = new decimal(numArray21);
- this.Index.Name = "Index";
- this.Index.Size = new Size(0x37, 0x12);
- this.Index.TabIndex = 0x22;
- int[] numArray22 = new int[4];
- numArray22[0] = 120;
- this.Index.Value = new decimal(numArray22);
- this.Index.ValueChanged += new EventHandler(this.Index_ValueChanged);
- this.button1.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
- this.button1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button1.ForeColor = Color.Black;
- this.button1.Location = new Point(0x134, 0x33);
- this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
- this.button1.Name = "button1";
- this.button1.Size = new Size(0x59, 0x21);
- this.button1.TabIndex = 0x21;
- this.button1.Text = "Connect";
- this.button1.UseVisualStyleBackColor = false;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.label15.AutoSize = true;
- this.label15.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label15.Location = new Point(0x1b2, 0x83);
- this.label15.Name = "label15";
- this.label15.Size = new Size(0x5c, 13);
- this.label15.TabIndex = 0x40;
- this.label15.Text = "Colors Settings";
- this.label16.AutoSize = true;
- this.label16.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label16.Location = new Point(320, 0x83);
- this.label16.Name = "label16";
- this.label16.Size = new Size(0x44, 13);
- this.label16.TabIndex = 0x41;
- this.label16.Text = "Axis / Size";
- this.label17.AutoSize = true;
- this.label17.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label17.Location = new Point(0xc5, 0x83);
- this.label17.Name = "label17";
- this.label17.Size = new Size(0x51, 13);
- this.label17.TabIndex = 0x42;
- this.label17.Text = "Main Options";
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- // base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(0x307, 0x1b0);
- base.Controls.Add(this.label17);
- base.Controls.Add(this.label16);
- base.Controls.Add(this.label15);
- base.Controls.Add(this.label14);
- base.Controls.Add(this.label13);
- base.Controls.Add(this.textBox1);
- base.Controls.Add(this.label12);
- base.Controls.Add(this.Type);
- base.Controls.Add(this.linkLabel2);
- base.Controls.Add(this.linkLabel1);
- base.Controls.Add(this.label11);
- base.Controls.Add(this.button3);
- base.Controls.Add(this.button2);
- base.Controls.Add(this.label9);
- base.Controls.Add(this.Height);
- base.Controls.Add(this.label10);
- base.Controls.Add(this.Width);
- base.Controls.Add(this.label8);
- base.Controls.Add(this.Alpha);
- base.Controls.Add(this.label7);
- base.Controls.Add(this.Green);
- base.Controls.Add(this.label6);
- base.Controls.Add(this.Blue);
- base.Controls.Add(this.label5);
- base.Controls.Add(this.Red);
- base.Controls.Add(this.label4);
- base.Controls.Add(this.YPos);
- base.Controls.Add(this.label3);
- base.Controls.Add(this.XPos);
- base.Controls.Add(this.label2);
- base.Controls.Add(this.Material);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.Index);
- base.Controls.Add(this.button1);
- this.DoubleBuffered = true;
- // base.Icon = (Icon) manager.GetObject("$this.Icon");
- base.Name = "Form1";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = "Mw3 Mod Menu Desginer 1.24";
- base.Load += new EventHandler(this.Form1_Load);
- this.Type.EndInit();
- this.Height.EndInit();
- this.Width.EndInit();
- this.Alpha.EndInit();
- this.Green.EndInit();
- this.Blue.EndInit();
- this.Red.EndInit();
- this.YPos.EndInit();
- this.XPos.EndInit();
- this.Material.EndInit();
- this.Index.EndInit();
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- Process.Start("http://www.nextgenupdate.com/forums/private.php?do=newpm&u=238769");
- }
- private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- Process.Start("http://www.youtube.com/user/kevinouboy");
- }
- private void Material_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- public static void Precache(int index, int type_, uint Client_, int X_, int Y_, int Text_ = 0, string TextString = "", int Font_ = 3, int Color_R = 0xff, int Color_G = 0xff, int Color_B = 0xff, int Color_A = 0xff, int Width_ = 0x40, int Height_ = 0x40, int MaterialIndex_ = 0, int Glow_R = 0, int Glow_G = 0, int Glow_B = 0, int Glow_A = 0, string Priority_ = "Back")
- {
- uint num = Convert.ToUInt32(index);
- uint address = 0xf0e10c + (num * 180);
- if (TextString == "")
- {
- byte[] buffer = new byte[0];
- buffer = BitConverter.GetBytes(Text_);
- Array.Reverse(buffer);
- PS3.SetMemory(address + 0x84, buffer);
- }
- else
- {
- byte[] buffer2 = new byte[0];
- buffer2 = BitConverter.GetBytes(createText(TextString));
- Array.Reverse(buffer2);
- PS3.SetMemory(address + 0x84, buffer2);
- PS3.SetMemory(address + 20, new byte[] { 0x3f, 0xc0 });
- }
- byte[] array = new byte[0];
- byte[] bytes = new byte[0];
- byte[] buffer5 = new byte[0];
- byte[] buffer6 = new byte[0];
- byte[] buffer7 = new byte[0];
- byte[] buffer8 = new byte[0];
- byte[] buffer9 = new byte[0];
- byte[] buffer10 = new byte[0];
- byte[] buffer11 = new byte[0];
- byte[] buffer12 = new byte[0];
- byte[] buffer13 = new byte[0];
- byte[] buffer14 = new byte[0];
- byte[] buffer15 = new byte[0];
- byte[] buffer16 = new byte[0];
- byte[] buffer17 = new byte[0];
- byte[] buffer18 = new byte[0];
- array = BitConverter.GetBytes(type_);
- Array.Reverse(array);
- bytes = BitConverter.GetBytes(Client_);
- buffer5 = BitConverter.GetBytes(Convert.ToSingle(X_));
- buffer6 = BitConverter.GetBytes(Convert.ToSingle(Y_));
- buffer7 = BitConverter.GetBytes(Font_);
- buffer8 = BitConverter.GetBytes(Color_R);
- Array.Resize<byte>(ref buffer8, 1);
- buffer9 = BitConverter.GetBytes(Color_G);
- Array.Resize<byte>(ref buffer9, 1);
- buffer10 = BitConverter.GetBytes(Color_B);
- Array.Resize<byte>(ref buffer10, 1);
- buffer11 = BitConverter.GetBytes(Color_A);
- Array.Resize<byte>(ref buffer11, 1);
- buffer15 = BitConverter.GetBytes(Glow_R);
- Array.Resize<byte>(ref buffer15, 1);
- buffer16 = BitConverter.GetBytes(Glow_G);
- Array.Resize<byte>(ref buffer16, 1);
- buffer17 = BitConverter.GetBytes(Glow_B);
- Array.Resize<byte>(ref buffer17, 1);
- buffer18 = BitConverter.GetBytes(Glow_A);
- Array.Resize<byte>(ref buffer18, 1);
- buffer12 = BitConverter.GetBytes(Width_);
- buffer13 = BitConverter.GetBytes(Height_);
- buffer14 = BitConverter.GetBytes(MaterialIndex_);
- Array.Reverse(buffer5);
- Array.Reverse(buffer6);
- Array.Reverse(buffer7);
- Array.Reverse(buffer12);
- Array.Reverse(buffer13);
- Array.Reverse(buffer14);
- Array.Reverse(bytes);
- byte[] buffer19 = new byte[0];
- byte[] buffer20 = new byte[0];
- if (Priority_ == "Back")
- {
- buffer19 = new byte[] { 5 };
- buffer20 = new byte[1];
- }
- if (Priority_ == "Front")
- {
- buffer19 = new byte[] { 7 };
- buffer20 = new byte[] { 0x45 };
- }
- PS3.SetMemory(address, array);
- PS3.SetMemory(address + 4, buffer5);
- PS3.SetMemory(address + 8, buffer6);
- PS3.SetMemory(address + 0x24, buffer7);
- PS3.SetMemory(address + 0x2b, new byte[] { 5 });
- PS3.SetMemory(address + 0x2f, new byte[1]);
- PS3.SetMemory(address + 0xa7, buffer19);
- PS3.SetMemory(address + 0x30, buffer8);
- PS3.SetMemory(address + 0x31, buffer9);
- Thread.Sleep(10);
- PS3.SetMemory(address + 50, buffer10);
- PS3.SetMemory(address + 0x33, buffer11);
- PS3.SetMemory(address + 0x4c, buffer14);
- PS3.SetMemory(address + 0x44, buffer12);
- PS3.SetMemory(address + 0x48, buffer13);
- PS3.SetMemory(address + 0xa8, bytes);
- PS3.SetMemory(address + 0x88, buffer20);
- PS3.SetMemory(address + 140, buffer15);
- PS3.SetMemory(address + 0x8d, buffer16);
- PS3.SetMemory(address + 0x8e, buffer17);
- PS3.SetMemory(address + 0x8f, buffer18);
- Thread.Sleep(30);
- }
- private void Red_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void Type_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void Width_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void XPos_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private void YPos_ValueChanged(object sender, EventArgs e)
- {
- Precache((int) this.Index.Value, (int) this.Type.Value, 0, (int) this.XPos.Value, (int) this.YPos.Value, 0, this.textBox1.Text, 3, (int) this.Red.Value, (int) this.Green.Value, (int) this.Blue.Value, (int) this.Alpha.Value, (int) this.Width.Value, (int) this.Height.Value, (int) this.Material.Value, 0, 0, 0, 0, "Front");
- }
- private class RPC
- {
- public static void CallFunc(uint func_addr, uint param1 = 0, uint param2 = 0, uint param3 = 0, uint param4 = 0, uint param5 = 0)
- {
- byte[] bytes = BitConverter.GetBytes(param1);
- byte[] array = BitConverter.GetBytes(param2);
- byte[] buffer3 = BitConverter.GetBytes(param3);
- byte[] buffer4 = BitConverter.GetBytes(param4);
- byte[] buffer5 = BitConverter.GetBytes(param5);
- Array.Reverse(bytes);
- Array.Reverse(array);
- Array.Reverse(buffer3);
- Array.Reverse(buffer4);
- Array.Reverse(buffer5);
- Form1.PS3.SetMemory(0x523b10, bytes);
- Form1.PS3.SetMemory(0x523b14, array);
- Form1.PS3.SetMemory(0x523b18, buffer3);
- Form1.PS3.SetMemory(0x523b1c, buffer4);
- Form1.PS3.SetMemory(0x523b20, buffer5);
- Form1.PS3.SetMemory(0x3bca04, MakeBl(0x3bca04, func_addr));
- byte[] buffer6 = new byte[4];
- buffer6[3] = 1;
- Form1.PS3.SetMemory(0x1db1244, buffer6);
- Thread.Sleep(10);
- }
- public static uint GetFuncReturn()
- {
- byte[] buffer = new byte[4];
- PS3.GetMemory(0x114ae64, buffer);
- Array.Reverse(buffer);
- return BitConverter.ToUInt32(buffer, 0);
- }
- public static void iPrintln(uint client, string Text)
- {
- SV_GameSendServerCommand(client, "f \"" + Text + "\"");
- }
- public static void iPrintlnBold(uint client, string Text)
- {
- SV_GameSendServerCommand(client, "c \"" + Text + "\"");
- }
- public static byte[] MakeBl(uint callAddr, uint addrToBlTo)
- {
- byte[] array = new byte[4];
- uint num = (addrToBlTo - callAddr) + 1;
- if (addrToBlTo > callAddr)
- {
- array[3] = 0x48;
- }
- else
- {
- array[3] = 0x4b;
- num = (0x1000000 - (callAddr - addrToBlTo)) + 1;
- }
- byte[] bytes = BitConverter.GetBytes(num);
- for (int i = 0; i < 3; i++)
- {
- array[i] = bytes[i];
- }
- Array.Reverse(array);
- return array;
- }
- public static void RPC_Enable_124()
- {
- Form1.PS3.SetMemory(0x523b10, new byte[0x87f]);
- byte[] bytes = new byte[4];
- bytes[0] = 0x60;
- Form1.PS3.SetMemory(0x18be6c, bytes);
- byte[] buffer2 = new byte[4];
- buffer2[0] = 0x60;
- Form1.PS3.SetMemory(0x3bc9cc, buffer2);
- byte[] buffer3 = new byte[4];
- buffer3[0] = 0x48;
- buffer3[3] = 0x68;
- Form1.PS3.SetMemory(0x18be74, buffer3);
- Form1.PS3.SetMemory(0x1db1244, new byte[4]);
- Form1.PS3.SetMemory(0x114ae64, new byte[4]);
- Form1.PS3.SetMemory(0x3bc9e4, new byte[] {
- 0x41, 130, 2, 0x20, 0x3d, 0, 0, 0x52, 0x80, 0x68, 0x3b, 0x10, 0x80, 0x88, 0x3b, 20,
- 0x80, 0xa8, 0x3b, 0x18, 0x80, 200, 0x3b, 0x1c, 0x80, 0xe8, 0x3b, 0x20, 0x39, 0, 0, 0,
- 0x48, 0, 0, 0x1d, 60, 0x80, 1, 0x15, 0x90, 100, 0xae, 100, 0x38, 0x80, 0, 0,
- 60, 0x60, 1, 0xdb, 0x90, 0x83, 0x12, 0x44, 0x48, 0, 1, 0xe8, 0x4e, 0x80, 0, 0x20,
- 0x60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x60, 0, 0, 0
- });
- }
- public static uint str_pointer(string str)
- {
- uint address = 0x523b30;
- byte[] buffer = new byte[1];
- uint num2 = 0;
- while (num2 < 5)
- {
- PS3.GetMemory(address, buffer);
- if (buffer[0] == 0)
- {
- break;
- }
- if (num2 == 4)
- {
- num2 = 0;
- break;
- }
- num2++;
- }
- address = 0x523b30 + (num2 * 0x68);
- Form1.PS3.SetMemory(address, new byte[0x68]);
- Form1.PS3.SetMemory(address, Encoding.UTF8.GetBytes(str));
- return address;
- }
- public static void SV_GameSendServerCommand(uint client, string command)
- {
- CallFunc(0x228fa8, client, 0, str_pointer(command), 0, 0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement