Ranged Search Code
by Justice (Kwon J. Ekstrom)
Updated: June 13, 2006
Please note:
This snippet requires that SmaugFUSS be C++ compatible
In Makefile:
Change:
CC = gcc
To:
CC = g++
Change:
track.c update.c
To:
track.c update.c search.c
In mud.h:
Change:
#define DECLARE_DO_FUN( fun ) DO_FUN fun
To:
#define CMDF( name ) extern "C" void (name)( char_data *ch, char *argument )
#define DECLARE_DO_FUN(fun) CMDF(fun)
That should be it. If you want to use the examples provided add:
DECLARE_DO_FUN( do_scan2 );
DECLARE_DO_FUN( do_map );
To the function declarations in mud.h and register them on the mud using cedit.
(note that cedit will compain if you add the command "map" due to "mapout")