Re: [Code] ASSIGNMOB() function

From: Phillip A. Ames (kirk47@JUNO.COM)
Date: 10/17/98


On Fri, 16 Oct 1998 17:07:57 PDT Roger Smith <sexycoder@HOTMAIL.COM>
writes:
>I would like to know how to assign a spec to a mob using a command
>online, but I haven't had any success.
>
>For example: assignmob 1200 receptionist
>
>I don't know how exactly to convert a char into a SPECIAL().
>
>Basically I'm asking:
>How do I turn "receptionist" into SPECIAL(receptionist) without using a
>lot of if-statements?
>
>The funtion is in spec_assign.c:
>void ASSIGNMOB(int mob, SPECIAL(fname));
>
>Thanks.
>-Roger

I don't know if this is what you're looking for, but in the SMAUG
codebase, there is something similar to this(I think).  But as I haven't
seen that in a while, I don't know for certain.  You may want to try
looking in the special.c file included with that.

-Phillip


Phillip Ames    | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html(Unfinished)

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
or call Juno at (800) 654-JUNO [654-5866]


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