Results 1 to 4 of 4

Thread: Amount.scar ~ CheckArea

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

    Default Amount.scar ~ CheckArea

    Don't work if you're in a bank after update..
    Needs to be put back to the old one
    SCAR Code:
    {*******************************************************************************
    function CheckArea(area: String): Boolean;
    By: masquerader streamlined by EvilChicken!
    Description: Checks if the given interface is opened.
    *******************************************************************************}


    function CheckArea(area: string): Boolean;
    begin
      case LowerCase(area) of
        'inv', 'inventory': begin
                                  Result := (BankScreen) or (ShopScreen) or (TradeScreen > 0);
                                  if (not(Result)) then Result := GameTab(4);
                               end;
        'shop': Result := ShopScreen;
        'bank': Result := BankScreen;
        'trade', 'your trade': Result := (TradeScreen > 0);
      else
        srl_Warn('CheckArea', Area + ' is an invalid option.', warn_AllVersions);
      end;
      if (Result = False) then
        WriteLn('PROBLEM: ' + area + ' interface not open');
    end;

    The new one had
    'inv', 'inventory': Result := GetCurrentTab = 4;

    Which would fail at Bank as the GameTabs are disabled.

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

    Default

    You are my hero, ^^
    Rep'ing again.
    ~Eerik~

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

    Default

    Quote Originally Posted by Heavenzeyez1 View Post
    You are my hero, ^^
    Rep'ing again.
    ~Eerik~
    Haha you can't rep the same person consecutively. D/w I'll help with that. <3 N1ke!

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

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Haha you can't rep the same person consecutively. D/w I'll help with that. <3 N1ke!
    Je, I got pwned.
    N1ke to dev, plz?
    ~Eerik~

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
  •