Originally Posted by
Travincall
CAN ANYONE SOLVE THIS? He clicks on the opening of the cave but instead of going in it he just crashed into the wall. I figured out that if you middle click (bound to move) he just crashes but if you left click he will walk around the wall and go inside. So it sounds like its a simple fix I just need him to left click instead of right click. here is my script
baba123 - Pastebin.com
The code looks right to me. Code is located at lines 99 - 102 of your script. This is from the original script. Try replacing the entrance cellar location to this (Line 101):
Code:
MouseClick("left",Round(290*$x_ratio),Round(270*$y_ratio)) ;Entrance to cellar
Also add this back in if you are not running at 1920x1080 and change @Desktopwidth and @Desktopheight to whatever your resolution is. Code below replaces Lines 58-59 of your code.
Code:
$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY