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 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
 


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 12:41 PM.


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