I was beginning to suspect that some mob or item was buggy, so i went through the object vnums and made all the furntiure like things actually be furniture... Here is the way my show_obj looks now: void show_obj_to_char(struct obj_data * object, struct char_data * ch, int mode) { struct char_data *temp = NULL; int found = 0; *buf = '\0'; if ((mode == 0) && object->description) { if ( (GET_OBJ_TYPE(object) == ITEM_CHAIR && GET_OBJ_VAL(object, 1) == 0) || !OBJ_SAT_IN_BY(object)) { sprintf(buf, "%s", QGRN); strcpy(buf + strlen(buf), object->description); sprintf(buf + strlen(buf), "%s", QNRM); } else { temp = OBJ_SAT_IN_BY(object); for (temp = OBJ_SAT_IN_BY(object); temp; temp = NEXT_SITTING(temp)) { if (temp == ch) found = 1; } if (found == 1) { if (GET_POS(ch) == POS_SITTING) sprintf(buf, "&gYou are sitting %s %s.&n", furniture_bits[GET_OBJ_VAL(object, 2)], (CAN_SEE_OBJ(ch, object) ? object->short_description : "something")); --> bla bla -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST