Subject: Mobiles/NPC/Robots on MOO

From: "The Horror, The Horror" <[email-masked]>
Date: Fri, 11 Dec 1992 13:19:25 -0800

Howdy,

Our MOO has some areas where an NPC (non-player creature) would be handy,
and example would be an automated bartender/shopkeeper or talking statue,
etc etc.

Does anyone have any suggestions on using the MOO code to create
NPCs? Due to the 'tick' limitation, it seems MOO is not set up to
handle 'daemon' types of activities.

I have some basic robot capable clients I can connect to the MOO, but 
would prefer to build the NPCs into the database using MOO code.

Thanks,

ccn

---

From: Pavel Curtis <[email-masked]>
Date: Mon, 14 Dec 1992 15:08:02 -0800

> Date:	Fri, 11 Dec 1992 13:19:25 -0800
> From:	"The Horror, The Horror" <[email-masked]>
> 

This isn't so.  You can either use `fork' to spawn tasks that wake up some time
in the future and do one thing, or else use `suspend()' to have a single task
last forever, suspending its execution each time before it runs out of ticks.
There are many, many daemon tasks running on LambdaMOO for a variety of
purposes.

	Pavel