home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / XBBS_118.ZIP / SAMPLES.ZIP / TIME.XBS < prev    next >
Encoding:
Text File  |  1989-09-23  |  582 b   |  16 lines

  1. l This demonstrates setting a user's time to a given amount for exit
  2. l file writing without affecting actual BBS time.  Note that you'd
  3. l probably want to do a test to be sure the user actually had at least
  4. l 30 minutes (in this example)...  Also note that ONLINE.XBS is
  5. l rewritten with 30 minutes, so you'd want to avoid exits (stick with
  6. l Spawn and DOS to go to doors) with this method.
  7.  
  8. l Put timer on hold and preserve current time remaining
  9. to1
  10. l Set time to thirty minutes
  11. t=30
  12. l Write exit files
  13. X0 1
  14. l Turn timer back on and retrieve time
  15. to0
  16.