SRL Archive - OSR Help

Help with script :p


catanado15

2012-06-03 15:49:03

Hi Guys !

i was thinking what script i should do now while make some money and i got an idea… There is what it needs to do:

Find Aubury -> Trade Him -> Buy All Death Runes (repeat this while they respawn) !

That's it, pretty simple :p
So, my problems are :

The runes DTM's are all the same, i think;
It can't find text;
It needs to scroll down the shop screen to find the death runes;
And finnally it need to FIND them, the rest is easy :p

I found a procedure/function called "ShopScreen", but i don't know how to use it :p :google:


All help would be great, ty :D

putonajonny

2012-06-03 18:52:27

From: catanado15
Hi Guys !

i was thinking what script i should do now while make some money and i got an idea… There is what it needs to do:

Find Aubury -> Trade Him -> Buy All Death Runes (repeat this while they respawn) !

That's it, pretty simple :p
So, my problems are :

The runes DTM's are all the same, i think;
It can't find text;
It needs to scroll down the shop screen to find the death runes;
And finnally it need to FIND them, the rest is easy :p

I found a procedure/function called "ShopScreen", but i don't know how to use it :p :google:


All help would be great, ty :D


I have a working version of this script (well at least it was working around a month ago) unless the shop screen has changed then you don't need to scroll around at all to find the runes, you just need some text recognition to know when more runes are in stock and then to buy some when they are

catanado15

2012-06-04 04:59:28

nice :p can i see ur script plz ? i only want to see what u use, because i want to make my script :o

catanado15

2012-06-04 09:06:12

no1 can helps ? :c

P1ng

2012-06-05 09:06:33

The runes DTM's are all the same, i think;
It can't find text;
It needs to scroll down the shop screen to find the death runes;
And finnally it need to FIND them, the rest is easy


1. If you use a central point with a colour on the rune i.e. the blue for a water rune/the white for a death rune you can make it such that it does not find other runes.
2. What text is it that you can't find?
3. Have a look into the shop screen as putonajonny said you shouldn't need to scroll to find the runes.
4. With the DTM made there are many functions built into the SRL include to find the runes for you.

Have a look through the beginner's tutorial section and give writing it up a crack, post your code here and I'm sure any number of the helpful and experienced scripters on this forum will be more than willing to help you out.

Some suggested tutorials are -
http://villavu.com/forum/showthread.php?t=76005 (How to find a moving NPC [Aubury])
http://villavu.com/forum/showthread.php?t=77691 (Making and using DTMs)

or alternatively if that doesn't help -
http://villavu.com/forum/showthread.php?t=68018 (A video tutorial on DTMs)

Best of luck ;)

catanado15

2012-06-05 17:05:42

script done :p was easy, but if i use it, of course i get banned :p no anti-bans, no failsafes, just a veeeeeery basic script