Results 1 to 4 of 4

Thread: if(IsFKeyDown(12))then

  1. #1
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default if(IsFKeyDown(12))then

    Tell me if I have this set up right...

    SCAR Code:
    if(IsFKeyDown(12))then
       begin
        wait(500+random(100));
        Logout;
        wait(500+random(100));
        LoginPlayer(True);
       end;
       
      if(IsFkeyDown(10))then
       begin
        wait(500+random(100));
        Logout;
        wait(500+random(100));
        LoginPlayer(False);
       end;

    That means that if I punch in F12, that means to log out the current player, and that he is still good and can be used later on.

    But if I punch in F10... it means to log out and that the current player got himself into something he(I) can't get out of.

    Right? Gotta go, bye!

  2. #2
    Join Date
    Mar 2006
    Location
    United States, -7:00 GMT
    Posts
    1,790
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    So, no, I think you got it confused, as do many people with the true statements and stuff.

    NextPlayer(False) means go to the next player, leaving the current one false, or taking him out of the loop.

    NextPlayer(True) means go to the next player, leaving the current one true, or leaving him in the loop.

    Look at what I did.

    SCAR Code:
    if(IsFKeyDown(12))then
       begin
        wait(500+random(100));
        NextPlayer(True);
       end;
       
      if(IsFkeyDown(10))then
       begin
        wait(500+random(100));
        NextPlayer(False);
       end;

    See what I did? I think you should understand now

    hakuna matata ;)

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

    Default

    Yea that's right. Remember this will only work if the button is being held down when the script reads the line with the if. So you will have to give it plenty of chance to check.

  4. #4
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Ah, alright. Thanks =)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help on "IsFKeyDown"
    By R0b0t1 in forum OSR Help
    Replies: 4
    Last Post: 03-25-2007, 06:47 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
  •