[CODE] Position on Status Bar

From: Jodi Goddard (jodig@sprint.ca)
Date: 11/09/98


here's a little thing that I added to make_prompt(), basically, it just tells
the player there position < standing.  My users like it, so I figured I'd
share with everyone.  Simple little piece of code actually.

-- begin --
if (PRF_FLAGGED(d->character, PRF_POS))
        {
          if(GET_POS(d->character) == POS_SLEEPING)
                  sprintf(prompt + strlen(prompt), "%s[sleeping]%s ",
                    CCYEL(d->character, C_NRM), CCGRN(d->character, C_NRM));
          else if(GET_POS(d->character) == POS_RESTING)
                  sprintf(prompt + strlen(prompt), "%s[resting]%s ",
                    CCYEL(d->character, C_NRM), CCGRN(d->character, C_NRM));
          else if(GET_POS(d->character) == POS_SITTING)
                  sprintf(prompt + strlen(prompt), "%s[sitting]%s ",
                    CCYEL(d->character, C_NRM), CCGRN(d->character, C_NRM));
        }

-- end --

Just stick that in anywhere you feel apropriate, change colors, etc.  :]


________________________________
Jodi Goddard  -   ICQ : 17422736
*PGP v6.0 Encryption Available.*

Errors have occurred. We won't tell you where or why.  Lazy programmers.
                                                        -- Charlie Gibbs


     +------------------------------------------------------------+
     | 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/15/00 PST