Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Triggeraction serverside --> client side problems (https://forums.graalonline.com/forums/showthread.php?t=24029)

kittygirl765 02-18-2002 09:35 AM

Triggeraction serverside --> client side problems
 
I'm having a problem =X. Why doesn't the script trigger "actionblah" when the player chats? Can't triggeraction trigger things from server side to client side?

NPC Code:

if(created||playerenters) {
x=8; y=9;
setshape 1,64,32;
}
if(playerchats) {
triggeraction x,y,blah,;
message touched;
}
//#CLIENTSIDE
if(playerenters) {
setshape 1,64,32;
}
if(actionblah) {
message blah;
}


kittygirl765 02-19-2002 12:33 AM

I replaced the if(actionblah) {message blah; } with if(actionblah) { putleaps 2,x,y; } in the client side part, and it still no workie =(. It worked when I tried switching around the if(playerchats) part, and the if(actionblah) part around clientside --> serverside, clientside --> clientside, and serverside --> serverside. But it doesn't work serverside --> clientside :( .

Maybe there's a bug in the npc server? =(

TDK_RC6 02-19-2002 01:25 AM

can a npc even trigger itself??

kittygirl765 02-19-2002 04:33 AM

Quote:

Originally posted by Kaimetsu


Oh, wait, I just noticed you were going serverside->clientside. Yeah, for some reason that doesn't work. You can always set save[] vars on the serverside and then monitor them on the clientside, though.

Okay, thankies :)

SaijinGohan 03-08-2002 08:05 PM

I never thought of doing it that way.. hmm


All times are GMT +2. The time now is 10:08 PM.

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