Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-08-2002, 11:14 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Light effects.

-=Josey=-
Light effects, do you have to use //#CLIENTSIDE for light effects to show up? Someone told me you didn't, I just want to make sure.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
  #2  
Old 04-08-2002, 11:49 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
That has to be done online. Though offline they work perfectly without the //#CLIENTSIDE
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
  #3  
Old 04-09-2002, 12:03 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Light effects.

Quote:
Originally posted by joseyisleet
-=Josey=-
Light effects, do you have to use //#CLIENTSIDE for light effects to show up? Someone told me you didn't, I just want to make sure.
These things are as in NPC_SERVER_DOC.txt graphics manipulation, make it clientside, why would you need it to be server side if you have a npc maybe i could help out some...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #4  
Old 04-09-2002, 02:51 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
Well, I made my dim to bright light, and it goes something like:
NPC Code:

if (created||playerenters){
setimg light4.png;
dontblock;
timeout=.1;
}
if (timeout){
this.color1=1;
this.color2=2;
this.color3=3;
doDimtoBright();
}
function doDimtoBright(){
setcoloreffect this.color1,this.color2,this.color3,0.1;
}


Now, would it work if I put the //#CLIENTSIDE before the function, or, will it not call the function right? I'm not sure about it...
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
  #5  
Old 04-09-2002, 05:33 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by joseyisleet
-=Josey=-
Well, I made my dim to bright light, and it goes something like:
NPC Code:

if (created||playerenters){
setimg light4.png;
dontblock;
timeout=.1;
}
if (timeout){
this.color1=1;
this.color2=2;
this.color3=3;
doDimtoBright();
}
function doDimtoBright(){
setcoloreffect this.color1,this.color2,this.color3,0.1;
}


Now, would it work if I put the //#CLIENTSIDE before the function, or, will it not call the function right? I'm not sure about it...
Serverside and clientside parts are loose parts of the script, so basically if only the function is clientside, the serverside part of the NPC wouldn't know there is a function to call.
So i this case you'd just have to make the whole script clientside.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
  #6  
Old 05-02-2002, 01:39 PM
Glory Glory is offline
Banned
Glory's Avatar
Join Date: Mar 2002
Location: Sunnydale
Posts: 1,365
Glory is on a distinguished road
Send a message via AIM to Glory
Re: (8(\)

Quote:
Originally posted by osrs
<can o' stupidity>
Excuse me, stop spamming, change the signature and last but not least, atleast people try to help other people.

Last edited by Kaimetsu; 05-02-2002 at 09:09 PM..
  #7  
Old 05-02-2002, 09:18 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I suggest adding //#CLIENTSIDE to everything you do on non-p2p, so atleast SOME OF the scripts will work if you ever get an NPCs Server or something.
__________________

subliminal message: 1+1=3
  #8  
Old 05-02-2002, 11:59 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Also, in that script you showed, I see nothing that needs to be serverside...and if you have a timeout around it, it will show serverside.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #9  
Old 05-04-2002, 09:17 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
I just want to clear something up. Everything on what used to be free servers is clientside?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
 


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 04:23 PM.


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