Originally Posted by
RogerHestlund
Thank you very much, this information is progress for me. I will continue my research and trying along regularly checking this thread for tips
Deeply thankful.
These are the lines you may have to change, to make 16:10 resolutions work (or any custom resolution). I am basing this off of 1.9.3.
Code:
RandClick("middle", Round(400*$x_ratio), Round(600*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;middle of courtyard [waypoint 3]
Line 187. You may have to adjust this final waypoint. Just change the 400 (x value) to 380, 370, etc etc until the mouse consistantly hovers over the cellar when you stop moving. You can also adjust the Y value if needed. For X value, the lower the number, the farther left the mouse will move. For Y value, the lower the number, the higher up on your screen it will click.
Code:
RandClick("left", Round(300*$x_ratio), Round(80*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;Entrance to cellar
Line 204. If you have gotten to the point where your mouse consistently hovers over the cellar door, but you seem to miss the click going in, just change the above to:
Code:
RandClick("middle", Round(120*$x_ratio), Round(1020*$y_ratio), 10*$x_ratio, 10*$y_ratio) ;moves to doorway leading to rare inside cellar
Line 237. You may have to change 120 and 1020 to coords that put you inside the door. When you are making your own coords, you dont need to use the above code exactly. You can simply use:
Code:
RandClick("middle", 120, 1020, 10, 10)
This says to click at 120 X, 1020 Y, with a 10 pixel random for each direction.
Line 239. Same as above.
Code:
RandClick("left", Round(230*$x_ratio), Round(416*$y_ratio), 120*$x_ratio, 5*$y_ratio) ;Random Click on the resume button
Line 348. If you are misclicking the Resume Game button, you may have to add in your own coords. For me personally i had to use
Code:
MouseClick("left",Random(55,276),Random(280,316),5)
55 = left, 276= right, 280= top, 316=bottom, 5 = speed the mouse will move. You may have to do this for your logout button as well, and possibly disconnect, and input limit error if they bring that back.
Code:
MouseClick("left", 1064*$x_ratio, 256*$y_ratio)
Line 645. You may have to adjust. Just make sure you click on the chest.
Code:
$MagicPixel = PixelSearch(1400*$x_ratio, 580*$y_ratio, 1915*$x_ratio, 890*$y_ratio, 0x182037, 2)
Line 782. You will most likely have to create your own sell area. For 1280x758 i had to use
Code:
$MagicPixel = PixelSearch(921, 420, 1257, 578, 0x182037, 2)
921=left, 420= top, 1257=right, 578= bottom. This is the proper search area for selling on my resolution to sell from the top 5 rows.
Line 759. Same as above.
To handle repairs i just added:
Code:
MouseClick("left",Random(350,369),Random(312,374)) ;Open repair window.
Sleep(Random(500,1000))
MouseClick("left",Random(84,287),Random(411,431)) ;Pay for repairs.
Sleep(Random(500,1000))
This is added to the end of Vendor Magic. Just add it around line 799. This will always repair you when you go to and sell.
Hope this helps anyone trying to convert the script to a different unsupported resolution.