View Single Post
  #7  
Old 03-13-2003, 11:10 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu
G_Yoshi, your method is horrible. Better version (untested but still way better):

NPC Code:

if (playerchats) {
tokenize #c;
for (i=0;i<tokenscount;i++) {
if (strequals(#t(i),u)) setstring local.chat,#s(local.chat)you ;
else setstring local.chat,#s(local.chat)#t(i) ;
}
setplayerprop #c,#s(local.chat);
setstring local.chat,;
}



Nesting event blocks is stupidstupidstupid.
Sorry. I figured it was, but I at least gave it a shot
__________________
Reply With Quote