home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Equalizer BBS
/
equalizer-bbs-collection_2004.zip
/
equalizer-bbs-collection
/
DEMOSCENE-STUFF
/
SAC1295B.ZIP
/
SAC-QBLU.ZIP
/
SAC-BULL.PPS
< prev
next >
Wrap
Text File
|
1995-10-11
|
5KB
|
172 lines
INTEGER YPOSITION
INTEGER YPOSITION2
STRING TASTE
INTEGER ENDEKZ
INTEGER STARTYPOS
STRING TEXTE(9)
STRING BULL(9)
INTEGER COUNTER
INTEGER COUNTER2
INTEGER COUNTER3
INTEGER POSITION
STRING BACKCOLOR
STRING DUMMY
BOOLEAN DONE
STRING LBC
STRING THETOKEN
LET COUNTER=0
LET ENDEKZ=0
;PRINTLN "@CLS@@POFF@"
;STARTDISP FNS
;ANSIPOS 1,1
;DISPFILE PPEPATH()+"CSB.DAT",0
FOPEN 1,PPEPATH()+"CSB.CFG",O_RD,S_DN
FGET 1,STARTYPOS
FGET 1,LBC
COUNTER = 0
WHILE (!FERR(1)) DO
INC COUNTER
FGET 1,TEXTE(COUNTER)
END WHILE
:CFGSCHLIESSEN
FCLOSE 1
COUNTER3 = COUNTER + 1
REDIM TEXTE,COUNTER3
REDIM BULL,COUNTER3
FOPEN 1,PPEPATH()+"CSB.CFG",O_RD,S_DN
FGET 1,STARTYPOS
FGET 1,LBC
COUNTER = 0
WHILE (!FERR(1)) DO
INC COUNTER
FGET 1,TEXTE(COUNTER)
END WHILE
FCLOSE 1
DUMMY = MID(LBC,3,1)
BACKCOLOR = "@X0"+STRING(DUMMY)
FOPEN 2,PPEPATH()+"BULLS.DAT",O_RW,S_DN
COUNTER2 = 0
DONE = FALSE
WHILE (!DONE) DO
INC COUNTER2
FGET 2,BULL(COUNTER2)
IF (COUNTER2 = COUNTER) DONE = TRUE
END WHILE
FCLOSE 2
STARTDISP FNS
THETOKEN = GETTOKEN()
IF (THETOKEN <> "") THEN
PRINT "@X07@CLS@"
DISPFILE STRING(BULL(THETOKEN)),0
PRINT "@WAIT@@POFF@"
ENDIF
PRINTLN "@CLS@@POFF@"
STARTDISP FNS
ANSIPOS 1,1
DISPFILE PPEPATH()+"CSB.DAT",0
PRINTLN
DONE = FALSE
ANSIPOS 1,STARTYPOS
PRINTLN "@X08┌────────────────────────────────────────────────────────────────────────────┐"
LET YPOSITION2=GETY()
LET COUNTER2=0
LET ENDEKZ=0
:BULLANZEIGEN
IF (ENDEKZ=1) GOTO ENDELINE
INC COUNTER2
IF (COUNTER2=COUNTER) GOTO ENDELINE
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(COUNTER2),"@X01)","@POS:30@",(TEXTE(COUNTER2)),"@POS:78@@X08│"
GOTO BULLANZEIGEN
:ENDELINE
PRINTLN "@X08└────────────────────────────────────────────────────────────────────────────┘"
PRINT "@POS:1@@X07 ·■ @X08(@X0F@X08·@X0F@X08) @X07u@X08p/@X07d@X08own @X07■ @X08(@X0FESC@X08) @X07q@X08uit @X07■ @X08(@X07ENTER@X08) @X07s@X08elect @X07■· @X08quick bulls V1.1 by ROY/SAC"
LET POSITION=1
DEC COUNTER
GOTO EINGABE
:EINGABE
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
:BACK
WHILE (!DONE) DO
LET TASTE=UPPER(INKEY())
SELECT CASE (TASTE)
CASE "UP"
IF (POSITION > 1) THEN
ANSIPOS 1,YPOSITION2
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(POSITION),"@X01)","@POS:30@",(TEXTE(POSITION)),"@X07@POS:78@@X08│"
DEC POSITION
DEC YPOSITION2
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
ELSE
ANSIPOS 1,YPOSITION2
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(POSITION),"@X01)","@POS:30@",(TEXTE(POSITION)),"@X07@POS:78@@X08│"
POSITION = COUNTER
YPOSITION2 = YPOSITION2 + COUNTER - 1
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
ENDIF
CASE "DOWN"
IF (POSITION < COUNTER) THEN
ANSIPOS 1,YPOSITION2
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(POSITION),"@X01)","@POS:30@",(TEXTE(POSITION)),"@X07@POS:78@@X08│"
INC POSITION
INC YPOSITION2
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
ELSE
ANSIPOS 1,YPOSITION2
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(POSITION),"@X01)","@POS:30@",(TEXTE(POSITION)),"@X07@POS:78@@X08│"
POSITION = 1
YPOSITION2 = YPOSITION2 - COUNTER + 1
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
ENDIF
CASE CHR(13)
GOTO UNDWECH
CASE CHR(27)
GOTO ENDE
END SELECT
DONE = FALSE
END WHILE
:UNDWECH
PRINT "@X07@CLS@"
DISPFILE STRING(BULL(POSITION)),0
PRINT "@WAIT@@POFF@"
STARTDISP FNS
ANSIPOS 1,1
DISPFILE PPEPATH()+"CSB.DAT",0
ANSIPOS 1,STARTYPOS
PRINTLN "@X08┌────────────────────────────────────────────────────────────────────────────┐"
LET COUNTER2=0
:BULLANZEIGEN2
INC COUNTER2
IF (COUNTER2= (COUNTER + 1)) GOTO ENDELINE2
PRINTLN "@POS:1@@X08│@POS:9@@X01(@X0F",(COUNTER2),"@X01)","@POS:30@",(TEXTE(COUNTER2)),"@POS:78@@X08│"
GOTO BULLANZEIGEN2
:ENDELINE2
PRINTLN "@X08└────────────────────────────────────────────────────────────────────────────┘"
PRINT "@POS:1@@X07 ·■ @X08(@X0F@X08·@X0F@X08) @X07u@X08p/@X07d@X08own @X07■ @X08(@X0FESC@X08) @X07q@X08uit @X07■ @X08(@X07ENTER@X08) @X07s@X08elect @X07■· @X08quick bulls V1.1 by ROY/SAC"
ANSIPOS 3,YPOSITION2
PRINT "@POS:5@",BACKCOLOR,"░▒▓",LBC,"@POS:9@(",(POSITION),")@POS:30@",(STRIPATX(TEXTE(POSITION))),LBC,"@POS:72@",BACKCOLOR,"▓▒░@X08"
GOTO BACK
:ENDE
PRINTLN "@X07@CLS@"
END