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 07-17-2001, 09:36 AM
Guest
Posts: n/a
sethead timeout

Can someone tell me why this wont work right? I want it only to let you change your head every 10 seconds just like with changing your name but only with changing your head.

NPC Code:

tokenize #c;
if (#t == 'sethead' && sec == 1){
sethead #t(1);
sec++;
}
while (sec > 1){
sleep 1.0;
sec++;

if (#t == "sethead"){
message please wait 10 seconds;
}
if (sec == 10){
sec = 1;
}
}

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 09:21 PM.


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