version 1.12 | | version 1.13 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.12 2001/07/14 04:11:18 mwedel Exp $"; | | * "$Id: c_wiz.c,v 1.13 2001/10/14 07:57:14 gros Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
do_forget_spell (op, spell); | | do_forget_spell (op, spell); |
return 1; | | return 1; |
} | | } |
| | /* GROS */ |
| | /* Lists all plugins currently loaded with their IDs and full names. */ |
| | int command_listplugins(object *op, char *params) |
| | { |
| | displayPluginsList(op); |
| | return 1; |
| | }; |
| | /* GROS */ |
| | /* Loads the given plugin. The DM specifies the name of the library to load */ |
| | /* (no pathname is needed). Do not ever attempt to load the same plugin more */ |
| | /* than once at a time, or bad things could happen. */ |
| | int command_loadplugin(object *op, char *params) |
| | { |
| | char buf[MAX_BUF]; |
| | |
| | strcpy(buf,DATADIR); |
| | strcat(buf,"/plugins/"); |
| | strcat(buf,params); |
| | printf("Requested plugin file is %s\n", buf); |
| | initOnePlugin(buf); |
| | return 1; |
| | }; |
| | /* GROS */ |
| | /* Unloads the given plugin. The DM specified the ID of the library to */ |
| | /* unload. Note that some things may behave strangely if the correct plugins */ |
| | /* are not loaded. */ |
| | int command_unloadplugin(object *op, char *params) |
| | { |
| | removeOnePlugin(params); |
| | return 1; |
| | }; |