Re: [CODE] gohome

From: Admin (admin@mudservices.com)
Date: 01/29/97


No, you're not installing it wrogng, when I sent it, I forgot that you
need to use one of the spares in the pfile in structs.h and make it
int gohome, then you need to define it in utils.h right along with
GET_PRACTICES(ch).

Doh, my bad.

James

On Wed, 29 Jan 1997, Adam wrote:

> Hi...
> I added your ACMD(do_gohome) to my file act.other.c, and then i added it
> the proper stuff to interpreter.c, it gave me undefined reference to
> GET_GOHOME
> 
> What is wrong??? am I adding it wrong?
> 
> Thanks,
> 
> Adam
> 
> 
>   _____________________________________
> /                                                                   \
> |  IMP of The Savage Lands                              |
> |    wiseguy@savage.mudservices.com             |
> |                                                                    |
> \_______________________________________/
> 
> Sticks and Stones will break your bones, but words
> shall kick your ass!
> 
> ----------
> > From: Admin <admin@mudservices.com>
> > To: CircleMUD Mailing List <circle@cspo.queensu.ca>
> > Subject:  [CODE] gohome
> > Date: Wednesday, January 29, 1997 3:09 AM
> > 
> > DOH!, sorry about the repeated message, I accidentally sent the other one
> > :P
> > 
> > Here's the last command.
> > 
> > The way I use them is givehome is a LVL_GOD command, takehome is a
> > LVL_GRGOD command and gohome is a any level command.
> > 
> > I hope you enjoy them, and don't forget to put them in interpreter.c as
> > well!
> > 
> > ACMD(do_takehome)
> > {
> >   struct char_data *vict;
> > 
> >   skip_spaces(&argument);
> > 
> >   if (!*argument)
> >   {
> >     send_to_char("Usage: takehome <player>\r\n", ch);
> >     return;
> >   }
> > 
> >   if (!(vict = get_char_vis(ch, argument)))
> >   {
> >      send_to_char(NOPERSON, ch);
> >      return;
> >   }
> > 
> >   if (GET_GOHOME(vict) == 0)
> >   {
> >     sprintf(buf, "%s does not even have a gohome!\r\n", GET_NAME(vict));
> >     send_to_char(buf, ch);
> >     return;
> >   }
> > 
> >     GET_GOHOME(vict) = 0;
> >     sprintf(buf, "%s removes your gohome!\r\n", GET_NAME(ch));
> >     send_to_char(buf, vict);
> >     sprintf(buf, "You remove %s gohome!\r\n", GET_NAME(vict));
> >     send_to_char(buf, ch);
> > }
> > 
> > 
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >                                            ** FINALITY **
> > The Last Great Adventure           finality.mudservices.com 4444
> >              "Judge not, lest ye be judged."
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >    Rasdan: rasdan@necromium.com            Magus: magus560@aol.com
> > 
> > +-----------------------------------------------------------+
> > | Ensure that you have read the CircleMUD Mailing List FAQ: |
> > |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> > +-----------------------------------------------------------+
> 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                           ** FINALITY **
The Last Great Adventure           finality.mudservices.com 4444
             "Judge not, lest ye be judged."
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   Rasdan: rasdan@necromium.com            Magus: magus560@aol.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