Need help with my script!

Discussion in 'Scar/Simba Help' started by thomis, Aug 7, 2007.

Need help with my script!
  1. Unread #1 - Aug 7, 2007 at 2:57 AM
  2. thomis
    Joined:
    Jun 12, 2007
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    thomis Newcomer

    Need help with my script!

    It keeps saying "Syntax error in line 10" but i don't know what it means.
    And I need an antirandom thing at the end, I hope someone can help me out.

    Here's my script then:
    Code:
    program MyFeatherBuyer;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\Misc\amount.scar}
    
    var
       bought: integer;
    
    const
       FeathersToBuy = ;//How many Feathers you want to buy
       ShopColor = ;//Pick the blue color of the shop symbol
       ShopkeeperColor = ;//Pick the color of the shopkeeper
    
    
    function JadSymbol(WhatSymbol: String; Click, Switch: Boolean): Boolean;
    var I: Integer;
    begin
      for I := 1 to 25 do
      begin
        if(FindSymbol(x,y,(WhatSymbol)))then
        begin
          if(Click)then
            Mouse(x,y,2,2,true);
          Result := True;
          Exit;
        end;
        wait(750+random(500));
      end;
      Writeln('Could NOT find symbol.');
      Result := False;
      if(Switch)then
        LogOut;
    end;         //Credits for this function go to JAD
    
    
    procedure FindShopkeeper;
    var FSX, FSY, Attempts: integer;
    begin
      repeat
        Attempts:=Attempts+1;
        if FindObjMultiText(FSX,FSY,'erran','errand','Gerrand',ShopkeeperColor,?) then
          Mouse(FSX,FSY,2,2,false);
          ClickOption('Trade',1);
      until (TradeScreen) or (Attempts > 5);
      if Attempts > 5 then
      Begin
        Logout;
      end;
    end;
    
    
    
    Procedure BuyTheFeathers;
    begin
      if (GetAmount(370,73) > 970) then
      begin
        Mouse(370,73,10,10,false);
        ClickOption('Buy 10',1);
        bought := bought + 10;
      end;
    end;
    
    procedure FinalReport;
    begin
      Writeln('----------------------------------')
      Writeln('|     FeatherBuyer by Thomis     |')
      Writeln('----------------------------------')
      Writeln('|                                |')
      Writeln('| Succesfully bought '+IntToStr(bought)+' Feathers |')
      Writeln('|                                |')
      Writeln('----------------------------------')
    end;
    
    begin
      SetupSRL;
      ActivateClient;
         bought := 0;
      HighestAngle;
      JadSymbol('fishing shop',true,true);
      FindShopKeeper;
      repeat
        BuyTheFeathers;
        Wait(5000 + random(1000));
      until (bought > FeathersToBuy);
      CloseWindow;
      FinalReport;
      Logout;
    end.
    
     
  3. Unread #2 - Aug 7, 2007 at 3:34 AM
  4. Gofez0r
    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0

    Gofez0r Guru

    Need help with my script!

    You need to fill the contants.
     
  5. Unread #3 - Aug 7, 2007 at 3:42 AM
  6. Zeta
    Joined:
    Jan 21, 2007
    Posts:
    1,680
    Referrals:
    3
    Sythe Gold:
    0

    Zeta Guru
    Banned

    Need help with my script!

    FeathersToBuy = ;//How many Feathers you want to buy
    ShopColor = ;//Pick the blue color of the shop symbol
    ShopkeeperColor = ;//Pick the color of the shopkeeper

    ya u need to set that.. and srl is down cause rs update anyway
     
  7. Unread #4 - Aug 7, 2007 at 5:49 AM
  8. thomis
    Joined:
    Jun 12, 2007
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    thomis Newcomer

    Need help with my script!

    ok thanks guys

    but I still need that antirandom thing at the end
     
  9. Unread #5 - Aug 7, 2007 at 8:47 AM
  10. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Need help with my script!

    Code:
    FeathersToBuy = 0;//How many Feathers you want to buy
       ShopColor = 0;//Pick the blue color of the shop symbol
       ShopkeeperColor = 0;//Pick the color of the shopkeeper
    That will take away the errors.

    FindNormalRandoms?
     
  11. Unread #6 - Aug 7, 2007 at 10:19 AM
  12. thomis
    Joined:
    Jun 12, 2007
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    thomis Newcomer

    Need help with my script!

    Just FindNormalRandoms at the end?
    But does it also solve them or does it just log out?
     
  13. Unread #7 - Aug 7, 2007 at 12:41 PM
  14. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Need help with my script!

    FindNormalRandoms wherever it's needed will do everything you need.
     
< i need web help........ | Scar Not Working Right.. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site