Results 1 to 15 of 15

Thread: How can i do the script to repeat an accion for ever?

  1. #1
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How can i do the script to repeat an accion for ever?

    Thanks.

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    repeat
      // ...
    until(False);

  3. #3
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Simba Code:
    repeat
      // ...
    until(False);
    Thanks man im gonna try out
    PD:I made the script to cut one tree!Im happy LOL.Thanks to you and the guys who help me.

  4. #4
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Great job!

  5. #5
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is this right ?

    Simba Code:
    Begin;
    If FindObj(x,y,'hop',1785912, 35)Then
    Mouse(x,y,0,0, true);
    ChooseOption('Hop')
    Repeat
    Wait(1200+random(250));
    Until not IsUpText('Tree')or InvFull
    Repeat
    Mouse(x,y,0,0,true)
    Wait(2000)
    Until(False);
    End;

  6. #6
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Gaston7eze View Post
    Is this right ?

    Simba Code:
    Begin;
    If FindObj(x,y,'hop',1785912, 35)Then
    Mouse(x,y,0,0, true);
    ChooseOption('Hop')
    Repeat
    Wait(1200+random(250));
    Until not IsUpText('Tree')or InvFull
    Repeat
    Mouse(x,y,0,0,true)
    Wait(2000)
    Until(False);
    End;
    Edit:It just clicks on the corner of the Runescape Screen.

  7. #7
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Try this:
    Simba Code:
    Begin
      Repeat
        If FindObj(x,y,'hop',1785912, 35)Then
          Mouse(x,y,0,0, true);
          ChooseOption('Hop')
          Repeat
            Wait(1200+random(250));
          Until not IsUpText('Tree')or InvFull
      Until(False);
    End;

    Work on your standards, by the way.
    http://villavu.com/forum/showthread.php?t=60288

  8. #8
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Gaston7eze View Post
    Edit:It just clicks on the corner of the Runescape Screen.
    Quote Originally Posted by RISK View Post
    Try this:
    Simba Code:
    Begin
      Repeat
        If FindObj(x,y,'hop',1785912, 35)Then
          Mouse(x,y,0,0, true);
          ChooseOption('Hop')
          Repeat
            Wait(1200+random(250));
          Until not IsUpText('Tree')or InvFull
      Until(False);
    End;
    Work on your standards, by the way.
    http://villavu.com/forum/showthread.php?t=60288
    Gonna work them out!Thank you very much.

  9. #9
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I read all the Standars,Do the Standars have deal with the script to work?

  10. #10
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Standards help you and others read your script and figure out problems in it.

  11. #11
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Also you forgot a begin/end there. It seems the script can not find a tree.
    I made a new script, check it out!.

  12. #12
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    Also you forgot a begin/end there. It seems the script can not find a tree.
    Where exactly?Thanks for the correction.

  13. #13
    Join Date
    Dec 2011
    Posts
    212
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    Procedure ChopTree;
    Var
    x,y: Integer;
    Begin;
    If FindObj(x,y,'hop',1785912, 35)Then
    Mouse(x,y,0,0, true);
    ChooseOption('Hop')
    Repeat
    Wait(1200+random(250));
    Until not IsUpText('Tree')or InvFull
    Repeat
    Wait(1200+random(250));
    Until not IsUpText('Tree')or InvFull
      End;
    Is this good?Thanks.It dont work for me,it just click one tree it cut it and then it dont work anymore.:S

  14. #14
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Simba Code:
    Begin
      Repeat
        If FindObj(x,y,'hop',1785912, 35)Then
        begin
          Mouse(x,y,0,0, true);
          ChooseOption('Hop')
          Repeat
            Wait(1200+random(250));
          Until (not IsUpText('Tree')) or InvFull
        end;
      Until(False);
    End;

    should cut trees ad infinite.

    Maybe because the IsUptext return true? tree stump anyone?
    I made a new script, check it out!.

  15. #15
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To detect if the tree is down? Great idea markus. That's some next level shiz. :P
    Last edited by Runescape Pro; 12-22-2011 at 07:30 PM. Reason: Typo

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
  •