echoto.c
final_realms_fluffos_v1/lib/cmds/demi/echoto.c · 865 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
/* ehcoto.c
* Externalized by Baldrick jun '97
*/
#include <standard.h>
#include <cmd.h>
inherit CMD_BASE;
//inherit "/global/creator/wiz_cmd_base";
void setup(){
position = 1;
}
static int cmd(string str, object me)
{
string who, what;
object ob;
if(!str || str == "") {
notify_fail("Syntax : echoto <player> <text>\n");
return 0;
}
if(sscanf(str, "%s %s", who, what) != 2) {
notify_fail("Syntax : echoto <player> <text>\n");
return 0;
}
who = lower_case(who);
who = (string)me->expand_nickname(who);
ob = find_player(who);
log_file("ECHOS", ctime(time())+" "+ me->query_cap_name()+
" Echoto's "+who+": " +what+"\n");
what += "%^RESET%^";
me->my_mess("You echo to " + who + ": ", what);
event(ob, "player_echo_to", what + "\n");
me->set_trivial_action();
return 1;
} /* do_echo_to() */