How To Make Your Mobprog Wait

Main.HowToMakeYourMobprogWait History

Hide minor edits - Show changes to markup

December 28, 2008, at 11:11 PM EST by Anipopo
Added lines 1-13:

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