Results 1 to 3 of 3

Thread: Inventory.scar ~ ExistItem.

  1. #1
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Inventory.scar ~ ExistItem.

    Needs to be put back to

    SCAR Code:
    {*******************************************************************************
    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.

  2. #2
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Alright, rep++!
    ~Eerik~

  3. #3
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Fix'd

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •