Results 1 to 6 of 6

Thread: FindSymbol help?

  1. #1
    Join Date
    May 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindSymbol help?

    ** Warning in GetSymbolColorIn: tree is not a valid name.**

    How is this possible. I went to the actual symbol.scar and it clearly says that I can use 'tree'. Can someone please tell me what I am doing wrong?

    Code:
    program New;
    {.include SRL/SRL.scar}
    var
    rx, ry : integer;
    begin
    if FindSymbol(rx,ry,'tree') then
    begin
    writeln('We found the tree symbol.');
    Mouse(Rx, Ry, 5, 5, true)
    end;
    end.
    -Greg

  2. #2
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I was getting the same error... But I made this up for ya:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var
    x, y : integer;
    Procedure FindTreeSymbol;
    Begin
      If FindSymbol(x, y, 'tree') then
        Begin
         writeln('We found the tree symbol.');
         Mouse(x, y, 5, 5, true);
        end;
    End;
    Begin
    SetUpSRL;
    FindTreeSymbol;
    end.
    Try that. It works for me.
    Last edited by All that is man; 04-03-2009 at 03:47 AM.

  3. #3
    Join Date
    May 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks it's working now.

  4. #4
    Join Date
    Mar 2009
    Location
    About six feet off the ground.
    Posts
    95
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Lightbulb

    That happens to me whenever I try:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var
      x, y: Integer;
    procedure Idle;
    begin
      while not IsKeyDown(chr(13)) do
        Wait(10);
        IsKeyDown(chr(13));
    end;
    procedure FindBank;
    begin
      if FindSymbol(x, y, 'bank') then
        begin
          MouseSpeed := 7;
          Mouse(x, y, 5, 5, true);
          WriteLn('Found bank. Clicking bank...');
        end else
      WriteLn('Not found. Exiting.');
    end;
    begin
      ClearDebug;
      SetupSRL;
      Idle;
      FindBank;
      WriteLn('Terminating script.');
    end.
    It makes some kind of error in SRL/SRL.scar come up...
    I can't show exactly what error it gives me because I don't have SCAR on this computer... I'll edit it later with the error message if I have to.
    Last edited by zeeky111; 04-03-2009 at 02:44 PM. Reason: Error in script transferral
    ~Zeek
    Last major script: November 2009
    Attempted to rejoin: January 2011
    Rejoining: [][][][][]
    Current task: writing basic alching script

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

    Default

    Go to symbol.scar in the core file in SRL and change line 655 to

    if (BitmapToString(SymbolBitmap) <> '') and (Color <> 0) then
    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

  6. #6
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by greg3507 View Post
    Thanks it's working now.
    Mhm, no problem.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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