Results 1 to 5 of 5

Thread: loop

  1. #1
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default loop

    hi this is one of my loops of my netter i made:

    begin
    ClearDebug;
    Setup;
    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
    DeclarePlayers;
    ActivateClient;
    Begin
    If (Not(LoggedIn)) then
    Begin
    Status('Logging In')
    Loginplayer;
    end;
    end;
    HighestAngle;
    repeat
    FindFishingEquipmentColor;
    repeat
    FishShrimps;
    If ( Not (LoggedIn) ) Then NextPlayer (False)
    DropShrimps;
    ShittyProgressReport;
    FindFishingEquipmentColor;
    until
    (Players[CurrentPlayer].Integer1=Trips)
    Logout;
    NextPlayer(true);
    Trips := 0
    HighestAngle;
    MakeCompass('N')
    If ( Not (LoggedIn) ) Then NextPlayer (False)
    Until False;
    end.


    my question is that i want it to repeat forever so i want like if player.0 fiishes his trips, player.2 login and fish. and when player 2. finishes his trips if i had only 2 players to log back on player.1 and he start his trips, then he finishes then player 2 fish and then he finishes and then player .1 back on and fish until false. what do i have to do because i did that but it doesnt seem to work.

  2. #2
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    doesnt it go


    SCAR Code:
    until (false)

    and not

    SCAR Code:
    until FALSE
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  3. #3
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    begin
    repeat
    put the procedure you want to repeat here;
    until(false)
    end;


    i dunno, does that work?

  4. #4
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It shouldn't make a difference but i always do

    SCAR Code:
    repeat
     //do stuff
    until(false);

    but it works without the parenthases or semicolon.


    Try putting the
    until
    (whatever=trips)

    as

    until(whatever >= trips)


    if you want you can post the entire script and i could test it and mabey diagnose the problem there.

    [edit]: cool 100th post. (wasted on helping you) just kidding
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

  5. #5
    Join Date
    Sep 2006
    Location
    West U.S.
    Posts
    2,172
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    always put in some sort of failsafe though since you dont want your script to keep you logged in forever...

    They are sisters...
    Runescape Classic

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need for to do loop help
    By Raskolnikov in forum OSR Help
    Replies: 6
    Last Post: 07-02-2008, 03:21 AM
  2. Need help with Loop
    By Brenth in forum OSR Help
    Replies: 2
    Last Post: 12-31-2007, 05:35 PM
  3. loop
    By fausco in forum OSR Help
    Replies: 2
    Last Post: 11-16-2007, 11:12 PM
  4. Loop help?
    By Becks in forum OSR Help
    Replies: 3
    Last Post: 10-23-2007, 10:32 AM
  5. Help with loop
    By skullbr00d in forum OSR Help
    Replies: 0
    Last Post: 05-29-2007, 09:23 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
  •