Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-15-2005, 12:51 PM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Question Need help with a script

a made a class that copies everything the selected player does. i tried to set it so that when i say "/say text" it sets text as the selected player's chat text. Here's the part of the code that's supposed to do this:
NPC Code:

// this.copy is the account of the selected player
if (playerchats) {
tokenize #c;
if (strequals(#t(0),/say)) {
with(getplayer(#s(this.copy))) {
setcharprop #c,#t(1);
}
}
}


Instead of changing the player's chat text, it only sets it's own chat text. Does anyone know how to make it work?
Reply With Quote
 


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 04:39 AM.


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