… | |
… | |
360 | |
360 | |
361 | become_follower (ob, god); |
361 | become_follower (ob, god); |
362 | return 1; |
362 | return 1; |
363 | } |
363 | } |
364 | |
364 | |
365 | // TODO: Rewrite banish in perl and get rid of the following two functions |
|
|
366 | static int |
|
|
367 | command_kick (object *op, char *params) |
|
|
368 | { |
|
|
369 | for_all_players (pl) |
|
|
370 | if ((params == NULL || !strcmp (&pl->ob->name, params)) && !INVOKE_PLAYER (KICK, pl, ARG_STRING (params))) |
|
|
371 | { |
|
|
372 | object *plop = pl->ob; |
|
|
373 | |
|
|
374 | if (!QUERY_FLAG (plop, FLAG_REMOVED) && !QUERY_FLAG (plop, FLAG_FREED)) |
|
|
375 | { |
|
|
376 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s is kicked out of the game.", &plop->name); |
|
|
377 | plop->contr->killer = op; |
|
|
378 | } |
|
|
379 | |
|
|
380 | pl->ns->destroy (); |
|
|
381 | } |
|
|
382 | |
|
|
383 | return 1; |
|
|
384 | } |
|
|
385 | |
|
|
386 | //TODO |
|
|
387 | #if 0 |
|
|
388 | int |
|
|
389 | command_save_overlay (object *op, char *params) |
|
|
390 | { |
|
|
391 | if (!op) |
|
|
392 | return 0; |
|
|
393 | |
|
|
394 | if (op != NULL && !QUERY_FLAG (op, FLAG_WIZ)) |
|
|
395 | { |
|
|
396 | new_draw_info (NDI_UNIQUE, 0, op, "Sorry, you can't force an overlay save."); |
|
|
397 | return 1; |
|
|
398 | } |
|
|
399 | |
|
|
400 | new_save_map (op->map, 2); |
|
|
401 | new_save_map (op->map, 0); |
|
|
402 | new_draw_info (NDI_UNIQUE, 0, op, "Current map has been saved as an" " overlay."); |
|
|
403 | |
|
|
404 | ready_map_name (op->map->path, 0); |
|
|
405 | |
|
|
406 | return 1; |
|
|
407 | } |
|
|
408 | #endif |
|
|
409 | |
|
|
410 | int |
365 | int |
411 | command_freeze (object *op, char *params) |
366 | command_freeze (object *op, char *params) |
412 | { |
367 | { |
413 | int ticks; |
368 | int ticks; |
414 | player *pl; |
369 | player *pl; |