SRL Archive - SRL Suggestions

function ExistsBankItem(Slot: Integer): Boolean


Runaway

2012-07-07 17:02:02

I posted this in Mat's WithdrawBankS suggestion, but I figured I would just make a separate suggestion thread for it.


function ExistsBankItem(Slot: Integer): Boolean;
var
x, y: Integer;
Box: TBox;
begin
if not BankScreen then
Exit;
Box := BankIndexToMSBox(Slot);
Result := FindColor(x, y, srl_outline_black, Box.x1, Box.y1, Box.x2, Box.y2);
end;

Le Jingle

2012-07-07 17:43:38

I like it!, this way (i think) when you somehow obtain a blank bank space, and you are suppose to withdraw from it, it'll be noticeably empty (to simba I think) on the first try.
Nonetheless, it's just as handy as the exists item for the inventory imo!

Kyle Undefined

2012-07-08 12:54:20

Simple and to the point, nice :)