Re: [Circle] Displaying RACE/CLASS

From: Mud Administrator (mudadmin@vistech.net)
Date: 11/15/96


On Fri, 15 Nov 1996, Bruce, Ray, Phil wrote:

> WHen you want to display the WHOLE word of a CLASS or RACE...
> How do you do it?
> GET_RACE and GET_CLASS dont work... THey either give (null) or Crash the
> mud... Could someone direct me on how I could display the race and class in
> the score and whois commands.

the way i do it is at the beginning of the file I want to have display 
the race names put this(for class):
extern char *pc_class_types[];

then wherever you need the class name: pc_class_types[(int) GET_CLASS(ch)]

well thats how I do it, well except that i defined a macro for it. but 
**shrug**


--FREAKboy
+-----------------------------------------------------------+
| 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