Re: [CODE]Spec procs

From: Patrick Dughi (dughi@imaxx.net)
Date: 04/28/99


> I have a question about spec procs: Is there any way for a spec proc to
> determine the vnum of the npc/obj/room it is on? I've looked through all
> of the procs given, and I can't find any example of anything similar. As
> for the reason I want to know if this is possible is I'm going to have
> one spec proc assigned to some npc's, and when the user types a specific
> command (the same for each), each npc will resond in a certain, possibly
> unique, way. Or would it be better for me to simply write a bunch of
> spec procs, one for each npc, and just assign unique spec procs to each
> npc?

        struct char_data *mob = (struct char_data *) me;

        vnum = GET_MOB_VNUM(mob);

                                        PjD


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST