SRL Archive - SRL Bugs

Inventory.scar ~ ExistItem.


Naike

2009-07-04 18:11:39

Needs to be put back to


{*******************************************************************************
function ExistsItem(i: Integer): Boolean;
By: WT-Fakawi
Description: Checks if item in inventory at specified position exists
*******************************************************************************}

function ExistsItem(i: Integer): Boolean;
var
x, y:Integer;
TB: TBox;
begin
GameTab(4);
TB := InvBox(i);
Result := FindColor(x, y, 65536, TB.x1 + 5, TB.y1 + 5, TB.x2 - 5, TB.y2 - 5);
end;


The new one have
If Not GameTab(4) then Exit;
instead…

Which made all the bank functions useless as the bank tab can't be found while the bank is opened.

Heavenzeyez1

2009-07-04 18:12:21

Alright, rep++! :)
~Eerik~

ZephyrsFury

2009-07-04 18:40:32

Fix'd