Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-18-2002, 09:35 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
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;
}

__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2

Last edited by kittygirl765; 02-18-2002 at 01:22 PM..
  #2  
Old 02-19-2002, 12:33 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
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? =(
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #3  
Old 02-19-2002, 01:25 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
can a npc even trigger itself??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
  #4  
Old 02-19-2002, 04:33 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
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
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #5  
Old 03-08-2002, 08:05 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
I never thought of doing it that way.. hmm
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 06:55 AM.


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