Re: Coke machine

From: Julian Buckley (s348266@student.uq.edu.au)
Date: 02/28/99


>   Hello, ok after Julian Buckley's help, I have changed somethings on my
> coke machine project.  I did a few changes.  Here they are:
>
> In the spec_assign.c I did the following:
>
> SPECIAL(pop_dispenser);
> ASSIGNOBJ(1207, pop_dispenser);
>
> ok now .. I log back onto my mud and create me a pop dispenser with a 1207
> vnum number, do I also need to define the cokes that come out too?  inside
> the code in spec_procs.c it has a line like this:
>
> int give_coke = 1206; /* vnum of can of coke */
> would that define the coke so I don't have to add a assignobj to it or do I
> need to?

Object #1206 has to exist.  So, make an item #1206 of type DRINK_CONTAINER
(so it can contain liquid perhaps? :)).  Then try it.

That is, assuming the pop_dispenser's item# 1207.  You can change those at
will however.

-----------------------------------------------------------------
 Julian Buckley, 3rd Year Software Engineering
 Dept. Computer Science and Electrical Engineering, Univ. of Qld
 E-Mail: s348266@student.uq.edu.au
 Web Page: http://student.uq.edu.au/~s348266/index.html
-----------------------------------------------------------------


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