Results 1 to 11 of 11

Thread: [help] how do I repeat procedures

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

    Default [help] how do I repeat procedures

    Hi,
    I am making a tokkul arena runner and I was wondering how I repeat the script once my guy dies/exits the arena.

    for example...it logs in, gets into the cave, does random things while in the fights.

    once it dies, it keeps doing random things instead of looping back to e.g. "clicking on the cave" and repeating the whole process over again.

    how can I make the script recognize when it dies/leaves the cave and kinda refresh the script again.

    thanks,
    mikev

    p.s. Im trying to keep the script kinda private for ... reasons ...
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    SCAR Code:
    repeat
    FIGHTSHIT;
    Until(InLumby=True)

    idk if imlumby is in srl so just do

    SCAR Code:
    Repeat
    FIGHTSHIT;
    UNTIL(Findsymbol(x,y,'Water'))
    (because there is a water sumbol in lumby)

    ps: i thinks i kinda funy how you are keeping it privyet but you dont even know how to exit a loop =p
    owel =) have fun making that script

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

    Default

    well, its just because the character I will use this with, I don't want banned. I'm not selling it if thats what your thinking. The more people using a script = easier for jagex to compare movements and mass ban :P

    btw- You don't go to lumby when you die in a minigame.....just back to the minigame starting area.

    also, I kinda tried to make the script do what you said

    repeat
    dorandomshit;
    until
    findcolorspiral

    but it didn't really work...maybe its the darn colors.

    offtopic-- does your avatar have something to do with the movie "a Night at the Roxbury" ?
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  4. #4
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mikev View Post
    well, its just because the character I will use this with, I don't want banned. I'm not selling it if thats what your thinking. The more people using a script = easier for jagex to compare movements and mass ban :P

    btw- You don't go to lumby when you die in a minigame.....just back to the minigame starting area.

    also, I kinda tried to make the script do what you said

    repeat
    dorandomshit;
    until
    findcolorspiral

    but it didn't really work...maybe its the darn colors.

    offtopic-- does your avatar have something to do with the movie "a Night at the Roxbury" ?

    Make a procedure that checks if the white cave entrance exists on the screen. Check... oh... about every minute or so, or whenever you feel comfortable placing the procedure call. I would recommend calling it when you're fighting. Make a function that returns true if it sees the white cave entrance. And if true, restart the script by clicking on the cave and going back in.

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

    Default

    solarwind - I am trying that right now.

    I made a separate function that looks for the cave, and if it finds the cave, it will result in true.

    I call that functions in the procedure that repeats while fighting in the arena. i set it up like this --

    procedure randomshit;
    begin
    repeat
    stuff
    stuff
    stuff
    until
    findcave = true
    end;

    it calls my "findcave" function in it but im not sure I set it up right.

    where should I load the function in my main loop? or should I?

    a little lost

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

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

    Default

    Mikev check your pm.

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

    Default

    KILL ME FOR DOUBLE POSTING

    I'm just too excited..... I finally figured it out and it works beautifully now. I have it running and so far its done at least 10 trips in a row.

    thanks for the help! really appreciate it..... i learned funtions by discovery learning lol..... and it was hard.
    “Life is a goldmine, exploit it.” ~M. K. Soni
    www.sea4yourselves.com

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    ROFl yea its form that movie
    iv never seen it but i love this avatar! =)!

  9. #9
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by yohojo8 View Post
    ROFl yea its form that movie
    iv never seen it but i love this avatar! =)!
    Wow, are avatars SRL members only? Or who can put them?

  10. #10
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    hmm i don't know
    go to top of page and clickSuer CP.
    i chose it myself..

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

    Default

    Yes, avatars are members and above only. Sadly us green names dont have the privilege.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Repeat?
    By FortAsh in forum OSR Help
    Replies: 9
    Last Post: 01-13-2009, 04:18 PM
  2. repeat until...???
    By Alligaattor in forum OSR Help
    Replies: 12
    Last Post: 10-23-2008, 12:59 AM
  3. How do I get this to repeat until?
    By Claymore in forum OSR Help
    Replies: 2
    Last Post: 07-07-2008, 04:02 PM
  4. repeat somewhere help thx
    By rkroxpunk in forum OSR Help
    Replies: 4
    Last Post: 03-12-2007, 08:24 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
  •