Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Easy question..... (https://forums.graalonline.com/forums/showthread.php?t=36538)

Spark910 08-24-2002 04:08 PM

Easy question.....
 
Just this one question..... Im learning to Script and NPC server parts too with what parts are Client side etc..... So just a simple question, Warcaptain and Scripting Monkey (Kaimetsu?) all helped me a bit and I want to confirm 2 things.....

Are Lights ALWAYS ClientSide

I heard they dont work if Server side? Does this mean that the movement of the light is also Clientside? Wouldnt this be serverside as the NPC server would have to control and operate the script to make it move?

Is the command:

If (weaponfired) {

Always ClientSide


Because the client controls this part? Can if (weaponfired) ever be serverside?

If I got this tottaly wrong can you say what it is and why...Does anyone know, or can anyone confirm that for me?

Thankyou in Advanced if anyone should be willing to reply and help me =D

emortylone 08-24-2002 10:38 PM

Anytime I've used lights, they have always been clientsided, including the movements. If you just want them to be MOVING, you can do something like setting level.vars and having it set the light effect on a timeout at like level.lightx,level.lighty. That would make it constantly update to that location.
I do not BELIEVE if (weaponfired) MUST be serversided, I believe it also works clientsided, but because it is used for weapons, it is most generally used w/ a triggeraction. Odds are you may have it perform some kind of clientside action, so you would want to do something like this: (the weapon's name btw is Test)
NPC Code:

if (actionserverside)
{ actions you want after the weaponisfired;
}
//#CLIENTSIDE
if (weaponfired)
{ showimg.. clientside stuff here;
triggeraction 0,0,serverside,Test,;
}


this would make it do serverside actions along w/ clientside on that NPC.
---Shifter

Spark910 08-25-2002 12:25 AM

Quote:

Originally posted by emortylone
Anytime I've used lights, they have always been clientsided, including the movements. If you just want them to be MOVING, you can do something like setting level.vars and having it set the light effect on a timeout at like level.lightx,level.lighty. That would make it constantly update to that location.
I do not BELIEVE if (weaponfired) MUST be serversided, I believe it also works clientsided, but because it is used for weapons, it is most generally used w/ a triggeraction. Odds are you may have it perform some kind of clientside action, so you would want to do something like this: (the weapon's name btw is Test)
NPC Code:

if (actionserverside)
{ actions you want after the weaponisfired;
}
//#CLIENTSIDE
if (weaponfired)
{ showimg.. clientside stuff here;
triggeraction 0,0,serverside,Test,;
}


this would make it do serverside actions along w/ clientside on that NPC.
---Shifter

Ok well Ill just stick with what I though, Using client side for anything to do with lights and it for weaponfired. Should work. You see I couldnt do that as I dont have acess to a NPC server yet, By Yet I mean I hope to in future.

emortylone 08-25-2002 12:28 AM

LOL. Btw, you never replied to the forum PM that i replied to that you sent me ;)
---Shifter

Spark910 08-25-2002 12:40 AM

Ooops, sorry I looked at it, Had to go out and closed so i 4got about it! =)

Ok ill reply now!

*runs to do it*

emortylone 08-25-2002 12:41 AM

You better =)
---Shifter

Spark910 08-29-2002 02:42 AM

Someone may close this now!

emortylone 08-29-2002 08:49 AM

x.X there is NO point in closing the thread, perhaps someone will need a question from it l8er, just let it die like everything else =p
---Shifter


All times are GMT +2. The time now is 07:41 AM.

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