Re: Re[2]: [CODE] gohome

From: Adam (us001725@mindspring.com)
Date: 01/29/97


How would I rename the spare... I have never done something like this
before...??
and define the macro to point to it.... which file? what would I type, and
where?

Thanks for the patience and help,

Adam

  _____________________________________
/                                                                   \
|  IMP of The Savage Lands                              |
|    wiseguy@savage.mudservices.com             |
|                                                                    |
\_______________________________________/

Sticks and Stones will break your bones, but words
shall kick your ass!

----------
> From: Gary Barnett <gbarnett@polarnet.com>
> To: circle@cspo.queensu.ca
> Cc: admin@mudservices.com
> Subject: Re[2]:  [CODE] gohome
> Date: Wednesday, January 29, 1997 4:57 PM
> 
> It looks like GO_HOME is a macro pointing to a variable stored on the
> character. You could probably rename one of the spares and define the
> macro to point to it. Just a guess though, as I didn't write.. and
haven't
> used the code.
> 
> --Mallory
> 
> 
> At [Wed, 29 Jan 1997 04:35:59 -0500]
> "Adam" <us001725@mindspring.com> 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   |
> >  > +-----------------------------------------------------------+
> >  +-----------------------------------------------------------+
> >  | Ensure that you have read the CircleMUD Mailing List FAQ: |
> >  |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> >  +-----------------------------------------------------------+
> >  
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
+-----------------------------------------------------------+
| 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