Re: Houses

From: David Blocher (dblocher@postoffice.ptd.net)
Date: 04/14/96


>
>Hello all
>I'm trying to write an ACMD(do_home) function...
>it pretty much follows the format of recall...
>and it would allow ppl with houses to goto them
>with the house command...
>BUT!
>How would I check to see if that person had a house?
>'Cause if the player doesn't have a house and types home
>it core dumps (of course, since he doesn't have a house to goto),
>so I need to first check if the player has a house.. how would
>I do that?
>
>Thanks!
>
>Corey Hoitsma                   AKA -= Myrddin =-
>             choitsma@netcom.com
>Tazmania			tazmania.ah.net 7000
>
This is kinda hoaky but we have a home command which takes a player to his
house.  However when a player buys a house its sets a field in his player
file called house.  The imms can also set this value
so 
set vain house 1220 
will cause vain to goto 1220 when he types home
If a players types home and his house is -1 then is says sorry you do not
have a house.
-vain
***************************************************************
David Blocher                       E-mail:
"In Search of Dead Solid Perfect"   dblocher@prolog.net
***************************************************************



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