Thread: #t() help
View Single Post
  #4  
Old 07-31-2003, 08:46 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Arg, did I ever tell you how much you people scare me?!
This is an example that will take something if you chat, and sendtorc #t(1) up to #t(i) =) This is the MOST efficent way
NPC Code:

if (playerchats){
tokenize #c;
sendtorc #t(1) - #t(1) = #T(#e(strlen(#t(0)),-1,#c));
}


Short, sweet, and to the point =)
#e (as alex said) is the best way, but all you have to do is have it do the string length. Plus #T removes spaces at the beginning =D
---Shifter
__________________
Who has time for life these days?
Reply With Quote