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 08-24-2002, 04:08 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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
  #2  
Old 08-24-2002, 10:38 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #3  
Old 08-25-2002, 12:25 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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.
  #4  
Old 08-25-2002, 12:28 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOL. Btw, you never replied to the forum PM that i replied to that you sent me
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #5  
Old 08-25-2002, 12:40 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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*
  #6  
Old 08-25-2002, 12:41 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
You better =)
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #7  
Old 08-29-2002, 02:42 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Someone may close this now!
  #8  
Old 08-29-2002, 08:49 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
 


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 07:57 PM.


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