Sequence Posted May 19, 2012 Share Posted May 19, 2012 What I want is to create a loop that repeats for 15 minutes, then goes to the next commands in my script and starts over. I couldn't find a tutorial on this because I didn't know what to search for, and I'm sure there must be some kind of command for this [scar] begin PwnXile; Repeat FindNPC; Wait(5000 + Random(1000)); SuperAttack; Wait(2000 + Random(500)); SuperStrength; Wait(2000 + Random(500)); until false; end. [/scar] I want it to repeat this for 15 minutes [scar] FindNPC; Wait(5000 + Random(1000)); [/scar] and then go to this, and start over [scar] SuperAttack; Wait(2000 + Random(500)); SuperStrength; Wait(2000 + Random(500)); [/scar] Quote Link to comment Share on other sites More sharing options...
Wanted Posted May 19, 2012 Share Posted May 19, 2012 var T: Integer; begin T := GetSystemTime + (15 * 60 * 1000); repeat Something; until (GetSystemTime > T); end; Quote Link to comment Share on other sites More sharing options...
Sequence Posted May 20, 2012 Author Share Posted May 20, 2012 var T: Integer; begin T := GetSystemTime + (15 * 60 * 1000); repeat Something; until (GetSystemTime > T); end; Thank you ! Had no clue GetSystemeTime could be used for that Quote Link to comment Share on other sites More sharing options...