Results 1 to 13 of 13
  1. #1
    CrazyBish's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    141
    Reputation
    9
    Thanks
    14

    [Tutorial] VB6 Flash Trainer

    I need a TuT on how to make a flash trainer or any programming in VB. I am tryng to start learning coding, if anyone could help me thank you very much. Sorry if this offends anyone, everyone has to start somewhere right?
    I am willing to pay someone to teach me with:
    Combat Arms Nexon Cash Weapons, as of April 13th.

  2. #2
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool


    See if this helps you. This is vb6 by the way.

    then download a SWF decompiler here if you already don't have one:
    https://www2.sothink.com/download/swfdec.zip
    okay so open vb6 and a window should pop up. click on "Reg key (Allows .Exe extensions) then click on run vb6. and then click on "standard exe" now you should have something that looks like this:



    Now go to "project/compnents" like this:



    Add the component called "shockwave flash" (its at the bottom of the list of components) and click okay.

    then you should see a small page icon on your left side in your components like this:



    now click on it and put it on your page like this:



    now click on the white flash document once and on the right bottom side it should say: "(name). name it to flash1. this is very important.
    now above it click on the (custom) blank space and click on the (...) button like this:



    now you need a SWF. you can get them many ways. a couple ways are:
    go to any flash game, and right click and click on view source, and search for SWF, or you can go to tools and sothink SWF cather and see what the SWF URL is, don't save the SWF.

    I used this SWF: https://www.miniclip.com/games/heli-a...i2miniclip.swf
    now paste that URL into the "property pages" form like this:



    then click ok.
    Now the game should load.
    on the left side under "general" click on the "command button" tab and add a button to your form






    now above the "commandbutton" tab there is the "textbox" tab. click on it and add a text box next to your button.



    now double click on your button and the code should appear.



    now type in this code: Call Flash1.SetVariable("score", Text1.text)


    now you can test your game by pressing F5. now click on "start game" now type 99999 in the text box and click on your button. your score should be changed to whatever you just typed in the textbox.
    you can customize your trainer now too. you can change it's color, rename your button so it doesn't same command1 instead it says: score hack.
    you can add more buttons and more hacks.



    so now, why do you need the decompiler??? well the decompiler is for look for values such as the score. in this case the value was "score" but in different games such as battleon you wouldn't type in "health" but "int.heath". so how do you use the decompiler??? open up Internet explorer (not firefox) and got to any flash game you want to hack. go to tools, sothink SWF cather


    now open sothink decompiler and open the file


    go to Action, then click on main movie.


    This is the tutorial. This was made by a guy named Valvex.
    Last edited by Obama; 03-28-2009 at 04:04 PM.

  3. The Following User Says Thank You to Obama For This Useful Post:

    KnockOut (04-13-2009)

  4. #3
    CrazyBish's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    141
    Reputation
    9
    Thanks
    14
    What SWF Decompiler did you use? If you could, would you pload them or tell me where to get it? I have VB 6.

  5. #4
    CrazyBish's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    141
    Reputation
    9
    Thanks
    14
    I am using windows vista, when I open VB 2008 Express Edition none of that pops up it just opens VB Start Page, and When I have from1 and I click view, components is not there.

  6. #5
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Open VB 2008 Express and create a new project.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut0.gif[/IMG]

    Now name your project. You can choose any name you want but make sure its something you will remember.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut1.gif[/IMG]

    Now we need to Make sure we have the Flash component active. Over on the left you will see a list of tools. Scroll down to where you see Common Controls. Now right click on "common controls" and choose Choose Items.....

    Now click on the middle tab, COM Components. And search for Shockwave Flash Object.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut2.gif[/IMG]


    Now that we have all the components that we need. We can get started.

    For this tutorial, I will be hacking the game "Flash Strike". You can get the swf from https://fpflashfarm.com/FB49PFBFFKJ42BF/6860_test.swf.

    Now go back to your VB 2008, and get your "Shockwave Flash Object" tool. And drag it from the top left corner of your form, to the bottom right corner. As seen below.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut3.gif[/IMG]

    Now right click on the flash object and choose properties. Set the URL and settings as you see below.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut4.gif[/IMG]

    Now hit ok and the game should load up. Now we go looking for Variables. Open the SWF Decompiler of your choice. If your using So Think, then look for your Action Folder and click the "Arrow Sign" sign next to it and click on "Main" And search for the variables that way.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut5.gif[/IMG]

    Now if your using Flash Decompiler Trillix its a bit different. Open the swf file in trillix, and look for a scripts folder. Click on that and it will load the files.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut6.gif[/IMG]

    Now we search for Variables. Most times a variable can be easily distinguished because its written such as

    Code:
    _root.kills = 0 or kills = 0

    -----------------------------------------------------------------------------------

    Ok now that we have our project mostly set up, and we have found some variables. We can now move on the the best part. Making the variables into hacks for our trainer.

    We now must go back to our VB2008 and look at the menu on the left again. This time we are looking for "button".

    Left click it and then go to your project and Left click where you want your button to be. You can adjust the size of your button while your doing this.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut7.gif[/IMG]

    Now that we have our button set up, we need to look to the right at the "Properties" of the button. Look for "Text Button1"

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut8.gif[/IMG]

    And change that to "Set Health"

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut9.gif[/IMG]

    NOTE In vb6 the Flash object was named "ShockwaveFlash1" in Vb2008 its named "AxShockwaveFlash1"

    Now we will go back to our project, and double click on the button, which will bring us to the code page. Now we need our variables we found. Which for health in this game its calculated like

    Code:
    _root.healthpercent = _root.lives / _root.health * 100 + "%"

    So in our code window we will make it just as my next image.

    [IMG]https://i270.photobucke*****m/albums/jj87/mizzioninc/tut10.gif[/IMG]

    This is basically what the codes mean, Its telling the application to call upon the flash object and "set the variable" which in this case is _root.health and _root.lives to the value we enter.

    Now that we have the coding in place we need to test it. So now we hit "f5" on your keyboard and it will launch our project. We go into a game, and get hit. Now click the "Set Health" button and if all goes as planned, it will reset your health up to 100%.

    If it set it up as I mentioned, then our button did as it should have.

    Now we need to save the project by going to the top of your vb2008 and going "file - Save All". Now you can build this trainer and make it into an .exe.

    To build the trainer you will go "Build - Build "ProjectName" ".

    The default location that it builds the project is:
    Code:
    C:\Documents and Settings\<user name>\My Documents\Visual Studio 2008/Projects\FlashStrike\FlashStrike\bin\Release

    Inside the release folder you should see FIVE files, the ones you need to include with your trainer are as follows.

    Code:

    AxInterop.ShockwaveFlashObjects.dll
    Interop.ShockwaveFlashObjects.dll
    and the EXE in this cash FlashStrike.exe

    Now you Zip, or Rar these files together and you have created your first trainer. I hope you enjoyed this tutorial and good luck with making flash trainers.

  7. The Following User Says Thank You to Obama For This Useful Post:

    CrazyBish (03-28-2009)

  8. #6
    CrazyBish's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    141
    Reputation
    9
    Thanks
    14
    I don't know how to use the SWF decompiler, and how they get all of that information about the games. I have never programmed before so if you cou;d baby feed me it would be helpful.

  9. #7
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    https://www2.sothink.com/download/swfdec.zip
    https://www.eltim*****m/download/flash_decompiler.exe

    Follow the directions above. It shows you what to do in the tutorial.

    These are 2 decompilers. Choose which one you want to use.

  10. The Following User Says Thank You to Obama For This Useful Post:

    CrazyBish (03-28-2009)

  11. #8
    CrazyBish's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    141
    Reputation
    9
    Thanks
    14
    Quote Originally Posted by jussofresh1 View Post
    https://www2.sothink.com/download/swfdec.zip
    https://www.eltim*****m/download/flash_decompiler.exe

    Follow the directions above. It shows you what to do in the tutorial.

    These are 2 decompilers. Choose which one you want to use.
    I figured most of this out, thanks. But in the first tutorial, it says (name) and (custom) there is no (custom) area. Help?

  12. #9
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    I think there are also trainer makers you can google. I'll someday write a source and sticky it to avoid this repetitive thread.
    Last edited by Toymaker; 04-13-2009 at 04:20 PM.

  13. #10
    KnockOut's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    New York Fucking City
    Posts
    881
    Reputation
    10
    Thanks
    210
    @@@@@@@TOYMAKER

    WHERE IS TRAINER MAKER
    Last edited by Toymaker; 04-13-2009 at 04:21 PM.

  14. #11
    mcjang's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    That's what she said.
    Posts
    923
    Reputation
    16
    Thanks
    4,294,967,295
    My Mood
    Angelic
    um if u use VB6 portable, instead of custom go into movies in ur properties section and put it there.

  15. #12
    hanamana's Avatar
    Join Date
    Apr 2009
    Posts
    11
    Reputation
    10
    Thanks
    3
    wow nice tutorial

  16. #13
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    Yeah, thanks again Obama. ~moved to Tutorials.

Similar Threads

  1. [Tutorial]Making a Trainer[Closed]
    By CoderNever in forum Visual Basic Programming
    Replies: 6
    Last Post: 04-14-2010, 09:56 AM
  2. [tut]How To Make A Flash Trainer[tut]
    By Slippy77 in forum Programming Tutorials
    Replies: 4
    Last Post: 12-31-2008, 01:33 PM
  3. PROBLEM WITH MAKING FLASH TRAINER IN VB6 HELP!?!?!?!
    By szprot in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-06-2008, 09:43 AM
  4. [Tutorial]Vb6 Transparent Form
    By blipi in forum Visual Basic Programming
    Replies: 16
    Last Post: 01-31-2008, 08:43 AM
  5. Writing Stamina Code Vb6 ???done Trainer
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 06-09-2007, 05:40 AM

Tags for this Thread