home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 2
/
FFMCD02.bin
/
new
/
amigalibdisks
/
disk950
/
bbdoors
/
bbdoors65.lha
/
rexxDoors
/
Chicago.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-10-22
|
49KB
|
1,759 lines
/* Chicago Gangland Version 1.21 by Steve Robbins*/
/* Converted by David Prothero */
/* Converted by David Simpson for BBBBS */
/* Version 1.3 by Matt English 6-21-92.
New Features: Bugs fixxed, plays better in local mode, and
UnderWorld Casino at location 25, 25!
New Features in version 1.4: by Matt English 7-10-92
Full menu option added, Leave a comment to next gangster,
Game resets and adds winners name to "GangLord Hall of Fame"
when player reaches 500,000 points.
Version 1.41 7-25-92 by Matt Egnlish
There was a small bug! Yikes!
Version 1.42 7-26-92 - 1.44 10-22-93 by RLStockton
To work better without BaudBandit in LOCAL mode
*/
options results
CR='0D'x /* Carraige Return */
CALL TIME('R')
SIGNAL ON BREAK_C
SIGNAL ON BREAK_E
bbspath=GETCLIP('BBS_path')
bbspath1 = bbspath'rexxdoors/'
bbspath2=bbspath'rexxDoors/Data/'
PARSE arg Username winnings savewinnings colorflag secs .
IF secs='' THEN secs=3600
signal on syntax
/* Open the support library if it is not already open. */
if ~show('L',"rexxsupport.library") then do
addlib('rexxsupport.library',0,-30,0)
end
info='s:CONFIG.BBS'
IF ~EXISTS(info) THEN info='BBS:BBS_TEXT/CONFIG.BBS'
call open(con,info,'R')
IF con=0 THEN EXIT
lynes.1=readln(con)
compos=POS('/*',lynes.1)
IF compos>0 THEN lynes.1=LEFT(lynes.1,compos-1)
bbsname=STRIP(lynes.1)
call close(con)
Name = Username
Spacename = Name
/*ansiflag = result*/
LINES = 20 /* upper(result) - 2 */
ADDRESS rexx 'random(1,2,time('S'))'
if colorflag = 1 then
do
WHITE = '
'
RED = '
'
YELLOW ='
'
BLACK = '
'
GREEN = '
'
CYAN = '
'
MAGENTA = '
'
BLUE = '
'
IF ADDRESS()~='BAUD' THEN BLUE=RED
CLEAR = ''
HOM = 'H'
CLSCREEN = ''
end
else
do
WHITE = ''
RED = ''
YELLOW =''
BLACK = ''
GREEN = ''
CYAN = ''
MAGENTA = ''
BLUE = ''
CLEAR = ''
HOM = ''
CLSCREEN = ''
end
File.1 = bbspath2'gangland/instructions'
File.2 = bbspath2'gangland/news7'
File.3 = bbspath2'gangland/news6'
File.4 = bbspath2'gangland/news5'
File.5 = bbspath2'gangland/news4'
File.6 = bbspath2'gangland/news3'
File.7 = bbspath2'gangland/news2'
File.8 = bbspath2'gangland/news1'
File.9 = bbspath2'gangland/protect'
File.10 = bbspath2'gangland/position'
File.11 = bbspath2'gangland/chic.oneliner'
File.12 = bbspath2'gangland/chic.fame'
File.13 = bbspath2'gangland/aliases'
File.14 = bbspath2'gangland/top10'
/* Starting Stats */
turnsleft = 25
gangmembers = 50
datec = date()
points = 5000
protection = 0
totalgangmembers = 50
money = 1000
bootleg = 0
costfor = 1
pos = 0
deathflag = 0
menus = 0
longdashes='-----------------------------------------------------------------------------'
/*begin*/
if exists(bbspath2'gangland/position') then
do
call open(lastpos,bbspath2'gangland/position','R')
do i = 1 to 10000
mypos.i = readln(lastpos)
posstartx.i = Word(mypos.i,1)
posstarty.i = Word(mypos.i,2)
posgang.i = Word(mypos.i,3)
posmoney.i = Word(mypos.i,4)
posalias.i = Delword(mypos.i,1,4)
if EOF(lastpos) then break
pos = pos + 1
end
call close(lastpos)
end
call open(prot,file.9,'R')
say'Loading Chicago Gangland...'cr
do c = 1 to 25
CALL WRITECH(STDOUT,'.')
do c1 = 1 to 25
protect.c.c1 = readln(prot)
end
end
datel = readln(prot)
if datec ~= datel then
do
SAY ''||CR
SAY ''||CR
SAY CYAN'Standby, running maintenance program.'CLEAR||CR
call seek(prot,0,'B')
do i = 1 to 625
proln.i = readln(prot)
end
call close(prot)
call open(prot,File.9,'W')
do i = 1 to 625
call writeln(prot,proln.i)
end
call writeln(prot,datec)
if exists(file.8) then address command 'c:delete 'file.8' quiet'
if exists(file.7) then address command 'c:rename 'file.7' 'file.8' quiet'
if exists(file.6) then address command 'c:rename 'file.6' 'file.7' quiet'
if exists(file.5) then address command 'c:rename 'file.5' 'file.6' quiet'
if exists(file.4) then address command 'c:rename 'file.4' 'file.5' quiet'
if exists(file.3) then address command 'c:rename 'file.3' 'file.4' quiet'
if exists(file.2) then address command 'c:rename 'file.2' 'file.3' quiet'
call open(news7,file.2,'W')
call writeln(news7,'******************************************************')
call writeln(news7,' THE CHICAGO DAILY NEWS')
call writeln(news7,' 'datec)
call writeln(news7,'******************************************************')
call writeln(news7,' ')
call close(news7)
call open(aliases,bbspath2'gangland/aliases','R')
i = 0
do until EOF(aliases)
i = i + 1
line.i = readln(aliases)
end
call close(aliases)
do u = 1 to 10000
if u = i then signal cont
Namem = word(line.u,1)
if namem = '' then namem = junk
alias = Delword(line.u,1,1)
if exists(bbspath2'gangland/'Namem) then
do
call open(stats,bbspath2'gangland/'Namem,'R')
aliasa = readln(stats)
Turnsleftm = readln(stats)
gangmembersm = readln(stats)
datem = readln(stats)
startxm = readln(stats)
startym = readln(stats)
pointsm = readln(stats)
moneym = readln(stats)
totalgangmembersm = readln(stats)
protectionm = readln(stats)
bootlegm = readln(stats)
call close(stats)
protectmoney = protectionm * 200
bootlegmoney = bootlegm * 500
moneym = moneym + protectmoney + bootlegmoney
turnsleftm = 25
call open(stats,bbspath2'gangland/'Namem,'W')
call writeln(stats,aliasa)
call writeln(stats,turnsleftm)
call writeln(stats,gangmembersm)
call writeln(stats,datem)
call writeln(stats,startxm)
call writeln(stats,startym)
call writeln(stats,pointsm)
call writeln(stats,moneym)
call writeln(stats,totalgangmembersm)
call writeln(stats,protectionm)
call writeln(stats,bootlegm)
call close(stats)
end
end
end
cont:
SAY ''||CR
SAY ''||CR
SAY BLUE'Done'||CR
call close(prot)
street.1 = First
street.2 = Second
street.3 = Third
street.4 = Fourth
street.5 = Fifth
street.6 = Sixth
street.7 = Seventh
street.8 = Eighth
street.9 = Ninth
street.10 = Tenth
street.11 = Eleventh
street.12 = Twelveth
street.13 = Thirteenth
street.14 = Fourteenth
street.15 = Fifteenth
street.16 = Sixteenth
street.17 = Seventeenth
street.18 = Eighteenth
street.19 = Nineteenth
street.20 = Twentieth
street.21 = Twentyfirst
street.22 = Twentysecond
street.23 = Twentythird
street.24 = Twentyfourth
street.25 = Twentyfifth
say CLSCREEN
SAY ''||CR
SAY ''||CR
SAY BLUE' +----------------------------------------------+'CLEAR||CR
SAY BLUE' | 'YELLOW'CHICAGO GANGLAND'BLUE' |'CLEAR||CR
SAY BLUE' | 'YELLOW'Written for SkyLine BBS'BLUE' |'CLEAR||CR
SAY BLUE' | 'YELLOW'by Steve Robbins'BLUE' |'CLEAR||CR
SAY BLUE' | 'YELLOW'Copyright 1990'BLUE' |'CLEAR||CR
SAY BLUE' | |'CLEAR||CR
SAY BLUE' | 'RED'Converted to TransAmiga'BLUE' |'CLEAR||CR
SAY BLUE' | 'RED'by David Prothero'BLUE' |'CLEAR||CR
SAY BLUE' | |'CLEAR||CR
SAY BLUE' | 'RED'Converted to BBBBS'BLUE' |'CLEAR||CR
SAY BLUE' | 'RED'by David Simpson'BLUE' |'CLEAR||CR
SAY BLUE' | |'CLEAR||CR
SAY BLUE' | 'MAGENTA'Version 1.44 includes UnderWorld'BLUE' |'CLEAR||CR
SAY BLUE'