I think I know where the mistake is. Can you look through the code for this line:
change & to OR
it's written in Autoit. It's a very simple language to learn, I only had basic C++ lesson since high school but manage to learn it very fast
Code:
If getDarkElixir($x_default+1, $y_default+58) <> "" & getDarkElixir($x_default, $y_default+57) <> "" Then
Code:
If getDarkElixir($x_default+1, $y_default+58) <> "" Or getDarkElixir($x_default, $y_default+57) <> "" Then