i'm using DTM's to locate images on the screen. the command finddtm(x,y...) saves its coordinates as x,y. my question is how can i make it find another after it has found that one. like search again, but pass over that one onto the next.
i'm using DTM's to locate images on the screen. the command finddtm(x,y...) saves its coordinates as x,y. my question is how can i make it find another after it has found that one. like search again, but pass over that one onto the next.
Are you using DTMs for mainscreen objects, or inventory objects?
Scripts: Varrock Smither! | Fight Caves Runner! | Kebab Buyer! | L.A.M.E. (Outdated)
Tutorials: SRL user-defined procedures | JaGex UID files | Printing your scripts
Applications: StartUp Notepad | SCAR Assistant
Misc: FREE Delphi 7 v2 | Official SRL Graphics
(Not entirely sure what you are using)
With SCAR, you'll have to limit the terrain where you want to search for the DTM so that it does not include the x, y you just found. And repeat this for every DTM where you will have to make the area more and more complex. This is generally not doable.
With Simba, you can just use FindDTMs, which will give you all the DTM's in the specified area.
E: Documentation, http://wizzup.org/simbadoc/scriptref/dtm.html I didn't add further descriptions yet but at least there's an overview of the functions online.
Last edited by Wizzup?; 09-09-2010 at 02:43 PM.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
this is not for rs. and thanks wiz i'll look into it
Here is how you can make your own FindAllBitmapsIn or FindAllDTMsIn, but probably not a good idea for large areas.
http://villavu.com/forum/showthread....map#post108319
There are currently 1 users browsing this thread. (0 members and 1 guests)