SRL Archive - OSR Help

Find Dtm Then check uptext


nfskid

2011-12-15 20:27:49

Im modifying a script and have it finding the DTM awesomely But every once in a while a npc moves to where it needs to click. Is there a way to findDTM and add in uptext?

Im thinking MMouse to x,y from DTM read uptext then Mouse the click?

YoHoJo

2011-12-15 20:35:34

You're thinking right, that's how you'd do it.
Q: What did you make a DTM of on the main screen?

nfskid

2011-12-15 20:40:24

Sweet Sweet. Thank You.
DTM for Soul wars chest

radiclerobby

2011-12-16 02:48:21

something like this.



if finddtm(stuff in here) then
begin
MMouse(x, y, 3, 3);
if(isuptext('ank'))then
begin
clickmouse2(true);
writeln('opened the bank');
end else
begin
clickmouse2(false);
if(chooseOption('ank'))then
writeln('opened bank');
else
writeln('we did not open bank');
end;
end;