On Sat, 11 Apr 1998, Brian wrote:
> for (i = 0; i < NUM_WEARS; i++)
> if (GET_EQ(ch, i))
> unequip_char(ch, i);
/* Change the above line to: */
obj_to_char(unequip_char(ch, i), ch);
> while (ch->carrying) {
> foolz_objs = ch->carrying;
> extract_obj(foolz_objs);
>
That will remove all of the character's eq and stick it in his inventory.
The next loop will then extract everything in the character's inventory,
thus cleaning the character out. :)
John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/
Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST