Hello all =)
Ok heres the problem. Whenever i make a mob do_function.. for example..
do_function(ch, &do_wear, "all");
at startup, the mud crashes out. (this is for my item generator, since i
had the bright idea
to make this version in all function commands *what the hell was i
thinking* basicly if a mob
is flagged for a treasure class, it generates the items for it, and since a
mob with a sword
wouldnt just carry it, hed use it.. i though hey lets make em wear all.. ;)
Anywho, when it does this, it gives me an error on the next function
pMob = create_mobile (pMobIndex);
do_function(pMob, &gen_shop, "");
do_function(pMob, &gen_eq, "");
do_function(pMob, &do_wear, "all");
/*
* Some more hard coding.
*/
if (room_is_dark (pRoom))
SET_BIT (pMob->affected_by, AFF_INFRARED);
gdb will output the error is in room_is_dark
Any help is appreciated.
-Thri