![]() |
The terrible twins (clientside and serverside) - PART TWO!
Having failed to correctly identify which commands are clientside and which ones are serverside, I'm forced to ask if I would be correct in saying...
The following is done serverside: Defining this.vars. Defining level.vars (level just being a generic word used instead of "this") Setting the timeout "with" statements The "message" command And that the following is done clientside: Setting playerdir. The "disabledefmovement" and "enabledefmovement" commands. The "setani" command. The "showimg", "hideimg", "changeimgvis" and "changeimgcolors" commands. |
playerdir should be settable serverside, if it doesn't. I shall smacketh Stefan.
Anything *img* is clientside. setani should be serverside, unless you mean showani (I think that's the command). timeouts can exist on both sides. Message is also both sides, I believe. |
Quote:
|
Quote:
|
I thought setplayerprop #c was serverside and message was client?
|
Quote:
|
setplayerprop #c is for player chat.
message is for NPC chat. |
Quote:
Yeah. The alternate for NPC chat is setcharprop #c. I don't know why you would use it, though. |
I use setcharprop #c, :(. SAY THAT TO MY FACE, SUCKA
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I am sure you will be banned from it, then. :\ |
Quote:
I do not like these attacks, though. So, please stop. |
I say we banish message for all eternity.
DOWN WITH MESSAGE, UP WITH SETCHARPROP #C! |
Quote:
|
Quote:
|
Quote:
Waiting on some kind of explanation of how I acted inappropriately. Also, I might advise you that you are now breaking that other rule that says if you have a problem with a moderator you are supposed to PM them. |
Quote:
They will suffer the wrath of a thousand suns! THAT IS WHAT THEY SHALL DO |
Well, are there any other reasons that a script would work offline but not online besides mistakes with clientside and serverside?
|
Quote:
|
There's no clientside/serverside limitations of if () statements, right?
|
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
NPC Code: |
That is correct.
|
Quote:
When I tried message it wasnt working right serverside. Dont remember why ;-; |
Quote:
You can set variables serverside and clientside. You can do most tasks serverside and clientside, but you cannot read a this.var set clientside serverside and vice-versa. Level.vars are serverside only I believe, as is the with() command. Many things that you can do serverside and clientside depend on what action you're performing. If I want to show a local message, setplayerprop #c,Blah; would work clientside to set the chat of the player. I've found a lot of times doing setplayerprop #c,; clientside does not in fact set it for the other players, so serversided would be better if you're hiding the chat. Just random things you have to figure out. Most of it is common sense, just figure who has to access it, and does it effect more than that one player? For example, setting preferences for a GUI doesn't need any interaction outside of the clientside, but modifying guilds needs to have interaction with a server/players, therefore would need to be serversided :) -Projectshifter |
Quote:
|
| All times are GMT +2. The time now is 01:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.