I have a simple sacrifice command that simply extracts the object or corpse from the room. My problem is that if a player tries to sacrifice a mob, the game crashes. How would I perform a check to see that the argument (*buf) is a mobile (or player)? I check to see if the arg is an object by if (obj = get_obj_in_list_vis(blah.. How would I do this for a player or mob? Thanks in advance.. CHuck -- _/_/ +William Carson (Chuck) _/_/ linebacker@microlink.net _/_/ http://www.microlink.net/~linebacker _/_/ +University of Missouri, Rolla _/_/ dept. of electrical engineering _/_/ wcarson@umr.edu _/_/ http://www.umr.edu/~wcarson _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ +-----------------------------------------------------------+ | 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