View Single Post
  #1  
Old 06-24-2004, 04:14 PM
JohnGames JohnGames is offline
Registered User
Join Date: Jun 2004
Posts: 107
JohnGames is on a distinguished road
Tokenize problems for guild script

In the following script I am making a guild maker. The set command works but it is overwritten by the next tokenize. When I say '/set something' it says
'set to something'. But when I say '/add JohnGames' it says 'You have been added to Johns Free home system! Your house number is 'JohnGames'. I want it to keep the tokens seperate.

NPC Code:
if(startswith(/Set,#c)){
tokenize #c;
say2 set to #t(1);
}

if(startswith(/add,#c)){
tokenize #c;
addguildmember House #t(1),#t(2);

with (getplayer(#t(2))){
say2 You have been added to#b
Johns Free home system!#b
Your house number is #t(1);
}
}


Last edited by JohnGames; 06-24-2004 at 04:32 PM..
Reply With Quote