/* * Mudstat code (immortal command) * * Written by John Patrick (j.s.patrick@ieee.org) * for Ansalon (ansalon.wolfpaw.net 8679) * * I'm very big in intellectual property rights. In order to use * this code or any derivatives in your MUD, you must do the following: * * - E-mail me at j.s.patrick@ieee.org * - Have a helpfile for the item that includes a credit to me, with * the above e-mail address in it. (E.g. This code was written by * John Patrick (j.s.patrick@ieee.org) and used with permission.) * */ #include #include #include #include "merc.h" extern bool newlock; extern bool wizlock; void do_mudstat( CHAR_DATA *ch, char *argument ) { char buf[64]; send_to_char("{w Current MUD Status{x\n\r{w---------------------{x\n\r", ch); sprintf(buf," Newlock is: %s\n\r",newlock ? "{rON{x" : "{yOFF{x"); send_to_char(buf, ch); sprintf(buf," Wizlock is: %s\n\r",wizlock ? "{rON{x" : "{yOFF{x"); send_to_char(buf, ch); }