home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
U
/
UFO-LOTT.ZIP
/
THT-LOT.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1994-05-16
|
7KB
|
300 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String TSTRING009(15)
String TSTRING010(15)
String STRING011
String TSTRING012(15)
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
String STRING025
String STRING026
String STRING027
String STRING028
String STRING029
;------------------------------------------------------------------------------
FOpen 1, PPEPath() + PPEName() + ".cnf", 0, 0
FGet 1, STRING026
FGet 1, INTEGER004
FGet 1, STRING019
FGet 1, STRING020
FGet 1, STRING021
FGet 1, STRING022
FGet 1, STRING023
FGet 1, STRING024
FGet 1, STRING025
FGet 1, STRING028
FGet 1, STRING027
FGet 1, STRING029
FClose 1
:LABEL001
STRING008 = "1"
Cls
Newline
STRING014 = Chr(64) + Chr(88) + Chr(48) + Chr(67) + Chr(60) + Chr(60) + Chr(64) + Chr(88) + Chr(48) + "E" + Chr(84) + Chr(72) + Chr(84) + Chr(64) + Chr(88) + Chr(48) + "C" + Chr(62) + Chr(62) + Chr(64) + Chr(88) + Chr(48) + "E Lo" + Chr(84) + Chr(84) + "o " + Chr(64) + Chr(88) + Chr(48) + "9v" + Chr(50) + "." + Chr(50) + Chr(48) + " "
AnsiPos 1, 1
Print Chr(64) + Chr(88) + Chr(48) + I2S(8, 36) + I2S(12, 36) + I2S(27, 36) + I2S(14, 36) + I2S(10, 36) + I2S(29, 36) + I2S(14, 36) + I2S(13, 36) + " " + Chr(102) + Chr(111) + Chr(114) + " " + I2S(30, 36) + I2S(15, 36) + I2S(24, 36)
Print "@POS:60@" + Chr(64) + Chr(88) + Chr(48) + I2S(8, 36) + I2S(12, 36) + I2S(24, 26) + I2S(13, 36) + I2S(14, 36) + I2S(13, 36) + Chr(64) + Chr(88) + Chr(48) + I2S(15, 36) + " " + I2S(11, 36) + I2S(34, 36) + Chr(64) + Chr(88) + Chr(48) + I2S(15, 36) + " " + I2S(29, 36) + I2S(17, 36) + I2S(14, 36) + Chr(64) + Chr(88) + Chr(48) + I2S(8, 36) + " " + I2S(22, 36) + I2S(10, 36) + I2S(28, 36) + I2S(29, 36) + I2S(14, 36) + I2S(27, 36) + " "
AnsiPos 27, 1
Print STRING014
AnsiPos 26, 2
PrintLn "@X0CRegistered to: @X0E" + STRING026
DispFile PPEPath() + PPEName() + ".hdr", 4 + 2
FOpen 1, PPEPath() + PPEName() + ".lot", 0, 0
STRING011 = 9
:LABEL002
If (Ferr(1)) Goto LABEL003
FGet 1, TSTRING009(INTEGER001)
If (TSTRING009(INTEGER001) == "") Then
Print ""
Else
Tokenize TSTRING009(INTEGER001)
GetToken TSTRING010(INTEGER001)
GetToken TSTRING012(INTEGER001)
AnsiPos 14, STRING011
PrintLn STRING025 + " For " + STRING024 + TSTRING010(INTEGER001) + STRING025 + "@POS:42@ Number's Press @X0F(@X8C" + Left(TSTRING010(INTEGER001), 1) + "@X0F)"
Inc STRING011
Inc STRING018
Inc INTEGER001
Endif
Goto LABEL002
:LABEL003
FClose 1
Inc STRING011
AnsiPos 15, STRING011
PrintLn STRING027
Inc STRING011
AnsiPos 14, STRING011
PrintLn STRING028
INTEGER005 = Len(StripAtx(STRING027))
AnsiPos 15 + INTEGER005, STRING011 - 1
STRING016 = 0
While (STRING016 == 0) Do
STRING015 = Upper(Inkey())
For INTEGER002 = 0 To STRING018
If (STRING015 == Left(TSTRING010(INTEGER002), 1)) Goto LABEL004
Next
If (INTEGER002 > STRING018) INTEGER002 = 0
If (STRING015 == Chr(13)) Goto LABEL015
EndWhile
:LABEL004
If (Left(TSTRING010(INTEGER002), 1) == "P") Then
Cls
Gosub LABEL013
AnsiPos 10, 3
PrintLn STRING022 + "║ " + STRING023 + " Power Ball Picks POWERBALL" + STRING022 + "@X07"
AnsiPos 61, 4
PrintLn "@XF4"
DefColor
STRING013 = "P"
Else
Cls
Gosub LABEL013
AnsiPos 10, 3
PrintLn STRING022 + "║ " + STRING023 + TSTRING010(INTEGER002) + " Lotto Quick Picks " + STRING022 + "@X07"
STRING013 = "M"
Goto LABEL005
Endif
:LABEL005
If (Exist(PPEPath() + PPEName() + "." + String(PcbNode()))) Delete PPEPath() + PPEName() + "." + String(PcbNode())
INTEGER003 = 6
StartDisp 1
If (STRING013 <> "P") Gosub LABEL006
If (STRING013 == "P") Gosub LABEL006
AnsiPos 1, INTEGER003
DispFile PPEPath() + PPEName() + "." + String(PcbNode()), 0
Newline
AnsiPos 5, 21
PrintLn STRING029
INTEGER005 = Len(StripAtx(STRING029))
AnsiPos 3 + INTEGER005, 21
While (STRING016 == 0) Do
STRING017 = Upper(Inkey())
If (Exist(PPEPath() + PPEName() + "." + String(PcbNode()))) Delete PPEPath() + PPEName() + "." + String(PcbNode())
STRING008 = "1"
If (STRING017 == "Y") Goto LABEL005
If (STRING017 == Chr(13)) Goto LABEL005
If (STRING017 == "N") Goto LABEL001
EndWhile
:LABEL006
STRING008 = 1
FClose 1
FAppend 1, PPEPath() + PPEName() + "." + String(PcbNode()), 1, 0
FPutLn 1, "@POS:10@" + STRING021 + "╔═════════════════════════════════════════════════════╗@X07"
For INTEGER001 = 1 To INTEGER004
:LABEL007
STRING001 = Random(TSTRING012(INTEGER002))
If (STRING001 == 0) Goto LABEL007
:LABEL008
STRING002 = Random(TSTRING012(INTEGER002))
If (STRING002 == 0) Goto LABEL008
If (STRING001 == STRING002) Goto LABEL008
:LABEL009
STRING003 = Random(TSTRING012(INTEGER002))
If (STRING003 == 0) Goto LABEL009
If ((STRING001 == STRING003) || (STRING002 == STRING003)) Goto LABEL009
:LABEL010
STRING004 = Random(TSTRING012(INTEGER002))
If (STRING004 == 0) Goto LABEL010
If (((STRING001 == STRING004) || (STRING002 == STRING004)) || (STRING003 == STRING004)) Goto LABEL010
:LABEL011
STRING005 = Random(TSTRING012(INTEGER002))
If (STRING005 == 0) Goto LABEL011
If ((((STRING001 == STRING005) || (STRING002 == STRING005)) || (STRING003 == STRING005)) || (STRING004 == STRING005)) Goto LABEL011
:LABEL012
STRING006 = Random(TSTRING012(INTEGER002))
If (STRING006 == 0) Goto LABEL012
If ((((((STRING013 <> "P") && (STRING001 == STRING006)) || (STRING002 == STRING006)) || (STRING003 == STRING006)) || (STRING004 == STRING006)) || (STRING005 == STRING006)) Goto LABEL012
Gosub LABEL014
If (STRING013 == "P") FPutLn 1, STRING021 + "@POS:10@║@X0D " + STRING007 + "@POS:20@" + STRING020 + STRING001 + "@POS:27@" + STRING002 + "@POS:35@" + STRING003 + "@POS:44@" + STRING004 + "@POS:53@" + STRING005 + "@POS:60@" + "@X09(@X0E" + STRING006 + "@X09)@X0E@POS:64@║@X07"
If (STRING013 <> "P") FPutLn 1, STRING021 + "@POS:10@║ " + STRING007 + "@POS:20@" + STRING020 + STRING001 + "@POS:28@" + STRING002 + "@POS:36@" + STRING003 + "@POS:44@" + STRING004 + "@POS:52@" + STRING005 + "@POS:60@" + STRING006 + STRING021 + "@POS:64@║@X07"
If (INTEGER001 <> INTEGER004) FPutLn 1, STRING021 + "@POS:10@╠═════════════════════════════════════════════════════╣@X07"
Inc STRING008
Next
FPutLn 1, "@POS:10@" + STRING021 + "╚═════════════════════════════════════════════════════╝@X07"
FClose 1
Return
:LABEL013
Newline
PrintLn "@POS:10@" + STRING022 + "╔═════════════════════════════════════════════════════╗@X07"
PrintLn "@POS:10@" + STRING022 + "║ ║@X07"
PrintLn "@POS:10@" + STRING022 + "║ ║@X07"
PrintLn "@POS:10@" + STRING022 + "╚═════════════════════════════════════════════════════╝@X07"
AnsiPos 25, 4
PrintLn STRING022 + "Registered to: " + STRING026
Return
:LABEL014
If (STRING008 == 1) STRING007 = "A."
If (STRING008 == 2) STRING007 = "B."
If (STRING008 == 3) STRING007 = "C."
If (STRING008 == 4) STRING007 = "D."
If (STRING008 == 5) STRING007 = "E."
If (STRING008 == 6) STRING007 = "F."
If (STRING008 == 7) STRING007 = "G."
If (STRING008 == 8) STRING007 = "H."
If (STRING008 == 9) STRING007 = "I."
If (STRING008 == 10) STRING007 = "J."
If (STRING008 == 11) STRING007 = "K."
If (STRING008 == 12) STRING007 = "L."
If (STRING008 == 13) STRING007 = "M."
If (STRING008 == 14) STRING007 = "N."
Return
:LABEL015
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 3 Cls
; 31 Goto
; 38 Let
; 4 Print
; 13 PrintLn
; 45 If
; 2 DispFile
; 2 FOpen
; 1 FAppend
; 4 FClose
; 13 FGet
; 5 FPutLn
; 1 StartDisp
; 1 DefColor
; 2 Delete
; 5 Gosub
; 3 Return
; 6 Inc
; 3 Newline
; 1 Tokenize
; 2 GetToken
; 14 AnsiPos
;
;
; ■ Functions used :
;
; 185 +
; 1 -
; 46 ==
; 4 <>
; 2 <
; 2 <=
; 1 >
; 4 >=
; 7 !
; 5 &&
; 12 ||
; 2 Len(
; 2 Upper()
; 3 Left()
; 1 Ferr()
; 48 Chr()
; 6 Random()
; 2 StripAtx()
; 2 Inkey()
; 6 String()
; 9 PPEPath()
; 6 PcbNode()
; 2 Exist()
; 31 I2S()
; 9 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 2 For/Next
; 2 While/EndWhile
; 2 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------