Here's how I solved the problem. (Note I do not claim to have written
this c ode...in fact I may have gotten it from this list. Don't give me
the credit for writing it!) Heheheh.
/* Make a function somewhere (act.other.c probably) and name it
appropriately - I use do_newbie_eq - and make it look like this */
void do_newbie_eq(struct char_data *vict) /* Givng newbies some EQ */
{
struct obj_data *obj;
int give_obj[] = {18601, 18602, 18603, 18604, 18612, 18613, 3010, 3104,
-1};
/* vnums of the newbie EQ. The -1 must stay there I arm them with lots of
stuff from the newbie zone. */
int i;
for (i = 0; give_obj[i] != -1; i++) {
obj = read_object(give_obj[i], VIRTUAL);
obj_to_char(obj, vict);
SET_BIT(PRF_FLAGS(vict), PRF_DISPHP | PRF_DISPMANA | PRF_DISPMOVE |
PRF_AUTOEXIT);
}
}
/* Then in interpreter.c prototype your new function with the rest of the
external functions */
void do_newbie_eq(struct char_data *vict);
/* Now search for a line that contains "START_MESSG, d->character);" and
call your new function right after it */
do_newbie_eq(d->character);
Hope that helps,
-Brian Guilbault
This archive was generated by hypermail 2b30 : 12/18/00 PST