On Wed, 22 Jan 1997, DJ Pure wrote: > G'day All. > How can i check a players inventory for an eq type (GET_OBJ_TYPE(obj) ) ... struct obj_data *obj; for (obj = ch->carrying; obj; obj = obj->next_content) if (GET_OBJ_TYPE(obj) == ITEM_WHATEVER) break; if (!obj) { send_to_char("Didn't find it.\r\n", ch); return; } send_to_char("Found it.\r\n", ch); ... -- Daniel Koepke dkoepke@california.com Forgive me father, for I am sin. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST