On Mon, 3 Jan 2000, J P wrote:
> How would you check to see if there is more than one player/mob (besides
> yourself) in the room?
Other people have posted responses, but here's one already in stock
Circle.
num_pc_in_room(). Look at it (I can't get to my code ATM) and see how to
call it, and if it includes the character (if a char_data pointer is
passed to it) in the count.
If character is included:
if (num_pc_in_room(proper args) != 2)
fail...
If not:
if (num_pc_in_room(proper args) != 1)
fail...
You might want to check on this.
-k.
--
Tony Robbins | Kupoppo.Net (under construction/currently down)
robbinsw@ucs.orst.edu | http://kupoppo.dhs.net/
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT