… | |
… | |
597 | |
597 | |
598 | if (object *op = esrv_get_ob_from_count (pl->ob, tag)) |
598 | if (object *op = esrv_get_ob_from_count (pl->ob, tag)) |
599 | { |
599 | { |
600 | std::string s = op->describe (pl->ob); |
600 | std::string s = op->describe (pl->ob); |
601 | |
601 | |
602 | if (msg_is_special (s.c_str (), false)) |
|
|
603 | cfperl_expand_cfpod (pl, s); |
|
|
604 | |
|
|
605 | packet sl ("ex"); |
602 | packet sl ("ex"); |
606 | sl << ber32 (tag) << s.c_str (); |
603 | sl << ber32 (tag) |
|
|
604 | << data (*pl->expand_cfpod (s.c_str ())); |
607 | |
605 | |
608 | pl->ns->send_packet (sl); |
606 | pl->ns->send_packet (sl); |
609 | } |
607 | } |
610 | } |
608 | } |
611 | |
609 | |
… | |
… | |
696 | { |
694 | { |
697 | if (tmp->invisible && !QUERY_FLAG (ob, FLAG_WIZ)) |
695 | if (tmp->invisible && !QUERY_FLAG (ob, FLAG_WIZ)) |
698 | continue; |
696 | continue; |
699 | |
697 | |
700 | if (QUERY_FLAG (ob, FLAG_WIZ)) |
698 | if (QUERY_FLAG (ob, FLAG_WIZ)) |
701 | buf.printf ("- %s (%d).\n", query_name (tmp), tmp->count); |
699 | buf.printf (" - %s (%d).\n", query_name (tmp), tmp->count); |
702 | else |
700 | else |
703 | buf.printf ("- %s.\n", query_name (tmp)); |
701 | buf.printf (" - %s.\n", query_name (tmp)); |
704 | |
702 | |
705 | object *head = tmp->head_ (); |
703 | object *head = tmp->head_ (); |
706 | |
704 | |
707 | if (head->inv) |
705 | if (head->inv) |
708 | if ((head->type != CONTAINER && head->type != FLESH) |
706 | if ((head->type != CONTAINER && head->type != FLESH) |
709 | || QUERY_FLAG (ob, FLAG_WIZ)) |
707 | || QUERY_FLAG (ob, FLAG_WIZ)) |
710 | buf << head->query_inventory (ob, " "); |
708 | buf << head->query_inventory (ob, " "); |
711 | |
709 | |
712 | if (QUERY_FLAG (tmp, FLAG_IS_FLOOR) && !QUERY_FLAG (ob, FLAG_WIZ)) /* don't continue under the floor */ |
710 | if (QUERY_FLAG (tmp, FLAG_IS_FLOOR) && !QUERY_FLAG (ob, FLAG_WIZ)) /* don't continue under the floor */ |
713 | break; |
711 | break; |
714 | } |
712 | } |
715 | |
713 | |