I can see why he wants to "wear all". To "equip_char" he would have to list each piece of eq, which "wear all" will do for him.
-Valnir ----- Original Message ----- From: "Dale Kingston" <[EMAIL PROTECTED]> To: "Cyhawk" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Friday, March 19, 2004 2:19 PM Subject: Re: do_function problem > The mob isn't in a room, you just barly created it.... And rather the having > it wear it. Seems how this is at startup your having it wear your random eq > right? Why not use equip_char rather then do_wear? > ----- Original Message ----- > From: "Cyhawk" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Friday, March 19, 2004 12:14 PM > Subject: do_function problem > > > > 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 > > > > > > -- > > ROM mailing list > > [email protected] > > http://www.rom.org/cgi-bin/mailman/listinfo/rom > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

