_save.c

tmi2_fluffos_v2/lib/cmds/std/_save.c · 850 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

/*
// This file is part of the TMI distribution mudlib.
// Please include this header if you use the code here.
// Written by Sulam(12-13-91)
// Help?? added by Brian on that most wonderful of days (1/28/92)
*/

#include <mudlib.h>

inherit DAEMON;

int
cmd_save(string str) {

    object link ;

    this_player()->save_me();
    link = this_player()->query_link() ;
    if (link) {
	link->save_data() ;
    }
    write(this_player()->query("cap_name")+" is now saved.\n");
    return 1;
}

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

Site Stats

Snippets: 1791
Codebases: 571