Results 1 to 6 of 6

Thread: FindSymbol?

  1. #1
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default FindSymbol?

    Hi, I have been working on my smither script and Cut em 2it has been very nice and helped me get started. I'm trying to make it find the symbol of the anvil next to the bank. I wrote the code and Cut em 2it showed me where I messed up. Here is the code.
    SCAR Code:
    Procedure WalkToAnvil;
    begin
      if not FindSymbol(x, y, 'anvil') then
      begin
        Repeat
          i := i + 1;
          if (FindColorTolerance(x, y, 2699827, MMX1, MMY1, MMX2, MMY2, 15)) then
          begin
            Mouse(x, y, 0, 0, True);
            FFlag(4);
            Break;
          end;
        until(i = 10);
      end else if FindSymbol(x, y, 'anvil') then
      begin
        Mouse(x, y, 4, 4, true);
        FFlag(4);
      end;
    end;

    It will compile, run and terminate. It doesn't seem to find the symbol or anything. I have read up on alot of tuts and I am kind of getting the hang of it. Any help would be appreciated. =]

    Also, should I find the anvil using the colors of it, bitmaps, or something else?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Try making a DTM of it, to see if that works for you. Are you playing RS High or Low Quality?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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

    Default

    DTM's of symbols never work, as symbols change their outlines. What I suggest is lowering symbolaccuracy.

    So add at the beginning
    SCAR Code:
    SymbolAccuracy := 0.45;



    Should work!

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    DTM's of symbols never work, as symbols change their outlines. What I suggest is lowering symbolaccuracy.

    So add at the beginning
    SCAR Code:
    SymbolAccuracy := 0.45;



    Should work!
    Thank you so much! I remember reading about SymbolAccuracy but only thought it was needed if it was covered up. I will try it out. =]
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Sorry for double post but I got my other question fixed. I wasn't allowing the script to wait until scar had minimized...stupid me lol

    Anyways I have encountered another problem. My function for finding the anvil works but it doesn't. I'll explain, but here is the code first.

    SCAR Code:
    Function FindAnvil: Boolean;
    begin
      if(FindColorTolerance(x,y,2895152,msx1,msy1,msx2,msy2,3))then
      begin
        Mouse(x,y,2,2,false);
        Wait(100);
        if(IsUptext('nvil')) then
        begin
          GetMousePos(x,y);
          Mouse(x,y,0,0,true);
          Result :=True;
          Exit;
        end else
        Result :=False;
      end;
    end;

    Well it will find the color (or colors if you will) and right click on them. When it does right click on the anvil it doesn't click on the word anvil even though I have it set to. All I care about right now is to get it to at least click on the word anvil. Is there a better way of making sure it clicks on the anvil the first time like using a bitmap or something?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    Use FindObj its much faster and easier, read up about it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindSymbol
    By D1zl3 in forum OSR Help
    Replies: 31
    Last Post: 12-18-2008, 09:13 PM
  2. if (FindSymbol(x, y, 'HELP')) then ????HELP
    By P1nky in forum OSR Help
    Replies: 5
    Last Post: 10-06-2007, 08:15 AM
  3. Help With FindSymbol Please
    By FrÕzÑ_§ÕµL in forum OSR Help
    Replies: 5
    Last Post: 09-28-2007, 06:49 PM
  4. findsymbol
    By macromacro123 in forum OSR Help
    Replies: 7
    Last Post: 03-17-2007, 02:48 PM
  5. FindSymbol Help.
    By Hey321 in forum OSR Help
    Replies: 7
    Last Post: 02-08-2007, 04:05 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
  •