On Fri, 7 Nov 1997, Ben Britton wrote:
> Could someone give me a hint on how to code a special program so that if
> a character says something the mob will transport them to a corresponding
> location?  I've check all the documents, and the ftp sites for hints but
> came up with nothing.
>
Well I'll give you some hints on how to do it. You could for one install
mobprogs and handle it that way. Or you could write a special procedure.
For the procedure, look at how other specials work. They are assigned
to a mob or mobs in spec_procs.c (I think). They check for what
the command is and do something accordingly. For transferring a
player from one room to another, look at how it's done for goto
and recall. I belive they use char_from_room() and char_to_room().
Hope that helps get you on your way.
Rich
     +------------------------------------------------------------+
     | 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