On Tuesday 02 July 2002 07:30 pm, Chad Simmons wrote:
> --- J <[EMAIL PROTECTED]> wrote:
> > Anyone know how to work a decent delay in descriptor returning?
> >
> > WAIT_STATE just pauses command parsing, anyone know how to pause,
> > temporarily, the descriptor from returning something? Function specific
> > of course... For example...
> >
> > Send_to_char("blah")
> > <-----five seconds---->
> > send_to_char(blahhhh...")
> >
> > I need at least a hint on how to add a five second delay like such.
> >
> > I hope you get what I mean.
>
> Yes. You want an event queue. They are fairly simple to implement, and
> allow for this sort of delayed messanging as well as delayed actions, etc.
> (as an aside, this should really be in a FAQ somewhere, since everyone is
> always asking for this sort of functionality) In anycase, you can look at
> http://www.daimi.au.dk/~jobo/pages/event_queue.html for an example and
> description of the way one person implemented it in their mud.. I don't see
> any readily available sources to show you other examples.
>
> ~Kender
>
DalekenMUD, an envy-derived codebase, has a working (and very decent, at
least as comparing it to those seen implemented in other private sources)
event queue system. If I remember correctly, the homepage for this source is
http://www.geocities.com/dalekenmud/
If you can't find it there, try the usual code repositories. (ftp.game.org,
www.kyndig.com, etc)
--
Bobby "Chil" Bailey | "The only source of knowledge is experience."
Coder's Repository Admin | -- Albert Einstein
Customer Support | PGP Keys: http://chil.kyndig.com/pgg
Server Administrator | Homepage: http://chil.kyndig.com/ (soon!)
------------------------------------------------------------------------
Kyndig.Com - Online Gaming Resource Site -- http://www.kyndig.com/
------------------------------------------------------------------------