From AardWiki

Main: HowToMakeYourMobprogWait

See the following code:

  1. --- Line below is essential to avoid infinite loops
  2. if progactive(self.gid,ch.gid) then return end. 
  3. makewait(function()
  4. --- Do something
  5. --- Then wait 10 seconds...
  5. mpause(10)
  6. --- Then do something else
  7. --- The 2 lines below are essential!
  8. end
  9. )
Retrieved from http://www.aardwolf.com/wiki/index.php/Main/HowToMakeYourMobprogWait
Page last modified on December 28, 2008, at 11:11 PM EST