Results 1 to 16 of 16

Thread: Symbol trouble

  1. #1
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Symbol trouble

    Well, I posted something similar under zephy's map walking guide, but it has to be approved first, problem is that I am quite unpatient, and it will probably not get approved anyway(for some reason they never do ), so I decided to post it here (sorry if this counts as spamming of any sort, but like I said, I can get unpatient):

    SCAR Code:
    SymbolAccuracy := 0.5;
      If not (FindSymbolIn(x, y, 'quest', mmx1, mmy1, mmx2, mmy2)) Then
        Begin
          Writeln('There are no Quest symbols here, wrong place');
          Writeln('Error : Reason1 (Wrong Location)');
          TerminateScript;
        end;
      If (FindSymbolIn(x, y, 'quest', mmx1, mmy1, mmx2, mmy2)) Then
      begin
        Mouse(x,y,2,2,true);
      end;
    end;

    Well, the symbol is completely free of people, and I can see it on the minimap, but still it never finds it, can you please tell me what is wrong with it?

    Thanks a lot for your help in advance,
    Stur Pure
    There is nothing right in my left brain and there is nothing left in my right brain.

  2. #2
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    SymbolAccuracy := 0.5;
      If not (FindSymbol(x, y, 'quest')) Then
        Begin
          Writeln('There are no Quest symbols here, wrong place');
          Writeln('Error : Reason1 (Wrong Location)');
          TerminateScript;
        end else
          Mouse(x,y,2,2,true);
    end;

    Try it like that, as your searching the whole minimap anyway no need for FindSymbolIn, although it should have worked. Last time i had that problem was due to the map still moving a pixel when the search started.

  3. #3
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    EDIT: Oh, well, Psychor was faster.

    As for your question: Increasing SymbolAccuracy won't do the trick?
    This sentence is false.

  4. #4
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry, I tried it, same result, no matter what symbol or accuracy I choose, any suggestions on what might/could be wrong?
    There is nothing right in my left brain and there is nothing left in my right brain.

  5. #5
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try this
    SCAR Code:
    function FSymbol(Symbol: String; Times: Integer; Click: Boolean): Boolean;
    var
      i: Integer;
    begin
      if(not (LoggedIn))then
        Exit;
      repeat
      begin
        if(FindSymbol(Symbolx, Symboly, (Symbol)))then
        begin
          if(Click)then
            Mouse(Symbolx, Symboly, 2, 2, true);
          FFlag(0);
          Result := True;
          Exit;
        end else
        begin
          Wait(1000 + Random(500));
          SymbolAccuracy := SymbolAccuracy - 0.1;
          Inc(i);
          if(i >= times)then
            Writeln('Symbol not found');
          Result := False;
        end;
      end;
      until(i >= Times);
      SymbolAccuracy := 0.8;
    end;
    For Example
    SCAR Code:
    FSymbol('quest', 5, True)
    I use that in all my scripts, and seems to do the trick for me. The number is the amount of times it will try finding it, each time it doesn't it will lower the accuracy by 0.1

  6. #6
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doesn't work either, could there be something wrong with the basic symbols?
    There is nothing right in my left brain and there is nothing left in my right brain.

  7. #7
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Post entire script please?
    ColorToleranceSpeed may mess up if you have used it, or SRL function what uses it...
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  8. #8
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *sniff* Well, I was hoping to use at as a function in my script which would totaly surprise everyone, but i guess I have no choice, or it will never be ready. XD

    SCAR Code:
    /////////////////////////////////////////////////////////////////////
    //// FindDukeDoor(var rx, ry: Integer; Click: Boolean): Boolean; ////
    ////                                              *By Stur Pure* ////
    ////=============================================================////
    //// This Function will search for the color red within the given////
    //// Parameters, so it will only be able to find the actual door ////
    //// If it is found, it will create a box in which it will check ////
    //// for a quest symbol, which should be there. If it isn't found////
    //// then it isn't the right door, and you are standing in a     ////
    //// wrong spot, and it will make one last attempt to get into   ////
    //// the right place, if that still won't work, it will terminate////
    //// the script and send you a message saying it did not work    ////
    ////=============================================================////
    //// Please post feedback of this function, or any advice for it ////
    /////////////////////////////////////////////////////////////////////

    Program Test;
    {.include srl/srl.scar}
    Var
      x, y: Integer;

    Function FindDukeDoor(var rx, ry: Integer; Click: Boolean): Boolean;
    Var
      sx, sy, x, y, x1, y1, x2, y2, FlagBMP, count: Integer;
    Begin
      Wait(3000);
      FlagBMP := BitmapFromString(30, 29, 'beNr7/38UjILBDhgYYo0Fa' +
           'WEsTUwGG0t9k2HGUtlkJGOpaTKqsVQzGcNYWqWN//+PhbGMmjxq8r' +
           'AxeRSMAioAADDjvkI=');
      Symbolaccuracy := 0.5;
      RoadColor := FindRoadColor;
      MakeCompass('N');
      LoadSymbolBitmapColor('Quest');
      x1 := 632;
      x2 := 662;
      y1 := 20;
      y2 := 50;
      If not (FindColor(sx, sy, 255, x1, y1, x2, y2)) Then
      begin
        RadialWalk(RoadColor,200,170,72,1,-1);
        Wait(200);
        FFlag(0);
      end;
      If (FindColor(sx, sy, 255, x1, y1, x2, y2)) Then
      Begin
        x1 := x - 5;
        x2 := y - 8;
        y1 := x + 15;
        y2 := y + 15;
        If not (FindSymbolIn(x, y, 'quest', x1, y1, x2, y2)) Then
        Begin
          Writeln('There are no Quest symbols here, wrong place');
          Writeln('Error : Reason1 (Wrong Location)');
          TerminateScript;
        end;
        If (FindSymbolIn(x, y, 'quest', x1, y1, x2, y2)) Then
        Begin
          Writeln('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
          Writeln('!!!==========#Function Success#=========!!!');
          Writeln('!!!=======Found door at ' + IntToStr(sx) + 'x and ' + IntToStr(sy) + 'y=======!!!');
          Writeln('!!!===Please Inform Me If This Worked===!!!');
          Writeln('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
          Result := True;
          If (Click = True) Then
          Begin
            Mouse(sx, sy, 0, 0, True);
            Wait(150);
            FFlag(0);
          end;
        end;
      end else
      begin
        If not (FindSymbolIn(x, y, 'quest', mmx1, mmx2, mmy1, mmy2)) Then
        begin
          Writeln('There are no Quest symbols here, wrong place');
          Writeln('Error : Reason1 (Wrong Location)');
        end;
        If (FindSymbolIn(x, y, 'quest', mmx1, mmx2, mmy1, mmy2)) Then
        begin
          repeat
            Mouse(x,y,0,0,true);
            Wait(200);
            If Not FindBitmap(x,y,FlagBMP) then
            begin
              x := x - 2;
              y := y - 2;
            end;
          Count := Count + 1;
          until (FindBitmap(x,y,FlagBMP)) or (Count >= 10);
          FFlag(0);
        end;
      end;
      FreeBitmap(FlagBMP);
    end;

    begin
      FindDukeDoor(x,y,true);
    end.
    Now please, I am not yet ready for critisism, this one function is not yet completed, and is only an idea of what it should look like later on.
    There is nothing right in my left brain and there is nothing left in my right brain.

  9. #9
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Your or my logical thinking is totally off...how can you find quest symbol there where is red color? Basically there is red color on/in/next to quest symbol?

    If that sounded stupid then you want to make parameters bigger than these
    SCAR Code:
    x1 := x - 5;
        x2 := y - 8;
        y1 := x + 15;
        y2 := y + 15;
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  10. #10
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, yeah, (it is supposed to find a door, and if it was found, check around it if there is a quest symbol, if not, then it has found the wrong door, and teh real door is covered by a quest symbol, but the parameters don't seem to be the problem, because it doesn't work like this either:
    SCAR Code:
    program DoesNotFindSymbol;
    {.include srl/srl.scar}
    var
      x,y:integer;
    Begin
      SymbolAccuracy := 0.2
      If FindSymbolIn(x, y, 'quest', mmx1, mmy1, mmx2, mmy2) then
      begin
        Writeln('found')
      end;
      If not FindSymbolIn(x, y, 'quest', mmx1, mmy1, mmx2, mmy2) then
      begin
        Writeln('not found')
      end;
    end.
    I always get a message Not Found in the debug box, even though the symbol is uncovered and on the minimap, so there seems to be a different probelm...
    There is nothing right in my left brain and there is nothing left in my right brain.

  11. #11
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    This may sound stupid, but are you using rev 11? Also, try with other symbols just to make sure it isn't the quest bitmap being wrong (after all, I'm sure that must be one of the least used one's, so would go unnoticed for a while if Jagex slightly changed it).

  12. #12
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, I am using rev 11, and yes, I have tried it with a few other symbols, including Bank and Tree symbols...
    There is nothing right in my left brain and there is nothing left in my right brain.

  13. #13
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Have you got your monitor color set to 32 bit? If it's set to 16 bit then it may be having trouble finding bitmaps.

  14. #14
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, it is at 32 bit
    There is nothing right in my left brain and there is nothing left in my right brain.

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

    Default

    Try getting rid of the symbol acuracy???

  16. #16
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Already did, no change, sorry
    There is nothing right in my left brain and there is nothing left in my right brain.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Symbol Help
    By steth1010 in forum OSR Help
    Replies: 6
    Last Post: 05-04-2007, 12:21 AM
  2. Symbol Name
    By 3Garrett3 in forum OSR Help
    Replies: 3
    Last Post: 03-31-2007, 05:43 PM
  3. clicking the quest symbol then the bank symbol
    By RudeBoiAlex in forum OSR Help
    Replies: 7
    Last Post: 03-22-2007, 11:14 PM

Posting Permissions

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