speakcolor.c

ds2.4.1/lib/cmds/players/speakcolor.c · 681 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DAEMON;

mixed cmd(string str) {
    if( !sizeof(str) )
	return "Syntax: speakcolor <color>";
    this_player()->SetSpeakColor(str);
    write("%^BOLD%^"+this_player()->GetSpeakColor()+"This is your current color for "+
      "receiving spoken messages.");
    return 1;
}

void help() {
    message("help",
      "Syntax: speakcolor [ cyan | red | green | orange | yellow | blue | magenta | black | white ]\n"
      "        speakcolor [ b_cyan | b_red | b_green | b_orange | b_yellow | b_blue | b_magenta | b_black | b_white ]\n\n"
      "This command allows you to set the color in which you receive spoken messages.\n\n",
      this_player() );
}

Site Stats

Snippets: 1791
Codebases: 571