SRL Archive - OSR Intermediate Scripting Tutorials

YoHoJo DTM VIDEO Tutorial! (Find objects in inventory etc on Runescape!)


YoHoJo

2011-11-19 04:57:32

My second Video Tutorial, this one teaches you how to create DTMs to find objects in your inventory/bank/equipped tab, etc!

Enjoy and post any questions here!

http://www.youtube.com/watch?v=SlS4q9MiFX4

Also check out my text/image tutorial at this thread:
http://villavu.com/forum/showthread.php?t=564

nielsie95

2011-11-19 05:56:32

Very cool, you're a pretty good tutor!
Nice how you actually explain the whole progress and test the DTMs.

Also fun to see someone using the DTM editor :)

YoHoJo

2011-11-19 06:00:25

:D Hey thanks Nielse!
Really means a lot that you watched (at least most) of it <3.
Thanks for the nice comment too made me happy reading it, glad you think so, I plan to release quite a bit more.
I have one more released on that channel too that people seemed to like.
Thanks for MAKING the DTM Editor!!

Bad Processor

2011-11-19 06:07:28

Nice! However, the YouTube video is called 'Scrupting tutorial'. Might want to to fix that.
– BP

YoHoJo

2011-11-19 06:09:42

I'm a terrible typist! Thanks!
E: Did it!

Swatarianess

2011-11-19 11:19:17

Cheers for this ^^ is there a way to link a database full of Images of RS images and load them onto the script and use them? Or would that over exert simba? like say i have rune scimi image on my Server host i want to take the image from the internet and use it into my script :(? or should it just be like a reader which reads the code?

Imanoobbot

2012-03-29 18:16:56

Great thing with your Youtube Channel. It is all helping me alot. Much easier to learn if you can see how it works. Keep up that good work!

mcbain

2013-01-05 01:58:18

Before i saw this thread i always thought you had to just type that long line of words out by yourself. hehe. Thank you so much for the tutorial! I can make DTMs that are perfect now. you rock :thumbsup:

2cool

2013-08-06 04:14:51

Iv been starting to use DTM's and when i use DTM's it moves the mouse to the item but it does not click, heres my script

program DTMTest;

{$i SRL\SRL.simba}


var
Magic, x, y:Integer;


begin

SetupSRL;

Magic := DTMFromString('mrAAAAHic42BgYKhlYmDoBOIqIC4A4jIgbgDiNiBuB+JZjAwMXUA8BYjnQfFMIJ4GxBOBWCIxCmgKIx6MG4gQ0ImsGwAMLAm+');
if FindDTM(Magic, x, y, MIX1, MIY1, MIX2, MIY2) Then

begin
writeln ('Yay we found it!');
MMouse (x, y, 7, 7);
If IsUpText('Short') then
ClickMouse2(mouse_Left)
End;

FreeDTM(Magic)

end.

PS. old school

Itankbots

2013-08-06 04:38:40

From: 2cool
Iv been starting to use DTM's and when i use DTM's it moves the mouse to the item but it does not click, heres my script

program DTMTest;

{$i SRL\SRL.simba}


var
Magic, x, y:Integer;


begin

SetupSRL;

Magic := DTMFromString('mrAAAAHic42BgYKhlYmDoBOIqIC4A4jIgbgDiNiBuB+JZjAwMXUA8BYjnQfFMIJ4GxBOBWCIxCmgKIx6MG4gQ0ImsGwAMLAm+');
if FindDTM(Magic, x, y, MIX1, MIY1, MIX2, MIY2) Then

begin
writeln ('Yay we found it!');
MMouse (x, y, 7, 7);
If IsUpText('Short') then
ClickMouse2(mouse_Left)
End;

FreeDTM(Magic)

end.

PS. old school

My best Guess (without running the code with it setup as i don't have an account with those items). Would be the uptext is failing, which is fairly common..Uptext can be fairly unreliable. I never tend to use it. Try commenting out the Uptext part, and see if it works correctly without it. If so, then try changing the uptext to something like "bow" or "hort" or "ort" etc…Something along those lines. Worst case scenario just ditch the uptext, you should be perfectly fine without it :)

p.S. next time please use Simba or Code tags around the script, easier to read/less space used

2cool

2013-08-11 15:12:01

From: Itankbots
My best Guess (without running the code with it setup as i don't have an account with those items). Would be the uptext is failing, which is fairly common..Uptext can be fairly unreliable. I never tend to use it. Try commenting out the Uptext part, and see if it works correctly without it. If so, then try changing the uptext to something like "bow" or "hort" or "ort" etc…Something along those lines. Worst case scenario just ditch the uptext, you should be perfectly fine without it :)

p.S. next time please use Simba or Code tags around the script, easier to read/less space used



Thank you!!!! that seemed to do the trick!

Itankbots

2013-08-13 12:47:30

From: 2cool
Thank you!!!! that seemed to do the trick!


Np man glad i could help :)