The Linkload snippet is really handy, u can't set eq using the set cmd.
i have a command on my mud that saves a player, i put it there so if
ever i needed to shutdown, i don't need to force ppl to save themselves.
So i made a function that saves everything about a person.
ACMD(do_save2)
{
struct descriptor_data *d;
struct char_data *vict;
one_argument(argument, arg);
if (!*arg) {
send_to_char("Save which ship?\r\n", ch);
return;
}
if (!(str_cmp(arg, "all"))) {
for (d = descriptor_list; d; d = d->next) {
if (STATE(d) == CON_PLAYING) {
send_to_char("You have been Completly Saved.\r\n", d->character);
sprintf(buf, "Completly Saving %s and aliases.\r\n",
GET_NAME(d->character));
send_to_char(buf, ch);
write_aliases(d->character);
save_char(d->character, NOWHERE);
Crash_crashsave(d->character);
if (ROOM_FLAGGED(d->character->in_room, ROOM_HOUSE_CRASH))
House_crashsave(GET_ROOM_VNUM(IN_ROOM(d->character)));
}
}
return;
} else {
if (!(vict = get_char_vis(ch, arg, FIND_CHAR_WORLD))) {
send_to_char("They aren't here.\r\n", ch);
return;
}
}
if (IS_NPC(vict))
return;
send_to_char("You have been Completly Saved.\r\n", vict);
sprintf(buf, "Completly Saving %s and aliases.\r\n", GET_NAME(vict));
send_to_char(buf, ch);
write_aliases(vict);
save_char(vict, NOWHERE);
Crash_crashsave(vict);
if (ROOM_FLAGGED(vict->in_room, ROOM_HOUSE_CRASH))
House_crashsave(GET_ROOM_VNUM(IN_ROOM(vict)));
}
If it helps thats great :)
Michael Gallagher
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST