Results 1 to 7 of 7

Thread: Total newb Identifier expected error

  1. #1
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Total newb Identifier expected error

    Hey guys and girls, i'm working on my first script and i've completed it. I'm in the proofreading/error fixing stage and i've encountered a problem that my eyes cant seem to fix.

    My appologies if this is a rookie error!

    PHP Code:
    procedure BankPotato;

    begin
      
    if not LoggedIn() then
      
    exit;
      if 
    not R_BlindWalk(point(30923245)) then
    begin
      TerminateScript
    ;
      
    end;
    if 
    FindObjCustom(xy, ['ooth'], [454126547422511391697206648] , 5then
    begin
      MMouse
    (xy55);
      if (
    IsUpTextMultiCustom(['ooth'])) then
      ClickMouse2
    (mouse_left);
      
    wait(randomrange(7502000));
      
    DepositAll;
      
    until(InvCount=0);
       
    end;
      
    end
    Only part i've been struggling with is banking. :P
    Thanks for your time!!

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Missing a begin after IsUpTextMultiCustom() then?

    Also, are you the next Wetish?
    There used to be something meaningful here.

  3. #3
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    No luck, i thought maybe i missed a bracket of sorts but i'm completely dumbfounded

    I'm afraid i have no idea what that is!

  4. #4
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    It will be the until without a repeat

    Simba Code:
    procedure BankPotato();
    begin
      if not LoggedIn() then
        exit();

      if not R_BlindWalk(point(3092, 3245)) then
        terminateScript();

      repeat
        if findObjCustom(x, y, ['ooth'], [4541265, 4742251, 1391697, 206648], 5) then
        begin
          MMouse(x, y, 5, 5);
          if (IsUpTextMultiCustom(['ooth'])) then
          begin
            ClickMouse2(mouse_left);
            wait(randomrange(750, 2000));
            DepositAll();
          end;
        end;
      until InvCount = 0;
    end;

  5. #5
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Re read what you posted mayor, got it working.

    Thanks a bunch!
    Last edited by ALoneCactus; 01-11-2015 at 08:23 AM. Reason: I'm a bad reader

  6. #6
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by ALoneCactus View Post
    Re read what you posted mayor, got it working.

    Thanks a bunch!
    Be careful with infite loops there.

  7. #7
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I ended up re doing it as i couldn't stand it anyways haha, thanks hoodz for the caution.

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
  •