Advertisement
BaSs_HaXoR

SC58's Modern Warfare 3 Trophies Source

Oct 8th, 2014
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 9.44 KB | None | 0 0
  1. //SC58's Modern Warfare 3 Single Player Trophies
  2. //www.nextgenupdate.com
  3.  
  4. namespace Modern_Warfare_3_Single_Player_Trophies
  5. {
  6.     using PS3Lib;
  7.     using System;
  8.     using System.ComponentModel;
  9.     using System.Drawing;
  10.     using System.Threading;
  11.     using System.Windows.Forms;
  12.  
  13.     public class Form1 : Form
  14.     {
  15.         private Button button1;
  16.         private Button button2;
  17.         private Button button3;
  18.         private IContainer components = null;
  19.         private Label label1;
  20.         private PS3API PS3 = new PS3API(SelectAPI.TargetManager);
  21.         private RadioButton radioButton1;
  22.         private RadioButton radioButton2;
  23.         public uint Sv_GameSendServerCommand = 0x2d94c8;
  24.  
  25.         public Form1()
  26.         {
  27.             this.InitializeComponent();
  28.         }
  29.  
  30.         private void button1_Click(object sender, EventArgs e)
  31.         {
  32.             if (this.PS3.ConnectTarget(0))
  33.             {
  34.                 MessageBox.Show("You are now connected with this API : " + this.PS3.GetCurrentAPIName(), "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  35.             }
  36.             else
  37.             {
  38.                 string text = "Failed To Connect";
  39.                 MessageBox.Show(text, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  40.             }
  41.         }
  42.  
  43.         private void button2_Click(object sender, EventArgs e)
  44.         {
  45.             if (this.PS3.AttachProcess())
  46.             {
  47.                 MessageBox.Show("Current game is attached successfully.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  48.             }
  49.             else
  50.             {
  51.                 MessageBox.Show("No game process found!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  52.             }
  53.             RPC.EnableRPC();
  54.         }
  55.  
  56.         private void button3_Click(object sender, EventArgs e)
  57.         {
  58.             RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Unlocking All Trophies....\"" });
  59.             RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Made By SC58\"" });
  60.             RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Join NextGenUpdate.Com\"" });
  61.             string[] strArray = new string[] {
  62.                 "give_achievement BACK_IN_THE_FIGHT", "give_achievement TOO_BIG_TO_FAIL", "give_achievement WET_WORK", "give_achievement CARPE_DIEM", "give_achievement FREQUENT_FLIER", "give_achievement UP_TO_NO_GOOD", "give_achievement ONE_WAY_TICKET", "give_achievement WELCOME_TO_WW3", "give_achievement SANDSTORM", "give_achievement BACK_SEAT_DRIVER", "give_achievement WELL_ALWAYS_HAVE_PARIS", "give_achievement VIVE_LA_REVOLUTION", "give_achievement REQUIEM", "give_achievement STORM_THE_CASTLE", "give_achievement BAD_FIRST_DATE", "give_achievement DIAMOND_IN_THE_ROUGH",
  63.                 "give_achievement THE_BIG_APPLE", "give_achievement OUT_OF_THE_FRYING_PAN", "give_achievement EUROPEAN_VACATION", "give_achievement CITY_OF_LIGHTS", "give_achievement THE_DARKEST_HOUR", "give_achievement THIS_IS_THE_END", "give_achievement WHO_DARES_WINS", "give_achievement THE_BEST_OF_THE_BEST", "give_achievement STRIKE", "give_achievement JACK_THE_RIPPER", "give_achievement INFORMANT", "give_achievement SCOUT_LEADER", "give_achievement THIS_IS_MY_BOOMSTICK", "give_achievement WHAT_GOES_UP", "give_achievement FLIGHT_ATTENDANT", "give_achievement FOR_WHOM_THE_SHELL_TOLLS",
  64.                 "give_achievement KILL_BOX", "give_achievement DANGER_CLOSE", "give_achievement MENAGE_A_TROIS", "give_achievement NEIN", "give_achievement FIFTY_FIFTY", "give_achievement BIRDIE", "give_achievement SERRATED_EDGE", "give_achievement ARMS_DEALER", "give_achievement DANGER_ZONE", "give_achievement DEFENSE_SPENDING", "give_achievement GET_RICH_OR_DIE_TRYING", "give_achievement I_LIVE", "give_achievement SURVIVOR", "give_achievement UNSTOPPABLE", "give_achievement NO_ASSISTANCE_REQUIRED", "give_achievement BRAG_RAGS",
  65.                 "give_achievement TACTICIAN", "give_achievement OVERACHIEVER", "give_achievement SHOTGUN_DIPLOMACY", "give_achievement NOT_ON_MY_WATCH", "give_achievement SKILLED_NEGOTIATOR", "give_achievement SLIPPERY_SLOPE", "give_achievement A_BAKERS_DOZEN", "give_achievement ICE_IN_YOUR_VEINS", "give_achievement DONT_TREAD_ON_ME", "give_achievement HIGH_ROLLER", "give_achievement NOT_A_SCRATCH", "give_achievement ONE_FOUR_ONE", "give_achievement HELIPOCALYPSE_NOW", "give_achievement EMPRESSIVE", "give_achievement STAY_FROSTY", "give_achievement SUB_ZERO",
  66.                 "give_achievement DR0N3D", "give_achievement APEX", "give_achievement PINNACLE", "give_achievement FLYSWATTER", "give_achievement TO_JUGGER_OR_TO_JUGGER_NAUT", "give_achievement HANDLE_WITH_CARE", "give_achievement DELIVER_THIS", "give_achievement DISCRIMINATING_BUYER", "give_achievement UNTOUCHABLE", "give_achievement SIEGE", "give_achievement LIGHTS_OUT", "give_achievement DEER_IN_THE_HEADLIGHTS"
  67.              };
  68.             for (int i = 0; i < 0x4c; i++)
  69.             {
  70.                 RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, strArray[i] });
  71.                 Thread.Sleep(0x19);
  72.                 RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, strArray[i] });
  73.             }
  74.         }
  75.  
  76.         protected override void Dispose(bool disposing)
  77.         {
  78.             if (disposing && (this.components != null))
  79.             {
  80.                 this.components.Dispose();
  81.             }
  82.             base.Dispose(disposing);
  83.         }
  84.  
  85.         private void InitializeComponent()
  86.         {
  87.             ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
  88.             this.button1 = new Button();
  89.             this.button2 = new Button();
  90.             this.radioButton1 = new RadioButton();
  91.             this.radioButton2 = new RadioButton();
  92.             this.label1 = new Label();
  93.             this.button3 = new Button();
  94.             base.SuspendLayout();
  95.             this.button1.Location = new Point(12, 12);
  96.             this.button1.Name = "button1";
  97.             this.button1.Size = new Size(0x4b, 0x17);
  98.             this.button1.TabIndex = 0;
  99.             this.button1.Text = "Connect";
  100.             this.button1.UseVisualStyleBackColor = true;
  101.             this.button1.Click += new EventHandler(this.button1_Click);
  102.             this.button2.Location = new Point(0x5d, 12);
  103.             this.button2.Name = "button2";
  104.             this.button2.Size = new Size(0x4b, 0x17);
  105.             this.button2.TabIndex = 1;
  106.             this.button2.Text = "Attach";
  107.             this.button2.UseVisualStyleBackColor = true;
  108.             this.button2.Click += new EventHandler(this.button2_Click);
  109.             this.radioButton1.AutoSize = true;
  110.             this.radioButton1.Location = new Point(0xae, 15);
  111.             this.radioButton1.Name = "radioButton1";
  112.             this.radioButton1.Size = new Size(0x3a, 0x11);
  113.             this.radioButton1.TabIndex = 2;
  114.             this.radioButton1.TabStop = true;
  115.             this.radioButton1.Text = "TMAPI";
  116.             this.radioButton1.UseVisualStyleBackColor = true;
  117.             this.radioButton1.CheckedChanged += new EventHandler(this.radioButton1_CheckedChanged);
  118.             this.radioButton2.AutoSize = true;
  119.             this.radioButton2.Location = new Point(0xee, 15);
  120.             this.radioButton2.Name = "radioButton2";
  121.             this.radioButton2.Size = new Size(0x38, 0x11);
  122.             this.radioButton2.TabIndex = 3;
  123.             this.radioButton2.TabStop = true;
  124.             this.radioButton2.Text = "CCAPI";
  125.             this.radioButton2.UseVisualStyleBackColor = true;
  126.             this.radioButton2.CheckedChanged += new EventHandler(this.radioButton2_CheckedChanged);
  127.             this.label1.AutoSize = true;
  128.             this.label1.Location = new Point(300, 0x11);
  129.             this.label1.Name = "label1";
  130.             this.label1.Size = new Size(0x5c, 13);
  131.             this.label1.TabIndex = 4;
  132.             this.label1.Text = "Title Update: 1.24";
  133.             this.button3.Location = new Point(12, 0x29);
  134.             this.button3.Name = "button3";
  135.             this.button3.Size = new Size(380, 0x17);
  136.             this.button3.TabIndex = 5;
  137.             this.button3.Text = "Unlock All Trophies";
  138.             this.button3.UseVisualStyleBackColor = true;
  139.             this.button3.Click += new EventHandler(this.button3_Click);
  140.             base.AutoScaleDimensions = new SizeF(6f, 13f);
  141. //            base.AutoScaleMode = AutoScaleMode.Font;
  142.             base.ClientSize = new Size(0x194, 0x47);
  143.             base.Controls.Add(this.button3);
  144.             base.Controls.Add(this.label1);
  145.             base.Controls.Add(this.radioButton2);
  146.             base.Controls.Add(this.radioButton1);
  147.             base.Controls.Add(this.button2);
  148.             base.Controls.Add(this.button1);
  149. //            base.Icon = (Icon) manager.GetObject("$this.Icon");
  150.             base.MaximizeBox = false;
  151.             this.MaximumSize = new Size(420, 110);
  152.             this.MinimumSize = new Size(420, 110);
  153.             base.Name = "Form1";
  154.             this.Text = "Modern Warfare 3 Single Player Trophies";
  155.             base.ResumeLayout(false);
  156.             base.PerformLayout();
  157.         }
  158.  
  159.         private void radioButton1_CheckedChanged(object sender, EventArgs e)
  160.         {
  161.             this.PS3.ChangeAPI(SelectAPI.TargetManager);
  162.         }
  163.  
  164.         private void radioButton2_CheckedChanged(object sender, EventArgs e)
  165.         {
  166.             this.PS3.ChangeAPI(SelectAPI.ControlConsole);
  167.         }
  168.     }
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement