Results 1 to 25 of 25

Thread: FindSymbol - Summoning Icon

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default FindSymbol - Summoning Icon

    Simba Code:
    procedure IdentifySummoningIcon;
    var
      summoning,x,y:Integer;
    begin
    Summoning := BitmapFromString(9, 8, 'meJw7cAAK5CK9f/7+aeETNX/+/AOo' +
            'QMgCJMWrZI0mlV7l+OLSEaAWPhE5NKnJm9YpVWcBNWJKaQdl+zX0A' +
            'mWB2tGkgG4ASgFJbmV+ZCmgaUAHABFQr3NiPhChmQYUAcoCNcIdCQ' +
            'DNvH2k');

      if FindBitmapSpiralTolerance(summoning,x,y,MMX1,MMY1,MMX2,MMY2,4) then
      begin
        writeLn('Found summoning Bitmap, clicking');
        MMouse(x,y,0,0);
      end;
    end;

    Tested it with 3 different locations, it worked all the time.

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Simba Code:
    procedure IdentifySummoningIcon;
    var
      summoning,x,y:Integer;
    begin
    Summoning := BitmapFromString(9, 8, 'meJw7cAAK5CK9f/7+aeETNX/+/AOo' +
            'QMgCJMWrZI0mlV7l+OLSEaAWPhE5NKnJm9YpVWcBNWJKaQdl+zX0A' +
            'mWB2tGkgG4ASgFJbmV+ZCmgaUAHABFQr3NiPhChmQYUAcoCNcIdCQ' +
            'DNvH2k');

      if FindBitmapSpiralTolerance(summoning,x,y,MMX1,MMY1,MMX2,MMY2,4) then
      begin
        writeLn('Found summoning Bitmap, clicking');
        MMouse(x,y,0,0);
      end;
    end;

    Tested it with 3 different locations, it worked all the time.
    that's misleading. My debug box said it was clicking. My mouse just moved without clicking

    but very nice(:

  3. #3
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    that's misleading. My debug box said it was clicking. My mouse just moved without clicking

    but very nice(:

    Lol :P
    I changed it to moving the mouse instead of clicking

  4. #4
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Nice I want to make a summ script and this would be useful
    Current Project: Retired

  5. #5
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default



    I see you Fakawi, hurry up and insert this

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Sin View Post


    I see you Fakawi, hurry up and insert this
    He can't.

    I will add the symbol as soon as I can, but not the function. It'll just work if you call FindSymbol.

    Also, I think there's a Runecrafting symbol now that appears near the mysterious ruins. If someone could make a bitmap for that as well that would be great.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    He can't.

    I will add the symbol as soon as I can, but not the function. It'll just work if you call FindSymbol.

    Also, I think there's a Runecrafting symbol now that appears near the mysterious ruins. If someone could make a bitmap for that as well that would be great.
    On it :P


    E*
    Runecrafting Icon -
    Simba Code:
    runecraft:= BitmapFromString(5, 6, 'meJxj3P6NqfVnSEgkEEWklHB6/gVy' +
            'mQW+Q0QYt38DIqAgRATIgItAdMFFgAqA2oEkRAQoCwDjDifZ');

  8. #8
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I found bitmaps to not work so accurate for finding MM symbols. That's why I've been using my own dual-color searching for symbols. Coh3n, what happens when a symbol is obstructed by Players/NPCs/Items or even other symbols? (Some have priority and overlap other symbols)

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    I found bitmaps to not work so accurate for finding MM symbols. That's why I've been using my own dual-color searching for symbols. Coh3n, what happens when a symbol is obstructed by Players/NPCs/Items or even other symbols? (Some have priority and overlap other symbols)
    There's a SymbolAccuracy variable you can set in SRL. That should take care of any discrepancies. By default it's set to 0.8 which I think means the symbol on the minimap needs to match the bitmap 80% or something. I usually set it as 0.4 when I used it in my scripts.

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

    Default

    Here you go:

    Simba Code:
    RuneCraftingBMP := BitmapFromString(15, 5, 'meJxjZGA4cOBAREpJY3M7U+tPxu3' +
            'fgAjICAmJBCKIOJABVMPIwMAIVgwR5/T8C1QGIZkFvsPVY1UMJOGG' +
            'A7VA1GMq1rawgQgCFQCVwdUD9QLFgbLIilV0teCGABFcPcRwoCxEM' +
            'QBG91kH');

    EDIT: Sin ninja'd me :/
    Last edited by Kyle Undefined; 03-05-2012 at 11:32 PM.
    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.


  11. #11
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Here you go:

    Simba Code:
    RuneCraftingBMP := BitmapFromString(15, 5, 'meJxjZGA4cOBAREpJY3M7U+tPxu3' +
            'fgAjICAmJBCKIOJABVMPIwMAIVgwR5/T8C1QGIZkFvsPVY1UMJOGG' +
            'A7VA1GMq1rawgQgCFQCVwdUD9QLFgbLIilV0teCGABFcPcRwoCxEM' +
            'QBG91kH');

    EDIT: Sin ninja'd me :/
    Gf.

  12. #12
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Here you go:

    Simba Code:
    RuneCraftingBMP := BitmapFromString(15, 5, 'meJxjZGA4cOBAREpJY3M7U+tPxu3' +
            'fgAjICAmJBCKIOJABVMPIwMAIVgwR5/T8C1QGIZkFvsPVY1UMJOGG' +
            'A7VA1GMq1rawgQgCFQCVwdUD9QLFgbLIilV0teCGABFcPcRwoCxEM' +
            'QBG91kH');

    EDIT: Sin ninja'd me :/
    he posted it 30 mins before you.
    i don't think that's being ninja'd, that's being granny'd :P

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

    Default

    Haha, I was looking at what size it needed to be. Plus, I'm at the office Mine fits in with the other sizes more than his does though
    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.


  14. #14
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Haha, I was looking at what size it needed to be. Plus, I'm at the office Mine fits in with the other sizes more than his does though
    just laughed, hard

  15. #15
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    just laughed, hard
    this!
    @Kyle -
    Not irl though
    Dissed by a 15 year old, //life

  16. #16
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    I found bitmaps to not work so accurate for finding MM symbols. That's why I've been using my own dual-color searching for symbols. Coh3n, what happens when a symbol is obstructed by Players/NPCs/Items or even other symbols? (Some have priority and overlap other symbols)
    What if there is a flag in front of your symbol? Any solution?
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  17. #17
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    I've added the Runecrafting symbol, but there's already 'summoning obelisk' and 'summoning store'.

  18. #18
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    There's no obelisk :$

  19. #19
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Simba Code:
    'summoning obelisk':
          begin
           SymbolBitmap := BitmapFromString(15, 5, 'beNpj42Nm4zt87CwE2SVP1' +
             'XaoKeidC0SeUTWfHj4AiixetgYoCCSBKuGKgSKVNc1AZXMO3AOpWf' +
             '8EqBiiEaIFrhioEigCRJPnrAAqBqJjl98BEVAlxFigGmSTIVqAtgM' +
             'VAI0FqgeSEBMwFQNVAo0FigPVgxjrnwB1Obj4IBQDAImMdLM=');
            result:= 10325360;
          end;
    Line 632 of symbol.simba.

  20. #20
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    eff, it wasn't there at the include :s

  21. #21
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    eff, it wasn't there at the include :s
    Huh? I got it from the include.

  22. #22
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    What if there is a flag in front of your symbol? Any solution?
    If just one of the inner-unique colors is found within a basic MM symbol then it's accurately found and sorted as it's own independent symbol.

    I just personally see how bitmaps could easily be broken. Bitmaps search for a certain colors (with tolerance to each color) and, correct me if I'm wrong here, but those colors must exist at very specific coordinates. So what happens if a few of those colors are blocked by something else on the map? Coh3n, the tolerance you're talking about, is it directed only towards color tolerance or also amount of pixels matched to the original bitmap? If that's the case then I've never heard of bitmaps being located in such a way. That's closer to a DDTM if you ask me.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  23. #23
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Huh? I got it from the include.
    It's in the include, just not on the list of valid arguments.

  24. #24
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    If just one of the inner-unique colors is found within a basic MM symbol then it's accurately found and sorted as it's own independent symbol.

    I just personally see how bitmaps could easily be broken. Bitmaps search for a certain colors (with tolerance to each color) and, correct me if I'm wrong here, but those colors must exist at very specific coordinates. So what happens if a few of those colors are blocked by something else on the map? Coh3n, the tolerance you're talking about, is it directed only towards color tolerance or also amount of pixels matched to the original bitmap? If that's the case then I've never heard of bitmaps being located in such a way. That's closer to a DDTM if you ask me.
    I'm not sure exactly. It uses FindDeformedBitmapToleranceIn, which returns an "accuracy" variable. It also has an "AllowPartialAccuracy" parameter. You'd have to look at the source to know for sure.

  25. #25
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Nebula View Post
    It's in the include, just not on the list of valid arguments.
    Fix'd.

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
  •