sm321
2012-03-04 14:19:27
I've made a script that uses DTMs to click a wizard robe top, and then a blue skirt. This is the script I have at the moment:
I compile it and get this error:
What do I do?
program RobeWithdrawer;
{.include SRL\SRL.simba}
var
Top, Bottom, X, Y:integer;
begin
SetupSRL;
Top:= DTMFromString('mbQAAAHicY2VgYOABYm4gloCyGZBoLiAWhdJyZklAkgkFGzFgAkYsGAwAYPUBaw==');
If FindDTM(Top, X, Y, MSX1, MSY1, MSX2, MSY2) then
WriteLn('We found the top!');
MMouse(X, Y, 7, 7);
If IsUpText('top') then
Mouse(x, y, 0, 0);
Wait(100);
Mouse(x, y, 0, 0);
end;
Begin
Bottom:= DTMFromString('mbQAAAHicY2VgYGAHYh4g5mCAAEYg5gViNiCWgMqBgLpbHZBkQsFGDJiAEQsGAwBjlQGD');
If FindDTM(Bottom, X, Y, MSX1, MSY1, MSX2, MSY2) then
WriteLn('We found the bottom!');
MMouse(X, Y, 7, 7);
If IsUpText('tom') then
Mouse(x, y, 0, 0);
Wait(100);
Mouse(x, y, 0, 0);
end.I compile it and get this error:
[Error] (18:20): Invalid number of parameters at line 17
Compiling failed.What do I do?