Arcade Prehacks

Results 1 to 7 of 7
  1. #1
    Senior Member Dezlad's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    327

    How to make a html/javascript trainer.

    You will need: A web browser, Site-hosting (or notepad :P), A Brain, some HTML knowledge(optional) and a variable scanner for as2.
    Example of trainer: http://dezladstrainers.webs.com/NinjasVsPirates.htm (It will probably look better than that i have done nothing to the site and made it just under a year ago.)

    Step 1) Variables
    Scan your flash game/document for variables you want to change or get, Pick out any you want example: 'score' 'level' 'money' 'time' etc...
    Note down any you want and note down what they are too (if they have strange names like "fo" or "ge")

    Step 2) Introduction to Javascript
    If you know most javascript commands you can move on otherwise you will probably need this!
    Set Variable:"javascript:document.embeds[0].SetVariable('money', 'Value')"
    Get Variable:"javascript:alert(document.embeds[0].GetVariable('money'))"
    Alert:"javascript:alert('I like hacking ')


    Step 3) Making buttons
    As this is a quick tutorial the buttons will be simple (If you have lots of html knowledge you can put it to use making it look fancy if you wish)
    so the code we will need is a button: <button></button>
    we then add some text to it: <button>Money 1000000</button>
    then we can add the javascript code's to an onclick event: <button onclick="javascript:document.embeds[0].SetVariable('money', 1000000)">Money 1000000</button>
    now we've done our button/s we can move on.

    Step 4) Embedding the game/document
    To embed the game/document you need to find the address(URL) of the swf file (use the search for tutorial ^-^) such as: http://randomsite.com/game.swf
    then input embed tags: <embed src="http://randomsite.com/game.swf"></embed>
    to change height/width add elements into the embed tag: <embed height="520" width="270" src="http://randomsite.com/game.swf"></embed>
    you can find more tags/elements using a site called: http://google.co.uk

    Step 5) Finishing touches
    Test that everything works as planned.
    Think about the layout and other things in the site
    You can add many more things such as text boxes for custom values, advanced custom variables etc.
    You could make the website look nice to fit the trainer
    Add anything you like and you can even give me some credit if you wish

    I hope this helped!
    If you have any questions about it feel free to ask me about it.

  2. #2

    Join Date
    Jun 2011
    Posts
    17

    Re: How to make a html/javascript trainer.

    ~Aw man and I thought I was the only one to do it that way. It works great with most online multiplayer games. Then I save the whole page with the buttons and when I want to use or change something I edit the source in notepad++ before and ta daan. Nice tutorial anyway!

  3. #3
    Senior Member
    Join Date
    Oct 2008
    Location
    Having a rave in the UK!
    Posts
    1,706

    Re: How to make a html/javascript trainer.

    And this is how the Elements website trainer was made.

  4. #4
    Senior Member Dezlad's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    327

    Re: How to make a html/javascript trainer.

    Quote Originally Posted by Themanhunt
    And this is how the Elements website trainer was made.
    Yes! I finally made a tutorial on it :P I might even update that trainer

  5. #5
    Senior Member
    Join Date
    Oct 2008
    Location
    Having a rave in the UK!
    Posts
    1,706

    Re: How to make a html/javascript trainer.

    After i've done all my trainers, I may put all of my trainers and make them run with javascript and put them on a website of mine

  6. #6
    dberube4's Avatar
    Join Date
    Oct 2009
    Location
    In my dream....
    Posts
    637

    Re: How to make a html/javascript trainer.

    I think you can also past the code in the address bar (or whatever it is called). Like for battleon.

  7. #7
    Senior Member Dezlad's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    327

    Re: How to make a html/javascript trainer.

    Quote Originally Posted by Themanhunt
    After i've done all my trainers, I may put all of my trainers and make them run with javascript and put them on a website of mine
    Awesome, I can convert some over for you if you would like? Keep up the good work
    Quote Originally Posted by dberube4
    I think you can also past the code in the address bar (or whatever it is called). Like for battleon.
    Yes, you can. This was my original method then i added it to buttons and added it to a site for an in-browser trainer!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •