Re: Autoeat/autodrink

From: George (greerga@MIAVX1.ACS.MUOHIO.EDU)
Date: 07/26/97


On Fri, 25 Jul 1997, Ron Cole wrote:

>>      command_interpreter(ch, "eat food"); /* not do_eat for a reason */
>>      command_interpreter(ch, "drink water"); /* pos/freeze/dead check */
>
>Not all food is called food, and liquids, water.  If you're gonna go through the
>trouble of adding these, you should go down their inv list and find the first
>food item and eat that, likewise for the first non-empty liquid container.
>Also, if you are new at coding, it would be good practice coding for other
>projects, since it deals with linked lists and lots of pointer type stuff.

I really didn't want to get that detailed on mailer code.

>I don't see a problem with this, since it's probably the very first thing people
>add when they get a mud client, because eating and drinking are more of an
>annoyance than anything else, on most muds anyway.

Or you could just subtract 10 gold every tick, why stop at automatic
eating?  I don't actually agree with the code, I just wrote how to do it.

-George


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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