Results 1 to 10 of 10

Thread: [Error] C:\Users\Thomas\Downloads\BeerBuyer.simba(99:39): Semicolon (';') expected at

  1. #1
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default [Error] C:\Users\Thomas\Downloads\BeerBuyer.simba(99:39): Semicolon (';') expected at

    Simba Code:
    Function AtBank:Boolean;
        Begin
           Wait(250+random(50));
           if FindBank('vwb') then AtBank :=True;
           if not FindBank('vwb') then AtBank :=False;
        end;


    Gives me the error

    [Error] C:\Users\Thomas\Downloads\--------.simba(99:39): Semicolon (';') expected at line 98

    What am I doing wrong? I swear this worked like 5 months ago when I did it, having a brain fart :P

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    post the script? chances are there's a typo

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    You don't assign the function name, assign the result instead.
    Result:= True;

    Also using 'else' makes it much cleaner/faster.

  4. #4
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    I knew it was something stupid! Thanks mate!

    E*
    Simba Code:
    Function AtBank:Boolean;
        Begin
           Wait(250+random(50));
           if FindBank('vwb') then
            begin
              writeln('At the bank');
              Result:=True;
            end
            else
              begin
               writeln('We are not at the bank Teleporting to varrock and walking there');
               Result:=False;
              end;
        end;

    Changed it to this, working now :P
    Last edited by King; 12-01-2012 at 02:28 AM.

  5. #5
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Does anybody know how I would get my script to stop when it finds a NPC chat box? I've used the commands but it still doesnt stop/;

    Simba Code:
    until((FindNPCChatText('What can I do yer for?', nothing)) or (TimeFromMark(t) > 5000));
    Last edited by King; 12-01-2012 at 05:47 AM.

  6. #6
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  7. #7
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    maybe try just one word?
    Yeah do a word from the line that is unique to the chat.
    Also may I ask, Where are you making the beer buyer for?
    edit: nvm can see its varrock...

  8. #8
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by The Killer View Post
    Yeah do a word from the line that is unique to the chat.
    Also may I ask, Where are you making the beer buyer for?
    edit: nvm can see its varrock...
    Yep:P Just a request ne of my friends made and Ill try that ash!

  9. #9
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    "yer" looks good. not many other NPCs in that area say that.

  10. #10
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Thanks for the help guys :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
  •