… | |
… | |
969 | command_nowiz (object *op, char *params) |
969 | command_nowiz (object *op, char *params) |
970 | { /* 'nodm' is alias */ |
970 | { /* 'nodm' is alias */ |
971 | CLEAR_FLAG (op, FLAG_WIZ); |
971 | CLEAR_FLAG (op, FLAG_WIZ); |
972 | CLEAR_FLAG (op, FLAG_WIZPASS); |
972 | CLEAR_FLAG (op, FLAG_WIZPASS); |
973 | CLEAR_FLAG (op, FLAG_WIZCAST); |
973 | CLEAR_FLAG (op, FLAG_WIZCAST); |
|
|
974 | CLEAR_FLAG (op, FLAG_WIZLOOK); |
|
|
975 | op->contr->do_los = 1; |
974 | |
976 | |
975 | if (op->contr->hidden) |
977 | if (op->contr->hidden) |
976 | { |
978 | { |
977 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer hidden from other players"); |
979 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer hidden from other players"); |
978 | op->map->players++; |
980 | op->map->players++; |
… | |
… | |
980 | op->contr->hidden = 0; |
982 | op->contr->hidden = 0; |
981 | op->invisible = 1; |
983 | op->invisible = 1; |
982 | } |
984 | } |
983 | else |
985 | else |
984 | new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master is gone.."); |
986 | new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master is gone.."); |
|
|
987 | |
985 | return 1; |
988 | return 1; |
986 | } |
989 | } |
987 | |
990 | |
988 | /** |
991 | /** |
989 | * object *op is trying to become dm. |
992 | * object *op is trying to become dm. |
… | |
… | |
1043 | if (checkdm (op, op->name, (params ? params : "*"), op->contr->ns->host)) |
1046 | if (checkdm (op, op->name, (params ? params : "*"), op->contr->ns->host)) |
1044 | { |
1047 | { |
1045 | SET_FLAG (op, FLAG_WIZ); |
1048 | SET_FLAG (op, FLAG_WIZ); |
1046 | SET_FLAG (op, FLAG_WIZPASS); |
1049 | SET_FLAG (op, FLAG_WIZPASS); |
1047 | SET_FLAG (op, FLAG_WIZCAST); |
1050 | SET_FLAG (op, FLAG_WIZCAST); |
|
|
1051 | SET_FLAG (op, FLAG_WIZLOOK); |
|
|
1052 | op->contr->do_los = 1; |
1048 | |
1053 | |
1049 | new_draw_info (NDI_UNIQUE, 0, op, "Ok, you are the Dungeon Master!"); |
1054 | new_draw_info (NDI_UNIQUE, 0, op, "Ok, you are the Dungeon Master!"); |
1050 | /* |
|
|
1051 | * Remove setting flying here - that won't work, because next |
|
|
1052 | * fix_player() is called that will get cleared - proper solution |
|
|
1053 | * is probably something like a wiz_force which gives that and any |
|
|
1054 | * other desired abilities. |
|
|
1055 | */ |
|
|
1056 | op->contr->clear_los (0); |
|
|
1057 | op->contr->write_buf[0] = '\0'; |
1055 | op->contr->write_buf[0] = '\0'; |
1058 | |
1056 | |
1059 | if (!silent) |
1057 | if (!silent) |
1060 | new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master has arrived!"); |
1058 | new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master has arrived!"); |
1061 | |
1059 | |