I just improved my alcher, but the problem is, is that after 5 or so clicks. It goes too far north and clicks the wrong spell. Why does it do that, and whats a good way to fix it?
I just improved my alcher, but the problem is, is that after 5 or so clicks. It goes too far north and clicks the wrong spell. Why does it do that, and whats a good way to fix it?
The thing with CastSpell(35) is that its not really humanlike...
When I alch without a bot, I don't move my mouse at all, with CastSpell(35) you do (randomisation).
You want it to click somewhere, which could be random, then continue clicking and alching at that coordinate? Like this?
SCAR Code:procedure Alch;
var
x, y : Integer;
begin
Mouse(coordx, coordy, ranx, rany, true);
GetMousePos(x, y);
wait(100);
Mouse(x, y, 0, 0, true);
wait(1000); //put whatever the time between alchs is, its def not 100.
repeat
Mouse(x, y, 0, 0, true);
wait(100);
Mouse(x, y, 0, 0, true);
alchs := alchs + 1;
wait(100); //put whatever the time between alchs is, its def not 100.
until(alched >= alchs); //alched = how many done, alchs = total
end;
Temporarily inactive.
Well, if you looked I have something similair.
SCAR Code:Procedure Navigation;
begin
Gametab(7);
HighAlch := BitmapFromString(8, 7, 'z78DA8D8C410E80300' +
'804BF4401518F4ACBFF9FA4662F18522387095966594CBB323DD3' +
'868D35EC74672710F96DA86CE0CC0485BCC9AB559D6C66A205D6E' +
'43FE30823CFAC57EC9D3BD35EFDD907F8DFAD0B7B9148EE');
if FindBitmapToleranceIn(HighAlch, x1, y1, MIX1, MIY1, MIX2, MIY2, 50)
then Cleardebug else
begin
TerminateScript;
writeln('HighAlch not found!')
end;
MMouse(x1,y1,5,5);
FreeBitMap(HighAlch);
end;
This determines the clicking spot, wiht a Bitmap.
SCAR Code:Procedure Alching;
begin
GetMousePos(x2,y2);
Mouse(x2, y2, 0, 0, true);
wait(1650+random(100));
Mouse(x2, y2, 0, 0,true);
wait(800+random(100));
AlchTimes:=AlchTimes + 1
end;
Perhaps the problem is, is that it keep doing "GetMousePos" which causes the mouse to move slightly?
--EDIT--
Moved the GetMousePos to the Navigation. Now it doesn't repeat that part and the mouse doesn't start acting weird. Thanks for helping.
There are currently 1 users browsing this thread. (0 members and 1 guests)