![]() |
NPC Server->Client, Client->Server Identification
NPCs can get complex, and sometimes you might want a means to pass an identification of an NPC from the clientside to the serverside or vice versa. Even from different NPCs. Any chance that there's ever going to be a constant var between the clientside and the serverside of an NPC?
|
npc.name
Make sure you validate what the client sends though, or they could potentially edit it to affect a different NPC. |
Quote:
|
Quote:
same with level npcs, but you can also use the level for level npcs. |
Quote:
|
Quote:
|
It's not consistant.
I transfered the ID of the NPC from the clientside to the serverside, then made it set the NPC with that ID's chat on the serverside. It set a random NPC with no image's chat, not the one it should have. |
Quote:
|
Quote:
|
this.attr[index] is constant between Serverside and Clientside if thats what you mean.
|
| All times are GMT +2. The time now is 11:25 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.