Ok first of all, Thanks swords for making an excellent bot.
Secondly the mana autopot didnt work so I changed the code a little bit to get it working on my comp. Here it is if anyone is interested - hope it helps.
Also instead of full mana when you start bot with F5, have it empty.
#include <GuiConstants.au3>
Opt("GUIOnEventMode",1)
HotKeySet("{F5}", "_Start")
HotKeySet("{ESC}","Terminate")
$ClickIt = 0
GUICreate("Auto-Potter", 200, 150)
GUISetOnEvent($GUI_EVENT_CLOSE,"Terminate")
$Checkbox_1 = GUICtrlCreateCheckbox("Auto-Pot HP", 20, 40, 150, 20)
$Checkbox_2 = GUICtrlCreateCheckbox("Auto-Pot MP", 20, 80, 150, 20)
GUISetState()
While 1
Sleep( 10 )
WEnd
Exit
Func _Start ()
$ClickIt = 1
While $ClickIt = 1
If BitAND(GUICtrlRead($Checkbox_1), $GUI_CHECKED) = $GUI_CHECKED Then
$correct_color = PixelGetColor( 30, 736 )
while 1
If $correct_color <> PixelGetColor( 30, 736 ) Then
Send('{F9}')
Sleep(1500)
EndIf
WEnd
Sleep(100)
EndIf
If BitAND(GUICtrlRead($Checkbox_2), $GUI_CHECKED) = $GUI_CHECKED Then
$correct_color = PixelGetColor( 53 , 722 )
while 1
If $correct_color = PixelGetColor( 53, 722 ) Then
Send('{F8}')
Sleep(1500)
EndIf
WEnd
Sleep(100)
EndIf
WEnd
EndFunc ;==>_Start
Func Terminate ()
Exit
EndFunc ;==>Terminate