RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Wait ?

Nova

Wanderer
Wait ?

Is there a command equal to PHP's wait(); ?

I need this for a mobile that creates something, but it should take some time. Can anybody help me ?
 

Tom Bombadil

Wanderer
you could use a timer ...i've used one in my provocation script.

add a timer :
[code:1]
new InternalTimer(/*x parameter if Internal Timer want it*/ ).Start();
[/code:1]

after you must create a class internal timer
[code:1]
private class InternalTimer : Timer
[/code:1]
with :
[code:1]
public InternalTimer(/* x parameter if you want*/) : base( TimeSpan.FromSeconds( 2.0 ) )
{}
[/code:1]
and overload the onTick (for example in Sphere the @Timer)
[code:1]
protected override void OnTick()
{
//whath you want to do
}
[/code:1]


I hope to help you, i'm a newbe in RunUO...
 

Nova

Wanderer
What does
[code:1]Namespace elements cannot be explicitly declared as private or protected[/code:1]
means ? This occurs as i implented your timer code :(
 
Top