Results 1 to 9 of 9

Thread: another question

  1. #1
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default another question

    could somebody help me get my script to: if it doesnt find the door on the MM, to log out and then start again?

    please help

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wouldn't it be something along the lines of

    Code:
    if (findcolour=true) then
    //code here
    else
    NextPlayer;
    end;
    ?

    Correct me if im wrong but i think thats it.

  3. #3
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think id be something like that...not quite sure though

    edit: tried that but it says invalid number of parameters

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

    Default

    Did you put =true? if you did then it wont work. Also if you dont have the players setup, nextplayer wont do anything. so you would just put logout. If you post what you tried(and the code thats related to it) then i could fix it up for you.

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You need a point to start again from where you know it's correct.

    For example,

    This makes sure I am within range of furnace symbol
    tries2:=0
    done:=false
    repeat
    tries:=0;
    repeat
    rotate a little
    tries:=tries+1;
    until found furnace symbol or tries= somenumber
    if tries=somenumber then
    begin
    tries2:=tries2+1;
    logout and then login current player
    end;
    if found furnacesymbol then done:=true;
    until done or tries2:=someothernumber
    if done then writeln 'found furnace'
    if tries2=someothernumber then
    begin
    writeln 'I tried and tried but couldnt find furnace, im hopelessly lost'
    writeln 'switching player'
    currentplaye active =false
    logout
    end;

    Then all your other stuff should have if loggedin around them, so since its not logged in,
    it will skip over that stuff til the end where it says,
    if not(loggedin) and currentplayer active=false then switch to next player.




    Check out bbankf for the looping and stuff. It rotates the map while trying to look for bank stuff, and will logout and in after a number of tries.

    You may find redd useful, it finds the eastern most door on mm.

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

    Default

    Omg man, if findcolor takes 2 arguments (x, y).

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by solarwind View Post
    Omg man, if findcolor takes 2 arguments (x, y).
    I think that was just pseudo code, (like my whole post was).

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

    Default

    Quote Originally Posted by Boreas View Post
    I think that was just pseudo code, (like my whole post was).
    No, I was talking to xcanadamanx.

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    O right, I see now. Nvm lol.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i has a question
    By Solkrieg in forum OSR Help
    Replies: 5
    Last Post: 10-30-2008, 08:20 AM
  2. tab 5 question
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 07-04-2008, 06:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •