Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2002, 07:23 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
with(getplayer[]), and more?

I'm just curious. I had this NPC I was working on Delteria with NPC Server and I had many triggeraction stuff I was doing...

I was wondering how I would make it so when a playerchats it grabs a player according to a token and does something to him...
NPC Code:

if (actionserverwarp) {
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));
}
//#CLIENTSIDE
if (playerchats) {
tokenize #c;
with (getplayer[#t(1)]) {
triggeraction 0,0,serverwarp,#t(0),#t(1),#t(2);
}
}


Could anyone tell me where I went wrong and how I fix it please?
Reply With Quote
  #2  
Old 07-22-2002, 08:33 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
lol

with is serverside only, so you would have to trigger serverside then do the with command

and it would be getplayer(#p(1))
__________________
[signature]insert here[/signature]
Reply With Quote
Reply


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 12:05 PM.


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