> > ACK! There is suppost to be a void there to? > You just told me the switch... Ok.. what do I do in the void? > :) > P/S > Sorry for the lag everyone... > > Pheonix the Newbie Imp > This is for listing race in a who or whois-type command? Hmm... well, I added the following to class.c (or races.c, depending on where your race stuff is) const char *race_abbrevs[] = { "Hum", "Elf", "Dwa", "Gno", "Hal", "Gia", "\n" }; const char *pc_race_types[] = { "Human", "Elf", "Dwarf", "Gnome", "Halfling", "Giant", "\n" }; Near the top of act.informative.c (I'll assume this is where you are placing the whois command) extern char *pc_race_types[]; extern char *race_abbrevs[]; Now, wherever you wish to print the race info, use the following to reference: pc_race_types[GET_RACE(ch)] (to get Halfing, Human, etc...) race_abbrevs[GET_RACE(ch)] (to get Hal, Gia, etc...) Note: when compiling with -Wall, i do get a warning "array subscript has type `char'" message, but my C knowledge is not extensive enough to tell if this is a Bad Thing(tm) or no. So, this may be what you're looking for, or it may be totally useless. Hopefully it is of a little use to someone out there. :) -- "Beneath the stain of time, the feeling disappears. -axl @)-->--- You are someone else. I am still right here." - NIN axl@mindwarp.plymouth.edu http://mindwarp.plymouth.edu +-----------------------------------------------------------+ | 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