Results 1 to 10 of 10

Thread: Finding an NPC... I Need Help!

  1. #1
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default Finding an NPC... I Need Help!

    i need to find and trade with "hieronymus avlafrim" at the gnomecopter place... i don't know how to do tpas... i want to be able to autocolor this guy and the deposit box by him!(so i need help with that too)

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Send me a picture please. Or add me MSN
    whiteboysherman@hotmail.com

    -Shermanator
    Current Project: All In 1 Falador Script - 20% DONE

  3. #3
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    umm the pics are too big to attach here...emailing

  4. #4
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Mormonman, Upload to imageshack.us

    Then use the image tags.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  5. #5
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default





    thanks LeeLokHin

  6. #6
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Does he move? If he doesn't, you could probably try to find the colour of the banana, then move the mouse op 20 pixels from there.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  7. #7
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    the camera moves.... so going up 20 wouldn't always work.... i kinda want to learn to use failsafes for stuff too...

    here i will post the script i am using this for here and you can look at it and tell me what i need to learn!


    SCAR Code:
    program BucketBuyer;
    {.include SRL/SRL.scar}
    var
      x, y : Integer;
      WaterBucketDTM : Integer;
    procedure BuyWaterBucket;
    begin
      WaterBucketDTM := DTMFromString('78DA63F466606070654001C5D1FA0CBF80342' +
           '310FF0702C66020C38A010D30229140DA0548F811501302243C09' +
           'A8710212F604D480DC1C805F0D00FCCA096D');
      if (FindDTM(WaterBucketDTM, x, y, MSx1, MSy1, MSx2, MSy2)) then
      begin
        Wait(800+random(150));
        Mouse(x, y, 3, 3, False);
        Wait(800+random(150));
        if ChooseOption('X') then
        begin
         Wait(800+random(150));
         TypeSend('123');
         Wait(800+random(150))
        end;
      end;
    end;



    procedure WalkToDepositBox;
      begin
        LoadSymbolBitmapColor('bank')
        if FindSymbol(x, y, 'bank') then
        begin
          Wait(4000+random(150));
          Mouse(x,y,4,4, True);
          FFlag(1);
          Wait(1000+random(150));
        end;
      end;
     



    procedure OpenDepositBox;
       begin
         if (FindColorSpiralTolerance(x, y, 6382171, 10, 10, 520, 340, 6)) then
         begin
           Wait(1000+random(150));
           Mouse(x, y, 3, 3, False);
           Wait(1000+random(150));
           ChooseOption('Deposit');
           FFlag(2);
           Wait(1000+random(150));
         end;
       end;


    procedure DepositBucket;
      begin
        WaterBucketDTM := DTMFromString('78DA63F466606070654001C5D1FA0CBF80342' +
           '310FF0702C66020C38A010D30229140DA0548F811501302243C09' +
           'A8710212F604D480DC1C805F0D00FCCA096D');
        if (FindDTM(WaterBucketDTM, x, y, MSx1, MSy1, MSx2, MSy2)) then
        begin
          Wait(1000+random(150));
          Mouse(x,y,3,3, False);
          Wait(1000+random(150));
          ChooseOption('All');
          Wait(1000+random(150));
        end;
        FreeDTM(WaterBucketDTM);
      end;
     
    procedure WalkToTrade;
      begin
        WaterBucketDTM := DTMFromString('78DA63F466606070654001C5D1FA0CBF80342' +
           '310FF0702C66020C38A010D30229140DA0548F811501302243C09' +
           'A8710212F604D480DC1C805F0D00FCCA096D');
        if (FindDTM(WaterBucketDTM, x, y, MSx1, MSy1, MSx2, MSy2)) then
        else
        LoadSymbolBitmapColor('shop');
        if FindSymbol(x, y, 'shop') then
        begin
          Wait(4000+random(150));
          Mouse(x,y,4,4, True);
          FFlag(1);
          Wait(1000+random(150));
        end;
      end;

    procedure MainLoop;
      begin
        MouseSpeed:= 15+random(3);
        ActivateClient;
        SetAngle(true);
        MakeCompass('n');
        BuyWaterBucket;
        WalkToDepositBox;
        OpenDepositBox;
        DepositBucket;
        WalkToTrade;
      end;
           
           
    begin
    ActivateClient;
    MainLoop;
    end.

    i haven't added a procedure to trade with this guy yet because i still need help...(i kinda want to use TPAs cuz they work better from what i have read)

  8. #8
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    A simple FindObjTPA should do it like

    SCAR Code:
    Function FindPerson : Boolean;
    Begin
      Result := FindObjTPA(x, y, 677127, 10, 2, 10, 10, 15, ['iero', 'mus']);
    end;

    FindObjTPA already uses advanced TPA's so you dont need to make a custom one.

  9. #9
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok here is mysolution

    Things you need to know first
    TPAs
    HSL Color

    1. Just make a function that gets a TPA of all hues that look like his green
    color

    2. for each point that is his color, check his right and left for a color with the hue and lightness of the grass beside him

    3. MMouse over the matching points... you will probably get him first try.
    ~ Metagen

  10. #10
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    A simple FindObjTPA should do it like

    SCAR Code:
    Function FindPerson : Boolean;
    Begin
      Result := FindObjTPA(x, y, 677127, 10, 2, 10, 10, 15, ['iero', 'mus']);
    end;

    FindObjTPA already uses advanced TPA's so you dont need to make a custom one.
    that makes FindObjTpa look pretty simple, I know what they x and y are for obviously and 677127 seems like the color, but what is the 10, 2, 10, 10, 15? are those points to search within and a tolerance? and the part behind it is the uptext. so I'm just wondering, what's the 10, 2, 10, 10, 15 part? I doubt you wanna search within (10,2) to (10, 10) that'd be to small and to high to the left.

    explaining it a tiny bit would make post so much better.

    EDIT: oops sorry bout the gravedig I thought 10/31 was november 31 because it's late for me, I thought it was a few days old, not a month and a few days.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  2. Gas finding help
    By Lancelot074 in forum OSR Help
    Replies: 9
    Last Post: 03-01-2008, 10:00 PM
  3. Finding npc
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 08-20-2007, 01:57 AM
  4. I need help with ENT finding
    By TravisV10 in forum OSR Help
    Replies: 23
    Last Post: 07-05-2007, 08:27 AM
  5. help with ent finding
    By Adamb_135 in forum OSR Help
    Replies: 4
    Last Post: 04-18-2007, 02:14 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
  •