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? > > Im trying to add an assassinate and it works, but its powerful, se I need a > way to check to see that there is only > one other person in the room (besides yourself). > Any help is appriciated (as always! ;) ) char_data * tch; int count = 0; for (tch = world[ch->in_room].people; tch; tch = tch->next_in_room) ++count; // at this point count should be the # of people in the room.... This is Mailer Code and not garunteed to work or even compile. Good luck. -- Zeavon Calatin, MageMaster of the Realms Spear of Insanity http://spear.kilnar.com/ telnet://spear.kilnar.com:1066 +------------------------------------------------------------+ | 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