maxzzz
2006-03-17 13:26:28
The problem is that I made a script for stringing, but I got a problem at the stringing itself. It drags the string to the right place but then it starts moving very crazy in right bottom corner or doesn't move.
This is the script:
This is the script:
procedure DragBs;
begin
MMouse(626, 336, 4, 4);
GetMousePos(x, y);
HoldMouse(x, y, true);
Wait(20+random(10));
MMouse(670, 436, 4, 4);
Wait(20+random(10));
GetMousePos(x, y);
ReleaseMouse(x, y, true);
end;
procedure StringsInBows;
var X, Y : Integer;
begin
DragBs;
if(InvFull)then
begin
repeat
ItemCoords(23); // returns coords of bow
CMouse(x, y, 5, 5, true); // Moves mouse to string and clicks left
wait(50+random(50)); // wait 50-100 ms
ItemCoords(24); // returns coords of string
CMouse(x, y, 5, 5, true); // Moves mouse to pos and clicks left
wait(50+random(50)); // wait 50-100 ms
Stringed:=Stringed+1; // obvious
until(Stringed=14+random(1));
end;
end;