history.c
final_realms_fluffos_v1/lib/cmds/player/history.c · 416 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
/* history command externalized by Baldrick.
*/
#include <standard.h>
#include <cmd.h>
inherit CMD_BASE;
void setup()
{
position = 0;
}
string query_usage()
{
return "commands";
}
string query_short_help()
{
return "Shows your history.";
}
static int cmd (string name, object me)
{
/* This is a hack.. altho bloody effective. */
me->print_history();
me->set_trivial_action();
return 1;
}