home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / BR40U.ZIP / BR40U.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-01-05  |  4KB  |  188 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.     String   STRING001
  20.     String   STRING002
  21.     String   STRING003
  22.  
  23. ;------------------------------------------------------------------------------
  24.  
  25.     Cls
  26.     GetUser
  27.     GetUser
  28.     RdUNet PcbNode()
  29.     WrUNet PcbNode(), UN_Stat(), UN_Name(), "Running BR [PPE] v 4.0", "", ""
  30.     :LABEL001
  31.     STRING003 = ""
  32.     STRING001 = ""
  33.     STRING002 = ""
  34.     Cls
  35.     If (U_Expert == 1) Goto LABEL002
  36.     If (Exist(PPEPath() + "MENU")) DispFile PPEPath() + "MENU", 4 + 2 + 1
  37.     Goto LABEL002
  38.     Newline
  39.     :LABEL002
  40.     If (U_Expert == 0) Goto LABEL003
  41.     PrintLn "@X0EYou are in expert mode.  Therefore,  you will not see the menu."
  42.     Newline
  43.     :LABEL003
  44.     InputStr "@X0EWhat is your BR [PPE] menu command", STRING001, 14, 1, "QW?HGVS", 2 + 4 + 8
  45.     Newline
  46.     If (STRING001 == "") Goto LABEL007
  47.     If (STRING001 == "Q") Goto LABEL007
  48.     If (STRING001 == "W") Goto LABEL009
  49.     If (STRING001 == "H") Goto LABEL010
  50.     If (STRING001 == "S") Goto LABEL004
  51.     If (STRING001 == "G") Goto LABEL007
  52.     If (STRING001 == "?") Goto LABEL010
  53.     :LABEL004
  54.     InputStr "@X0EWhat node do you wish to send a message to", STRING003, 14, 3, "1234567890", 2 + 4 + 8
  55.     Newline
  56.     If (STRING003 == String(PcbNode())) Goto LABEL006
  57.     If (STRING003 > MaxNode()) Goto LABEL005
  58.     If (STRING003 == 0) Goto LABEL011
  59.     InputStr "Enter your message 52 Chars Max", STRING002, 14, 52, "ß■ ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=_+\|,./<>?;':[]{}`~!@#$%^&*()" + Chr(34), 2 + 4 + 8
  60.     Newline
  61.     If (STRING002 == "") Goto LABEL007
  62.     Newline
  63.     Broadcast STRING003, STRING003, "A message from node #" + String(PcbNode()) + " ->" + STRING002
  64.     PrintLn "@X0EFive second un-registered delay... please hold"
  65.     Delay 18 * 5
  66.     FAppend 1, PPEPath() + "BR.LOG", 1, 3
  67.     FPutLn 1, "Name:  " + String(U_Name())
  68.     FPutLn 1, "From Node:  " + String(PcbNode())
  69.     FPutLn 1, "To Node:  " + STRING003
  70.     FPutLn 1, "Date Sent:  " + String(Date())
  71.     FPutLn 1, "Time Sent:  " + String(Time())
  72.     FPutLn 1, "Message Sent:  " + STRING002
  73.     FPutLn 1, "--------------------------------------------------------------------------------"
  74.     FPutLn 1, "Why not register BR[PPE].  It's only $15.  No More 5 Second Delay!"
  75.     FPutLn 1, "--------------------------------------------------------------------------------"
  76.     FClose 1
  77.     Newlines 3
  78.     Log STRING002, 0
  79.     Log "BR [PPE] From Node " + String(PcbNode()), 0
  80.     STRING001 = ""
  81.     Goto LABEL001
  82.     :LABEL005
  83.     Newline
  84.     PrintLn "@X8CThis BBS is not setup to handle more than " + String(MaxNode()) + " Nodes"
  85.     Delay 45
  86.     Cls
  87.     STRING001 = ""
  88.     Goto LABEL001
  89.     :LABEL006
  90.     Newline
  91.     PrintLn "@X0EWhy would you send a message to yourself???????????@X0F"
  92.     Log "This person try to send a message to him/her self", 0
  93.     STRING001 = ""
  94.     Cls
  95.     Goto LABEL001
  96.     :LABEL007
  97.     Newline
  98.     PrintLn "@X38┌───────────────────────────────────────────────────┐@X0F"
  99.     PrintLn "@X38│ Kris Steinwender * The BBS Express * 609-461-6254 @X3B│@X0F"
  100.     PrintLn "@X3B└───────────────────────────────────────────────────┘@X0F"
  101.     If (STRING001 == "G") Goto LABEL008
  102.     End
  103.     :LABEL008
  104.     Newline
  105.     PrintLn "@X0AThanks for calling @FIRST@@X0F"
  106.     Bye
  107.     :LABEL009
  108.     Cls
  109.     PrintLn "@X8CNote:  @X0E If you are using this program,"
  110.     PrintLn "@X0E        odds are you're available for chat"
  111.     PrintLn "@WHO@"
  112.     Wait
  113.     STRING001 = ""
  114.     Goto LABEL001
  115.     :LABEL010
  116.     PrintLn "@X0EOnly available in the registered version."
  117.     Log "It's a good time to register BR[PPE].  Only $15!", 1
  118.     Delay 18 * 2
  119.     Goto LABEL001
  120.     :LABEL011
  121.     PrintLn "@X0EYou can not enter a message to node 0"
  122.     Delay 45
  123.     Goto LABEL001
  124.  
  125. ;------------------------------------------------------------------------------
  126. ;
  127. ; Usage report (before postprocessing)
  128. ;
  129. ; ■ Statements used :
  130. ;
  131. ;    1       End
  132. ;    5       Cls
  133. ;    1       Wait
  134. ;    23      Goto 
  135. ;    7       Let 
  136. ;    13      PrintLn 
  137. ;    15      If 
  138. ;    1       DispFile 
  139. ;    1       FAppend 
  140. ;    1       FClose 
  141. ;    9       FPutLn 
  142. ;    2       GetUser
  143. ;    4       Log 
  144. ;    3       InputStr 
  145. ;    4       Delay 
  146. ;    10      Newline
  147. ;    1       Newlines 
  148. ;    1       Bye
  149. ;    1       Broadcast 
  150. ;    1       RdUNet 
  151. ;    1       WrUNet 
  152. ;
  153. ;
  154. ; ■ Functions used :
  155. ;
  156. ;    2       *
  157. ;    24      +
  158. ;    13      ==
  159. ;    1       >
  160. ;    1       Chr()
  161. ;    1       Date()
  162. ;    1       Time()
  163. ;    1       U_Name()
  164. ;    8       String()
  165. ;    3       PPEPath()
  166. ;    6       PcbNode()
  167. ;    1       UN_Stat()
  168. ;    1       UN_Name()
  169. ;    1       Exist()
  170. ;    2       MaxNode()
  171. ;
  172. ;------------------------------------------------------------------------------
  173. ;
  174. ; Analysis flags : No flag
  175. ;
  176. ;------------------------------------------------------------------------------
  177. ;
  178. ; Postprocessing report
  179. ;
  180. ;    0       For/Next
  181. ;    0       While/EndWhile
  182. ;    0       If/Then or If/Then/Else
  183. ;    0       Select Case
  184. ;
  185. ;------------------------------------------------------------------------------
  186. ;                 AEGiS Corp - Break the routines, code against the machines!
  187. ;------------------------------------------------------------------------------
  188.