Hellian
2014-08-18 08:47:18
Im trying to make a dragon imp catcher for PkHonor, I got it where it will right click imp with find color tolerance an click catch imp using bitmap, but it keeps clicking imps without waiting for it to finish catching the one that it alrady clicked on. Im not sure how to script it to wait after clicking an imp.
Also its not very accurate at clicking the imps can someone help me with that also. I really want to learn to script.
This is what I have so far
Also its not very accurate at clicking the imps can someone help me with that also. I really want to learn to script.
This is what I have so far
program DragonImp;
{$i srl/srl.simba}
var
X, Y:Integer;
Dragon:Integer;
Procedure ClickImps;
begin
if FindColorTolerance(X, Y, 2703496, 2, 3, 515, 341, 15) then
MMouse(X, Y, 1, 1);
wait(randomrange(150, 250));
ClickMouse(X, Y, mouse_Right);
wait(randomrange(150, 250));
if FindBitmapToleranceIn(Dragon, X, Y, 2, 3, 515, 314, 145) then
begin
Mmouse(x, y, 1, 1);
ClickMouse2(mouse_Left);
wait(randomrange(150, 250));
end;
end;
begin
MouseSpeed := 15;
SetupSRL;
Dragon := BitmapFromString(137, 17, 'meJztVlsOwyAM43ZcYL+7/zGYt' +
'IoMyIMEQlmronygDGxi07D4escnnnhiKFIevoDympASxHYFHMOxok' +
'PGEIJGT6WDgNm35kt8J3egLi9fDiiYzGhutSa63rTt4W6N7/oxa+b' +
'L8RLWy5oZNEHDVAxrMtXDZA35BnEPkylfJgXFytbRbDGwAAJ0JCMO' +
'Z03Z6LDmIQ+cKZPyE9a3pikqnwbOP5gXHzgah9rVZafR1DjKrwbW4' +
'PUkAnYWU3SsqV+99vbyu5TIXAul16OJIzs31381Y9YIFJrjcfdqUh' +
'yS5TRr9KeChkM2rq7OZ1qzToT/tCbWT0NjWdPQyjze3nWWEAEiU5O' +
'i4cWGPIXsZo2aRWDnqojFHwku2fwkZH50zFyPb1pMfGs9ZPlUzZyY' +
'FI4oWQR2roobxPlFrWC8jTVHIVe3Zm8Vy/Wpu/21rNlbxVqJqG5/J' +
'vWKKj4bDS5s');
repeat
ClickImps;
until(false)
FreeBitmap(Dragon);
end.