cor_score.c

demise/src/cor_score.c · 2.7 KB

From the archive dodbackup-final.tar.gz

Download the archive   « Back to the archive contents

/*****************************************************************************************************
*                                                                                                    *
*                                                                                                    *
*                               New Score Sheet for Dreams of Demise                                 *
*												     *
*                                                                                                    *
*                                                                                                    *
*                                   Coded by Corim aka Infinity                                      *
*                                       aka Gunnar Trulsrud                                          *
*                                                                                                    *
*                                                                                                    *
*                                                                                                    *
*                                                                                                    *
*****************************************************************************************************/



#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>		/* unlink() */
#include "merc.h"

void
nban (CHAR_DATA * ch)
{
  int number = 0;
  char buf[MSL];

  if (ch == NULL)
    return;
  buf[0] = '\0';
  strcat (buf, "#y");
  for (number = 0; number < 14; number++)
    strcat (buf, "-#o*#L<>#o*#y-");
  strcat (buf, "#n\n\r");
  send_to_char (buf, ch);
  return;
}


void
do_nscore (CHAR_DATA * ch, char *argument)
{
  char buf[MSL];
  int a_c = char_ac (ch);

  if (IS_NPC (ch))
    return;

  if (!IS_NPC (ch)
      && (IS_EXTRA (ch, EXTRA_OSWITCH) || IS_HEAD (ch, LOST_HEAD)))
    {
      obj_score (ch, ch->pcdata->chobj);
      return;
    }
  stc ("\n\r", ch);
  nban (ch);
  sprintf (buf,
	   "  #7Handle:#n %s%s.#n                #7Work:#n %d hours.\n\r",
	   ch->name, ch->pcdata->title, (get_age (ch) - 17) * 2);
  stc (buf, ch);
  stc ("  ", ch);
  if (!IS_NPC (ch))
    birth_date (ch, TRUE);
  if (!IS_NPC (ch) && IS_EXTRA (ch, EXTRA_PREGNANT))
    birth_date (ch, FALSE);
  if (get_trust (ch) != ch->level)
    {
      sprintf (buf, "  #7Trust:#n %d.\n\r", get_trust (ch));
      stc (buf, ch);
    }
  nban (ch);
  stc ("  #7Stats
//              -*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*--*<>*-

  return;
}



Site Stats

Snippets: 1791
Codebases: 571