Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Client Side (https://forums.graalonline.com/forums/showthread.php?t=33847)

thesmoothcriminal 07-19-2002 11:33 PM

Client Side
 
I keep geting problems using Client side if anyone could enlighten me i would be most thank fill

Torankusu 07-19-2002 11:48 PM

enlighten us of your //#CLIENTSIDEd problems.

thesmoothcriminal 07-19-2002 11:54 PM

Problem=format
which means i wanna know how i use it as my atempts to use it have failed

Torankusu 07-20-2002 12:03 AM

oh.

//name, etc
serverside stuff up here, which means,
actions triggered through triggeraction,
if (actionserverside){
}
, or
if (action-theactiontriggered-){

}

//#CLIENTSIDE
if (playerdoesstuffs){
triggeraction 0,0,serverside,WEAPONNAME,param;
or
triggeraction 0,0,action,param;
}

thesmoothcriminal 07-20-2002 12:05 AM

thats the one but whats with // isnt that just a comment?

Torankusu 07-20-2002 12:09 AM

Quote:

Originally posted by thesmoothcriminal
thats the one but whats with // isnt that just a comment?
Most "comments" are marked with "//".

//#CLIENTSIDE actually reads every line of script below it in a clientsided manner, so you have to put the serverside stuff above it and trigger it.

thesmoothcriminal 07-20-2002 12:13 AM

man you guys are legends
thanks all
someone should make a guide to scripting with explains instead of good old commands.rtf

screen_name 07-20-2002 02:29 AM

many have planned but for some reason they never get completed Xx

i ever started one and got close to finishing and i had to reformat and forgot to save to disk :(

Falcor 07-20-2002 03:04 AM

Contrary to the newbie rumors. //#SERVERSIDE doesn't exsists. Just telling you now incase you are wondering. //#CLIENTSIDE is just a divider line, nothing more.

screen_name 07-20-2002 03:10 AM

i remember when i first saw it, i was like o my goodness, i didnt know that existed :)

CheeToS2 07-20-2002 03:29 AM

Quote:

Originally posted by Falcor
Contrary to the newbie rumors. //#SERVERSIDE doesn't exsists. Just telling you now incase you are wondering. //#CLIENTSIDE is just a divider line, nothing more.
XD i didn't think so.. i had a feeling *censored* was wrong

IAMNOTAFREAK 07-20-2002 07:29 AM

what ive been wondering is why //#CLEINTSIDE is necessary, why not just make the npc controller be able to automatically recognize what is clientside-only and serverside-only and make adjustments to its actions accordingly?

Torankusu 07-20-2002 08:18 AM

Quote:

Originally posted by IAMNOTAFREAK
what ive been wondering is why //#CLEINTSIDE is necessary, why not just make the npc controller be able to automatically recognize what is clientside-only and serverside-only and make adjustments to its actions accordingly?
because some things can be done differently clientsided...

For instance, the timeout minimum for serverside is 0.1, while clientside, you can use 0.05

Shiftk03- 07-20-2002 09:53 AM

Also, Clientsiding things means: it only happens to the client (player triggering the script)..
You can use Clientsiding to:
Show messages only to that player
Set a client.string
Make that player the only one who can see or be hit by a projectile (for some odd reason)
etc etc..

thesmoothcriminal 07-20-2002 11:22 AM

an other command stefan "forgot" to put in


All times are GMT +2. The time now is 12:05 PM.

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