From: blother
I obviously would need to use the bank for my script
-is there already a function for opening a bank?
-should i have the items in a set spot on the first tab of the bank (ie the first and second slot)
-can i use a DTM or color to find the items?
For making the shells
-should i just have a set spot in the inventory to click on the two items?
-can i use a DTM or color to click on them?
- There are a variety of bank opening procedures in the SRL include(see Bank.Scar for more detail]:
{*******************************************************************************
function OpenBankFast(Location: String): Boolean;
By: Wizzup? and Nielsie95 updated by N1ke! updated again by marpis
Last update: 7th December 2009
Description: Opens the bank.
Valid arguments are:
'feb', 'falador east bank'
'fwb', 'falador west bank'
'veb', 'varrock east bank'
'vwb', 'varrock west bank'
'db' , 'draynor bank'
'akb', 'al-kharid bank'
'eb' (Edgeville Bank)
'ctb', 'catherby bank'
'clt', 'camelot bank'
'nab', 'north ardougne bank'
'sab', 'south ardougne bank'
'ynb', 'yanille bank'
'ngb', 'north gnome bank'
'sgb', 'south gnome bank'
'wgb', 'warrior guild bank'
'fgb', 'fishing guild bank'
*******************************************************************************}
- The items should probably be in the main bank interface, visible to the user[script] eyes.[so no need for scrolling, tab switching is easier]
- You can use a DTM or color to find the items. Doesn't really matter, Color is a
usually better(in my opinion)[generally], however DTMs are great for generic items with the same shape.
Your best option would be to use DTMs, and then color as a failsafe..soo..
if not FindDTM(WhateverDTMGOESHERE, x, y, MSX1, MSY1, MSX2, MSY2)then
begin
if FindColorTolerance(x, y, COLOR, MSX1, MSY1, MSX2, MSY2, 5)then
MMouse(x, y, 2, 2);
if IsUpText('Pie dish')then
blah;
etc.
Just an example :).
These are some of the commonly used SRL coordinates for RS:
MS = Mainscreen = MSX1, MSY1, MSX2, MSY2
MM = Minimap = MMX1, MMY1, MMX2, MMY2
MI = Main Inventory = MIX1, MIY1, MIX2, MIY2