title.c

final_realms_fluffos_v1/lib/cmds/creator/title.c · 527 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

/* title.c
 * Externalized by Baldrick jun '97
 */

#include <standard.h>
#include <cmd.h>
inherit CMD_BASE;

void setup(){

position = 1;
}

static int cmd(string str, object me) 
  {
  string title;

  title = me->query_title();
  if (!str) 
    {
    if(title) write("Your title is: "+title+"\n");
     else 
      write("You have no title.\n");
    }
   else 
    if (str=="-c")
      {
      write("Clearing your title.\n");
      me->set_title(0);
      return 1;
      }
    else
     me->set_title(str);
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571