Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-17-2002, 07:26 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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?
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #2  
Old 05-17-2002, 07:41 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
  #3  
Old 05-17-2002, 07:56 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
thanx past austin =)

ohh, and can client side weapons read or change client.strings too?
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #4  
Old 05-17-2002, 08:04 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight
Quote:
Originally posted by kittygirl765
thanx past austin =)

ohh, and can client side weapons read or change client.strings too?

Jagen:
yes
  #5  
Old 05-18-2002, 12:39 AM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
Re: Re: NPC Server Questions

Quote:
Originally posted by Kaimetsu


No.



Doubtful. I don't think it'll even let you change them from the clientside.



Yep.



Hmm. Depends. Not to a specific client, but you can do a triggeraction on where they are and they'll get it.
i love how u gave an opposite answer to everything saga said nearly o_O
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
  #6  
Old 05-18-2002, 12:51 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
Originally posted by kittygirl765
thanx past austin =)

ohh, and can client side weapons read or change client.strings too?
Another question on the other end of the spectrum:
Can client weapons access (read-only) server-string/vars?
__________________
  #7  
Old 05-18-2002, 01:11 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
database npcs and level npcs are the only things able to edit server.strings

is this true?
__________________
[signature]insert here[/signature]
  #8  
Old 05-18-2002, 03:27 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
Originally posted by Kaimetsu
serverr.strings / server.strings.
Utterly confused now...

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...
__________________
  #9  
Old 05-18-2002, 04:14 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Danke ;D

*goes to fix the system*
__________________
  #10  
Old 05-18-2002, 06:17 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
serverr.strings??

what in the world are these kai?
__________________
[signature]insert here[/signature]
  #11  
Old 05-18-2002, 06:22 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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
__________________
[signature]insert here[/signature]
  #12  
Old 05-19-2002, 01:34 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Kaimetsu


It's a completely different string. There'd be no point if they were the same.
thanks

that helps a lot easier to access the time

i wish i would've known about these earlier
__________________
[signature]insert here[/signature]
  #13  
Old 05-19-2002, 10:50 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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:

if(playerenters) {
setshape 1,32,32;
}
if(playertouchsme) {
setstring server.red,Blah Blah;
}
//#CLIENTSIDE
if(playerenters||timeout) {
message serverr.red;
timeout=0.05;
}

__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #14  
Old 05-20-2002, 01:00 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
try this

NPC Code:

if (created) {
setshape 1,32,32;
}
if (actionTest) {
setstring serverr.random,#v(int(random(10,101))/10);
}
//#CLIENTSIDE
if (playertouchsme) {
triggeraction x,y,Test;
message #v(serverr.random);
}

__________________
[signature]insert here[/signature]
  #15  
Old 05-20-2002, 07:01 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
true true, sorry didnt think about that

__________________
[signature]insert here[/signature]
  #16  
Old 05-21-2002, 01:02 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
Originally posted by screen_name
try this

NPC Code:

if (actionTest) {
setstring serverr.random,#v(int(random(10,101))/10);
}
//#CLIENTSIDE
if (playertouchsme) {
triggeraction x,y,Test;
}

Wouldn't the triggeraction be actionserver? (Saw that on another thread. from clientside to serverside) Or is that just a "oganization" tool?
__________________
  #17  
Old 05-21-2002, 01:19 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
to trigger something serverside then you would:

triggeraction 0,0,serverTriggerName,params..;
__________________
[signature]insert here[/signature]
  #18  
Old 06-04-2002, 07:21 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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?
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #19  
Old 06-09-2002, 11:11 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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;
}
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #20  
Old 06-10-2002, 09:36 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
*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
__________________
Who has time for life these days?
  #21  
Old 07-16-2002, 03:57 AM
doubleZ doubleZ is offline
Registered User
Join Date: Jul 2002
Location: In a tree
Posts: 8
doubleZ is on a distinguished road
Quote:
Originally posted by kittygirl765
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;
}
*bump*
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
__________________
- LiL PiXiE KiTiE - MeOw!

Cassidy ish all miiiiiiiiine, not yours =o!

My real account name that i play graal on is not doubleZ, its kittygirl765 ^_^, my friend let me keep her forum account, thanks cupo =D
  #22  
Old 08-02-2002, 03:35 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
NPC Code:

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;
}


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:

if(actionwantstring) {
with (getnpc(Control-NPC))
{ setstring this.npcpass,#s(client.npcpass);
}
setstring client.npcpass,#s(this.npcpass);
}
//#CLIENTSIDE
if(playerenters) {
timeout=0.1;
}
if(playerchats) {
triggeraction x,y,wantstring,;
}
if(timeout) {
message #s(client.npcpass);
timeout=0.1;
}


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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:58 AM.


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