Results 1 to 7 of 7

Thread: Proggies and Multiplayer

  1. #1
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Proggies and Multiplayer

    I'm working on a script, and I'm curious about how to do two things.
    A. Record the time
    B. Set a number of loads for a player to do
    Ex.
    A. Ran for 10 hours, 6 minutes, 20 seconds
    B. Player[0]-30 loads, Player[1]-34 loads

    P.S. Did you guys hear that J.K.Rowling just announced that Dumbledore was gay? I'm serious, that creeps me out. I used to go to sleep at night listening to the audio tapes of that book..
    Active only during the Summer...

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    To record the time, just call GetTimeRunning in your Progress Report and the script will spit out the time in Hours, Minutes, Seconds (if any are applicable).

    To set loads for each player, you could use something like Players[?].Integers[?] := 30 in your DeclarePlayers; procedure, then increment another variable to count how many loads the player's done. When that number equals the number you set in DeclarePlayers;, have it swith players.
    :-)

  3. #3
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OK, and would I have to declare that integer as a zero after the player is switched?
    Active only during the Summer...

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You wouldn't have to reset the integer you set in DeclarePlayers; to 0, but you would have to reset the one you used to increment the loads, yes.
    :-)

  5. #5
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OK, thank you.

    Edit:
    Made a double post to get a question, sorry to all those who looked. My mistake was adding a parenthesis, and I was actually right to begin with. lol.
    I deleted the question, for those who want to see it, it was concerning
    SCAR Code:
    8:Typesend(inttostr(Players[currentplayer].integers[0]) + ' loads left');
    which was
    SCAR Code:
    8:Typesend(inttostr(Players[currentplayer].integers[0]) + ' loads left'));
    Another stupid thing done by me.
    Active only during the Summer...

  6. #6
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Typesend(IntToStr(Players[currentplayer].integers[0]) + ' loads left');

    iam not sure if it works now. but you had a ) to much
    (and don't call it before you called your declare player procedure).

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

    Default

    It should, it compiles at least =/
    Thanks rik
    Active only during the Summer...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rsbot Proggies
    By jakeyboy29 in forum NOTA
    Replies: 41
    Last Post: 11-22-2008, 03:18 PM
  2. Replies: 5
    Last Post: 11-23-2007, 08:45 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
  •