Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-27-2002, 12:00 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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?
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #2  
Old 02-27-2002, 01:41 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
  #3  
Old 02-27-2002, 01:48 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
So if I put it on a looping timeout starting with the created command it would run forever?
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:50 PM.


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