Results 1 to 10 of 10

Thread: FindDeformedBitmapToleranceIn

  1. #1
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindDeformedBitmapToleranceIn

    program New;
    var x,y,south:integer;
    acc: Extended;
    begin
    south:= BitmapFromString(3, 7, 'z78DA737271727572B130B130B33031' +
    '00030B670B470B67032460EE64EE62EE6480012C4D2C8D2C6 1BA9' +
    '04C201E000071941921');
    wait (10000);
    FindDeformedBitmapToleranceIn (south,x,y,931, 616,970, 633,20,1,acc);
    if acc>0,5 then writeln ('found');

    end.

    Why dont it work ?
    Can some1 rewrite it ?

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

    Default

    if acc>0.5 then writeln ('found');

    replace by

    if acc>0.5 then writeln ('found') else writeln('not found');

    and replace the 0,5 with 0.5

    for sure


    Also, I believe the coords are out of bounds, but I am not sure you are using this for RS...

    Other than that, othing wrong with the code...
    Try my FindObjectDeformed for "advanced" deformed finding
    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
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OKey i want to try iT but where to find it ?

  4. #4
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Another Problem Might Be...

    SCAR Code:
    south:= BitmapFromString(3, 7, 'z78DA737271727572B130B130B33031' +
    '00030B670B470B67032460EE64EE62EE6480012C4D2C8D2C6 1BA9' +
    '04C201E000071941921');
    wait (10000); // This is Waiting For 10 sec Change it To Wait(1000)
    FindDeformedBitmapToleranceIn (south,x,y,931, 616,970, 633,20,1,acc);
    if acc>0,5 then writeln ('found');

  5. #5
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tnx i know that its waiting for 10 sec

  6. #6
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program New;
    var x,y,south:integer;
    acc: Extended;
    begin

    south:= BitmapFromString(3, 7, 'z78DA737271727572B130B130B33031' +
    '00030B670B470B67032460EE64EE62EE6480012C4D2C8D2C6 1BA9' +
    '04C201E000071941921');
    wait (10000); // This is Waiting For 10 sec Change it To Wait(1000)
    FindDeformedBitmapToleranceIn (south,x,y,931, 616,970, 633,20,1,acc);
    if acc>0.5 then writeln ('found');


    end.


    Line 10: [Error] (10:69): Invalid number of parameters in script

  7. #7
    Join Date
    Mar 2006
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I couldn't find the command FindbitmaptolleranceIn in the srl manual, and since I've never used It I decided to re write the code for you, I wrote this quickly so bear with me if it doesn't work, anyways try plugging this in.

    SCAR Code:
    //Scripted using the latest version of SRL//
    //Download it from villu-reborn.com//


    Program New;
    {.include SRL/SRL.scar}



     var acc: Extended;
         south: Integer;


    //---------------------------------------------------------------------------//
    Procedure Loadbmps;
    Begin
    south := BitmapFromString(3, 7, 'z78DA737271727572B130B130B33031' +
    '00030B670B470B67032460EE64EE62EE6480012C4D2C8D2C6 1BA9' +
    '04C201E000071941921');
    end;

    Procedure something;
     Begin
       wait (10000);
          FindDeformed(x,y,south,931,616,970,633);
            if acc>0.5 then
         Begin
     writeln('found');
    end else
       Writeln('not found')
    end;


    //Main Loop//
    Begin
     SetupSrl;
     Loadbmps;
     ActivateClient;
     something;
    End.

    If it doesnt work pm me with FindDeformedbitmaptolerancein or whatever it was with the full list of vars and I'll try and help you out.

  8. #8
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Runtime Error] : Math error in line 124 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\BitMap.scar

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

    Default

    This is the first time I ever seen something like this.
    SCAR Code:
    var acc: Extended;
    Can someone explain what a extended variable is?

  10. #10
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Not a whole number, has decimal places, such as 2.5

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindDeformedBitmapToleranceIn
    By Olaf Forkbeard in forum OSR Help
    Replies: 9
    Last Post: 03-02-2009, 03:45 AM
  2. Replies: 6
    Last Post: 07-08-2007, 04:13 PM
  3. Question about FindDeformedBitmapToleranceIn
    By Rambozin in forum OSR Help
    Replies: 30
    Last Post: 05-05-2007, 11:13 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
  •