SRL Archive - OSR Help

Help: Scroll and search all items in bank?


johnbrown8976

2012-05-15 08:09:26

hi,
I have been trying to implement scrolling the bank items, one row at a time, and searching the object (DTM, TPA, BMP, or whatever).
It seems to be a useful one time function, because runescape remembers the last bank position.

Does SRL have something predefined to perform such action? Or, do I have to create my own Procedure?

Rich

2012-05-15 09:43:48

If you know what the object is called, then SearchBank will do fine.
SearchBank('Willow Logs')

Sin

2012-05-15 10:02:01

IIRC, Home or Flight (one of those two) made a function for this.

Rich

2012-05-15 10:18:49

Check this out.

johnbrown8976

2012-05-15 23:19:32

From: Rich
If you know what the object is called, then SearchBank will do fine.
SearchBank('Willow Logs')


Thanks a lot. It works!!!

I am searching for "Maple logs"
However, I was worried that "typing the search keywords every time you withdraw items might seem bot like."
For easiness, I just dragged the "Maple logs", and put it in a new tab, and selected that tab. So, everytime I bank again, "Maple logs" is visible.

Is there other ways we can scroll to the position of "Maple logs" using one time search function?
Please forgive me, if I am being too difficult.
Appreciate your cooperation.

Itankbots

2012-05-21 20:09:28

Its easiest to just put the logs in the First slot in bank, or in a different tab, Click rich's link though, it has this in it.

function SearchBankEx(var X, Y : Integer; Item : string; TextOrDTM : Integer) : Boolean;


Searches for bank for Item. If Item is exact name, set UseDTM false and set DTM
as 0, else set it true and DTM is the name of your DTM. If not UseDTM, will
return true on item existing in bank slot 1, else will return true on DTM being
found. X, Y will be where it's found.