Time Question

From: (pure@SPRINT.COM.AU)
Date: 08/08/97


G'Day all.

    can someone explain exatly (not in five words, becuase i know what
the line DOES), but what each part of the line does, so i know HOW the
line DOES what it does.

  if (!IS_AFFECTED(ch, AFF_POISON) &&
      (((long) (time(0) - st->last_logon)) >= SECS_PER_REAL_HOUR)) //
<-- This Line
 {
    GET_HIT(ch) = GET_MAX_HIT(ch);
    GET_MOVE(ch) = GET_MAX_MOVE(ch);
  }

It's caclulating how long they have been away for, right? and this
determs if they need to be cured, recover health, etc.

But can someone run throught each bit in that line please, so i know
how to modify it for my own reasons please for something else i'm
doing.

Any help for be brilliant, please.

Thanks.

OH, and to solve my further question about one_argument,
two_arguments, etc. What i had to do was add another variable to the
gen_receptionist function paramters. Gen_receptionist is out of the
scope for the varaible ARGUMENT, but the call SPECIAL(receptionist)
isnt't, so i did the two_argument, and passed the second arguement
that was passed in by the character to gen_receptionist and then used
it in there ;) (i did an atoi also with the 2nd arg).


Jussy


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST