version 1.83 | | version 1.84 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.83 2006/05/21 20:09:12 akirschbaum Exp $"; | | * "$Id: c_wiz.c,v 1.84 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
return 1; | | return 1; |
} | | } |
| | |
int command_kick(object *op, char *params) { | | int command_kick(object *op, const char *params) { |
struct pl *pl; | | struct pl *pl; |
| | |
for (pl = first_player; pl != NULL; pl = pl->next) { | | for (pl = first_player; pl != NULL; pl = pl->next) { |
| | |
int i; | | int i; |
| | |
if (params == NULL || !sscanf(params, "%d", &i)) { | | if (params == NULL || !sscanf(params, "%d", &i)) { |
sprintf(errmsg, "Current speed is %ld", max_time); | | new_draw_info_format(NDI_UNIQUE, 0, op, "Current speed is %d", max_time); |
new_draw_info(NDI_UNIQUE, 0, op, errmsg); | | |
return 1; | | return 1; |
} | | } |
| | |
| | |
sprintf(buf, "Int : %-2d Damage : %d", | | sprintf(buf, "Int : %-2d Damage : %d", |
pl->ob->stats.Int, pl->ob->stats.dam); | | pl->ob->stats.Int, pl->ob->stats.dam); |
new_draw_info(NDI_UNIQUE, 0, op, buf); | | new_draw_info(NDI_UNIQUE, 0, op, buf); |
#ifndef WIN32 | | sprintf(buf, "Wis : %-2d EXP : %" FMT64, |
sprintf(buf, "Wis : %-2d EXP : %lld", | | |
pl->ob->stats.Wis, pl->ob->stats.exp); | | |
#else | | |
sprintf(buf, "Wis : %-2d EXP : %I64d", | | |
pl->ob->stats.Wis, pl->ob->stats.exp); | | pl->ob->stats.Wis, pl->ob->stats.exp); |
#endif | | |
new_draw_info(NDI_UNIQUE, 0, op, buf); | | new_draw_info(NDI_UNIQUE, 0, op, buf); |
sprintf(buf, "Pow : %-2d Grace : %d", | | sprintf(buf, "Pow : %-2d Grace : %d", |
pl->ob->stats.Pow, pl->ob->stats.grace); | | pl->ob->stats.Pow, pl->ob->stats.grace); |
| | |
if (!QUERY_FLAG(right,FLAG_REMOVED)) | | if (!QUERY_FLAG(right,FLAG_REMOVED)) |
remove_ob(right); | | remove_ob(right); |
inserted = insert_ob_in_ob(right,left); | | inserted = insert_ob_in_ob(right,left); |
if (left->type == PLAYER) | | if (left->type == PLAYER) { |
if (inserted == right) | | if (inserted == right) |
esrv_send_item(left,right); | | esrv_send_item(left,right); |
else | | else |
esrv_update_item(UPD_WEIGHT|UPD_NAME|UPD_NROF,left,inserted); | | esrv_update_item(UPD_WEIGHT|UPD_NAME|UPD_NROF,left,inserted); |
| | } |
new_draw_info_format(NDI_UNIQUE, 0, op, "Inserted %s in %s", query_name(inserted),query_name(left)); | | new_draw_info_format(NDI_UNIQUE, 0, op, "Inserted %s in %s", query_name(inserted),query_name(left)); |
| | |
return 0; | | return 0; |
| | |
} | | } |