Mark xd
2014-05-03 07:31:12
Hello,
I want the bot to click a bitmap but the script stops before it clicks the bitmap.
my script looks like this:
it is for clicking "trade" after he right clicked the npc.
all regards, mark
I want the bot to click a bitmap but the script stops before it clicks the bitmap.
my script looks like this:
Program new;
{$i RSPS/srlRSPS.simba}
var
_server:_rsps_server;
X,Y:Integer;
Counter: Integer;
trade:Integer;
begin
_server.init(498, 'Server')
end;
Procedure thiev;
begin
Counter := 0;
repeat
if FindColorTolerance(X, Y, 5283759, 1, 1, 774, 537, 5) then
begin
Counter := Counter + 1;
mmouse(X, Y,1,1);
wait(2875); // waits.
ClickMouse(X, Y, mouse_Left);// clicks
wait(150);
end;
Until(Counter > 3);
if FindColorTolerance(X, Y, 2107, 1, 1, 774, 537, 5) then
begin
mmouse(X, Y,1,1);
wait(800); // waits.
ClickMouse(X, Y, mouse_Right);// clicks
end;
if FindBitmapToleranceIn(trade, X, Y, 1, 1, 774, 537, 145) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
MouseSpeed := 15;
trade := BitmapFromString(10, 9, 'meJz7/x8EGBgY3ENiMdF/UmT/IwE' +
'8sgxggFUWIoVLL1W4QAS3BZMLAAwNg2Q=');
thiev;
FreeBitmap(trade);
end.it is for clicking "trade" after he right clicked the npc.
all regards, mark