Results 1 to 2 of 2

Thread: TradeScreen

  1. #1
    Join Date
    Jan 2011
    Posts
    121
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TradeScreen

    This function, in amount.scar, needs updating.

    Here's my fix. Tested and working, just the first screen was broken.

    Simba Code:
    {*******************************************************************************
    function TradeScreen: Integer;
    By: ZephyrsFury
    Fixed 12/7/11 by Legoace
    Description: Returns 1 or 2 for the respective tradescreens, 0 if neither is open.
    *******************************************************************************}

    function TradeScreen: Integer;
    begin
      for Result := 2 downto 1 do
        case Result of
          2: if (CountColor(16776960, 127, 32, 373, 51) > 20) then Break;
          1: if (CountColor(2070783, 150, 12, 350, 28) > 20) then Break;
        end;
    end;

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Works for me. Committed, thanks.

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
  •