Re: Spell Components

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/23/97


On Sat, 23 Aug 1997, Uffe Svanstrom wrote:

>Anyone know how to implement the spell components with ingredients and so on
>i have been thinking of this one for a long time but
>never really understood how to do so the code will check for surtain
>objects in the inventory !

Magic.c line 224

/*
 *  mag_materials:
 *  Checks for up to 3 vnums (spell reagents) in the player's inventory.
 *
 * No spells implemented in Circle 3.0 use mag_materials, but you can use
 * it to implement your own spells which require ingredients (i.e., some
 * heal spell which requires a rare herb or some such.)
 */
int mag_materials(struct char_data * ch, int item0, int item1, int item2,
                      int extract, int verbose)

--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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