Results 1 to 7 of 7

Thread: Familiars

  1. #1
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Familiars

    What's the best way of selecting a familiar? Colour detection with find text?

    Also, how do I make sure that I only select my own familiar? Is that possible?

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Use the minimap icon
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How do I go from minimap icon to clicking the object?

    EDIT: Also, familiars do not show up on the minimap.
    Last edited by jSherz; 02-19-2012 at 02:33 PM.

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    summoning.simba:
    Simba Code:
    //-----------------------------------------------------------------//
    //--               Scar Standard Resource Library                --//
    //--                     Summoning routines                      --//
    //-----------------------------------------------------------------//
    // * Function  UsingFamiliar: Boolean;
    // * Function  GetSummonPoints: Integer;
    // * Function  InteractFamiliar: Boolean;
    // * procedure SetupSummoning;

    {*******************************************************************************
    Function UsingFamiliar: Boolean;
    By: Flight
    Description: Returns if we currently have a Summoning familiar.
    *******************************************************************************}

      Function UsingFamiliar: Boolean;
      Var
        X,Y: Integer;
      begin
        Result := FindColorTolerance(X,Y,11192179,695,130,720,155,20);
      end;

    {*******************************************************************************
    Function GetSummonPoints: Integer;
    By: Flight
    Description: Returns our current number of Summoning points remaining.
    *******************************************************************************}

      Function GetSummonPoints: Integer;
      Var
        Color: String;
      begin
        Result := Round(GetMMLevels('summon',Color));
      end;

    {*******************************************************************************
    Function InteractFamiliar: Boolean;
    By: Flight
    Description: Handles all interactions between our familiar,
                 returns true if successful.
    Options:
      -''      : Will left click on interaction tab
      -'Attack','Cast','Interact,'Renew','Take','Dismiss','Call','Details','Select'
    *******************************************************************************}

      Function InteractFamiliar(Option:String): Boolean;
      begin
        if (not LoggedIn) then exit;

        if UsingFamiliar then
        begin
          if (Option = '') then
          begin
            MouseBox(695,140,740,155,1);
            Result := True;
          end else
          begin
            MouseBox(695,140,740,155,2);
            if ChooseOption(Option) then
              Result := True
            else
              srl_Warn('InteractFamiliar', 'Incorrect option', warn_AllVersions);
          end;
        end else
          srl_Warn('InteractFamiliar', 'No familiar present!', warn_AllVersions);

        Wait(100 + Random(50));
      end;

    {*******************************************************************************
    procedure SetupSummoning;
    By: SRL
    Description: Declares Global Bitmaps.
    *******************************************************************************}

    procedure SetupSummoning;
    begin
    end;

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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

    Default

    @ Flight
    I looked at that awhile ago, I might add it to SRL skills. So be aware it might get added.
    (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.

  6. #6
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you very much!

  7. #7
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    @ Flight
    I looked at that awhile ago, I might add it to SRL skills. So be aware it might get added.
    Will surely keep an eye out for it. That'd be handy.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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