View Single Post
  #13  
Old 11-02-2003, 05:46 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Loriel

It is 10000 iterations without delay, so....
NPC Code:
while (true) {
for (i = 0; i < 10000; i ++)
do_malicious_things();
sleep 0.1;
}

Technically that wouldn't work. When it hit the 10,000th loop in the for(), it'd abort the script and thus never reach the sleep.
__________________
Reply With Quote