Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SC58's Modern Warfare 3 Single Player Trophies
- //www.nextgenupdate.com
- namespace Modern_Warfare_3_Single_Player_Trophies
- {
- using PS3Lib;
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Threading;
- using System.Windows.Forms;
- public class Form1 : Form
- {
- private Button button1;
- private Button button2;
- private Button button3;
- private IContainer components = null;
- private Label label1;
- private PS3API PS3 = new PS3API(SelectAPI.TargetManager);
- private RadioButton radioButton1;
- private RadioButton radioButton2;
- public uint Sv_GameSendServerCommand = 0x2d94c8;
- public Form1()
- {
- this.InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (this.PS3.ConnectTarget(0))
- {
- MessageBox.Show("You are now connected with this API : " + this.PS3.GetCurrentAPIName(), "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- else
- {
- string text = "Failed To Connect";
- MessageBox.Show(text, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- if (this.PS3.AttachProcess())
- {
- MessageBox.Show("Current game is attached successfully.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- }
- else
- {
- MessageBox.Show("No game process found!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- RPC.EnableRPC();
- }
- private void button3_Click(object sender, EventArgs e)
- {
- RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Unlocking All Trophies....\"" });
- RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Made By SC58\"" });
- RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, "obj_complete \"Join NextGenUpdate.Com\"" });
- string[] strArray = new string[] {
- "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",
- "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",
- "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",
- "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",
- "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"
- };
- for (int i = 0; i < 0x4c; i++)
- {
- RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, strArray[i] });
- Thread.Sleep(0x19);
- RPC.Call(this.Sv_GameSendServerCommand, new object[] { -1, strArray[i] });
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.button1 = new Button();
- this.button2 = new Button();
- this.radioButton1 = new RadioButton();
- this.radioButton2 = new RadioButton();
- this.label1 = new Label();
- this.button3 = new Button();
- base.SuspendLayout();
- this.button1.Location = new Point(12, 12);
- this.button1.Name = "button1";
- this.button1.Size = new Size(0x4b, 0x17);
- this.button1.TabIndex = 0;
- this.button1.Text = "Connect";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.button2.Location = new Point(0x5d, 12);
- this.button2.Name = "button2";
- this.button2.Size = new Size(0x4b, 0x17);
- this.button2.TabIndex = 1;
- this.button2.Text = "Attach";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new EventHandler(this.button2_Click);
- this.radioButton1.AutoSize = true;
- this.radioButton1.Location = new Point(0xae, 15);
- this.radioButton1.Name = "radioButton1";
- this.radioButton1.Size = new Size(0x3a, 0x11);
- this.radioButton1.TabIndex = 2;
- this.radioButton1.TabStop = true;
- this.radioButton1.Text = "TMAPI";
- this.radioButton1.UseVisualStyleBackColor = true;
- this.radioButton1.CheckedChanged += new EventHandler(this.radioButton1_CheckedChanged);
- this.radioButton2.AutoSize = true;
- this.radioButton2.Location = new Point(0xee, 15);
- this.radioButton2.Name = "radioButton2";
- this.radioButton2.Size = new Size(0x38, 0x11);
- this.radioButton2.TabIndex = 3;
- this.radioButton2.TabStop = true;
- this.radioButton2.Text = "CCAPI";
- this.radioButton2.UseVisualStyleBackColor = true;
- this.radioButton2.CheckedChanged += new EventHandler(this.radioButton2_CheckedChanged);
- this.label1.AutoSize = true;
- this.label1.Location = new Point(300, 0x11);
- this.label1.Name = "label1";
- this.label1.Size = new Size(0x5c, 13);
- this.label1.TabIndex = 4;
- this.label1.Text = "Title Update: 1.24";
- this.button3.Location = new Point(12, 0x29);
- this.button3.Name = "button3";
- this.button3.Size = new Size(380, 0x17);
- this.button3.TabIndex = 5;
- this.button3.Text = "Unlock All Trophies";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new EventHandler(this.button3_Click);
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- // base.AutoScaleMode = AutoScaleMode.Font;
- base.ClientSize = new Size(0x194, 0x47);
- base.Controls.Add(this.button3);
- base.Controls.Add(this.label1);
- base.Controls.Add(this.radioButton2);
- base.Controls.Add(this.radioButton1);
- base.Controls.Add(this.button2);
- base.Controls.Add(this.button1);
- // base.Icon = (Icon) manager.GetObject("$this.Icon");
- base.MaximizeBox = false;
- this.MaximumSize = new Size(420, 110);
- this.MinimumSize = new Size(420, 110);
- base.Name = "Form1";
- this.Text = "Modern Warfare 3 Single Player Trophies";
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void radioButton1_CheckedChanged(object sender, EventArgs e)
- {
- this.PS3.ChangeAPI(SelectAPI.TargetManager);
- }
- private void radioButton2_CheckedChanged(object sender, EventArgs e)
- {
- this.PS3.ChangeAPI(SelectAPI.ControlConsole);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement