version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.66 2005/09/04 16:58:12 akirschbaum Exp $"; | | * "$Id: c_misc.c,v 1.67 2005/09/09 21:09:40 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return 0; | | return 0; |
} | | } |
| | |
| | int command_wizcast (object *op, char *params) |
| | { |
| | int i; |
| | |
| | if (!op) |
| | return 0; |
| | |
| | if (!params) |
| | i = (QUERY_FLAG(op, FLAG_WIZCAST)) ? 0 : 1; |
| | else |
| | i = onoff_value(params); |
| | |
| | if (i) { |
| | new_draw_info(NDI_UNIQUE, 0, op, "You can now cast spells anywhere."); |
| | SET_FLAG(op, FLAG_WIZCAST); |
| | } else { |
| | new_draw_info(NDI_UNIQUE, 0, op, "You now cannot cast spells in no-magic areas."); |
| | CLEAR_FLAG(op, FLAG_WIZCAST); |
| | } |
| | return 0; |
| | } |
| | |
int command_dumpallobjects (object *op, char *params) | | int command_dumpallobjects (object *op, char *params) |
{ | | { |
dump_all_objects(); | | dump_all_objects(); |