Tanjamo Posted August 3, 2009 Share Posted August 3, 2009 Hey Im fairly new to this program(I downloaded it last night) and Im writing my first script. Its for a game that is incredibly simple. Im writing the script as a bot, it is just going to be made to autoclick monsters to kill them. Ive got the script so it will already attack the monster and kill it and then resummon another monster. But you can only regain life when you are not fighting a monster. I was just wondering if there was anyway I could make the program look to my life bar to see how much life I have left, and set the bot to either delay until my life bar is full or run away from the monster if my life is getting to low during combat. I hope I have explained this well enough to get some help if I havent just let me know and I will try to explain more. Thanks. Link to comment Share on other sites More sharing options...
BrettF Posted August 3, 2009 Share Posted August 3, 2009 Welcome. I assume you are using Send to summon and kill monsters? To get the health you have two options. 1) If it is displayed, then use the pixel functions. 2) Read it from the memory (Probably a more precise method, but a little more complicated). Have a search in example scripts and the other forums for Memory Reading, using NomadMemory.au3 and the like. If you need any more assistance, please post your code. It will save us assuming things, and make it easier to diagnose your problem. Cheers, Brett >_< Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Info Posted August 3, 2009 Share Posted August 3, 2009 (edited) If you'll use the pixel functions, feel free to use Mouseclix. >_ Edited August 3, 2009 by Info 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