Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Serverside scripts. (https://forums.graalonline.com/forums/showthread.php?t=24698)

joseyisleet 02-27-2002 12:00 PM

Serverside scripts.
 
-=Josey=-
Ok, I've never used any server side scripts. I was wondering how exactly they work. Say you use something like:

NPC Code:

//#SERVERSIDE
if (created||playerenters){
message Hello!;
sleep 5;
message How are you?;
sleep 5;
message I'm doing fine.;
}



Would that constantly run on the server because it uses servside or only start whenever a player enters the level?

nyghtGT 02-27-2002 01:41 PM

Re: Serverside scripts.
 
Quote:

Originally posted by joseyisleet
-=Josey=-
Ok, I've never used any server side scripts. I was wondering how exactly they work. Say you use something like:

NPC Code:

//#SERVERSIDE
if (created||playerenters){
message Hello!;
sleep 5;
message How are you?;
sleep 5;
message I'm doing fine.;
}



Would that constantly run on the server because it uses servside or only start whenever a player enters the level?

First off everything is serverside unless denoted by '//#CLIENTSIDE'. And what would happen with that script is it would play once for being created. Then it would play over for every player entering the level ...

joseyisleet 02-27-2002 01:48 PM

-=Josey=-
So if I put it on a looping timeout starting with the created command it would run forever?


All times are GMT +2. The time now is 04:49 PM.

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