flushobs.c

ds2.1.1/lib/secure/cmds/creators/flushobs.c · 732 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <rooms.h>

inherit LIB_DAEMON;

int cmd(string str) {
    object *rooms = ({});

    write("Number of currently loaded objects: "+sizeof(objects()));

    write("Destroying objects in the furnace...\n");
    flush_messages(this_player());
    update(ROOM_FURNACE);


    write("Destroying non-environment objects...");
    flush_messages(this_player());

    reap_other();
    reap_other();

    write("Done.");

    write("Number of currently loaded objects: "+sizeof(objects()));
    return 1;
}

void help() {
    write("Syntax: <flushobs>\n\n"+
      "Immediately incinerates anything in the furnace and "+
      "destructs all cloned non-interactive objects that "+
      "lack an environment.\n");
}

Site Stats

Snippets: 1791
Codebases: 571