echo.c
final_realms_fluffos_v1/lib/cmds/creator/echo.c · 542 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
/* echo.c
* Externalized by Baldrick jun '97
*/
#include <standard.h>
#include <cmd.h>
inherit CMD_BASE;
void setup(){
position = 1;
}
static int cmd(string str, object me)
{
if (!str || str == "") {
notify_fail("Syntax : echo <text>\n");
return 0;
}
log_file("ECHOS", ctime(time())+" "+ me->query_name()+" echo's: "+
str+"\n");
str += "%^RESET%^";
me->my_mess("You echo: ", str);
event(environment(me), "player_echo", str + "\n");
me->set_trivial_action();
return 1;
} /* do_echo() */