Advertisement
BaSs_HaXoR

BadLuckBrians MW3MenuDesigner source

Mar 18th, 2014
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 54.69 KB | None | 0 0
  1. /*BadLuckBrians MW3MenuDesigner PwN3D
  2. By:BaSs_HaXoR
  3. Download: http://adf.ly/rt7x4
  4. <3 BLB :)
  5. */
  6.  
  7. mnamespace Mw3MenuDesigner
  8. {
  9. /*
  10.          * °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
  11.          * °°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°
  12.      ____    __      __  __  __     __    ____      
  13.     /\  _`\ /\ \  __/\ \/\ \/\ \  /'__`\ /\  _`\    
  14.     \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \  
  15.      \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
  16.       \ \ \/  \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
  17.        \ \_\   \ `\___x___/\ \_\ \_\ \____/ \ \____/
  18.         \/_/    '\/__//__/  \/_/\/_/\/___/   \/___/
  19.                                                
  20.          *     _    _        _      
  21.               / /\ /\ \     /\_\ _  
  22.              / /  \\ \ \   / / //\_\
  23.             / / /\ \\ \ \_/ / / \/_/
  24.            / / /\ \ \\ \___/ /      
  25.           / / /\ \_\ \\ \ \_/        
  26.          / / /\ \ \___\\ \ \        
  27.         / / /  \ \ \__/ \ \ \     _  
  28.        / / /____\_\ \    \ \ \  /_/\
  29.       / / /__________\    \ \_\ \_\/
  30.       \/_____________/     \/_/                          
  31.                                                °
  32.               _____                    _____                    _____                    _____                    _____                    _____                                           _______                   _____          
  33.              /\    \                  /\    \                  /\    \                  /\    \                  /\    \                  /\    \                 ______                  /::\    \                 /\    \        
  34.             /::\    \                /::\    \                /::\    \                /::\    \                /::\____\                /::\    \               |::|   |                /::::\    \               /::\    \        
  35.            /::::\    \              /::::\    \              /::::\    \              /::::\    \              /:::/    /               /::::\    \              |::|   |               /::::::\    \             /::::\    \      
  36.           /::::::\    \            /::::::\    \            /::::::\    \            /::::::\    \            /:::/    /               /::::::\    \             |::|   |              /::::::::\    \           /::::::\    \      
  37.          /:::/\:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/    /               /:::/\:::\    \            |::|   |             /:::/~~\:::\    \         /:::/\:::\    \    
  38.         /:::/__\:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/____/               /:::/__\:::\    \           |::|   |            /:::/    \:::\    \       /:::/__\:::\    \    
  39.        /::::\   \:::\    \      /::::\   \:::\    \       \:::\   \:::\    \       \:::\   \:::\    \      /::::\    \              /::::\   \:::\    \          |::|   |           /:::/    / \:::\    \     /::::\   \:::\    \  
  40.       /::::::\   \:::\    \    /::::::\   \:::\    \    ___\:::\   \:::\    \    ___\:::\   \:::\    \    /::::::\    \   _____    /::::::\   \:::\    \         |::|   |          /:::/____/   \:::\____\   /::::::\   \:::\    \  
  41.      /:::/\:::\   \:::\ ___\  /:::/\:::\   \:::\    \  /\   \:::\   \:::\    \  /\   \:::\   \:::\    \  /:::/\:::\    \ /\    \  /:::/\:::\   \:::\    \  ______|::|___|___ ____ |:::|    |     |:::|    | /:::/\:::\   \:::\____\
  42.     /:::/__\:::\   \:::|    |/:::/  \:::\   \:::\____\/::\   \:::\   \:::\____\/::\   \:::\   \:::\____\/:::/  \:::\    /::\____\/:::/  \:::\   \:::\____\|:::::::::::::::::|    ||:::|____|     |:::|    |/:::/  \:::\   \:::|    |
  43.     \:::\   \:::\  /:::|____|\::/    \:::\  /:::/    /\:::\   \:::\   \::/    /\:::\   \:::\   \::/    /\::/    \:::\  /:::/    /\::/    \:::\  /:::/    /|:::::::::::::::::|____| \:::\    \   /:::/    / \::/   |::::\  /:::|____|
  44.      \:::\   \:::\/:::/    /  \/____/ \:::\/:::/    /  \:::\   \:::\   \/____/  \:::\   \:::\   \/____/  \/____/ \:::\/:::/    /  \/____/ \:::\/:::/    /  ~~~~~~|::|~~~|~~~        \:::\    \ /:::/    /   \/____|:::::\/:::/    /
  45.       \:::\   \::::::/    /            \::::::/    /    \:::\   \:::\    \       \:::\   \:::\    \               \::::::/    /            \::::::/    /         |::|   |            \:::\    /:::/    /          |:::::::::/    /  
  46.        \:::\   \::::/    /              \::::/    /      \:::\   \:::\____\       \:::\   \:::\____\               \::::/    /              \::::/    /          |::|   |             \:::\__/:::/    /           |::|\::::/    /  
  47.         \:::\  /:::/    /               /:::/    /        \:::\  /:::/    /        \:::\  /:::/    /               /:::/    /               /:::/    /           |::|   |              \::::::::/    /            |::| \::/____/    
  48.          \:::\/:::/    /               /:::/    /          \:::\/:::/    /          \:::\/:::/    /               /:::/    /               /:::/    /            |::|   |               \::::::/    /             |::|  ~|          
  49.           \::::::/    /               /:::/    /            \::::::/    /            \::::::/    /               /:::/    /               /:::/    /             |::|   |                \::::/    /              |::|   |          
  50.            \::::/    /               /:::/    /              \::::/    /              \::::/    /               /:::/    /               /:::/    /              |::|   |                 \::/____/               \::|   |          
  51.             \::/____/                \::/    /                \::/    /                \::/    /                \::/    /                \::/    /               |::|___|                  ~~                      \:|   |          
  52.              ~~                       \/____/                  \/____/                  \/____/                  \/____/                  \/____/                 ~~                                                \|___|                                                                                                                                                                                                                                    
  53.  
  54.          *
  55.          *
  56.  
  57.     Yb        dP 8           w      .d88b.                       w  w          dP"Yb
  58.      Yb  db  dP  8d8b. .d88 w8ww    YPwww. .d88b .d8b 8   8 8d8b w w8ww Yb  dP "  d8
  59.       YbdPYbdP   8P Y8 8  8  8          d8 8.dP' 8    8b d8 8P   8  8    YbdP    dP  
  60.        YP  YP    8   8 `Y88  Y8P    `Y88P' `Y88P `Y8P `Y8P8 8    8  Y8P   dP     w  
  61.                                                                          dP        
  62.  
  63.  
  64.  
  65.  
  66.      *
  67.          *
  68.        ::: ::::::::  
  69.       :+: :+:    :+:
  70.      +:+         +:+
  71.     +#+       +#++:  
  72.      +#+         +#+
  73.       #+# #+#    #+#
  74.        ### ########                               _           _   _                                                                      
  75.                                                  | |         | | | |                                                                      
  76.      _   _ _ __   ___ _ __   ___ _ __ _   _ _ __ | |_ ___  __| | | |__   ___  ___ __ _ _   _ ___  ___  __      _____    ___ __ _ _ __ ___
  77.     | | | | '_ \ / _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | | '_ \ / _ \/ __/ _` | | | / __|/ _ \ \ \ /\ / / _ \  / __/ _` | '__/ _ \  
  78.     | |_| | | | |  __/ | | | (__| |  | |_| | |_) | ||  __/ (_| | | |_) |  __/ (_| (_| | |_| \__ \  __/  \ V  V /  __/ | (_| (_| | | |  __/
  79.      \__,_|_| |_|\___|_| |_|\___|_|   \__, | .__/ \__\___|\__,_| |_.__/ \___|\___\__,_|\__,_|___/\___|   \_/\_/ \___|  \___\__,_|_|  \___|
  80.                                        __/ | |                                                                                            
  81.                                       |___/|_|                                                                                            
  82.        ::: ::::::::  
  83.       :+: :+:    :+:
  84.      +:+         +:+
  85.     +#+       +#++:  
  86.      +#+         +#+
  87.       #+# #+#    #+#
  88.        ### ########
  89.              */
  90.     using DevComponents.DotNetBar;
  91.     using DevComponents.DotNetBar.Metro;
  92.     using DevComponents.DotNetBar.Metro.ColorTables;
  93.     using System;
  94.     using System.ComponentModel;
  95.     using System.Diagnostics;
  96.     using System.Drawing;
  97.     using System.Runtime.InteropServices;
  98.     using System.Text;
  99.     using System.Threading;
  100.     using System.Windows.Forms;
  101.     using PS3Lib;
  102.     public class Form1 : MetroForm
  103.     {
  104.         private NumericUpDown Alpha;
  105.         private NumericUpDown Blue;
  106.         private Button button1;
  107.         private Button button2;
  108.         private Button button3;
  109.         private IContainer components;
  110.         private NumericUpDown Green;
  111.         private NumericUpDown Height;
  112.         private NumericUpDown Index;
  113.         private Label label1;
  114.         private Label label10;
  115.         private Label label11;
  116.         private Label label12;
  117.         private Label label13;
  118.         private Label label14;
  119.         private Label label15;
  120.         private Label label16;
  121.         private Label label17;
  122.         private Label label2;
  123.         private Label label3;
  124.         private Label label4;
  125.         private Label label5;
  126.         private Label label6;
  127.         private Label label7;
  128.         private Label label8;
  129.         private Label label9;
  130.         private LinkLabel linkLabel1;
  131.         private LinkLabel linkLabel2;
  132.         private NumericUpDown Material;
  133.         private NumericUpDown Red;
  134.         private StyleManager styleManager1;
  135.         private TextBox textBox1;
  136.         private NumericUpDown Type;
  137.         private NumericUpDown Width;
  138.         private NumericUpDown XPos;
  139.         private NumericUpDown YPos;
  140.         private static PS3API PS3 = new PS3API();
  141.         public Form1()
  142.         {
  143.             this.InitializeComponent();
  144.         }
  145.  
  146.         private void Alpha_ValueChanged(object sender, EventArgs e)
  147.         {
  148.             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");
  149.         }
  150.  
  151.         private void Blue_ValueChanged(object sender, EventArgs e)
  152.         {
  153.             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");
  154.         }
  155.  
  156.         private void button1_Click(object sender, EventArgs e)
  157.         {
  158.             try
  159.             {
  160.                 PS3.ChangeAPI(SelectAPI.ControlConsole);
  161.                 PS3.ConnectTarget("192.168.1.40");
  162.                 PS3.AttachProcess();
  163.                 RPC.RPC_Enable_124();
  164.                 MessageBox.Show("Ps3 is connected");
  165.             }
  166.             catch
  167.             {
  168.                 MessageBox.Show("Failed to connect !");
  169.             }
  170.         }
  171.  
  172.         private void button2_Click(object sender, EventArgs e)
  173.         {
  174.             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");
  175.         }
  176.  
  177.         private void button3_Click(object sender, EventArgs e)
  178.         {
  179.             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");
  180.         }
  181.  
  182.         public static uint createText(string text)
  183.         {
  184.             byte[] bytes = new byte[4];
  185.             RPC.CallFunc(0x1be6cc, RPC.str_pointer(text), 0, 0, 0, 0);
  186.             Thread.Sleep(10);
  187.             PS3.GetMemory(0x114ae64, bytes);
  188.             Array.Reverse(bytes);
  189.             return BitConverter.ToUInt32(bytes, 0);
  190.         }
  191.  
  192.         protected override void Dispose(bool disposing)
  193.         {
  194.             if (disposing && (this.components != null))
  195.             {
  196.                 this.components.Dispose();
  197.             }
  198.             base.Dispose(disposing);
  199.         }
  200.  
  201.         private void Form1_Load(object sender, EventArgs e)
  202.         {
  203.         }
  204.  
  205.         private void Green_ValueChanged(object sender, EventArgs e)
  206.         {
  207.             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");
  208.         }
  209.  
  210.         private void Height_ValueChanged(object sender, EventArgs e)
  211.         {
  212.             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");
  213.         }
  214.  
  215.         private void Index_ValueChanged(object sender, EventArgs e)
  216.         {
  217.             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");
  218.         }
  219.  
  220.         private void InitializeComponent()
  221.         {
  222.             this.components = new Container();
  223.             ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
  224.             this.styleManager1 = new StyleManager(this.components);
  225.             this.label14 = new Label();
  226.             this.label13 = new Label();
  227.             this.textBox1 = new TextBox();
  228.             this.label12 = new Label();
  229.             this.Type = new NumericUpDown();
  230.             this.linkLabel2 = new LinkLabel();
  231.             this.linkLabel1 = new LinkLabel();
  232.             this.label11 = new Label();
  233.             this.button3 = new Button();
  234.             this.button2 = new Button();
  235.             this.label9 = new Label();
  236.             this.Height = new NumericUpDown();
  237.             this.label10 = new Label();
  238.             this.Width = new NumericUpDown();
  239.             this.label8 = new Label();
  240.             this.Alpha = new NumericUpDown();
  241.             this.label7 = new Label();
  242.             this.Green = new NumericUpDown();
  243.             this.label6 = new Label();
  244.             this.Blue = new NumericUpDown();
  245.             this.label5 = new Label();
  246.             this.Red = new NumericUpDown();
  247.             this.label4 = new Label();
  248.             this.YPos = new NumericUpDown();
  249.             this.label3 = new Label();
  250.             this.XPos = new NumericUpDown();
  251.             this.label2 = new Label();
  252.             this.Material = new NumericUpDown();
  253.             this.label1 = new Label();
  254.             this.Index = new NumericUpDown();
  255.             this.button1 = new Button();
  256.             this.label15 = new Label();
  257.             this.label16 = new Label();
  258.             this.label17 = new Label();
  259.             this.Type.BeginInit();
  260.             this.Height.BeginInit();
  261.             this.Width.BeginInit();
  262.             this.Alpha.BeginInit();
  263.             this.Green.BeginInit();
  264.             this.Blue.BeginInit();
  265.             this.Red.BeginInit();
  266.             this.YPos.BeginInit();
  267.             this.XPos.BeginInit();
  268.             this.Material.BeginInit();
  269.             this.Index.BeginInit();
  270.             base.SuspendLayout();
  271.             this.styleManager1.ManagerStyle = eStyle.Metro;
  272.             this.styleManager1.MetroColorParameters = new MetroColorGeneratorParameters(Color.White, Color.FromArgb(0x80, 0xff, 0x80));
  273.             this.label14.AutoSize = true;
  274.             this.label14.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  275.             this.label14.Location = new Point(0x22, 0xbd);
  276.             this.label14.Name = "label14";
  277.             this.label14.Size = new Size(0x60, 0x37);
  278.             this.label14.TabIndex = 0x3f;
  279.             this.label14.Text = "Type 4 = HUD\r\n\r\nType 1 = Text\r\n\r\nType 0 = Free\r\n";
  280.             this.label13.AutoSize = true;
  281.             this.label13.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  282.             this.label13.Location = new Point(0xc2, 0x135);
  283.             this.label13.Name = "label13";
  284.             this.label13.Size = new Size(0x52, 11);
  285.             this.label13.TabIndex = 0x3e;
  286.             this.label13.Text = "Text String";
  287.             this.textBox1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  288.             this.textBox1.Location = new Point(0xad, 0x143);
  289.             this.textBox1.Name = "textBox1";
  290.             this.textBox1.Size = new Size(0x80, 0x12);
  291.             this.textBox1.TabIndex = 0x3d;
  292.             this.label12.AutoSize = true;
  293.             this.label12.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  294.             this.label12.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  295.             this.label12.ForeColor = Color.Black;
  296.             this.label12.Location = new Point(220, 0x9e);
  297.             this.label12.Name = "label12";
  298.             this.label12.Size = new Size(0x21, 11);
  299.             this.label12.TabIndex = 60;
  300.             this.label12.Text = "Type";
  301.             this.Type.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  302.             this.Type.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  303.             this.Type.ForeColor = Color.Black;
  304.             this.Type.Location = new Point(0xd4, 0xae);
  305.             this.Type.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  306.             int[] bits = new int[4];
  307.             bits[0] = 4;
  308.             this.Type.Maximum = new decimal(bits);
  309.             this.Type.Name = "Type";
  310.             this.Type.Size = new Size(0x37, 0x12);
  311.             this.Type.TabIndex = 0x3b;
  312.             int[] numArray2 = new int[4];
  313.             numArray2[0] = 4;
  314.             this.Type.Value = new decimal(numArray2);
  315.             this.Type.ValueChanged += new EventHandler(this.Type_ValueChanged);
  316.             this.linkLabel2.AutoSize = true;
  317.             this.linkLabel2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  318.             this.linkLabel2.Location = new Point(0x28c, 0x1a5);
  319.             this.linkLabel2.Name = "linkLabel2";
  320.             this.linkLabel2.Size = new Size(0x4b, 11);
  321.             this.linkLabel2.TabIndex = 0x3a;
  322.             this.linkLabel2.TabStop = true;
  323.             this.linkLabel2.Text = "Pm me here";
  324.             this.linkLabel2.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
  325.             this.linkLabel1.AutoSize = true;
  326.             this.linkLabel1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  327.             this.linkLabel1.LinkColor = Color.FromArgb(0xc0, 0, 0);
  328.             this.linkLabel1.Location = new Point(12, 0x1a5);
  329.             this.linkLabel1.Name = "linkLabel1";
  330.             this.linkLabel1.Size = new Size(0x59, 11);
  331.             this.linkLabel1.TabIndex = 0x39;
  332.             this.linkLabel1.TabStop = true;
  333.             this.linkLabel1.Text = "Youtube Here";
  334.             this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
  335.             this.label11.AutoSize = true;
  336.             this.label11.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  337.             this.label11.ForeColor = Color.Black;
  338.             this.label11.Location = new Point(0xa1, 0x1a5);
  339.             this.label11.Name = "label11";
  340.             this.label11.Size = new Size(0x1a2, 11);
  341.             this.label11.TabIndex = 0x38;
  342.             this.label11.Text = "Made By Bad Luck Brian || Nextgenupdate.com || WrM* || AM|T";
  343.             this.button3.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  344.             this.button3.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  345.             this.button3.ForeColor = Color.Black;
  346.             this.button3.Location = new Point(0x1b5, 0x2e);
  347.             this.button3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  348.             this.button3.Name = "button3";
  349.             this.button3.Size = new Size(0x59, 0x2b);
  350.             this.button3.TabIndex = 0x37;
  351.             this.button3.Text = "Hide This Index";
  352.             this.button3.UseVisualStyleBackColor = false;
  353.             this.button3.Click += new EventHandler(this.button3_Click);
  354.             this.button2.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  355.             this.button2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  356.             this.button2.ForeColor = Color.Black;
  357.             this.button2.Location = new Point(0xc2, 0x2e);
  358.             this.button2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  359.             this.button2.Name = "button2";
  360.             this.button2.Size = new Size(0x59, 0x2b);
  361.             this.button2.TabIndex = 0x36;
  362.             this.button2.Text = "Spawn This Index";
  363.             this.button2.UseVisualStyleBackColor = false;
  364.             this.button2.Click += new EventHandler(this.button2_Click);
  365.             this.label9.AutoSize = true;
  366.             this.label9.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  367.             this.label9.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  368.             this.label9.ForeColor = Color.Black;
  369.             this.label9.Location = new Point(0x14c, 0x132);
  370.             this.label9.Name = "label9";
  371.             this.label9.Size = new Size(0x2f, 11);
  372.             this.label9.TabIndex = 0x35;
  373.             this.label9.Text = "Height";
  374.             this.Height.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  375.             this.Height.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  376.             this.Height.ForeColor = Color.Black;
  377.             this.Height.Location = new Point(0x147, 0x143);
  378.             this.Height.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  379.             int[] numArray3 = new int[4];
  380.             numArray3[0] = 0x3e8;
  381.             this.Height.Maximum = new decimal(numArray3);
  382.             this.Height.Name = "Height";
  383.             this.Height.Size = new Size(0x37, 0x12);
  384.             this.Height.TabIndex = 0x34;
  385.             int[] numArray4 = new int[4];
  386.             numArray4[0] = 100;
  387.             this.Height.Value = new decimal(numArray4);
  388.             this.Height.ValueChanged += new EventHandler(this.Height_ValueChanged);
  389.             this.label10.AutoSize = true;
  390.             this.label10.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  391.             this.label10.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  392.             this.label10.ForeColor = Color.Black;
  393.             this.label10.Location = new Point(0x14f, 0x105);
  394.             this.label10.Name = "label10";
  395.             this.label10.Size = new Size(40, 11);
  396.             this.label10.TabIndex = 0x33;
  397.             this.label10.Text = "Width";
  398.             this.Width.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  399.             this.Width.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  400.             this.Width.ForeColor = Color.Black;
  401.             this.Width.Location = new Point(0x147, 0x114);
  402.             this.Width.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  403.             int[] numArray5 = new int[4];
  404.             numArray5[0] = 0x3e8;
  405.             this.Width.Maximum = new decimal(numArray5);
  406.             this.Width.Name = "Width";
  407.             this.Width.Size = new Size(0x37, 0x12);
  408.             this.Width.TabIndex = 50;
  409.             int[] numArray6 = new int[4];
  410.             numArray6[0] = 100;
  411.             this.Width.Value = new decimal(numArray6);
  412.             this.Width.ValueChanged += new EventHandler(this.Width_ValueChanged);
  413.             this.label8.AutoSize = true;
  414.             this.label8.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  415.             this.label8.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  416.             this.label8.ForeColor = Color.Black;
  417.             this.label8.Location = new Point(0x1d0, 0x9e);
  418.             this.label8.Name = "label8";
  419.             this.label8.Size = new Size(40, 11);
  420.             this.label8.TabIndex = 0x31;
  421.             this.label8.Text = "Alpha";
  422.             this.Alpha.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  423.             this.Alpha.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  424.             this.Alpha.ForeColor = Color.Black;
  425.             this.Alpha.Location = new Point(0x1c8, 0xae);
  426.             this.Alpha.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  427.             int[] numArray7 = new int[4];
  428.             numArray7[0] = 0xff;
  429.             this.Alpha.Maximum = new decimal(numArray7);
  430.             this.Alpha.Name = "Alpha";
  431.             this.Alpha.Size = new Size(0x37, 0x12);
  432.             this.Alpha.TabIndex = 0x30;
  433.             int[] numArray8 = new int[4];
  434.             numArray8[0] = 0xff;
  435.             this.Alpha.Value = new decimal(numArray8);
  436.             this.Alpha.ValueChanged += new EventHandler(this.Alpha_ValueChanged);
  437.             this.label7.AutoSize = true;
  438.             this.label7.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  439.             this.label7.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  440.             this.label7.ForeColor = Color.Black;
  441.             this.label7.Location = new Point(0x1d0, 0x105);
  442.             this.label7.Name = "label7";
  443.             this.label7.Size = new Size(40, 11);
  444.             this.label7.TabIndex = 0x2f;
  445.             this.label7.Text = "Green";
  446.             this.Green.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  447.             this.Green.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  448.             this.Green.ForeColor = Color.Black;
  449.             this.Green.Location = new Point(0x1c8, 0x114);
  450.             this.Green.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  451.             int[] numArray9 = new int[4];
  452.             numArray9[0] = 0xff;
  453.             this.Green.Maximum = new decimal(numArray9);
  454.             this.Green.Name = "Green";
  455.             this.Green.Size = new Size(0x37, 0x12);
  456.             this.Green.TabIndex = 0x2e;
  457.             int[] numArray10 = new int[4];
  458.             numArray10[0] = 0xff;
  459.             this.Green.Value = new decimal(numArray10);
  460.             this.Green.ValueChanged += new EventHandler(this.Green_ValueChanged);
  461.             this.label6.AutoSize = true;
  462.             this.label6.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  463.             this.label6.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  464.             this.label6.ForeColor = Color.Black;
  465.             this.label6.Location = new Point(0x1d4, 210);
  466.             this.label6.Name = "label6";
  467.             this.label6.Size = new Size(0x21, 11);
  468.             this.label6.TabIndex = 0x2d;
  469.             this.label6.Text = "Blue";
  470.             this.Blue.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  471.             this.Blue.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  472.             this.Blue.ForeColor = Color.Black;
  473.             this.Blue.Location = new Point(0x1c8, 0xe2);
  474.             this.Blue.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  475.             int[] numArray11 = new int[4];
  476.             numArray11[0] = 0xff;
  477.             this.Blue.Maximum = new decimal(numArray11);
  478.             this.Blue.Name = "Blue";
  479.             this.Blue.Size = new Size(0x37, 0x12);
  480.             this.Blue.TabIndex = 0x2c;
  481.             int[] numArray12 = new int[4];
  482.             numArray12[0] = 0xff;
  483.             this.Blue.Value = new decimal(numArray12);
  484.             this.Blue.ValueChanged += new EventHandler(this.Blue_ValueChanged);
  485.             this.label5.AutoSize = true;
  486.             this.label5.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  487.             this.label5.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  488.             this.label5.ForeColor = Color.Black;
  489.             this.label5.Location = new Point(0x1d4, 0x132);
  490.             this.label5.Name = "label5";
  491.             this.label5.Size = new Size(0x1a, 11);
  492.             this.label5.TabIndex = 0x2b;
  493.             this.label5.Text = "Red";
  494.             this.Red.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  495.             this.Red.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  496.             this.Red.ForeColor = Color.Black;
  497.             this.Red.Location = new Point(0x1c8, 0x143);
  498.             this.Red.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  499.             int[] numArray13 = new int[4];
  500.             numArray13[0] = 0xff;
  501.             this.Red.Maximum = new decimal(numArray13);
  502.             this.Red.Name = "Red";
  503.             this.Red.Size = new Size(0x37, 0x12);
  504.             this.Red.TabIndex = 0x2a;
  505.             int[] numArray14 = new int[4];
  506.             numArray14[0] = 0xff;
  507.             this.Red.Value = new decimal(numArray14);
  508.             this.Red.ValueChanged += new EventHandler(this.Red_ValueChanged);
  509.             this.label4.AutoSize = true;
  510.             this.label4.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  511.             this.label4.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  512.             this.label4.ForeColor = Color.Black;
  513.             this.label4.Location = new Point(0x159, 0x9e);
  514.             this.label4.Name = "label4";
  515.             this.label4.Size = new Size(12, 11);
  516.             this.label4.TabIndex = 0x29;
  517.             this.label4.Text = "Y";
  518.             this.YPos.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  519.             this.YPos.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  520.             this.YPos.ForeColor = Color.Black;
  521.             this.YPos.Location = new Point(0x147, 0xae);
  522.             this.YPos.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  523.             int[] numArray15 = new int[4];
  524.             numArray15[0] = 0x3e8;
  525.             this.YPos.Maximum = new decimal(numArray15);
  526.             this.YPos.Name = "YPos";
  527.             this.YPos.Size = new Size(0x37, 0x12);
  528.             this.YPos.TabIndex = 40;
  529.             int[] numArray16 = new int[4];
  530.             numArray16[0] = 250;
  531.             this.YPos.Value = new decimal(numArray16);
  532.             this.YPos.ValueChanged += new EventHandler(this.YPos_ValueChanged);
  533.             this.label3.AutoSize = true;
  534.             this.label3.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  535.             this.label3.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  536.             this.label3.ForeColor = Color.Black;
  537.             this.label3.Location = new Point(0x159, 210);
  538.             this.label3.Name = "label3";
  539.             this.label3.Size = new Size(12, 11);
  540.             this.label3.TabIndex = 0x27;
  541.             this.label3.Text = "X";
  542.             this.XPos.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  543.             this.XPos.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  544.             this.XPos.ForeColor = Color.Black;
  545.             this.XPos.Location = new Point(0x147, 0xe2);
  546.             this.XPos.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  547.             int[] numArray17 = new int[4];
  548.             numArray17[0] = 0x3e8;
  549.             this.XPos.Maximum = new decimal(numArray17);
  550.             this.XPos.Name = "XPos";
  551.             this.XPos.Size = new Size(0x37, 0x12);
  552.             this.XPos.TabIndex = 0x26;
  553.             int[] numArray18 = new int[4];
  554.             numArray18[0] = 250;
  555.             this.XPos.Value = new decimal(numArray18);
  556.             this.XPos.ValueChanged += new EventHandler(this.XPos_ValueChanged);
  557.             this.label2.AutoSize = true;
  558.             this.label2.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  559.             this.label2.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  560.             this.label2.ForeColor = Color.Black;
  561.             this.label2.Location = new Point(210, 0x106);
  562.             this.label2.Name = "label2";
  563.             this.label2.Size = new Size(0x3d, 11);
  564.             this.label2.TabIndex = 0x25;
  565.             this.label2.Text = "Material";
  566.             this.Material.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  567.             this.Material.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  568.             this.Material.ForeColor = Color.Black;
  569.             this.Material.Location = new Point(0xd4, 0x116);
  570.             this.Material.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  571.             int[] numArray19 = new int[4];
  572.             numArray19[0] = 500;
  573.             this.Material.Maximum = new decimal(numArray19);
  574.             this.Material.Name = "Material";
  575.             this.Material.Size = new Size(0x37, 0x12);
  576.             this.Material.TabIndex = 0x24;
  577.             this.Material.ValueChanged += new EventHandler(this.Material_ValueChanged);
  578.             this.label1.AutoSize = true;
  579.             this.label1.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  580.             this.label1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  581.             this.label1.ForeColor = Color.Black;
  582.             this.label1.Location = new Point(220, 210);
  583.             this.label1.Name = "label1";
  584.             this.label1.Size = new Size(40, 11);
  585.             this.label1.TabIndex = 0x23;
  586.             this.label1.Text = "index";
  587.             this.Index.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  588.             this.Index.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  589.             this.Index.ForeColor = Color.Black;
  590.             this.Index.Location = new Point(0xd4, 0xe2);
  591.             this.Index.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  592.             int[] numArray20 = new int[4];
  593.             numArray20[0] = 600;
  594.             this.Index.Maximum = new decimal(numArray20);
  595.             int[] numArray21 = new int[4];
  596.             numArray21[0] = 120;
  597.             this.Index.Minimum = new decimal(numArray21);
  598.             this.Index.Name = "Index";
  599.             this.Index.Size = new Size(0x37, 0x12);
  600.             this.Index.TabIndex = 0x22;
  601.             int[] numArray22 = new int[4];
  602.             numArray22[0] = 120;
  603.             this.Index.Value = new decimal(numArray22);
  604.             this.Index.ValueChanged += new EventHandler(this.Index_ValueChanged);
  605.             this.button1.BackColor = Color.FromArgb(0xff, 0xff, 0xff);
  606.             this.button1.Font = new Font("Lucida Console", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
  607.             this.button1.ForeColor = Color.Black;
  608.             this.button1.Location = new Point(0x134, 0x33);
  609.             this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
  610.             this.button1.Name = "button1";
  611.             this.button1.Size = new Size(0x59, 0x21);
  612.             this.button1.TabIndex = 0x21;
  613.             this.button1.Text = "Connect";
  614.             this.button1.UseVisualStyleBackColor = false;
  615.             this.button1.Click += new EventHandler(this.button1_Click);
  616.             this.label15.AutoSize = true;
  617.             this.label15.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
  618.             this.label15.Location = new Point(0x1b2, 0x83);
  619.             this.label15.Name = "label15";
  620.             this.label15.Size = new Size(0x5c, 13);
  621.             this.label15.TabIndex = 0x40;
  622.             this.label15.Text = "Colors Settings";
  623.             this.label16.AutoSize = true;
  624.             this.label16.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
  625.             this.label16.Location = new Point(320, 0x83);
  626.             this.label16.Name = "label16";
  627.             this.label16.Size = new Size(0x44, 13);
  628.             this.label16.TabIndex = 0x41;
  629.             this.label16.Text = "Axis / Size";
  630.             this.label17.AutoSize = true;
  631.             this.label17.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0);
  632.             this.label17.Location = new Point(0xc5, 0x83);
  633.             this.label17.Name = "label17";
  634.             this.label17.Size = new Size(0x51, 13);
  635.             this.label17.TabIndex = 0x42;
  636.             this.label17.Text = "Main Options";
  637.             base.AutoScaleDimensions = new SizeF(6f, 13f);
  638. //            base.AutoScaleMode = AutoScaleMode.Font;
  639.             base.ClientSize = new Size(0x307, 0x1b0);
  640.             base.Controls.Add(this.label17);
  641.             base.Controls.Add(this.label16);
  642.             base.Controls.Add(this.label15);
  643.             base.Controls.Add(this.label14);
  644.             base.Controls.Add(this.label13);
  645.             base.Controls.Add(this.textBox1);
  646.             base.Controls.Add(this.label12);
  647.             base.Controls.Add(this.Type);
  648.             base.Controls.Add(this.linkLabel2);
  649.             base.Controls.Add(this.linkLabel1);
  650.             base.Controls.Add(this.label11);
  651.             base.Controls.Add(this.button3);
  652.             base.Controls.Add(this.button2);
  653.             base.Controls.Add(this.label9);
  654.             base.Controls.Add(this.Height);
  655.             base.Controls.Add(this.label10);
  656.             base.Controls.Add(this.Width);
  657.             base.Controls.Add(this.label8);
  658.             base.Controls.Add(this.Alpha);
  659.             base.Controls.Add(this.label7);
  660.             base.Controls.Add(this.Green);
  661.             base.Controls.Add(this.label6);
  662.             base.Controls.Add(this.Blue);
  663.             base.Controls.Add(this.label5);
  664.             base.Controls.Add(this.Red);
  665.             base.Controls.Add(this.label4);
  666.             base.Controls.Add(this.YPos);
  667.             base.Controls.Add(this.label3);
  668.             base.Controls.Add(this.XPos);
  669.             base.Controls.Add(this.label2);
  670.             base.Controls.Add(this.Material);
  671.             base.Controls.Add(this.label1);
  672.             base.Controls.Add(this.Index);
  673.             base.Controls.Add(this.button1);
  674.             this.DoubleBuffered = true;
  675. //            base.Icon = (Icon) manager.GetObject("$this.Icon");
  676.             base.Name = "Form1";
  677.             base.StartPosition = FormStartPosition.CenterScreen;
  678.             this.Text = "Mw3 Mod Menu Desginer 1.24";
  679.             base.Load += new EventHandler(this.Form1_Load);
  680.             this.Type.EndInit();
  681.             this.Height.EndInit();
  682.             this.Width.EndInit();
  683.             this.Alpha.EndInit();
  684.             this.Green.EndInit();
  685.             this.Blue.EndInit();
  686.             this.Red.EndInit();
  687.             this.YPos.EndInit();
  688.             this.XPos.EndInit();
  689.             this.Material.EndInit();
  690.             this.Index.EndInit();
  691.             base.ResumeLayout(false);
  692.             base.PerformLayout();
  693.         }
  694.  
  695.         private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  696.         {
  697.             Process.Start("http://www.nextgenupdate.com/forums/private.php?do=newpm&u=238769");
  698.         }
  699.  
  700.         private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  701.         {
  702.             Process.Start("http://www.youtube.com/user/kevinouboy");
  703.         }
  704.  
  705.         private void Material_ValueChanged(object sender, EventArgs e)
  706.         {
  707.             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");
  708.         }
  709.  
  710.         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")
  711.         {
  712.             uint num = Convert.ToUInt32(index);
  713.             uint address = 0xf0e10c + (num * 180);
  714.             if (TextString == "")
  715.             {
  716.                 byte[] buffer = new byte[0];
  717.                 buffer = BitConverter.GetBytes(Text_);
  718.                 Array.Reverse(buffer);
  719.                 PS3.SetMemory(address + 0x84, buffer);
  720.             }
  721.             else
  722.             {
  723.                 byte[] buffer2 = new byte[0];
  724.                 buffer2 = BitConverter.GetBytes(createText(TextString));
  725.                 Array.Reverse(buffer2);
  726.                 PS3.SetMemory(address + 0x84, buffer2);
  727.                 PS3.SetMemory(address + 20, new byte[] { 0x3f, 0xc0 });
  728.             }
  729.             byte[] array = new byte[0];
  730.             byte[] bytes = new byte[0];
  731.             byte[] buffer5 = new byte[0];
  732.             byte[] buffer6 = new byte[0];
  733.             byte[] buffer7 = new byte[0];
  734.             byte[] buffer8 = new byte[0];
  735.             byte[] buffer9 = new byte[0];
  736.             byte[] buffer10 = new byte[0];
  737.             byte[] buffer11 = new byte[0];
  738.             byte[] buffer12 = new byte[0];
  739.             byte[] buffer13 = new byte[0];
  740.             byte[] buffer14 = new byte[0];
  741.             byte[] buffer15 = new byte[0];
  742.             byte[] buffer16 = new byte[0];
  743.             byte[] buffer17 = new byte[0];
  744.             byte[] buffer18 = new byte[0];
  745.             array = BitConverter.GetBytes(type_);
  746.             Array.Reverse(array);
  747.             bytes = BitConverter.GetBytes(Client_);
  748.             buffer5 = BitConverter.GetBytes(Convert.ToSingle(X_));
  749.             buffer6 = BitConverter.GetBytes(Convert.ToSingle(Y_));
  750.             buffer7 = BitConverter.GetBytes(Font_);
  751.             buffer8 = BitConverter.GetBytes(Color_R);
  752.             Array.Resize<byte>(ref buffer8, 1);
  753.             buffer9 = BitConverter.GetBytes(Color_G);
  754.             Array.Resize<byte>(ref buffer9, 1);
  755.             buffer10 = BitConverter.GetBytes(Color_B);
  756.             Array.Resize<byte>(ref buffer10, 1);
  757.             buffer11 = BitConverter.GetBytes(Color_A);
  758.             Array.Resize<byte>(ref buffer11, 1);
  759.             buffer15 = BitConverter.GetBytes(Glow_R);
  760.             Array.Resize<byte>(ref buffer15, 1);
  761.             buffer16 = BitConverter.GetBytes(Glow_G);
  762.             Array.Resize<byte>(ref buffer16, 1);
  763.             buffer17 = BitConverter.GetBytes(Glow_B);
  764.             Array.Resize<byte>(ref buffer17, 1);
  765.             buffer18 = BitConverter.GetBytes(Glow_A);
  766.             Array.Resize<byte>(ref buffer18, 1);
  767.             buffer12 = BitConverter.GetBytes(Width_);
  768.             buffer13 = BitConverter.GetBytes(Height_);
  769.             buffer14 = BitConverter.GetBytes(MaterialIndex_);
  770.             Array.Reverse(buffer5);
  771.             Array.Reverse(buffer6);
  772.             Array.Reverse(buffer7);
  773.             Array.Reverse(buffer12);
  774.             Array.Reverse(buffer13);
  775.             Array.Reverse(buffer14);
  776.             Array.Reverse(bytes);
  777.             byte[] buffer19 = new byte[0];
  778.             byte[] buffer20 = new byte[0];
  779.             if (Priority_ == "Back")
  780.             {
  781.                 buffer19 = new byte[] { 5 };
  782.                 buffer20 = new byte[1];
  783.             }
  784.             if (Priority_ == "Front")
  785.             {
  786.                 buffer19 = new byte[] { 7 };
  787.                 buffer20 = new byte[] { 0x45 };
  788.             }
  789.             PS3.SetMemory(address, array);
  790.             PS3.SetMemory(address + 4, buffer5);
  791.             PS3.SetMemory(address + 8, buffer6);
  792.             PS3.SetMemory(address + 0x24, buffer7);
  793.             PS3.SetMemory(address + 0x2b, new byte[] { 5 });
  794.             PS3.SetMemory(address + 0x2f, new byte[1]);
  795.             PS3.SetMemory(address + 0xa7, buffer19);
  796.             PS3.SetMemory(address + 0x30, buffer8);
  797.             PS3.SetMemory(address + 0x31, buffer9);
  798.             Thread.Sleep(10);
  799.             PS3.SetMemory(address + 50, buffer10);
  800.             PS3.SetMemory(address + 0x33, buffer11);
  801.             PS3.SetMemory(address + 0x4c, buffer14);
  802.             PS3.SetMemory(address + 0x44, buffer12);
  803.             PS3.SetMemory(address + 0x48, buffer13);
  804.             PS3.SetMemory(address + 0xa8, bytes);
  805.             PS3.SetMemory(address + 0x88, buffer20);
  806.             PS3.SetMemory(address + 140, buffer15);
  807.             PS3.SetMemory(address + 0x8d, buffer16);
  808.             PS3.SetMemory(address + 0x8e, buffer17);
  809.             PS3.SetMemory(address + 0x8f, buffer18);
  810.             Thread.Sleep(30);
  811.         }
  812.  
  813.         private void Red_ValueChanged(object sender, EventArgs e)
  814.         {
  815.             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");
  816.         }
  817.  
  818.         private void Type_ValueChanged(object sender, EventArgs e)
  819.         {
  820.             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");
  821.         }
  822.  
  823.         private void Width_ValueChanged(object sender, EventArgs e)
  824.         {
  825.             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");
  826.         }
  827.  
  828.         private void XPos_ValueChanged(object sender, EventArgs e)
  829.         {
  830.             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");
  831.         }
  832.  
  833.         private void YPos_ValueChanged(object sender, EventArgs e)
  834.         {
  835.             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");
  836.         }
  837.         private class RPC
  838.         {
  839.             public static void CallFunc(uint func_addr, uint param1 = 0, uint param2 = 0, uint param3 = 0, uint param4 = 0, uint param5 = 0)
  840.             {
  841.                 byte[] bytes = BitConverter.GetBytes(param1);
  842.                 byte[] array = BitConverter.GetBytes(param2);
  843.                 byte[] buffer3 = BitConverter.GetBytes(param3);
  844.                 byte[] buffer4 = BitConverter.GetBytes(param4);
  845.                 byte[] buffer5 = BitConverter.GetBytes(param5);
  846.                 Array.Reverse(bytes);
  847.                 Array.Reverse(array);
  848.                 Array.Reverse(buffer3);
  849.                 Array.Reverse(buffer4);
  850.                 Array.Reverse(buffer5);
  851.                 Form1.PS3.SetMemory(0x523b10, bytes);
  852.                 Form1.PS3.SetMemory(0x523b14, array);
  853.                 Form1.PS3.SetMemory(0x523b18, buffer3);
  854.                 Form1.PS3.SetMemory(0x523b1c, buffer4);
  855.                 Form1.PS3.SetMemory(0x523b20, buffer5);
  856.                 Form1.PS3.SetMemory(0x3bca04, MakeBl(0x3bca04, func_addr));
  857.                 byte[] buffer6 = new byte[4];
  858.                 buffer6[3] = 1;
  859.                 Form1.PS3.SetMemory(0x1db1244, buffer6);
  860.                 Thread.Sleep(10);
  861.             }
  862.  
  863.             public static uint GetFuncReturn()
  864.             {
  865.                 byte[] buffer = new byte[4];
  866.                 PS3.GetMemory(0x114ae64, buffer);
  867.                 Array.Reverse(buffer);
  868.                 return BitConverter.ToUInt32(buffer, 0);
  869.             }
  870.  
  871.             public static void iPrintln(uint client, string Text)
  872.             {
  873.                 SV_GameSendServerCommand(client, "f \"" + Text + "\"");
  874.             }
  875.  
  876.             public static void iPrintlnBold(uint client, string Text)
  877.             {
  878.                 SV_GameSendServerCommand(client, "c \"" + Text + "\"");
  879.             }
  880.  
  881.             public static byte[] MakeBl(uint callAddr, uint addrToBlTo)
  882.             {
  883.                 byte[] array = new byte[4];
  884.                 uint num = (addrToBlTo - callAddr) + 1;
  885.                 if (addrToBlTo > callAddr)
  886.                 {
  887.                     array[3] = 0x48;
  888.                 }
  889.                 else
  890.                 {
  891.                     array[3] = 0x4b;
  892.                     num = (0x1000000 - (callAddr - addrToBlTo)) + 1;
  893.                 }
  894.                 byte[] bytes = BitConverter.GetBytes(num);
  895.                 for (int i = 0; i < 3; i++)
  896.                 {
  897.                     array[i] = bytes[i];
  898.                 }
  899.                 Array.Reverse(array);
  900.                 return array;
  901.             }
  902.  
  903.             public static void RPC_Enable_124()
  904.             {
  905.                 Form1.PS3.SetMemory(0x523b10, new byte[0x87f]);
  906.                 byte[] bytes = new byte[4];
  907.                 bytes[0] = 0x60;
  908.                 Form1.PS3.SetMemory(0x18be6c, bytes);
  909.                 byte[] buffer2 = new byte[4];
  910.                 buffer2[0] = 0x60;
  911.                 Form1.PS3.SetMemory(0x3bc9cc, buffer2);
  912.                 byte[] buffer3 = new byte[4];
  913.                 buffer3[0] = 0x48;
  914.                 buffer3[3] = 0x68;
  915.                 Form1.PS3.SetMemory(0x18be74, buffer3);
  916.                 Form1.PS3.SetMemory(0x1db1244, new byte[4]);
  917.                 Form1.PS3.SetMemory(0x114ae64, new byte[4]);
  918.                 Form1.PS3.SetMemory(0x3bc9e4, new byte[] {
  919.                     0x41, 130, 2, 0x20, 0x3d, 0, 0, 0x52, 0x80, 0x68, 0x3b, 0x10, 0x80, 0x88, 0x3b, 20,
  920.                     0x80, 0xa8, 0x3b, 0x18, 0x80, 200, 0x3b, 0x1c, 0x80, 0xe8, 0x3b, 0x20, 0x39, 0, 0, 0,
  921.                     0x48, 0, 0, 0x1d, 60, 0x80, 1, 0x15, 0x90, 100, 0xae, 100, 0x38, 0x80, 0, 0,
  922.                     60, 0x60, 1, 0xdb, 0x90, 0x83, 0x12, 0x44, 0x48, 0, 1, 0xe8, 0x4e, 0x80, 0, 0x20,
  923.                     0x60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  924.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  925.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  926.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  927.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  928.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  929.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  930.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  931.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  932.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  933.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  934.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  935.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  936.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  937.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  938.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  939.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  940.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  941.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  942.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  943.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  944.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  945.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  946.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  947.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  948.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  949.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  950.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  951.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  952.                     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x60, 0, 0, 0
  953.                  });
  954.             }
  955.  
  956.             public static uint str_pointer(string str)
  957.             {
  958.                 uint address = 0x523b30;
  959.                 byte[] buffer = new byte[1];
  960.                 uint num2 = 0;
  961.                 while (num2 < 5)
  962.                 {
  963.                     PS3.GetMemory(address, buffer);
  964.                     if (buffer[0] == 0)
  965.                     {
  966.                         break;
  967.                     }
  968.                     if (num2 == 4)
  969.                     {
  970.                         num2 = 0;
  971.                         break;
  972.                     }
  973.                     num2++;
  974.                 }
  975.                 address = 0x523b30 + (num2 * 0x68);
  976.                 Form1.PS3.SetMemory(address, new byte[0x68]);
  977.                 Form1.PS3.SetMemory(address, Encoding.UTF8.GetBytes(str));
  978.                 return address;
  979.             }
  980.  
  981.             public static void SV_GameSendServerCommand(uint client, string command)
  982.             {
  983.                 CallFunc(0x228fa8, client, 0, str_pointer(command), 0, 0);
  984.             }
  985.         }
  986.     }
  987. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement