home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / RQ20.ZIP / RQ.PPE (.txt) < prev   
PCBoard Programming Language Executable  |  1994-02-20  |  3KB  |  141 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 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     String   STRING001
  21.     String   STRING002
  22.  
  23. ;------------------------------------------------------------------------------
  24.  
  25.     GetUser
  26.     :LABEL001
  27.     If (Exist(PPEPath() + "rq.cfg")) Then
  28.         FOpen 1, PPEPath() + "rq.cfg", 0, 0
  29.         FGet 1, INTEGER001
  30.         FClose 1
  31.     Else
  32.         PrintLn "@X0CSorry, we're having to create a config file for the program..."
  33.         FCreate 1, PPEPath() + "rq.cfg", 2, 3
  34.         FPutLn 1, "10       ;Level which if equal or lower to is forced to read their mail!"
  35.         FClose 1
  36.         PrintLn "@X0DOK!"
  37.         Log "You forgot to create a config file!", 0
  38.         Goto LABEL001
  39.     Endif
  40.     INTEGER001 = Left(INTEGER001, 3)
  41.     INTEGER001 = S2I(INTEGER001, 10)
  42.     STRING001 = "Y"
  43.     PrintLn "                  @X00 @X10┌─────────────────────────────────────@X1B┐@X08 "
  44.     PrintLn "                   @X10│@X1F   " + Mixed(U_Name()) + " @X1EThis is mail@X1B@POS:58@│@X08 ██"
  45.     PrintLn "                   @X10│@X1E   for you! Would you like to: @X1B@POS:58@│@X08 ██"
  46.     PrintLn "                   @X10│@X1B@POS:58@│@X08 ██"
  47.     PrintLn "                   @X10│      @X1A(@X1CY@X1A) @X1FRead it now! @X1B@POS:58@│@X08 ██"
  48.     PrintLn "                   @X10│ @X1B@POS:58@│@X08 ██"
  49.     PrintLn "                   @X10│      @X1A(@X1CQ@X1A) @X1FDownload a QWK packet! @X1B@POS:58@│@X08 ██"
  50.     PrintLn "                   @X10│ @X1B@POS:58@│@X08 ██"
  51.     PrintLn "                   @X10│      @X1A(@X1CA@X1A) @X1FRead All the mail! @X1B@POS:58@│@X08 ██"
  52.     PrintLn "                   @X10│ @X1B@POS:58@│@X08 ██"
  53.     If (CurSec() <= INTEGER001) Then
  54.         STRING002 = "yqaYQA"
  55.         Goto LABEL002
  56.     Else
  57.         STRING002 = "ynqaYNQA"
  58.     Endif
  59.     PrintLn "                   @X10│      @X1A(@X1CN@X1A) @X1FDo Nothing about it? @X1B@POS:58@│@X08 ██"
  60.     PrintLn "                   @X10│ @X1B@POS:58@│@X08 ██"
  61.     :LABEL002
  62.     PrintLn "                   @X10└@X1B─────────────────────────────────────┘@X08 ██"
  63.     PrintLn "                     @X08▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██"
  64.     PrintLn "                     @X08▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
  65.     Newline
  66.     InputStr "                       @X0AWhatcha wanna do", STRING001, 0, 1, STRING002, 2 + 128
  67.     If (STRING001 == NoChar()) Then
  68.         KbdStuff "N" + Chr(13)
  69.     Else
  70.         Select Case (Lower(STRING001))
  71.             Case "n"
  72.                 KbdStuff "N" + Chr(13)
  73.             Case "y"
  74.                 KbdStuff "N" + Chr(13) + "R;Y;S;A"
  75.             Case "a"
  76.                 KbdStuff "N" + Chr(13) + "R;A"
  77.             Case "q"
  78.                 KbdStuff Chr(13) + "QWK;D"
  79.                 Goto LABEL003
  80.             Endif
  81.     End Select
  82.     :LABEL003
  83.     End
  84.  
  85. ;------------------------------------------------------------------------------
  86. ;
  87. ; Usage report (before postprocessing)
  88. ;
  89. ; ■ Statements used :
  90. ;
  91. ;    1       End
  92. ;    16      Goto 
  93. ;    5       Let 
  94. ;    17      PrintLn 
  95. ;    7       If 
  96. ;    1       FCreate 
  97. ;    1       FOpen 
  98. ;    2       FClose 
  99. ;    1       FGet 
  100. ;    1       FPutLn 
  101. ;    1       GetUser
  102. ;    1       Log 
  103. ;    1       InputStr 
  104. ;    1       Newline
  105. ;    5       KbdStuff 
  106. ;
  107. ;
  108. ; ■ Functions used :
  109. ;
  110. ;    13      +
  111. ;    5       ==
  112. ;    1       <=
  113. ;    7       !
  114. ;    4       Lower()
  115. ;    1       Left()
  116. ;    5       Chr()
  117. ;    1       U_Name()
  118. ;    1       NoChar()
  119. ;    3       PPEPath()
  120. ;    1       CurSec()
  121. ;    1       Exist()
  122. ;    1       S2I()
  123. ;    1       Mixed()
  124. ;
  125. ;------------------------------------------------------------------------------
  126. ;
  127. ; Analysis flags : No flag
  128. ;
  129. ;------------------------------------------------------------------------------
  130. ;
  131. ; Postprocessing report
  132. ;
  133. ;    0       For/Next
  134. ;    0       While/EndWhile
  135. ;    3       If/Then or If/Then/Else
  136. ;    1       Select Case
  137. ;
  138. ;------------------------------------------------------------------------------
  139. ;                 AEGiS Corp - Break the routines, code against the machines!
  140. ;------------------------------------------------------------------------------
  141.