1 | /* |
1 | /* |
2 | * static char *rcsid_apply_c = |
2 | * static char *rcsid_apply_c = |
3 | * "$Id: apply.c,v 1.1.1.2 2006/02/22 18:03:18 elmex Exp $"; |
3 | * "$Id: apply.c,v 1.4 2006/03/31 18:08:08 root Exp $"; |
4 | */ |
4 | */ |
5 | /* |
5 | /* |
6 | CrossFire, A Multiplayer game for X-windows |
6 | CrossFire, A Multiplayer game for X-windows |
7 | |
7 | |
8 | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
8 | Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
… | |
… | |
2348 | return 1; |
2348 | return 1; |
2349 | } |
2349 | } |
2350 | |
2350 | |
2351 | static void apply_savebed (object *pl) |
2351 | static void apply_savebed (object *pl) |
2352 | { |
2352 | { |
|
|
2353 | #ifndef COZY_SERVER |
2353 | if(!pl->contr->name_changed||!pl->stats.exp) { |
2354 | if(!pl->contr->name_changed||!pl->stats.exp) { |
2354 | new_draw_info(NDI_UNIQUE, 0,pl,"You don't deserve to save your character yet."); |
2355 | new_draw_info(NDI_UNIQUE, 0,pl,"You don't deserve to save your character yet."); |
2355 | return; |
2356 | return; |
2356 | } |
2357 | } |
|
|
2358 | #endif |
2357 | if(QUERY_FLAG(pl,FLAG_WAS_WIZ)) { |
2359 | if(QUERY_FLAG(pl,FLAG_WAS_WIZ)) { |
2358 | new_draw_info(NDI_UNIQUE, 0,pl,"Since you have cheated you can't save."); |
2360 | new_draw_info(NDI_UNIQUE, 0,pl,"Since you have cheated you can't save."); |
2359 | return; |
2361 | return; |
2360 | } |
2362 | } |
2361 |
|
2363 |
|
… | |
… | |
3207 | } |
3209 | } |
3208 | |
3210 | |
3209 | |
3211 | |
3210 | |
3212 | |
3211 | /** |
3213 | /** |
3212 | * who is the object using the object. It can be a monster |
3214 | * who is the object using the object. It can be a monster. |
3213 | * op is the object they are using. op is an equipment type item, |
3215 | * op is the object they are using. op is an equipment type item, |
3214 | * eg, one which you put on and keep on for a while, and not something |
3216 | * eg, one which you put on and keep on for a while, and not something |
3215 | * like a potion or scroll. |
3217 | * like a potion or scroll. |
3216 | * |
3218 | * |
3217 | * function returns 1 if the action could not be completed, 0 on |
3219 | * function returns 1 if the action could not be completed, 0 on |