secre555 Posted August 20, 2007 Share Posted August 20, 2007 Well, I'm relatively new to AutoIt and just getting to know the programming language. For my first script I thought I'd try out writing code for an online browser game. All you have to do in the game is click "Enter Arena", it'll take you to the arena, and then press "Fight monster", and it'll take you into combat. After that, you just have to repeatedly click "Attack" until the monster is dead and then pick up an item if they drop one. I would like to include a chicken function where if you get too low health, you will run from battle, however I have no clue how to do this. I really have no idea where to get started to tell you the truth. I was thinking perhaps I could use MouseClick (x, y) for most of it, except then there would be no way to chicken. Could anyone please lend me a helping hand? P.S. If this isn't the right forum just tell me so P.S.S. I've searched and read the helpfile, nothing there is helping me. Link to comment Share on other sites More sharing options...
Generator Posted August 20, 2007 Share Posted August 20, 2007 Please provide us with more information such as what's the game and some screenshot. Also look in PixelSearch(), MouseClick(), Do..Until, While..WEnd and give it a try yourself first. Link to comment Share on other sites More sharing options...
secre555 Posted August 20, 2007 Author Share Posted August 20, 2007 So far all I've gotten it to do is just click on "attack" repeatedly, hehe. And pixel search I really have no idea how to work in this type of situation. The game's called Ladder Slasher, I'll post a screeny tomorrow. (it keeps saying file too large even tho i saved as jpeg ><) Link to comment Share on other sites More sharing options...
Generator Posted August 20, 2007 Share Posted August 20, 2007 So far all I've gotten it to do is just click on "attack" repeatedly, hehe. And pixel search I really have no idea how to work in this type of situation. The game's called Ladder Slasher, I'll post a screeny tomorrow. (it keeps saying file too large even tho i saved as jpeg ><)Is it a web-based game or a game with it's own client, just keep reading the help file and experience with it. Look in my signiture for the Screenshot taker.Oh right, Welcome to AutoIt. Link to comment Share on other sites More sharing options...
secre555 Posted August 20, 2007 Author Share Posted August 20, 2007 It's just a web based game, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now