On Mon, 16 Oct 1995, Gary wrote: > > The zero is your problem. You call obj_to_room without an object. The > object is put into room NOWHERE because you removed it and left it. > Buts that's not all!! if (percent > prob) { if (obj) { unequip_char(vict, WEAR_WIELD); obj_from_char(obj); obj_to_room(obj, vict->in_room); } } Of course, you'll need to cast "obj" like: struct obj_data * obj; After that, set obj to vict->equipment[WEAR_WIELD], and that should be the only major changes. AC can be negative, btw... -- Daniel Koepke dkoepke@california.com
This archive was generated by hypermail 2b30 : 12/07/00 PST