Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   NPC Server Questions (https://forums.graalonline.com/forums/showthread.php?t=29340)

Gohan43331 05-21-2002 01:02 AM

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?

screen_name 05-21-2002 01:19 AM

to trigger something serverside then you would:

triggeraction 0,0,serverTriggerName,params..;

kittygirl765 06-04-2002 07:21 PM

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?

kittygirl765 06-09-2002 11:11 AM

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

Projectshifter 06-10-2002 09:36 PM

*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

doubleZ 07-16-2002 03:57 AM

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

emortylone 08-02-2002 03:35 AM

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


All times are GMT +2. The time now is 11:28 AM.

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