{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
\viewkind4\uc1\pard\f0\fs20 /* Showclass is a command a mortal can use to view the skills and spells his class or any class holds. It is a very nice little code, and it helps out alot in choosing classes and in rerolling. All I ask for is to leave credit for Paradox II mud on top of the code. Thanks. */ \par
\par
/* Showclass from Paradox II */\par
\par
=======++ Add this at the bottom of act_info.c ======++\par
\par
\par
void do_showclass(CHAR_DATA *ch, char *argument)\par
\{\par
 char arg1[MAX_INPUT_LENGTH];\par
 char buf[MAX_STRING_LENGTH];\par
  \par
 int class,level,skill;\par
   \par
 int i;\par
    \par
 strcpy(buf,"");\par
 argument = one_argument(argument, arg1);\par
    \par
 if(arg1[0]=='\\0')\par
 \{\par
  send_to_char("Syntax: showclass [class]\\n\\r",ch);\par
  return;\par
 \}\par
 if((class=class_lookup(arg1))==-1)\par
 \{ \par
  send_to_char("Class not found.\\n\\r",ch);\par
  return;\par
 \}\par
\par
 sprintf(buf,"\{xSpells/skills for %s:\{x\\n\\r",class_table[class].name);\par
 send_to_char(buf,ch);\par
 i=0;\par
 for(level=1;level<=LEVEL_HERO;level++)\par
 \{\par
  for(skill=0;skill<MAX_SKILL;skill++)\par
  \{\par
   if(skill_table[skill].skill_level[class]!=level)\par
    continue;\par
   i++;\par
   sprintf(buf,"\{CLevel %3d: \{x: \{c%-20s\{x  ",\par
    level,skill_table[skill].name);\par
   send_to_char(buf,ch);\par
   if(i==2)\par
   \{\par
    send_to_char("\\n\\r",ch);\par
    i=0;\par
   \}\par
  \} \par
 \}  \par
\}\par
\par
=======++ add this in interp.c ====== ++\par
\par
\{ "showclass",     do_showclass,   POS_DEAD,        0,  1,  LOG_NORMAL, 1 \},\par
\par
=======++ add this in interp.h =======++\par
\par
DECLARE_DO_FUN( do_showclass    );\par
\par
=======++ That is all guys, reboot or copyover and then check it out :) =========++\par
\par
\par
}