_save.c

foundationI_fluffos_v1/lib/cmds/mortal/_save.c · 830 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

//	/bin/user/_save.c
//	from the Nightmare mudlib
//	command to save the player
//	written by Descartes of Borg

#include <std.h>

inherit DAEMON;

int
cmd_save(string str) {
    if(this_player()->query_disable()) {
	write("Wait a minute.");
	return 1;
    }
    this_player()->set_disable();
    this_player()->save_player((string)this_player()->query_name());
    write(this_player()->query_cap_name()+" is now saved.");
    return 1;
}

int
help() {
   message("help", "Command: save\nSyntax: save\n\nThis command saves the"
           " present status of your character to disk.  This is important as"
           " it is this file that will be used to set your character back "
           "up if the mud should crash.  Your character is automatically "
           "saved if you quit.", this_player());
  return 1;
}
/* EOF */

Site Stats

Snippets: 1791
Codebases: 571