Results 1 to 5 of 5

Thread: Script doesnt do anything

  1. #1
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script doesnt do anything

    When i try to compile it compiles but it doesnt do anything and just sits there... I am new to scripting, is it okay to use a bitmap to find an icon in the minimap? anyway heres the script

    SCAR Code:
    program New;

    {.include SRL/SRL.Scar}

    Var
    StoreIcon: integer;
    x,y:integer;
    Begin
    begin
    SetUpSRL
      StoreIcon := BitmapFromString(16, 15, 'beNoVkklMU2EUhe/re+9' +
           '/nUuLNEBQE4gQImjQhXEIYQigqKlAIS0QRhsIBSQKGhGIDKIylKFK' +
           'BUqwaSEMpUBnSqEMbRMIihsTF24wrgxxoQlxh3/X95xzT+79xEKgA' +
           'Eig2QQQwCBKgARsEHJByoPzkegSA+cYiEDAEyGGIoBiAbAQw+NjcV' +
           'RkuIhPIoAtx6rXYtm0uB0z1r31fQaYSEF4GBvhYIYGgAiAMAAa2+2' +
           'WsS231mfvVZcn15QkqhRJttmeoNfosRmxmCaABSSiokkQC9h8n8sc' +
           'XJ9WKS42VV3oaErUdt0Ye53RUJnwtC7NadF5XasMxQPgkxSuD7iG3' +
           'zmvVmY+r8ow9Cot2tKVMeXMoOxDj6zjUXZFYbrHYSWADyAlWcDnwr' +
           'fDzQ2zvlGeZeisM3aWud7X+KYfOnRK46Bc11tcmndTq+l32vwsiJZ' +
           'KAZHgs01+Xps9tJpaCzPWhpsWu+QHs7XBmaqFEVl1fsxYf8NHvdZh' +
           '2+ZyYykh/P2n//Pb5He0fVrte6vKsnRXuwdU9j7F8oDcPKosv3/WN' +
           'N7+5WB3Yc4BcOb7SdzJac7RcfbPozL/ilL3LNU1pF7urvVoWiZais' +
           '2ax0VpiXpNd8Dnc9p3ACS/TpOOT699/XE1ELx1uFVZlyfWNd9zDT9' +
           'Z7FWvj3e8qpPVK9Lmp4aW5kyeNR+FJNI4cG3n7eyqBAzkXIfRttye' +
           '+tQXFSkTL+/3N6dp2u+oy1KUDy57HAaJhI3fSiGgaBDxIOCdbKzIl' +
           'GfFl9xOUBUkq+TxlQWxd9OF+bkxpUVXDFNd+JIEETq+gIN4KESCbX' +
           '5hWqudGtWYdCPD3a1m4zv74sTQm5YJbSfCyQSIw/AGIX4EARw+R0I' +
           'ATRJoz79vXbJ5XRuBLb/basckSIU8nCbihCw0KQbg8PghJ80l8T6u' +
           'iI1BAQKzxeARDRw2wUGYS4Co/96g714=');
    end;

    begin
    if FindBitmapToleranceIn(StoreIcon,x,y,521,3,716,164,25) then
    begin
    mouse (x,y,0,0,true)
    end
    end
    end.

  2. #2
    Join Date
    Nov 2007
    Location
    Poland
    Posts
    139
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To find symbol use:
    SCAR Code:
    If FindSymbol(x, y, 'Store') Then Mouse(x, y, 2, 2, True);
    Always close and;


    SCAR Code:
    program New;
     
    {.include SRL/SRL.Scar}
     
    Var
    StoreIcon: integer;
    x,y:integer;

    Begin
    SetUpSRL;
      StoreIcon := BitmapFromString(16, 15, 'beNoVkklMU2EUhe/re+9' +
           '/nUuLNEBQE4gQImjQhXEIYQigqKlAIS0QRhsIBSQKGhGIDKIylKFK' +
           'BUqwaSEMpUBnSqEMbRMIihsTF24wrgxxoQlxh3/X95xzT+79xEKgA' +
           'Eig2QQQwCBKgARsEHJByoPzkegSA+cYiEDAEyGGIoBiAbAQw+NjcV' +
           'RkuIhPIoAtx6rXYtm0uB0z1r31fQaYSEF4GBvhYIYGgAiAMAAa2+2' +
           'WsS231mfvVZcn15QkqhRJttmeoNfosRmxmCaABSSiokkQC9h8n8sc' +
           'XJ9WKS42VV3oaErUdt0Ye53RUJnwtC7NadF5XasMxQPgkxSuD7iG3' +
           'zmvVmY+r8ow9Cot2tKVMeXMoOxDj6zjUXZFYbrHYSWADyAlWcDnwr' +
           'fDzQ2zvlGeZeisM3aWud7X+KYfOnRK46Bc11tcmndTq+l32vwsiJZ' +
           'KAZHgs01+Xps9tJpaCzPWhpsWu+QHs7XBmaqFEVl1fsxYf8NHvdZh' +
           '2+ZyYykh/P2n//Pb5He0fVrte6vKsnRXuwdU9j7F8oDcPKosv3/WN' +
           'N7+5WB3Yc4BcOb7SdzJac7RcfbPozL/ilL3LNU1pF7urvVoWiZais' +
           '2ax0VpiXpNd8Dnc9p3ACS/TpOOT699/XE1ELx1uFVZlyfWNd9zDT9' +
           'Z7FWvj3e8qpPVK9Lmp4aW5kyeNR+FJNI4cG3n7eyqBAzkXIfRttye' +
           '+tQXFSkTL+/3N6dp2u+oy1KUDy57HAaJhI3fSiGgaBDxIOCdbKzIl' +
           'GfFl9xOUBUkq+TxlQWxd9OF+bkxpUVXDFNd+JIEETq+gIN4KESCbX' +
           '5hWqudGtWYdCPD3a1m4zv74sTQm5YJbSfCyQSIw/AGIX4EARw+R0I' +
           'ATRJoz79vXbJ5XRuBLb/basckSIU8nCbihCw0KQbg8PghJ80l8T6u' +
           'iI1BAQKzxeARDRw2wUGYS4Co/96g714=');
     
    if FindBitmapToleranceIn(StoreIcon,x,y,521,3,716,164,25) then
    mouse(x,y,0,0,true);

    end.

    Your script chould seems like this. But use this:
    SCAR Code:
    program New;
     
    {.include SRL/SRL.Scar}
     
    Var
      x,y: integer;

    Begin
      SetUpSRL;
      If FindSymbol(x, y, 'Store') Then Mouse(x, y, 2, 2, True);
    End.

  3. #3
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What about the food store lol?

  4. #4
    Join Date
    Nov 2007
    Location
    Poland
    Posts
    139
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Full list:
    Valid Arguments are:
    - bank - mining site, mining spot - transportation
    - magic shop - water source, water - furnace
    - anvil - rare trees, tree - fishing spot, fish
    - cookery, cook - quest - mill
    - weave - pottery, pot - spinning wheel, spin
    - guide - shop, store - shield
    - altar - arrow - bar
    - dungeon - churn - house
    - Axe Shop - Cookery Shop - Windmill
    - minigame - fur trader - Archery Shop
    - staff Shop - clothes shop - farming spot
    - apothecary - Sword shop - platebody shop
    - scimitar shop - gem stall - silk stall
    - plateskirt shop - agility - training dummy
    - food shop - fishing shop/fish store - Jewelery
    - Crafing shop - portal (to player owned houses) - Makeover Mage
    - Mace Shop - Hair Dresser - Mining Shop
    - silver stall - spice stall - farming shop
    - slayer master - herbalist - candle shop
    - Saw Mill - Kebab shop - Short cut
    - hunter store - hunter training - Sandpit
    - pet shop - summoning store

  5. #5
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by iroki View Post
    Full list:
    Valid Arguments are:
    - bank - mining site, mining spot - transportation
    - magic shop - water source, water - furnace
    - anvil - rare trees, tree - fishing spot, fish
    - cookery, cook - quest - mill
    - weave - pottery, pot - spinning wheel, spin
    - guide - shop, store - shield
    - altar - arrow - bar
    - dungeon - churn - house
    - Axe Shop - Cookery Shop - Windmill
    - minigame - fur trader - Archery Shop
    - staff Shop - clothes shop - farming spot
    - apothecary - Sword shop - platebody shop
    - scimitar shop - gem stall - silk stall
    - plateskirt shop - agility - training dummy
    - food shop - fishing shop/fish store - Jewelery
    - Crafing shop - portal (to player owned houses) - Makeover Mage
    - Mace Shop - Hair Dresser - Mining Shop
    - silver stall - spice stall - farming shop
    - slayer master - herbalist - candle shop
    - Saw Mill - Kebab shop - Short cut
    - hunter store - hunter training - Sandpit
    - pet shop - summoning store
    =D!!!! thanks so much!!! rep+!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FeatherFinder (First Script; that doesnt work)
    By Justcheat in forum OSR Help
    Replies: 8
    Last Post: 08-14-2008, 09:25 AM
  2. My script doesnt move!
    By Rora in forum OSR Help
    Replies: 2
    Last Post: 12-07-2007, 08:12 PM
  3. Why doesnt this script work?
    By metal in forum OSR Help
    Replies: 12
    Last Post: 11-30-2007, 09:51 PM

Posting Permissions

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