Sign in to follow this  
Followers 0
Dethredic

Help with Game Bot

6 posts in this topic

the game i want to make a bot for is called city jumper.

http://www.nationlocation.com/cityJumper.htm

i was wodering if there is a way to record what i do eg. wait 5 seconds the press the right arrow key(to jump a building.

this would be much faster than doing it the trial and error way.

if anyone can help me make a scritp the records the arrow keys and the time it waits between presses it would be appreated.


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites



Sleep(5000)

Send("{RIGHT}")

Oo.

To record? Cant you use the au3 recorder?


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

lol i know how to sleep and send and all the basics but no the au3 recorder doesn't record sleeps


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

U can try this edite each time as u go.

" sleep " Add or Make less.


Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Well you could make your own recorder for the arrow keys only.

something like (Not Tested):

HotKeySet("{RIGHT}","PressedRightArrow")
$RightArrowTimer = TimerInit()

While 1
 
    Sleep(100)

Wend

Func PressedRightArrow()

    FileWrite("Test.au3","Sleep(" & Round(TimerDiff($RightArrowTimer),0) & ")" & @CRLF)
    HotKeySet("{RIGHT}")
    FileWrite("Test.au3","Send(""{RIGHT}"")" & @CRLF)
    HotKeySet("{RIGHT}","PressedRightArrow")
    $RightArrowTimer =  TimerInit()

EndFunc

This only does the right arrow key. You will have to make similar functions for the other keys.

Hope it helps, Hallman

Edited by Hallman

Share this post


Link to post
Share on other sites

Hallman

wow man thanks

works perfectly!!!!!

exactly wat i needed


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0