Re: [CODE] Rent flag..

From: Anthony Rye (ajrye@one.net)
Date: 03/31/99


On Tue, 30 Mar 1999, Brian Heimgartner wrote:

> I'm trying to make a small rent flag in the do_quit, I'll show a small
> snippet of what I have:
>
> ACMD(do_quit)
> {
>   sh_int save_room;
>   struct descriptor_data *d, *next_d;
>
>   if (IS_NPC(ch) || !ch->desc)
>     return;
>
> ~  if (IS_SET(ROOM_FLAGS(ch->in_room), !ROOM_RENT))
> ~    send_to_char("This doesn't look like a good place to camp.");
>
>   if (subcmd != SCMD_QUIT && GET_LEVEL(ch) < LVL_IMMORT)
>     send_to_char("You have to type quit--no less, to quit!\r\n", ch);
>   else if (GET_POS(ch) == POS_FIGHTING)
>     send_to_char("No way!  You're fighting for your life!\r\n", ch);

Hmm why do all that when it can be funner to do this:

ACMD(do_camp)
}
etc..
send_to_char("This Looks to be a dandy campsite!\r\n",ch);
 else if (GET_POS(ch) == POS_STANDING)
send_to_char("This Is a good site ,but you may wanna setup camp first..etc
blah blah
I think ya get the hint :P


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