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