home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
zmodem
/
pips05.arc
/
PIPS05.T
< prev
next >
Wrap
Text File
|
1988-10-29
|
9KB
|
279 lines
:
: pips05.T - Pips Is a Pcpursuit Script (for ZCOMM), version 0.05
:
: This script was written by:
:
: Eric Larson
: 2902 Falls Road
: Marcellus, NY 13108
:
: Copyright 1987, 1988 by Eric Larson
:
: Beginning of Configuration Area of pips.t
:
number: :pipsnum.t is a text file containing your Telenet phone number
setc menu "%PIPS\&pipsnum.t"
while "!c&&L<5" menu
ena -8n
goto dialed
:
bbs: setc menu "%PIPS\&pipslog.t" :\file with your custom logon routines
menu :\and your PCP name & password
goto resume
:
:
setmenu: setc menu "%PIPS\&pipslink.t" :\path to pipslink
goto callmenu
:
file
setc menu "%PIPS\&pipsfile.t" :\path to pipsfile.t
menu
return
:
hangup bye
: put "ATH1M0S0=0\r" :takes modem off hook..for sysops
: :non-sysops should comment out the put command
:End of configuration area
:
:Initialization
:
pcp cls;
set answerback "\21"
set s9 "None"
set s8 "0"
ena -i
:fkey initialization
set fa1 "@gosub file" :pipsfile file transfer menu
set fa2 "@cd %PIPSDL"
set fa3 "@accept s2 Receive-File: rc %PIPSDL%s2"
set fa4 "@echo Receive-File-Batch:; rb"
set fa5 "@accept s2 Receive-File-WXmodem: rw %PIPSDL%s2"
set fa6 "@echo CIS-B-enabled; ena -c"
set fa7 "@accept s2 Receive-File-Overthruster: ro %PIPSDL%s2"
set fa8 "@Receive-File-Telink: rt"
set fc1 "@accept s1 Send-Z-File: sz %s1"
set fc2 "@accept s1 Send-Y-File: sb %s1"
set fc3 "@accept s1 Send-1kX-File: sx -k %s1"
set fc4 "@accept s1 Send-X-File: sx %s1"
set fc5 "@accept s1 Send-T-File: st %s1"
set n7 "SET? 1:0,2:0,3:126,4:2,5:1,6:1,7:8,9:0,10:0,12:1,0:0,57:1,63:0"
set fc6 "@accept s1 Send-K-File: send %s1"
lput "Copyright 1987, 1988 by Eric Larson pips version 0.05"
pcpr: :Re-Entry Point for Dialing Q
sleep 3
set s3 "0"
loop: cls; set s7 "0"; set s1 ""
if !is8,1; set s4 ""; set s5 ""
goback setmenu
callmenu: menu :User picks the BBS's he wants
if is4,& set s9 "None"; goback loop :Forget city
if is4,> gosub hangup; goback loop
if is4,@ set s7 0; goto on
if is4,# close return
if is4,! goback edit
pat 1 "PAR"
if is4,* gosub hangup close return
if is4,^ put "\003\004"; sleep 20; put "\003\004"; goback loop
if is4,? goto manual; :manual entry of AC, #
if is4,~ set s9 "2"; goback loop :Don't disconnect city!
if is4,+ goto pcpq
goto skipman
manual: accept s4 "Enter Area Code/Outdial Speed, i.e. /mabos/12 or system name :"
accept s5 "Enter Local Phone number or -1 :"
goto skipman
pcpq: :build an outdial q for PCP operations
lput "\Ek"
accept s0 "BBS code? [Enter Ends List] \EK"
set s8 "1"
if %s0 queue add "sets s4 %s0; gosub pcpr"
if %s0 goback pcpq
q:
queue run
set s8 "0"
goback loop
skipman:
if "Js5,123456789" gosub dialup :a BBS was selected
if is8,1 if is1,a return :did the human abort the call?
if !is8,1 if is1,a goback loop
if "Js5,123456789" goto on
lput "\007Not Implemented\007"; goback loop
on:
if !is7,0 goback bbs :Log on to a BBS
resume:
pat :reset all patterns
pH0
if !c&&!is8,1 goback loop
if !c&&is8,1 return
if is3,0 ena -8g
if is8,1 queue delete
t -s
ena -8n
set s3 "0"
pat 1i "@"
if !is5,-1 goto res1 :Determine status of direct connect
put "\r"; wait -f2
if !1 gosub hangup
res1: ife !is8,1 goback loop; return :Finished with this BBS
dialup :Start of Telenet dialing routine
retry: cls; pat
setc f10 %n2
if c goto skiptnet
tnet: pat :TELENET dialup routine
nocar: :Call local Telenet Number
goback number
dialed:
if !c Echo "\r\nTELENET Dialing Failure, Try Another Number\r\n"; goto ebell
set s9 "1" :sets disconnect flag to 1
pat 1$ "="
pat 2$ "@"
sleep 15
ife S>1800 put "@"
sleep 5
put "D"
sleep 5
put "\r"
wait -f4 :tnet
if 1 put "D1\r"; wait -f2
if 2 goto skiptnet
sleep 15
ife S>1800 put "@";
sleep 5
put "D"
sleep 5
put "\r"
wait -f4 :tnet
if 1 put "D1\r"; wait -f2
if n gosub hangup; goback nocar
skiptnet: if !c goback retry
if Is9,s4 goto skipcity :disconnect city?
if is9,1; goto skipcity
if is9,2; goto localloop
set s9 "1"
pat
pat 1 "DISCONNECTED"; pat 2 "NOT"; pat 3 "*"; pat 4 "@"
put "\r"
if 3 put "i\r"; wait -f3
if 4 goto skipcity
break
put "\r@\rD\r"
wait -f3
if n gosub hangup
skipcity:
sleep 10 :give it time to hang up
if !c goback retry
if Is9,s4 goto localloop :goto bbs dial if correct city
put "\r"
pat 4i "@"
wait -F5 :retry
while "c&&!4&&L<3" lput "\007" wait -F5
if !c goback retry
if !4 gosub hangup; goback retry :didn't get @, escape hatch
pat; pat 1i "@"; pat 3 "BUSY"; pat 4 "NOT"
pat 5i "CONNECT"; pat 6 "PAR"; pat 7 "OK"
cls
cityloop: if !c lput "\007"; goback retry
if dc lput "\E[40;1;31m"
pH1;
if is8,0 acceptl1 s1 "\E[1;1H\E[2JType a to abort call "
if is8,1 acceptl1 s1 "\E[1;1H\E[2JType a to remove this call from list, b to abort queue "
if dc lput ""
lput "\r\n"
if is8,0 if is1,a return
if is8,1 if is1,a queue delete; return
if is8,1 if is1,b queue clear; set s1 "a"; return
cls
if !is5,-1 goto sk1
put "C %s4,%n3,%n4\r" wait -f6 :PCP name
sk1: if is5,-1 goto sk2 :Direct connect mode
put "C D%s4,%n3,%n4\r" wait -f6
sk2: if !c goback retry
if "!5&&is8,1" set s1 "a"; return
if !5 goback cityloop
if !3&&!5 goback retry
if is5,-1 set s9 "None"; goto fin :Direct?? All done!!
localloop:
if Is9,s4 goto noast
escape:
pat
pat 1 "@"; pat 2 "PAR"
while "!1&&L<3" break put "@\r" wait -f3
if !1 gosub hangup; goback retry
put "%n7\r"
wait -f3 : escape/set
if !2 goback escape
sets s9 "%s4"; :Set the city code for next time through
put "CONT\r\n"
noast:
pat
pat 1 "MANUAL"; pat 2i "*"; pat 3i "ANSWER TONE"; pat 4i "BUSY!"; pat 5i "OK"
pat 6 "RING\r\n"; pat 7 "LING..."; pat 8 "NO DIAL TONE"; pat 9 "IDLE"
pat 10i "GING...";
wait -f3
if 2&&is6,1 put "I\r" wait -f3
if !2 put "ATZ\r"; wait -f5
if 5 goto hayesmode
if 1||2 if is6,1 sleep 10; put "I\r"; wait -f3 :Was it in RV mode?
if 1&&is6,0 sleep 10; put "\r"; wait -f3; goto nomnp
if 2&&is6,0 goto nomnp
while "!9&&L<3" put "I\r" wait -f3
if !9 set s9 "None"; goback retry
while "!5&&L<3" put "ATZ\r" wait -f4
if !5 set s9 "None"; goback retry
hayesmode:
if is6,0 goto nomnp
put "AT*E1\r"; wait -f4
while "!5&&L<3" put "AT*E1\r" wait -f4
if !5 set s9 "None"; goback retry
nomnp:
while "!2&&L<3" put "\005\r" wait -f3
if 6 set s9 "None"; goback retry
if !c goback retry
if n lput "Frozen Outdial \007"; set s9 "None"; goback skiptnet
callbbs: if !c goback retry
if n lput "\007 RVTalk Failure \007"; gosub hangup; set s9 "None"; goback retry
if !2 goback noast
if dc lput "\E[40;1;31m"
pH1
if is8,0 acceptl1 s1 "\E[1;1H\E[2JType a to abort call "
if is8,1 acceptl1 s1 "\E[1;1H\E[2JType a to remove this call from list, b to abort entire list "
if dc lput ""
lput "\r\n"
if is8,0 if is1,a return
if is8,1 if is1,a queue delete; return
if is8,1 if is1,b queue clear; set s1 "a"; return
cls
put "D%s5\r"; wait -f10 :Dial the BBS and wait for a response
if 2 goback callbbs
if 8||6 set s9 "None"; goback retry
if !7 goback noast
wait -f40
rvtalk:
if 2||4 if is8,1 set s1 "a"; return
if 2 goback callbbs :got *, ready for retry
if 3 goto fin
if 4 wait -f2; goback callbbs :BUSY!
if 7||10 wait -f20; goback rvtalk
if 8 set s9 "None"; goback retry :Broken outdial modem
if !n goback localloop
lput "\007Pat Failure"; goback localloop
fin:
echo "Connected, hit any key to continue"
pH2; set s1 ""
while !k lput "\007\007" sleep 20
acceptl1 s1 ""
return
ebell: echo "Failure dialing local Telenet access number"
lput "\007\007"
sleep 20
return