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.
Code:
;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
I mean this seems pretty cut and dry to me. Color not there then do this.






