jace808 Posted September 26, 2007 Share Posted September 26, 2007 (edited) I'm writing a game bot for 2moons. I'm almost done. It will use a HP pot when health is low, it will use a MP pot when MP is low, it will summon pet when pet's hp is low, it will attack the target the pet is attacking, and it loots the drops on the ground. This is the last thing I want to do to complete this. There are 3 squares on screen that you place your HP pots and MP pots in. I'm trying to figure a way that when it does not see the HP pot (because there is none) it does some other actions that basically teleport you home. ;No HP Pots = TP $coord = PixelSearch (17, 988, 18, 989, 0xBD616D, 1);HP slot empty? If @error then ControlSend("2Moons","","","{i}"); Open inventory sleep(1000) MouseClick ("right", 713, 510, 1, 0); Right click TP scroll Call("Terminate") endif The HP pot icon is about 10 pixels wide and 20 pixels high. The center of the icon is 18,989. I mean this seems pretty cut and dry to me. Color not there then do this. Edited September 26, 2007 by jace808 Link to comment Share on other sites More sharing options...
AlmarM Posted September 26, 2007 Share Posted September 26, 2007 I'm writing a game bot for 2moons. I'm almost done. It will use a HP pot when health is low, it will use a MP pot when MP is low, it will summon pet when pet's hp is low, it will attack the target the pet is attacking, and it loots the drops on the ground. This is the last thing I want to do to complete this. There are 3 squares on screen that you place your HP pots and MP pots in. I'm trying to figure a way that when it does not see the HP pot (because there is none) it does some other actions that basically teleport you home. ;No HP Pots = TP $coord = PixelSearch (17, 988, 18, 989, 0xBD616D, 1);HP slot empty? If @error then ControlSend("2Moons","","","{i}"); Open inventory sleep(1000) MouseClick ("right", 713, 510, 1, 0); Right click TP scroll Call("Terminate") endif The HP pot icon is about 10 pixels wide and 20 pixels high. The center of the icon is 18,989. I mean this seems pretty cut and dry to me. Color not there then do this. Dude I got a lvl 40 Summoner (Libido) and 2Moons is at the stat fun but later TOO much trainer... To help you... You can try: IF you want to use the HP pot: ;No HP Pots = TP $ClickLeft = "Left" $ClickRight = "Right" $coord = PixelSearch (17, 988, 18, 989, 0xBD616D, 1);HP slot empty? If @error then ControlSend("2Moons","","","{i}"); Open inventory sleep(1000) MouseClick ("right", 713, 510, 1, 0); Right click TP scroll Call("Terminate") endifoÝ÷ Ù8Z¶Ì¨º·(uäèºÇ>-jëh×6$ClickLeft = "Left" $ClickRight = "Right" MouseClick($ClickRight, x, y, 1, 0) ;Clicks Right at x,y I think you already know that but I dont know how to activate it when the HP pots are gone Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jace808 Posted September 26, 2007 Author Share Posted September 26, 2007 As stated I have it to use HP and MP pots and summons my spider when his hp is low. I just want to set it so when I run out of pots that I use scroll to get back to town. 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