Re: [Circle] Newbie: Spec O code

From: Derek L. Karnes (dkarnes@mystech.com)
Date: 11/18/96


Brad Freshour wrote:
> 
> I got a snippet of code for a coke machine and was just messing around with
> it. How do you tell the code which object number it's for?  Hears the code,
> and I have 1200 as the coke dispenser and 1201 as the coke can..
> 
> CODE:  by: Sliver
> --
> SPECIAL(pop_dispenser)
> {
>  struct obj_data *obj = me, *drink;
>  int give_coke = 1206; /* Vnum of the can of coke */


change the 1206 in the line above to be 1201

In spec_assign.c, add ASSIGNOBJ(pop_dispenser, 1200); down next to the
other ASSIGNOBJ statements.
--
                                    \ | /
                        \  /---------------------\  /
                       --    dkarnes@mystech.com    --
                        /  \---------------------/  \
                                    / | \
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST