home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / MTLOT10.ZIP / LOTTERY.PPE (.txt) < prev    next >
Encoding:
PCBoard Programming Language Executable  |  1993-06-10  |  3.0 KB  |  128 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.  
  21. ;------------------------------------------------------------------------------
  22.  
  23.     PrintLn ""
  24.     PrintLn "@CLS@@X09MT-Lot @X01(@X09v1.0@X01)@X09 @X0A @X0F■@X01 @X07Lottery@X07"
  25.     PrintLn "@X07"
  26.     PrintLn "@X01■@X03  The Lottery -/- Gamble for online time . . .@X07"
  27.     PrintLn "@X01■@X03  If your Ticket is a winner then the amount of the Bet is Doubled!@X07"
  28.     PrintLn "@X01■@X03  Sysop takes 10 percent of all earnings!@X07"
  29.     PrintLn "@X01■@X03  Amount of Bet is the cost of each Ticket!@X07"
  30.     PrintLn "@X01■@X03  Tickets cost -> (@X0F5 minutes@X03) each!@X07"
  31.     PrintLn "@X07"
  32.     InputYN "@X0A(@X0F@TIMELEFT@ min. left@X0A) Want to buy a Lottery Ticket@X02", STRING001, ""
  33.     :LABEL001
  34.     If (STRING001 == YesChar()) Then
  35.         If (Random(2) == 2) Then
  36.             PrintLn "@CLS@"
  37.             PrintLn "@X07Thanks for playing the Lottery @USER@!@X07"
  38.             PrintLn ""
  39.             PrintLn "@X0DChecking Ticket@X05!  Please Wait . . .@X07"
  40.             Delay 45
  41.             PrintLn "@X07"
  42.             PrintLn "@X8AWINNER@X82!"
  43.             Delay 5
  44.             PrintLn "@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@@BEEP@"
  45.             PrintLn "@X0ACongratulations you just @X02*@X0AWON@X02* @X0Aan extra 10 minutes!"
  46.             AdjTime 10
  47.             PrintLn "@X0710 mins! added to your account.  Total now -> @X0F@TIMELEFT@ minutes"
  48.             PrintLn ""
  49.             PrintLn "@X0CHey let's not forget the sysop take! @X04[@X0CCurrently 10 percent@X04]"
  50.             PrintLn "@X0CDeducting ->@X04 1 minute @X0Cfrom your gainings for Sysop Take . . ."
  51.             AdjTime -1
  52.             PrintLn "@X09Total Online Time available now -> @X0F@TIMELEFT@ minutes"
  53.             Log "Won 10 minutes minutes in the lottery!", 0
  54.             Goto LABEL002
  55.         Else
  56.             PrintLn "@CLS@"
  57.             PrintLn "@X07Thanks for playing the Lottery @USER@!@X07"
  58.             PrintLn ""
  59.             PrintLn "@X0DChecking Ticket@X05!  Please Wait . . .@X07"
  60.             Delay 45
  61.             PrintLn ""
  62.             PrintLn "@X8CLOOSER@X84!"
  63.             Delay 5
  64.             PrintLn "@BEEP@"
  65.             PrintLn "@X0CSorry but that ticket was a looser!"
  66.             PrintLn ""
  67.             PrintLn "@X0F5 Minutes @X04deducted from your account to pay for the ticket!"
  68.             AdjTime -5
  69.             PrintLn "@X0COnline Time reduced for today to -> @X0F@TIMELEFT@ min."
  70.             Log "Lost 5 minutes minutes in the lottery!", 0
  71.             PrintLn "@X07"
  72.             InputYN "@X0ABuy another lottery ticket@X02", STRING001, ""
  73.             Goto LABEL001
  74.         Endif
  75.     Else
  76.         :LABEL002
  77.         PrintLn ""
  78.         PrintLn "@WAIT@"
  79.     Endif
  80.     PrintLn "@X0FThank you for visiting the Lottery.  Come back soon."
  81.     PrintLn "@X0F"
  82.     PrintLn "@X0AReturning to PCBoard . . ."
  83.  
  84. ;------------------------------------------------------------------------------
  85. ;
  86. ; Usage report (before postprocessing)
  87. ;
  88. ; ■ Statements used :
  89. ;
  90. ;    6       Goto 
  91. ;    39      PrintLn 
  92. ;    2       If 
  93. ;    3       AdjTime 
  94. ;    2       Log 
  95. ;    2       InputYN 
  96. ;    4       Delay 
  97. ;
  98. ;
  99. ; ■ Functions used :
  100. ;
  101. ;    2       -
  102. ;    2       ==
  103. ;    2       !
  104. ;    1       Random()
  105. ;    1       YesChar()
  106. ;
  107. ;------------------------------------------------------------------------------
  108. ;
  109. ; Analysis flags : A
  110. ;
  111. ; A - Adjust online time remaining ■ 5
  112. ;     Program modify the amount of online time remaining, this may
  113. ;     be a way to bypass time limits
  114. ;     ■ Search for : ADJTIME
  115. ;
  116. ;------------------------------------------------------------------------------
  117. ;
  118. ; Postprocessing report
  119. ;
  120. ;    0       For/Next
  121. ;    0       While/EndWhile
  122. ;    2       If/Then or If/Then/Else
  123. ;    0       Select Case
  124. ;
  125. ;------------------------------------------------------------------------------
  126. ;                 AEGiS Corp - Break the routines, code against the machines!
  127. ;------------------------------------------------------------------------------
  128.