Results 1 to 13 of 13

Thread: ladder finding

  1. #1
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default ladder finding

    ok im writing a script and i need help on how to find a ladder. i want it to find the specified ladder on the MS then click it. thanks for any help.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    hmm. MainScreen you say? What kind of ladder? Wooden or Stone? I think you will need some kind of deformed or ColorSpiral scheme....
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  3. #3
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    hmm. MainScreen you say? What kind of ladder? Wooden or Stone? I think you will need some kind of deformed or ColorSpiral scheme....
    well i want to do pretty much the same thing as your MiningGuildRaper. just autocolor it at script startup so i can later go down it. and it is a wooden ladder

  4. #4
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I came up with this.
    SCAR Code:
    function LadderFind: integer;
    var
      lx, ly, ladder, tol: integer;
    begin
     //MakeCompass('S');

      ladder := BitmapFromString(19, 4, 'z78DAA5D1310EC4300844D12' +
        'B3103045C0627B9FF9152A45909BBDAE6D55FFA669A482F239EEE' +
        'A196D485C32E7A37E0642C2C3F599F9A2A707325A2EBD489B9F03' +
        '627BADB92F4E0F8A4C044F46000DD5DC93F559C3428071EB9BABB' +
        '122D16ACBBADFA39F502044F6035');

      tol := 15;
      while (tol < 50) do
      begin
        if (FindBitmapToleranceIn(ladder, lx, ly, msx1, msy1, msx2, msy2, tol)) then
        begin
          laddercolor := GetColor(lx, ly);
          Result := laddercolor;
          WriteLn('Ladder color is: ' + IntToStr(laddercolor) + ' | At cords: ' + IntToStr(lx) + ', ' + IntToStr(ly) + '');
          Exit;
        end else
          tol := tol + 1;
      end;
      if (Result = 0) then
        WriteLn('Can not find ladder!');
    end;
    And you can do something like
    SCAR Code:
    if not (FindMSColor(x, y, laddercolor)) then laddercolor:= LadderFind;
    Or you can just call it as a procedure to save the color as a variable.... Would this help?

  5. #5
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    yeah i think that will help. ill try it out and see if it works. now did you write that or is it in SRL cause ill credit you in script if you wrote it.

  6. #6
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I wrote that just before I posted it.

    EDIT: And I forgot to mention thats for wooden ladders, and if it doesnt find the ladder, raise the tolerance a little where it says "while do". If you needed it for a certain ladder, tell me where and ill fix the function for you.

  7. #7
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    I wrote that just before I posted it.
    oh ok thanks. ill try it tomorrow its too late right now, i g2g to bed.

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Check out SRL/misc/FaladorColorFinder, or any other colorfinder. Code is almost identical to Junior's.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  9. #9
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    Check out SRL/misc/FaladorColorFinder, or any other colorfinder. Code is almost identical to Junior's.
    ok its not for falador though. does that matter?

  10. #10
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where exactly are you looking for this ladder? Ill make another/new bitmap of the ladder for better finding.

  11. #11
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    Where exactly are you looking for this ladder? Ill make another/new bitmap of the ladder for better finding.
    thats ok ill just make one. and in your function is the bitmap from the MM or the MS? and would i be able to use the falador ladder finder for just any wooden ladder? or is the bitmap of the minimap?

    EDIT: ok nvm i ffigured out i cant use the fally ladderfinder for any ladder or it wouldnt be called the falador ladder finder lol.

  12. #12
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I dont really understand what you saying. That will find a ladder on the MS, but I got that ladder bitmap from the ladder(s) that go into the coal guild at fally.

  13. #13
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    I dont really understand what you saying. That will find a ladder on the MS, but I got that ladder bitmap from the ladder(s) that go into the coal guild at fally.
    yeah see i dont wanna go in the mining guild. but thanks lots for all the help junior. WT told me how to do it in a PM. thanks again Fawki.

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. My Home-made Jacob's Ladder
    By freyyr in forum Misc. Links and Programs
    Replies: 17
    Last Post: 05-13-2008, 08:40 PM
  3. Finding npc
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 08-20-2007, 01:57 AM
  4. stair/ladder and door and gate finding help plz???
    By RudeBoiAlex in forum OSR Help
    Replies: 2
    Last Post: 06-13-2007, 04:57 PM
  5. minimap ladder finding help
    By scarscaper4life in forum OSR Help
    Replies: 5
    Last Post: 01-07-2007, 03:08 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
  •