version 1.24 | | version 1.25 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.24 2002/09/23 06:27:54 mwedel Exp $"; | | * "$Id: c_wiz.c,v 1.25 2002/09/28 07:19:40 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#include <treasure.h> | | #include <treasure.h> |
#include <skills.h> | | #include <skills.h> |
| | |
| | |
| | int command_hide(object *op, char *params) |
| | { |
| | if (op->contr->hidden) { |
| | op->contr->hidden=0; |
| | new_draw_info(NDI_UNIQUE, 0,op, "You are no longer hidden from other players"); |
| | op->map->players++; |
| | new_draw_info_format(NDI_UNIQUE | NDI_ALL, 5, NULL, |
| | "%s has entered the game.",op->name); |
| | } |
| | else { |
| | op->contr->hidden=1; |
| | new_draw_info(NDI_UNIQUE, 0,op, "Other players will no longer see you."); |
| | op->map->players--; |
| | new_draw_info_format(NDI_UNIQUE | NDI_ALL, 5, NULL, |
| | "%s left the game.",op->name); |
| | } |
| | return 1; |
| | } |
| | |
| | |
/* This finds and returns the object which matches the name or | | /* This finds and returns the object which matches the name or |
* object nubmer (specified via num #whatever). | | * object nubmer (specified via num #whatever). |
*/ | | */ |
| | |
#ifdef REAL_WIZ | | #ifdef REAL_WIZ |
CLEAR_FLAG(op, FLAG_WAS_WIZ); | | CLEAR_FLAG(op, FLAG_WAS_WIZ); |
#endif | | #endif |
| | op->contr->hidden=0; |
new_draw_info(NDI_UNIQUE | NDI_ALL, 1, NULL, | | new_draw_info(NDI_UNIQUE | NDI_ALL, 1, NULL, |
"The Dungeon Master is gone.."); | | "The Dungeon Master is gone.."); |
return 1; | | return 1; |
| | |
| | |
int command_invisible (object *op, char *params) | | int command_invisible (object *op, char *params) |
{ | | { |
if (!op) | | if (op) { |
return 0; | | |
op->invisible+=100; | | op->invisible+=100; |
update_object(op,UP_OBJ_FACE); | | update_object(op,UP_OBJ_FACE); |
new_draw_info(NDI_UNIQUE, 0,op,"You turn invisible."); | | new_draw_info(NDI_UNIQUE, 0,op,"You turn invisible."); |
| | } |
return 0; | | return 0; |
} | | } |
| | |
| | |
removeOnePlugin(params); | | removeOnePlugin(params); |
return 1; | | return 1; |
} | | } |
| | |