Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Light effects. (https://forums.graalonline.com/forums/showthread.php?t=27172)

joseyisleet 04-08-2002 11:14 PM

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.

Spanko 04-08-2002 11:49 PM

That has to be done online. Though offline they work perfectly without the //#CLIENTSIDE

Saga2001 04-09-2002 12:03 AM

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...

joseyisleet 04-09-2002 02:51 PM

-=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...

Spanko 04-09-2002 05:33 PM

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.

Glory 05-02-2002 01:39 PM

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.

Falcor 05-02-2002 09:18 PM

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.

Saga2001 05-02-2002 11:59 PM

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.

BBflat 05-04-2002 09:17 AM

I just want to clear something up. Everything on what used to be free servers is clientside?


All times are GMT +2. The time now is 12:42 AM.

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