Re: [CODE] **titles for levels**

From: Phillip A Ames (kirk47@juno.com)
Date: 04/11/99


On Sun, 11 Apr 1999 13:29:29 -0700 Darren Steinke <darrens@FLASHMAIL.COM>
writes:
>Hi there.
>
>I would like to display titles instead of numbered levels.
>ie: instead of level 21 and 18 it would be
>[ Soulslayer ] and [ Dark Caster ]
>
>I only have 30 mortal levels...could i get some help into doing this
>pls?
>
>thank you
>
>-ds

First, you can start by not sending HTML-ized e-mail to the list(should
be configurable in your mail client's preferences).  Secondly, you'll
need to go to ACMD(do_who) and do a bit of ripping out.  You'll still
need to have titles per se, but here's a snip of what it should look like
in do_who.

      sprintf(buf, "%s[%s] [%2d %s] %-12.12s%s%s",
              (GET_LEVEL(tch) >= LVL_IMMORT ? CCYEL(ch, C_SPR) : ""),
              GET_TITLE(tch), GET_LEVEL(tch), CLASS_ABBR(tch),
GET_NAME(tch),
              (GET_LEVEL(tch) >= LVL_IMMORT ? CCNRM(ch, C_SPR) : ""),
              ((!(++num_can_see % 4)) ? "\r\n" : ""));

So it'd look something like this on who...

[Soulslayer] [21 Wa]

Then, in your list of titles for the different classes, whatever you put
for that will show up in the first pair of brackets, then comes the level
and class in a second set.  Now, if you don't want the level to show up,
it'd look something like this:

      sprintf(buf, "%s[%s] [%s] %-12.12s%s%s",
              (GET_LEVEL(tch) >= LVL_IMMORT ? CCYEL(ch, C_SPR) : ""),
              GET_TITLE(tch), CLASS_ABBR(tch), GET_NAME(tch),
              (GET_LEVEL(tch) >= LVL_IMMORT ? CCNRM(ch, C_SPR) : ""),
              ((!(++num_can_see % 4)) ? "\r\n" : ""));

Here it would look like this:

[Soulslayer] [Wa]

Please note this is Mailer Code, it may or may not work...  And if you do
this, you will probably want to disable the 'title' command or else
people's titles will show up in there.  Now, if you want them to have
titles in addition to that, you'll want to put something like char
*title2; in the pfile.  Hope this helps,


-Phillip

Phillip Ames    | Implementor of Apocalypse MUD
kirk47@juno.com | telnet://oberon.krans.com:1701
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]


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



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