cradlefatal
2013-02-27 23:07:57
I am trying to get this to find item from bank and I get this error when it starts up can someone tell me what I'm doing wrong
[Exception: Range check error at line 20
The following DTMs were not freed:]
[Exception: Range check error at line 20
The following DTMs were not freed:]
program new;
{$DEFINE SMART8}
{$I SRL/SRL.simba}
{$i SPS/SPS.simba}
{$I SRL/SRL/misc/SmartGraphics.simba}
{$i SRL/SRL/misc/debug.simba}
{$i ObjectDTM\ObjDTMInclude.simba}
Var
Swordfish,x,y:integer;
begin
Swordfish := DTMFromString('78DA6394636260D8C5C8800C0A03CAC1344C9' +
'45108A8E60CAA1A06062654355298E660A85101F2F712506302E4' +
'EF27A04603C8DF8A5F0D0074D4069C');
if FindDTM(Swordfish,x, y,1, 1, 542, 442) then
writeln('Congratz! You have just found your first DTM!')
end. //The Name of the DTM
// The X and the Y to store the cords for the DTM.
const
function ObjDTM_WalkPath(Path:Withdrawx TStringArray; FlagDistance, PollRate,
Tries: Integer; CheckEndPoints, GroundLevel: Boolean): Boolean;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Member := True;
Players[0].Active := True;
Players[0].Pin := '';
end;
Procedure LoadDTM;
Begin
Swordfish := DTMFromString('78DA6394636260D8C5C8800C0A03CAC1344C9' +
'45108A8E60CAA1A06062654355298E660A85101F2F712506302E4' +
'EF27A04603C8DF8A5F0D0074D4069C');
if FindDTM(Swordfish,x, y,1, 1, 542, 442) then
end;
Procedure Withdrawx;
Begin
if FindDTM(Swordfish, x, y, MIX1, MIY1, MIX2, MIY2) then; // MI is the cords of the Invent
begin
MMouse(x,y,5,5); // Hovers over log
If Isuptext('Swordfish')then // If text up yew log it will click it
begin
mouse(x,y,5,5,true);
end else
Writeln('No DTM found'); // If cant find DTM it will say this.
end;
end;
Begin
Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;
ClearDebug;
SetupSRL; // MAIN LOOP
ActivateClient;
DeclarePlayers;
Swordfish; // CALL the loading first
Withdrawx;
end.
begin
end.