Results 1 to 8 of 8

Thread: FindSymbol help...

  1. #1
    Join Date
    Apr 2012
    Location
    Canada, Bc
    Posts
    1,593
    Mentioned
    6 Post(s)
    Quoted
    356 Post(s)

    Default FindSymbol help...

    Simba Code:
    if(FindSymbol(x, y, Symbol_Water))then
            begin
              Message('Found the water symbol', True);
              break;
            end;

    I keep getting
    Unknown identifier 'Symbol_Water' at line 647

    Also if I try other Symbols, I get the same error.
    Ex Symbol_Quest

  2. #2
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Click two times on function in function list ,scroll up and you will see list of proper names

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

    Default

    Or just hold down co trol and click the FindSymbol all the names that you can use will be there most likely 'fountain' or something
    Current Project: Retired

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Off topic : Are there no skill minimap icons added? (i.e. the symbol for a mining pickaxe, a woodcutting tree symbol, etc.)

    On topic : just use 'water source' or 'water'

  5. #5
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    They are Strings, they need to be put within quotation marks ''

  6. #6
    Join Date
    Apr 2012
    Location
    Canada, Bc
    Posts
    1,593
    Mentioned
    6 Post(s)
    Quoted
    356 Post(s)

    Default

    Figured out what I was doing wrong
    Forgot to add ' ' around the Symbol_water, gosh cant miss that...

    EDIT: ninja'd
    Thanks abu, trail and error and fixed it

  7. #7
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    List of valid arguments.

    Simba Code:
    Valid Arguments are:
      - agility                  - furnace                    - rare trees, tree           -windmill
      - altar                    - gem stall                  - rest, resting spot
      - anvil                    - guide                      - sandpit
      - apothecary               - hair dresser               - saw mill
      - archery shop             - herbalist                  - scimitar shop
      - arrow                    - house                      - shield
      - axe shop                 - hunter store               - shop, store
      - bar                      - hunter training            - short cut
      - bank                     - jewelery                   - silk stall
      - candle shop              - kebab shop                 - silver stall
                                 - lodestone
      - churn                    - mace shop                  - slayer master
      - clothes shop             - magic shop                 - spice stall
      - cookery shop             - makeover mage              - spinning wheel, spin
      - cookery, cook            - mill                       - staff shop
      - crafing shop             - minigame                   - summoning store
      - dungeon                  - mining shop                - summoning obelisk
      - farming shop             - pet shop                   - sword shop
      - farming spot             - platebody shop             - tanner
      - fishing shop, fish store - plateskirt shop            - training dummy
      - fishing spot, fish       - portal (to player owned houses) - underground
      - food shop                - pottery, pot               - water source, water
      - fur trader               - quest                      - weave
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  8. #8
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    It's indeed a string. I've made my own custom function where you can edit the accuracy.

    Simba Code:
    function FindPortalByArrow:Boolean;
    var
      A, X, Y, ArrowSymbol: Integer;
      InputAcc, OutputAcc: Extended;

    begin
      ClickNorth(0);
      A:=0;
      WriteLn('Counted gray colors: '+IntToStr(CountColorTolerance(10798276, 173, 279, 352, 292, 1))+'');
      WriteLn('Counted red colors: '+IntToStr(CountColorTolerance(204, 208, 208, 324, 220, 1))+'');
      repeat
        ArrowSymbol := BitmapFromString(7, 15, 'meJzT9AzXxEAaAWkCVz8gI5IFT31' +
                          'ARhBB/n3vkRHxgiCRpe+JRG7r7/HPfoeMgCJqPonI4hCRxnpRuDhc' +
                          'BIJUPOOAIkASLgIXh7MBQZeURw==');
        InputAcc := 0.5;
        FindDeformedBitmapToleranceIn(ArrowSymbol, X, Y, MMX1, MMY1, MMX2, MMY2, 75, 0, True, OutputAcc)
        FreeBitmap(ArrowSymbol);
        if (OutputAcc > InputAcc) then
          begin
            WriteLn('We found the flicker arrow symbol, walking there!');
            MMouse(X + RandomRange(3, 8), Y + RandomRange(10, 20), 2, 2);
            Wait(25 + Random(75));
            ClickMouse2(1);
            Wait(100 + Random(100));
              repeat
                Wait(50 + Random(50));
              until (IsMoving=False);
            Result:=True;
          end else
          begin;
            WriteLn('We haven`t been able to detect the flickering arrow symbol.');
            Result:=False;
            Inc(A);
            Wait(250 + Random(500));
          end;
      until (OutputAcc > InputAcc) or (A>9);
    end;
    It also has a repeat loop with a random waiting time, because it is used to find a flickering symbol at the Great Orb Project.

    Just play with that function, edit the bitmap, the names, etc. :P

    Script source code available here: Github

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
  •