Results 1 to 8 of 8

Thread: FindSymbol help...

  1. #1
    Join Date
    Apr 2012
    Location
    Canada, Bc
    Posts
    1,599
    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
    572
    Mentioned
    3 Post(s)
    Quoted
    43 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,811
    Mentioned
    5 Post(s)
    Quoted
    117 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: Guild miner and fixing some old scripts

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,930
    Mentioned
    39 Post(s)
    Quoted
    262 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,279
    Mentioned
    2 Post(s)
    Quoted
    44 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,599
    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
    454
    Mentioned
    0 Post(s)
    Quoted
    50 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
    Working on getting my pharmacy tech license and my B.S. In Radiology

    Projects: A big one! Total secret! hehe

  8. #8
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,523
    Mentioned
    38 Post(s)
    Quoted
    207 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

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
  •