Computer Tech
[VB .NET][TuT]Stick RPG Trainer - Printable Version

+- Computer Tech (https://computertech.createmybb3.com)
+-- Forum: Programming (https://computertech.createmybb3.com/forumdisplay.php?fid=6)
+--- Forum: .Net Programming (https://computertech.createmybb3.com/forumdisplay.php?fid=8)
+--- Thread: [VB .NET][TuT]Stick RPG Trainer (/showthread.php?tid=103)



[VB .NET][TuT]Stick RPG Trainer - Ethereal - 01-15-2011

This is my project that I have been working on. It took me 7 hours straight, so please be nice. The tutorial is at the bottom.

I take full credit for the Program and the tutorial.

Requirements:
WinRAR
.NET Framework 4

Make sure that you extract all of the files into the same folder.

[size=medium][b]Screenshots[/b][/size]
http://min.us/mvohTdd
[spoiler]
[Image: http://img185.imageshack.us/img185/5061/pic1xc.jpg]
[Image: http://img521.imageshack.us/img521/904/pic2ui.jpg]
For Image 3, look at Minus.
[/spoiler]

[size=medium][b]Virus Scan[/b][/size]
http://www.virustotal.com/file-scan/report.html?id=d790a22af954a02199d5b6f4557b2e69712446d845302ea891ed999b891bea6f-1288467713
[spoiler]
[code]
Firefox Clean site
G-Data Clean site
Google Safebrowsing Clean site
Opera Clean site
ParetoLogic Clean site
Phishtank Clean site
Additional information
Show all
Normalized URL: http://www.multiupload.com/EMFFK17RDB
URL MD5: a2ef57a142856029eef86df640550f48
Content-Type: text/html

Antivirus Version Last Update Result
AhnLab-V3 2010.10.31.00 2010.10.30 -
AntiVir 7.10.13.74 2010.10.29 -
Antiy-AVL 2.0.3.7 2010.10.30 -
Authentium 5.2.0.5 2010.10.30 -
Avast 4.8.1351.0 2010.10.30 -
Avast5 5.0.594.0 2010.10.30 -
AVG 9.0.0.851 2010.10.30 -
BitDefender 7.2 2010.10.30 -
CAT-QuickHeal 11.00 2010.10.26 -
ClamAV 0.96.2.0-git 2010.10.30 -
Comodo 6561 2010.10.30 -
DrWeb 5.0.2.03300 2010.10.30 -
eSafe 7.0.17.0 2010.10.28 -
eTrust-Vet 36.1.7943 2010.10.29 -
F-Prot 4.6.2.117 2010.10.30 -
F-Secure 9.0.16160.0 2010.10.30 -
Fortinet 4.2.249.0 2010.10.30 -
GData 21 2010.10.30 -
Ikarus T3.1.1.90.0 2010.10.30 -
Jiangmin 13.0.900 2010.10.30 -
K7AntiVirus 9.67.2865 2010.10.29 -
Kaspersky 7.0.0.125 2010.10.30 -
McAfee 5.400.0.1158 2010.10.30 -
McAfee-GW-Edition 2010.1C 2010.10.30 -
Microsoft 1.6301 2010.10.30 -
NOD32 5576 2010.10.29 -
Norman 6.06.10 2010.10.30 -
nProtect 2010-10-30.02 2010.10.30 -
Panda 10.0.2.7 2010.10.30 -
PCTools 7.0.3.5 2010.10.30 -
Prevx 3.0 2010.10.30 -
Rising 22.71.03.02 2010.10.29 -
Sophos 4.59.0 2010.10.30 -
Sunbelt 7173 2010.10.30 -
SUPERAntiSpyware 4.40.0.1006 2010.10.30 -
Symantec 20101.2.0.161 2010.10.30 -
TheHacker 6.7.0.1.074 2010.10.30 -
TrendMicro 9.120.0.1004 2010.10.30 -
TrendMicro-HouseCall 9.120.0.1004 2010.10.30 -
VBA32 3.12.14.1 2010.10.29 -
ViRobot 2010.10.30.4121 2010.10.30 -
VirusBuster 12.70.13.0 2010.10.30 -
[/code]
[/spoiler]

[b][size=medium]Download:[/size][/b]
http://www.multiupload.com/EMFFK17RDB

[b][size=medium]Tutorial![/size][/b]
[spoiler]
First, create a new WindowsFormsApplication

Then open up Toolbox, right-click on General and click "Choose Items."
[Image: http://img832.imageshack.us/img832/5831/toolboxchooseitems.jpg]

Select the COM Components Tab, scroll down to Shockwave Flash, and Check it.
[Image: http://img2.imageshack.us/img2/3765/shockwaveflashcomtab.jpg]

Click Ok and Drag your newly made Shockwave Flash Object onto Form1
[Image: http://img713.imageshack.us/img713/4784/form1swfobject.jpg]

Now go to properties in the bottom right, and change the Form1 size to "800x600" and the Shockwave Flash Object to "800x540." You will re-size this later.
[Image: http://img146.imageshack.us/img146/3366/resizede.jpg]

Also in Properties, change the Flash Object's "Movie" to the game of your choice(Link must end with .swf) For this tutorial, we will use http://www.xgenstudios.com/stickrpg/srpgcompletexgen.swf
[Image: http://img207.imageshack.us/img207/2937/movielinkedit.jpg]

Finally, drag a MenuStrip onto the top of your Form. Name the first section "Stats". You may need to resize the Flash Object.
[Image: http://img695.imageshack.us/img695/3448/menustrip.jpg]

[b][size=medium]Code[/size][/b]

To hack the flash game, we are going to edit the memory. If you've ever used Cheat Engine, or Tsearch, you will understand this.
However, while this takes time and effort using Memory Scanners, this is relatively easy on VB. VB allows us to directly alter the Flash Objects' Variables.

On your Menu at the top, add a sub menu to "Stats" and call it "Strength" We will use editing the Strength stat as our example.
[Image: http://img801.imageshack.us/img801/4862/addingstrengthstat.jpg]

Then double click the Strength menu element, and enter this code:
[code]
AxShockwaveFlash1.SetVariable("Strength", "100")
[/code]
[Image: http://img529.imageshack.us/img529/5759/addingstrengthcode.jpg]

This code makes the Button_Click event change the "Strength" Variable to 100. If you click the Menu item in game, you will initialize the code, and your stat will change.

That's pretty much all there is to it. To find out the variable names, either guess at them(Look at the string in game) or decompile the .swf file.

Useful Codes for Trainers:
Editing Variables
[code]
AxShockwaveFlash1.SetVariable("Variable", "Value")
[/code]

Custom Variables
[code]
Dim s As String = InputBox("Enter custom [Variable] level:")
AxShockwaveFlash1.SetVariable("Variable", s)
[/code]

Launching files from same Folder as VB App
[code]
Shell(Application.StartupPath & "\Filename.exe") ;; This can be used to run scripts/other .exe's
[/code]

Variable List for StickRPG
[code]
Strength
Intelligence
Charm
Karma
HP
HPMAX
Cash
Day
Time
pname
[/code]
[/spoiler]

I hope the TuT was useful Smile


RE: [VB .NET][TuT]Stick RPG Trainer - Ironside - 01-15-2011

Interesting, was thinking some time back of something similar.


RE: [VB .NET][TuT]Stick RPG Trainer - Hidden Dragon - 01-15-2011

It looks pretty good. I've never done a trainer before but this looks quite easy. Thanks for sharing.