Mar 12, 2011 03:44 PM
(This post was last modified: Mar 12, 2011 04:04 PM by Raf Simons.)
Hello, Today i am going to show all of you how to make a basic game trainer.
Necessary Equipment:
1. A .swf decompiler. I recommend using SoThink SWF DeCompiler
2. A web browser that allows you to view the page information such as firefox.
3. Basic Knowledge of visual basic programming.
4.Obviously, Visual Basic. I will be using Visual Basic 2008
Step 1: Getting the SWF from your game.
First, find a game you want to make a trainer for. I will be using Electric Man 2 Right click the page and select "View page info" like this-
Spoiler (Click to View)
Then, Click media and find the SWF for the game you are making a trainer for like this-
Spoiler (Click to View)
It should say embed under the type but sometimes it says object under type.
Step 2: Selecting The Variable
Now you must open the swf in SoThink. If you downloaded sothink correctly it should look like this-[IMG]http://i.min.us/jkjSKQ.jpg[/IMG]
Now click the maximize button next to electricman2.swf and select action and go to MainMovie like his-
Spoiler (Click to View)
Now find a variable. Most variables start with Root and look something like "root.life" Or something similar. I am going to use root.username to change my username in the game. The variable you pick should look like this-Spoiler (Click to View)
Step 3: Making The Trainer
Open visual basic and create a new windows application. Name it anything you like. Now go to solution explorer and click show all files like this-
Spoiler (Click to View)
Now, Right click references and click add reference and go to the COM tab and look for flash or FlashAccessibility like this-
Spoiler (Click to View)
Now,Right click Toolbox -> Click "Choose Items", in COM Components tab, choose Shockwave Flash Object, then you can see the control in the Toolbox.Now in your toolbox you should find something called Shockwave Flash Object. Drag one of those onto your form and resize it to the size you are comfortable with. Right click it and click properties and look for where it says "Movie". under movie put the link of the swf you downloaded. In this case it would be-http://www.andkon.com/arcade/adventureaction/electricman2/electricman2.swf
Put that into movie and add a button and a textbox to your form.
Double Click the button and add this-
Since im using the Username variable my code is this-
Now when you debug the game should load normally. Select what username and electricity color you want and start playing. Play through the first round with your username then in the text box change your username to anything you want and it will become that username.
Example-
Spoiler (Click to View)
Conclusion:
Now you have a simple trainer for electric man 2! That's the end of my tutorial! I hope you all enjoy it an make some pretty cool trainers with it!
Necessary Equipment:
1. A .swf decompiler. I recommend using SoThink SWF DeCompiler
2. A web browser that allows you to view the page information such as firefox.
3. Basic Knowledge of visual basic programming.
4.Obviously, Visual Basic. I will be using Visual Basic 2008
Step 1: Getting the SWF from your game.
First, find a game you want to make a trainer for. I will be using Electric Man 2 Right click the page and select "View page info" like this-
Spoiler (Click to View)
Then, Click media and find the SWF for the game you are making a trainer for like this-
Spoiler (Click to View)
It should say embed under the type but sometimes it says object under type.
Step 2: Selecting The Variable
Now you must open the swf in SoThink. If you downloaded sothink correctly it should look like this-[IMG]http://i.min.us/jkjSKQ.jpg[/IMG]
Now click the maximize button next to electricman2.swf and select action and go to MainMovie like his-
Spoiler (Click to View)
Now find a variable. Most variables start with Root and look something like "root.life" Or something similar. I am going to use root.username to change my username in the game. The variable you pick should look like this-Spoiler (Click to View)
Step 3: Making The Trainer
Open visual basic and create a new windows application. Name it anything you like. Now go to solution explorer and click show all files like this-
Spoiler (Click to View)
Now, Right click references and click add reference and go to the COM tab and look for flash or FlashAccessibility like this-
Spoiler (Click to View)
Now,Right click Toolbox -> Click "Choose Items", in COM Components tab, choose Shockwave Flash Object, then you can see the control in the Toolbox.Now in your toolbox you should find something called Shockwave Flash Object. Drag one of those onto your form and resize it to the size you are comfortable with. Right click it and click properties and look for where it says "Movie". under movie put the link of the swf you downloaded. In this case it would be-http://www.andkon.com/arcade/adventureaction/electricman2/electricman2.swf
Put that into movie and add a button and a textbox to your form.
Double Click the button and add this-
Code
Call AxShockwaveFlash1.SetVariable("your variable here", TextBox1.Text)Since im using the Username variable my code is this-
Code
Call AxShockwaveFlash1.SetVariable("username", TextBox1.Text)Now when you debug the game should load normally. Select what username and electricity color you want and start playing. Play through the first round with your username then in the text box change your username to anything you want and it will become that username.
Example-
Spoiler (Click to View)
Conclusion:
Now you have a simple trainer for electric man 2! That's the end of my tutorial! I hope you all enjoy it an make some pretty cool trainers with it!
THE POSTER PREVIOUSLY KNOWN AS SAINT LAURENT PARIS

