Results 1 to 7 of 7

Thread: Finding The Anvil

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default Finding The Anvil



    I'm having trouble getting my script to find the anvil above. I've tried making a TPA, that didn't work, I've tried using normal FCSpiralTolerance, that didn't work...Does anyone have an suggestions that could possibly work? A DTM or bitmap of it maybe?

    Thanks,
    Richard
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  2. #2
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well it seems to be the only greyish color there, so use this

    SCAR Code:
    FindObjTPA(x, y, 6391421, 10, 20, 10, 10, 1,['ith','nvil']); // What ever uptest is.

  3. #3
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    No, a TPA should work. Your just not making it right. Show us the one you made.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindObjCustom would work.
    Project: Welcome To Rainbow

  5. #5
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try this...

    SCAR Code:
    function FindAnvil(FAnvil: TPoint): Boolean;
    var
      AnvilColors, Anvil: TPointArray;
      Anvils: T2DPointArray;
      I, C: Integer;
    begin
      FindColorsSpiralTolerance(MScX, MScY, AnvilColors, 5131860, MSx1, MSy1, MSx2, MSy2, 30);
      if (Length(AnvilColors) < 1) then
        Exit;
      Anvils := SplitTPA(AnvilColors, 10);
      C := High(Anvils);
      SetArrayLength(Anvil, C + 1);
      for I := 0 to C do
        Anvil[I] := MiddleTPA(Anvils[I]);
      for I := 0 to C do
      begin
        MMouse(Anvil[I].X, Anvil[I].Y, 5, 5);
        Wait(50 + Random(50));
        if (IsUpText('..........???')) then
        begin
          GetMousePos(FAnvil.X, FAnvil.Y);
          Result := True;
          Exit;
        end;
      end;
    end;

    Use as:
    SCAR Code:
    if (FindAnvil(TheAnvil)) then
    begin
      Mouse(TheAnvil.x, TheAnvil.y, 0, 0, True);//no randomness as my function has already done it, but if you move the mouse before you Click the anvil, add like 5, 5 randomness.
    ....
    end;

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    SCAR Code:
    Function FindAnvil: Boolean;
    Var
      Counter : Integer;
    begin
      If not (LoggedIn) then Exit;
      if FindObjTPA(x,y,3947585,11,-1,7,7,20,['options','1 mor','more opt']) then
      begin
      Repeat
        MMouse(x,y,2,2);
        Wait(100+random(200));
        begin
          GetMousePos(x,y);
          Mouse(x,y,2,2,false);
          AntiRandoms;
          Result := True;
          ChooseOption('amine');
          AntiBan;
        end;
          Inc(Counter);
      until ((Result = True) or (Counter = 20));
        if (Counter=20) then
        begin
          WriteLn('Couldn''t find Anvil');
          Logout;
          TerminateScript;
        end;
      end;
    end;

    This is what I have in mine. I have examine so that way I could see if it was finding the anvil or not. But I'm sure Timers will work better.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  7. #7
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im pretty sure it should be like this:

    SCAR Code:
    Function FindAnvil: Boolean;
    Var
      Counter : Integer;
    begin
      If not (LoggedIn) then Exit;
      Repeat
        if FindObjTPA(x,y,3947585,11,-1,7,7,20,['options','1 mor','more opt']) then
        begin
          MMouse(x,y,2,2);
          Wait(100+random(200));
          begin
            GetMousePos(x,y);
            Mouse(x,y,2,2,false);
            AntiRandoms;
            Result := True;
            ChooseOption('amine');
            AntiBan;
            Inc(Counter);
          end;
      until ((Result = True) or (Counter = 20));
        if (Counter=20) then
        begin
          WriteLn('Couldn''t find Anvil');
          Logout;
          TerminateScript;
        end;
      end;
    end;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help finding dtm..?
    By Runaway in forum OSR Help
    Replies: 11
    Last Post: 03-06-2009, 04:21 AM
  2. Finding an NPC... I Need Help!
    By mormonman in forum OSR Help
    Replies: 9
    Last Post: 12-06-2008, 05:36 AM
  3. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  4. Finding npc
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 08-20-2007, 01:57 AM

Posting Permissions

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