Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Clientside? Serverside? (https://forums.graalonline.com/forums/showthread.php?t=48643)

ZeLpH_MyStiK 11-05-2003 01:59 AM

Quote:

Originally posted by TheStivi

Clientside is calaculated at your home computer. So all clientside cannot be seen by another people only the resulst "can" be shown to other people.

Interesting, you're saying serverside "calculations" can be seen by another person?

ZeLpH_MyStiK 11-05-2003 02:22 AM

Quote:

The scripting on the npc server is different then the
Graal client-side scripting. Some commands are missing
(mainly temporary graphical / sound stuff), some
commands are added (easier accessing of player attributes).
In the section 1 you might have seen that the minimum timeout
is now 0.1 seconds because the npc scripts only run all 0.1
seconds.(...)All code of the npcs are done server-side, except when
you add a line //#CLIENTSIDE, then all following code is sent
to the client. The client only reads attributes of the npcs,
but doesn't send it to other players when he changes it. So
the client-side part of the script is for graphical stuff
and music, not for things which must be secure or need to
be synchronized with other players.

-This is a direct quote from the npcserver document, can't get anymore detailed than that. Hope this helps.

TheStivi 11-05-2003 08:57 AM

@Phyton :
what makes a pc ? it only calculate. more the pc cannot :D
on serverside all can see effect like x--; and all see it
there commands which dont works serverside but thats not what i mean xD

Lance 11-05-2003 10:09 AM

Quote:

Originally posted by TheStivi
@Phyton :
what makes a pc ? it only calculate. more the pc cannot :D
on serverside all can see effect like x--; and all see it
there commands which dont works serverside but thats not what i mean xD

Jagen's correct. Calculate is not the proper word.

Kaimetsu 11-05-2003 11:27 AM

The distinction is really quite simple. The serverside section of the script is executed on the server. The clientside section is executed on the client. Clientside code usually deals with user input and dynamic effects (showimgs, audio stuff etc), serverside code deals with the core game stuff, and NPC behaviour.


All times are GMT +2. The time now is 05:38 AM.

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