home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
fidofly2
/
fidofly.scr
< prev
next >
Wrap
Text File
|
1991-01-13
|
3KB
|
133 lines
script
clear variables
clear screen
; FIDOFLY SCRIPT--To be used together with FIDOFLY.PRG
;
; by Bryan Stoll (aka Flypaper)
; Version 1.0 Copyright 1990 -- Mentality, Inc.
;
; Call THE MENTALITY BBS (619)324-6894
;============ EDIT THE NEXT LINES ===================
define bbs = 'D:\' ;BBS Path
define ffpath = 'D:\MENUHELP\' ;FidoFly Path
define call = 'CALL.LOG' ;Call Log file
;======================================================
define cd
define message
define name = &02
define timeleft = &13
define fdlevel
define access = 999 ; The area number for FD (1-128) or 999 for all.
define local = 'N'
define answer
if command_level (32)
fdlevel = 32766
ef command_level (2)
fdlevel = 10000
ef command_level (1)
fdlevel = 1
endif
if command_level (32) then
goto menu
else
gosub setup
gosub fidodoor
exit
endif
exit
setup:
open ('[FFPATH]fidofly.usr',output)
fprinte name
fprinte timeleft
fprinte fdlevel
fprinte access
fprinte local
close
return
menu:
clear screen
printe
printe ('FIDOFLY SysOp Menu',center)
printe
printe
printe ('1 -- Access FidoDoor ',center)
printe ('2 -- FidoDoor System Generator',center)
printe ('3 -- Check for new messages ',center)
printe ('4 -- Exit SysOp Menu ',center)
printe
printe
print ('Command:\{Hit RETURN for #1\} ')
answer = get_key
if answer = 2 then
printe ('FidoDoor Sys. Gen.')
gosub sysop
gosub setup
message = ' *-> Accessed FidoDoor System Generator <-*'
gosub calllog
gosub fdsysgen
goto menu
ef answer = 3 then
printe ('New Messages')
gosub sysop
gosub setup
message = ' *-> Checked for new messages within FidoDoor <-*'
gosub calllog
gosub new
goto menu
ef answer = 4 then
printe ('Later...')
cd = file_chgdir ('[BBS]')
exit
else
printe ('Now entering FidoDoor')
gosub sysop
gosub setup
message = ' *-> Accessed FidoDoor <-*'
gosub calllog
gosub fidodoor
goto menu
endif
fidodoor:
cd = file_chgdir ('[FFPATH]')
tos ('fidofly.ttp')
cd = file_chgdir ('[BBS]')
return
new:
cd = file_chgdir ('[FFPATH]')
tos ('fidofly.ttp','NEW')
cd = file_chgdir ('[BBS]')
return
fdsysgen:
cd = file_chgdir ('[FFPATH]')
tos ('fidofly.ttp','SYSTEM')
cd = file_chgdir ('[BBS]')
return
sysop:
print ('Are you local\{Y/n\}? ')
answer = get_key
if answer = n
printe ('No')
local = 'N'
else
printe ('Yes')
local = 'Y'
endif
return
calllog:
open ('[BBS][CALL]',append)
fprinte message
close
return