SRL Archive - OSR Help

Need help with 07 !!! PLEASE HELP!


moore116

2013-07-05 08:36:37

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:

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.

Justin

2013-07-05 09:02:57

After you move the mouse, put something like

writeln(GetUpText);

See what it's reading

Sjoe

2013-07-05 09:08:07

You'll need the SRL-OSR include which u can install here(click me)

then replace {$i SRL/SRL.simba} with {$i SRL-OSR/SRL.simba}

Since SRL/SRL.simba is for Eoc Runescape

moore116

2013-07-05 10:47:17

From: Justin
After you move the mouse, put something like

writeln(GetUpText);

See what it's reading


that didnt do anything

moore116

2013-07-05 10:49:30

From: Sjoe
You'll need the SRL-OSR include which u can install it here click me

then replace {$i SRL/SRL.simba} with {$i SRL-OSR/SRL.simba}

Since SRL/SRL.simba is for Eoc Runescape


I did that but it still doesnt click the item it just hovers it and then it stops the script.. :S Any other ideas?

Ashaman88

2013-07-05 10:58:34

From: moore116
that didnt do anything


What do you mean it didn't do anything? It would have printed a line in your debug box showing what it thought uptext was.

moore116

2013-07-05 11:04:27

From: Ashaman88
What do you mean it didn't do anything? It would have printed a line in your debug box showing what it thought uptext was.


well i cant explain it… this is my debug box
—————————
We found DTM from bank!

Successfully executed.
—————————

It just printed blank line :confused:

Rich

2013-07-05 11:06:16

Could you show us what you're running now, after Ashaman's suggestion?

moore116

2013-07-05 11:24:46

I think i got it now :) Thanks for ur help everyone!