version 1.32 | | version 1.33 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.32 2003/06/30 19:14:13 tchize Exp $"; | | * "$Id: c_wiz.c,v 1.33 2003/07/24 04:21:14 temitchell Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return(1); | | return(1); |
} | | } |
| | |
| | int command_toggle_shout(object *op, char *params) |
| | { |
| | player *pl; |
| | |
| | if (!params) { |
| | new_draw_info(NDI_UNIQUE, 0,op,"Usage: toggle_shout <player>."); |
| | return 1; |
| | } |
| | |
| | pl = get_other_player_from_name(op, params); |
| | if (!pl) return 1; |
| | |
| | if (pl->ob->contr->no_shout == 0){ |
| | pl->ob->contr->no_shout = 1; |
| | new_draw_info(NDI_UNIQUE | NDI_RED, 0, pl->ob, |
| | "You have been muzzled by the DM!"); |
| | new_draw_info_format(NDI_UNIQUE , 0, op, |
| | "You toggle shout for %s.", pl->ob->name); |
| | return 1; |
| | }else{ |
| | pl->ob->contr->no_shout = 0; |
| | new_draw_info(NDI_UNIQUE | NDI_RED, 0, pl->ob, |
| | "You are allowed to shout again."); |
| | new_draw_info_format(NDI_UNIQUE , 0, op, |
| | "You toggle shout for %s.", pl->ob->name); |
| | return 1; |
| | } |
| | |
| | } |
| | |
int command_shutdown(object *op, char *params) | | int command_shutdown(object *op, char *params) |
{ | | { |
| | |
| | |
removeOnePlugin(params); | | removeOnePlugin(params); |
return 1; | | return 1; |
} | | } |
| | |