How to make a trainer in VB 6.0

Discussion in 'Programming & Scripting' started by Leering, Nov 17, 2008 with 4 replies and 812 views.

  1. Leering

    Leering (ノಠ益ಠ)ノ彡┻━┻

    Messages:
    2,705
    Ratings:
    472
    What you will need:

    -Visual Basic 6
    -SWF decompiler ([Click here to view the link])
    -A flash game the game i used is a flash game called counter-strike
    -The flash url

    Tut:

    Find a flash game and let it load all the way I start playing just to make sure.

    Find it in your Internet Files.

    To find your flash ame in your internet temp file by going:
    Tools>Settings>View Files
    It will be easier to find if you empty if before loading game up.

    Ok, let's open VB6 (click .exe) and sothink swf decompiler and open your flash game in the decompiler



    [​IMG]


    Now go back to VB6 and right click on the toolbox

    [​IMG]

    Go to components and choose Shockwave Flash

    [​IMG]

    Press apply and then OK


    Now click the icon that just appeared and make a square with it

    [​IMG]

    name that white square Flash

    [​IMG]

    now take your Flash url (.swf) mine is: [Click here to view the link]

    and go to the categorized tab, now under Misc you see Movie and Movie Data
    paste the url in the Movie box

    [​IMG]

    Now you should see the game appear in the white box

    Now go to the swf decompiler to search for variables



    [​IMG]

    Go to the right of the screen and click on the little pointer,
    now there should appear some documents click the pointer at "Actions"

    Now you see all the variables



    [​IMG]

    In this case S is score so:

    Go back to VB6 and make a button and text

    [​IMG]

    Now doubleclick on the button, an actionscript wil popup write there:

    Call Flash.setvariable ("yourvariablehere", Text1.text)

    [​IMG]

    now lets make one for health

    [​IMG]

    Make a new button and name the caption 1000000 life
    the variable for health is shield, so we write:

    Call Flash.setvariable ("Shield", 1000000)

    [​IMG]

    No test the game to see if everything is working.


    Now export it to .exe and it's done!

    Tell me if anything is misssing.:thumbup:
     
  2. Michael Allison

    Michael Allison Enthusiast

    Messages:
    232
    Ratings:
    13
    Pretty useful, for someone like me who knows nothing about Flash! Thanks a ton, I'll try one of those decompilers tonight for fun.
     
  3. Ibdc

    Ibdc Retired Retired

    Messages:
    5,100
    Ratings:
    2,072
    Pretty good tutorial, this is almost exactly the same as VB .NET, so even if you don't have VB6 you can still use this.
     
  4. OP
    Leering

    Leering (ノಠ益ಠ)ノ彡┻━┻

    Messages:
    2,705
    Ratings:
    472
    Thanks for the feedback, I try to contribute as much as I can...:thumbup:
     
  5. David5534

    David5534 Premium Premium

    Messages:
    2,831
    Ratings:
    267
    Wow, i wasn't about to make one of these tuts for C# lol. Anyways nice job and if anyone needs help with a C# one goto the C# section and checkout my source for my trainer.