![]() |
NPC Server Questions
Okay, I need to ask a couple of npc server questions b/c i'm converting non p2p npcs to the npc server kinda server side scripts. I scripted for the npc server b4, but it was a way long time ago and i dont remember every detail about the differences between client/server side.
1) If I set a this.variable from the client side part of a script, will the server side part of the script be able to read what I wrote to it? 2) If I change an npc's x/y coordinates from client side, will the npc coordinates be changed globally? 3) Can client.strings be changed from client side? 4) Does triggeraction server side to client side work now? |
Re: NPC Server Questions
1) If I set a this.variable from the client side part of a script, will the server side part of the script be able to read what I wrote to it?
yes. 2) If I change an npc's x/y coordinates from client side, will the npc coordinates be changed globally? no you ave to change it serverside, use triggeraction. 3) Can client.strings be changed from client side? yes 4) Does triggeraction server side to client side work now? no |
thanx past austin =)
ohh, and can client side weapons read or change client.strings too? |
Quote:
Jagen: yes |
Re: Re: NPC Server Questions
Quote:
|
Quote:
Can client weapons access (read-only) server-string/vars? |
database npcs and level npcs are the only things able to edit server.strings
is this true? |
Quote:
For example: Client system checks a server-string for it's player's account name and if that player's account name is in that server string, it does something to the player... Which should I use? I would guess serverr but i've never heard of it... |
Danke ;D
*goes to fix the system* |
serverr.strings??
what in the world are these kai? |
well, hmmm
one more question if you read from serverr.string, will it get the value from server.string?? or is the serverr.string a seperate string all together |
Quote:
that helps a lot easier to access the time ;) i wish i would've known about these earlier |
If I touched this npc that's on an npc server, would the message say "blah blah", or would it be blank? I really don't get what you mean by serverr.strings, and i nevcer heard of it =P, so i'm liek making a test thingy
NPC Code: |
try this
NPC Code: |
true true, sorry didnt think about that
;) |
Quote:
|
to trigger something serverside then you would:
triggeraction 0,0,serverTriggerName,params..; |
Is there such a veriable as thisr.blah? So that it can only be read by the clientside, and read/written in the server side?
|
Hiiii, I need help again with a method. Liek, what is the easiest way to transfer mass data in a this. string stored server side, to the client side (the way i want to make it is so that the client side part needs to request it from an event from the player, liek a keypress or chat)?
Liek, this is a way i did it, but its messy, and i don't want to use the client.strings: if(actionwantstring) { setstring client.npcpass,this.something1; } //#CLIENTSIDE if(playerenters) { timeout=0.1; } if(playerchats) { triggeraction x,y,wantstring,; } if(timeout) { message #s(client.npcpass); timeout=0.1; } |
*head spins* LOL, LPK, first post of yours I have seen. NPC servers, so confusing. I'm gonna go get some more help with them from Loriel :) Loriel is the shizzit, he knows all.
---Shifter |
Quote:
this is liek an old post, and no one has answered my question. Maybe now, some1 can answer it =). btw, kittygirl765 ish me b/c i logged out of the account, and it expired =X lel |
NPC Code: Hmm... this is Projectshifter again, for some reason my account isn't working on here! x.x But I understand NPc servers now, and I'm a NAT over on Delt... this.something1 would just display as the text for it, so you would get the message repeatedly that "this.something1" is what you want. If you want to get it from an NPC, say the Control-NPC: NPC Code: But it seems that you have triggeraction going clientside, i don't know if it matters, but i'd go ahead w/ triggeraction 0,0,server,wantstring; and make it hit from the server and change it to if (actionserverwantstring). L8er ---Shifter |
All times are GMT +2. The time now is 03:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.