Isn't there a way to print it by Full clan name... if not I shall just use clan number _____________________________________ / \ | IMP of The Savage Lands | | wiseguy@savage.mudservices.com | | | \_______________________________________/ Sticks and Stones will break your bones, but words shall kick your ass! ---------- > From: Ron Hensley <ron@cross.dmv.com> > To: Adam <us001725@mindspring.com> > Cc: Adam <us001725@mindspring.com>; circle@cspo.queensu.ca > Subject: Re: [Who Part 2] > Date: Sunday, February 02, 1997 10:22 PM > > > Oh... I see how I was wrong... they are both *numbers* how do I get those > > numbers to change to words?? > > Take a look at the below. CLASS_ABBR(ch), RACE_ABBR(ch) > What you need to do is create an CLAN_ABBR > Basically its an array of strings, that the CLAN_ABBR will use to index into > > In utils.h > #define CLAN_ABBR(ch) (IS_NPC(ch) ? "--" : clan_abbrevs[(int)GET_CLAN(ch)]) > > In clan.c i suppose: > const char *clan_abbrevs[] = { > "McCloud", > "Blood", > "MyClan", > "\n" > } > > Obviosuly thats just a silly sample, list > out what you want to show up as the clan > abbreviation. > > Also note you need to add to that list whenever you create a new clan > online.. > > Then down there, replace GET_CLAN(wch) with CLAN_ABBR(wch) > > > > > Could you explain well?? and how do I put them into the do_who? > > > CLASS_ABBR(wch), RACE_ABBR(ch), GET_CLAN(wch), > > GET_NAME(wch), > > > GET_TITLE(wch)); > > > Mortals++; > > > > > > That is where I have been adding things. > > > > > > > > > _____________________________________ > > > / \ > > > | IMP of The Savage Lands | > > > | wiseguy@savage.mudservices.com | > > > | | > > > \_______________________________________/ > > > > > > Sticks and Stones will break your bones, but words > > > shall kick your ass! > > > +-----------------------------------------------------------+ > > > | Ensure that you have read the CircleMUD Mailing List FAQ: | > > > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > > > +-----------------------------------------------------------+ > > +-----------------------------------------------------------+ > > | Ensure that you have read the CircleMUD Mailing List FAQ: | > > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > > +-----------------------------------------------------------+ > > > > > ******************************************************************* > * Ron Hensley ron@dmv.com * > * Systems Administrator http://www.dmv.com/~ron * > * PGP Key at WWW Page * > * DelMarVa OnLine 749-7898 Ext. 403 * > ******************************************************************* +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST