View Single Post
  #10  
Old 06-10-2003, 05:55 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by TB3

NPC Code:

if(playerenters||timeout) {
setstring this.message,H Hi H;
tokenize #s(this.message);
for (i=0;i<4;i++) {
message #t(i);
sleep .5;
}
timeout=1;
}


Just a quick script but sadly it is not that much shorter than the first one lolz
Didn't test it i just figured it would work.
Yes,it works fine.
But you could do for(i=0;i<=strlen(#s(this.message));i++)
instead of for(i=0;i<4;i++)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote