Hi thanks for reading
. I have a little problem.
. I am testing how DTM's work on simba. Why can't i use "If IsUpText('obe') Then"? It wont click the item if i use that IsUpText thing. And if i dont use it, it clicks the item but i want that IsUpText thing works but it just wont click. Sorry for bad explaining and for bad english
I need help please help. *EDIT* and im trying this with Runescape Oldschool 2007
Here's my code:
Simba Code:
program DTMtest;
{$i SRL/SRL.simba}
var
Robe, x, y: Integer;
procedure Click;
begin
Robe := DTMFromString('mbQAAAHicY2VgYOAGYl4gFgdiHgYI4ITSXEAsDMQcII6dI5BgRMFGDJiAEQsGAwBQSQEp');
If FindDTM(Robe, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
writeln('We found DTM from bank!');
MMouse(x, y, 5, 5);
If IsUpText('be') Then // HERE!! Whats wrong with this code?
Mouse(x, y, 0, 0, True);
wait(1000 + Random(550));
If FindDTM(Robe, X, Y, MIX1, MIY1, MIX2, MIY2) Then
begin
writeln('We found DTM from inventory!');
MMouse(x, y, 5, 5);
If IsUpText('op') Then
Mouse(x, y, 0, 0, True);
end;
end;
FreeDTM(Robe);
end;
begin
SetupSRL;
ActivateClient;
Click;
end.