Results 1 to 8 of 8

Thread: [help] problematic procedure

  1. #1
    Join Date
    Sep 2006
    Posts
    206
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [help] problematic procedure

    I can't make this procedure work....help would be greatly appreciated.

    SCAR Code:
    procedure nofight;
    begin
         if (isfight = False) then
         repeat
         if (isfight = False) then
                       begin
                       moving;
                       until
                       if(isfight = true)then
                       break;
                       else
                       if(TimeFromMark(Camark) > 126000)then
                              begin
                              logout;
                              wait(90000 + random(800));
                              loginplayer;
                              end;
                       end;
              end;

    i get a Line 98: [Error] (15980:1): Identifier expected in script

    line 98 is "UNTIL" in the script.

    thanks,
    mikev
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    procedure nofight;
    begin
      if (isfight = False) then
       repeat
         if (isfight = False) then
          begin
            moving;
          end;
       until (isfight = true)
      else if(TimeFromMark(Camark) > 126000)then
       begin
         logout;
         wait(90000 + random(800));
         loginplayer;
       end;
    end;

    Are those supposed to be standards?

  3. #3
    Join Date
    Sep 2006
    Posts
    206
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no.

    problems solved.

    thanks for the help sumilion.
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    procedure nofight;
    begin
    if not isfight then
    repeat
    if not isfight then moving;
    if(TimeFromMark(Camark) > 126000) then
    begin
    logout;
    wait(90000 + random(800));
    loginplayer;
    end;
    until isfight or (TimeFromMark(Camark) > 126000);
    end;

    Didnt use SCAR tags, since they screw up the indenting. Hope this helps
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  5. #5
    Join Date
    Sep 2006
    Posts
    206
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the help, i will try that.

    is it possible to make this procedure only run if it hasn't found a fight for 2 minutes? I'm very new to timing and the time include in SRL.

    thanks for the help,
    mikev
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  6. #6
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think you could do something like this

    have counter variables. one that marks teh start time, and one that counts up.;
    then once your last fight ended, start the variable counting(something with the system time? look it up in the scar help)

    if (counter increased >original time + 2 minutes then
    begin
    nofight;
    end;

  7. #7
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    FightProc;
    MarkTime(m);
    while (TimeFromMark(m) < 12000) do
    noFight;
    If you show me more or describe more of waht you want to do, i can help you.

  8. #8
    Join Date
    Sep 2006
    Posts
    206
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hows this look?


    SCAR Code:
    procedure nofight;
    begin
         marktime(m);
         if (not(isfight)) then
         repeat
         if (not(isfight)) then moving;
         wait(10*1000+random(200));
         if(isfight) then
         break;
         until
          isfight or
         (TimeFromMark(m) > 126000)
         or findsymbol(x,y,'minigame')
         begin
         logout;
         wait(120000+random(600))
         loginplayer;
         end;
         end;


    sorry no standards right now.

    when the procedure calls moving....its basically a function I made to randomly move, in case you need to know in order to help me.

    so basically Im asking, will this procedure check if theres a fight, and if there isn't it will check for two mintues or a banksymbol, then logout and back in. if there is a fight within two mintues, its will break. Did I design this correctly?

    thanks,
    mikev
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  2. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  3. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •