You need an event system. I'm sure you can get a basic code off a code repository, or you can write your own. Basicly you'd need a data structure that would hold the string you want to output, how long it'll be delayed, to whom its being sent, maybe from whom if you want to use an act function and have valid $N arguments. Then add a new field in update_handler() to deal with the delays, and execute them. I've got one somewhere that I apsolutly love, if you want it, I'm sure I could releace it. But, keep in mind, its built for a MercNet server which is basicly just sockets codes. Its all custom really, but hey! It's probably easy to port over considering I use most the same syntax as ROM muds as its what I was brought up on. You can AIM me at DavionKalhen, or ICQ me at 63765684. I can send you the file directly that way, even aid in some debugging ;) Have a good one

Davion


From: "Rainer Roomet" <[EMAIL PROTECTED]>
To: [email protected]
Subject: Visible Delays
Date: Tue, 18 May 2004 10:29:09 +0000

Hello Everyone.

I want to add visible delays but my english is so bad and it's so complicated function then I have to give some extra examples. The visible delay means that when player got delay then he saw points.
For example:
cast 'armor'

You begin to utter some strange incantations...
You feel someone protecting you.
........ <--- and now these are points.

But the points dosen't appear together. They appear alone. Each point per pulse. For example:
if character got delay with 4 pulse.
. <-- this is the first pulse
. <-- when first pulse ends comes to second point
. <-- when second pulse ends comes to third point
. <-- when third pulse ends come to fourth point etc.

Hmm... Just like when you start windows and then sometimes comes text
Checking hard disk...................................... <--- these points don't appear together too, each point appear if previous are appearead.


I hope you got this IDEA :). If you don't then it is my fault, because I hate my english!!!!!!!!!!!!!!!!!!!!!!!!!!!


telnet irc.nohik.ee on port 42
The Lost Lands of Arion
-- Ranka

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

_________________________________________________________________
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines


Reply via email to