Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Clientside Sleep (https://forums.graalonline.com/forums/showthread.php?t=134260547)

iSlayer 09-15-2010 10:33 AM

Clientside Sleep
 
Hi guys I was just wondering if there was a clientside version of sleep, for a notification text, the script works and im posting a fraction of it for help

PHP Code:

//#CLIENTSIDE
function onCreated()
{
client.message.add("Welcome to Project Andor");
client.message.add("The server is currently under construction");



TSAdmin 09-15-2010 10:58 AM

The Clientside version of sleep is exactly the same as the serverside version. EG:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
shared.chat("Test1");
  
sleep(5);
  
shared.chat("Test2");


Worked for me in a WNPC.

iSlayer 09-15-2010 02:15 PM

hmm well the messages appear at the same time without sleeping

fowlplay4 09-15-2010 03:38 PM

Sounds like your Message system just processes every element in client.message at the same time then. Put a sleep in the message system where it processes them if you only want it to process messages at a certain speed.


All times are GMT +2. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.