Results 1 to 4 of 4

Thread: CloseShop ?

  1. #1
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default CloseShop ?

    well, i'm doing a script which opens and closes a shop and i didn't find anything like "CloseShop", so i jsut thought i'd post this; did i mis it somewhere?

    SCAR Code:
    Procedure CloseShop;
    begin
      if ShopScreen then
        Mouse(482, 38, 7, 7, true);
    end;

    don't worry about the randomness, it's within the shop's "closing" cross/square.

    edit: also, there's this missing in amount.scar:
    SCAR Code:
    // * procedure ShopSwitchTab(name:string);        // * by Rasta Magician


    re-edit: well since no dev has posted yet:
    SCAR Code:
    function ShopScreen: Boolean;
    begin
      Result := (GetColor(248, 303) = 2070783);
    end;

    Color Picked: 3358280 at (248, 303)
    Fagex move it a pixel.
    Color Picked: 2070783 at (249, 303)



    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #2
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    There is a procedure/function called closescreen or something like that which closes any window in RuneScape I think.

  3. #3
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    {*******************************************************************************
    function CloseWindow: Boolean;
    By: Solemn Wishes, Starblaster100 and ZephyrsFury
    Description: Closes any open windows.
    *******************************************************************************}
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    ShopScreen and ShopSwitchTab are both broken in Pub SRL. Been fixed for a while though, just hasn't been commited for some reason.

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
  •