SRL Archive - OSR Help

Hi, Im new in scripting and im not even scrping for rs any1 can help?


kriss1993

2013-01-29 02:44:23

Im wondering if any1 can explain me how DTMs exactly work can any1 explain me?
is it mesuring the lenght and color at each point? if it was I think Id get my script to work
however I have no idea how to use DTMs I ve just heared of it
and if ur wondering why im not using bitmaps well they just dosent work in my case
if theres any1 whos willing to help me with it let me know or add me to skype which is> KristenSro
thnx.

Chris!

2013-01-29 03:06:57

There are a few DTM tutorials in the Tutorial for Intermediates section!

I highly recommend this and this. There are a few more in the section I linked above.

Good luck.

kriss1993

2013-01-29 03:37:49

Well I dont have any programming exp at all at simba so its like total blank I cant get my DTM finder to work I wonder what am I doing wrong.
this is what I got so far.

program new;
{$Define Smart}
{$I SRL/SRL.Simba}
var
Plus5, x, y: integer;

begin
Plus5:= DTMFromString('mbQAAAHicY2VgYLjFCsF3kegWJgaGTiBuB+JGKL5wdg/DyeO7GC5cOMFw59oJhts3LjPwA/WjY0YsGAwAIWoTYg==');
SetupSRL;
FindDTM(Plus5, x, y);
MMouse(x, y, 0, 0);
end.

gives me an error for some reason but Ill look over the tutorial

thnx for the reply too.

kriss1993

2013-01-29 03:43:44

Anyway the script I wanna do is basicly very robotic and like I said b4 its not for runescape so I wont get banned for using it or anything
basicly what it is Mmouse, Clickmouse and terminate script if found DTM thats all I need
it shouldnt take more then 50 lines I wonder if any1 can help me out with it thnx.

Press Play

2013-01-29 05:14:48

From: kriss1993
Anyway the script I wanna do is basicly very robotic and like I said b4 its not for runescape so I wont get banned for using it or anything
basicly what it is Mmouse, Clickmouse and terminate script if found DTM thats all I need
it shouldnt take more then 50 lines I wonder if any1 can help me out with it thnx.

What game is it for? You might be able to use even simpler functions. Have a look here http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html#mouse-functions

kriss1993

2013-01-29 05:28:06

Ya been there on the mouse and keyboard part anyway I dont wanna type out the game name here.
btw if u wanna help me or can help me plz add me to skype which is KristenSro.

Olly

2013-01-29 16:43:02

FindDTM(Plus5, x, y); 

needs to be something like

if FindDTM(Plus5, X, Y, MSX1, MSY1, MSX2, MSY2) then
begin
writeln('Found DTM "plus5"');
MMouse(x, y, 0, 0);
end;

kriss1993

2013-01-30 01:06:42

Seems like the MSX1,MSY1… is for runescape inventory im not using it for runescape like said b4 anyway thnx for trying it didnt work.
SRL Compiled in 0 msec
Warning! You passed a wrong xe to a finder function: 764. The client has a width of 596, thus the xe is out of bounds. Setting the value to 595 (w-1) for now.
Successfully executed.

Chris!

2013-01-30 02:34:30

The warning that it's debugging is just occurring because the script is trying to do something outside the bounds of the client, so it just readjusts to the confines of the client window.

MSX1, MSY1, MSX2, MSY2 are for the main screen of RuneScape. I believe MM is for the mini map (don't rely on me for that information, I don't know them well).

rj

2013-01-31 20:37:05

From: kriss1993
Seems like the MSX1,MSY1… is for runescape inventory im not using it for runescape like said b4 anyway thnx for trying it didnt work.
SRL Compiled in 0 msec
Warning! You passed a wrong xe to a finder function: 764. The client has a width of 596, thus the xe is out of bounds. Setting the value to 595 (w-1) for now.
Successfully executed.


Make sure green arrow is dragged to the client

Ian

2013-01-31 20:52:33

From: rjj95
Make sure green arrow is dragged to the client


Green crosshairs, green arrow starts the script :)

kriss1993

2013-02-01 02:09:17

Ye I did that it didnt work Ill take longer look at it today after I get back home anyway thnx for ur support guys.