> From: lsdinc@ELKNET.NET > To: CIRCLE@post.queensu.ca > Subject: [newbie] mob's current room > Date: Friday, July 18, 1997 7:58 PM > > how do i go about finding a specific mob's current room? > > i have looked all over looking for an example and don't even know where to > find this. ---------- Well, 2 ways really.... depending on what you already have. 1) If you have a pointer to it already. ch->in_room (or vict->in_room, whatever) 2) If you have it's name in a string struct char_data *mob = get_char_room_vis(ch, name); (get_char_vis() will return anywhere in world) where ch is the person looking for the mob, and name is the name of the mob, eg. "guard" I think thats how it works, just search for get_char_room_vis and I'm sure you'll find lots of examples. Rob Baumstark: shirak@connect.ab.ca cst0656@nait.ab.ca Forsaken Realms: telnet://drewl.v-wave.com:4000 +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST