How To Make Your Mobprog Wait

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