JEZWAY.PAS

54.7 KB 955364aeefa83829…
unit Jezway;
{$G+,O+,B+}

interface

uses Overlay,Crt,DDPlus,pipecode,simmail;

Type
  SCOREBOARD = Record
    User,VirusName,SpaceC:String;
    Sex,SpareA,SpareB:Char;
    Attacks,VirusType:Byte;
    SpareE,Size,FilesInfected:LongInt;
    SpareF,Proto,LastonD,LastOnM,LastOnY:Word;
    SpareG,Flirted,Dead,Deleted,WRONGGUESS:Boolean;
    OriginalSize,SpareI:LongInt;
    Team,offspring,Charm,SpareJ:Byte;
    Mutation,Battles,Stealth:Byte;
  end;

Type
  PROGRAMS = Record
    ProgName:String;
    PDeadLine:String;
    UDeadLine:String;
    MaxSize:LongInt;
    RewardK:LongInt;
  end;



Var
 Oldnews,Newsfile:text;
 Progs:Programs;
 Programfile: File of Programs;
 k,Scores:Scoreboard;
 Scorefile:File of Scoreboard;
 proto,UserNum,LastOnD,LastOnM,LastOnY,day,month,year,tday:word;
 Flirted,Gotit,Wrongguess,foundhim,Dead,PIZZA,Careful,
 Married,TimeToExit,entering_game:boolean;
 Attacks:Byte;
 add1news,theonetofind,UserH,VirusName:String;
 mut,spynum,CODE:Integer;
 OriginalSize,Size,FilesInfected:LongInt;
 Sex:Char;
 i:integer;
 Charm,offspring,VirusType,Team,Mutation,Battles,Stealth:Byte;

procedure showhelp;
function Strupcase (tempstr: linestring): linestring;
function litos(alf:longint):string;
function exist (filename: string) : boolean;
procedure FindThemNow;
procedure YesNo(default:char);
procedure YorN(default:char);
function Stripe (MYString:string):string;
function Spaces (Thestring:string; Me:integer):string;
function dots(Thestring:string;Me:Integer):string;
procedure Stop;
function Uplow (TempStr:Linestring):Linestring;
function ucase (tempstr: string): string;
procedure crlf (blah: integer);
procedure shownews;
Procedure Addnews(linetoadd:string);
Procedure Createnews;
Procedure MakeAnnouncement;
procedure Intro;
function StartStop: boolean;
procedure ShowF(Filnam:Linestring);
procedure Spinner(X,y,f,num:byte);
procedure choose1;
procedure telldead;
Procedure Laugh;
procedure choose2;
procedure mailtop (titl: string; from: string);
procedure tophalf(SIDE2:BOOLEAN);
Procedure Middle(INSRT:String; LIN:Byte; SIDE2:BOOLEAN);
Procedure BottomHalf(SIDE2:BOOLEAN;NOTALLWAY:BOOLEAN;DONTO:BYTE);
procedure showsewer;
procedure showmain;
procedure stats;
Procedure SeeBattle;
Procedure Infection;
Procedure JezPoster;
Procedure ExchangePPP;
Procedure AskRiddle;
Procedure FlirtJ;
Procedure FlirtB;
function striphigh(stripword:string):string;
function whatsregname:string;

implementation

procedure showhelp;
begin
clrscr;
textcolor(13);
Writeln('DOOR COMMAND LINE PARMS:  You need to use these when running this doorgame:');
textcolor(5);
Writeln('/Bxxx - Specify locked baud rate (i.e. /B38400) [Optional]');
Writeln('/Cx   - Specify comport number.  (x is 1-4) [Optional]');
Writeln('/E    - Use EMS for extra memory. [Do you have EMS memory?]');
Writeln('/L    - Local mode [If your just testing the door]');
Writeln('/Nx   - Specify node number. (x is 1-255) [Optional]');
Writeln('/Pyyy - Specify path to drop file (i.e. /Pc:\bbs\node1). [Required!]');
end;





function Strupcase (tempstr: linestring): linestring;
var
  i : integer;
begin
  for i := 1 to length (tempstr) do tempstr [i] := upcase (tempstr [i] );
  Strupcase := tempstr;
end;


function litos(alf:longint):string;
var
 zoodle:string;
begin
str(alf,zoodle);
litos:=zoodle;
end;

function exist (filename: string) : boolean;
var
  sample : text;
begin
  assign (textfile, filename);
  {$I-}
  reset (textfile);
  {$I+}
  if ioresult = 0 then
  begin
    exist := true;
    close (textfile);
  end
  else
    exist := false;
end;

procedure FindThemNow;
Var
    f,g,h:integer;
begin
  FoundHim := false;
  g := 0;
  h := 0;
  reset(scorefile);
  for f := 1 to 100 do begin;
    seek (Scorefile, f);
    read (Scorefile, k);
    if (StrUpcase (stripe (k. virusname) ) = StrUpCase (TheOneToFind)) and (not k.deleted)
    then begin foundhim := true; g := f; end;
    if (k. deleted) and (h = 0) then h := f;
  end;
  swriteln ('');
  if (g = 0) and (h = 0) then begin;
    foundhim := false;
    exit;
  end;
  spynum := g;
  if (g = 0) then begin;
    foundhim := false;
  end;
  close(scorefile);
end;


procedure YesNo (default: char);
begin
  swrite (default);
  repeat
    sREAD_Char (choice);
    choice := upcase (choice);
    if choice = #13 then choice := default;
  until choice in ['Y', 'N'];
  if choice = 'Y' then pipeln (#8 + '|13Yes') else pipeln (#8 + '|13No');
end;

procedure YorN (default: char);
begin
  swrite (default);
  repeat
    sREAD_Char (choice);
    choice := upcase (choice);
    if choice = #13 then choice := default;
  until choice in ['Y', 'N'];
  if choice = 'Y' then pipeln (#8 + '|09Yes') else pipeln (#8 + '|09No');
end;

procedure Stop;
var
  badass:char;
  I:integer;
begin
  PIPE('|15■|13∙|05· |15P|13r|05ess |15A|13n|05y |15K|13e|05y |05·|13∙|15■');
  sread_char(badass);
  for I := 1 to 21 do
    swrite(#8);
end;

function Stripe;
var
  a, b, e, f, count: integer;
  c: string [1];
  d: string [2];
  ch : char;
  lengtht : integer;
  strip:string;
begin
  Stripe:='';
  strip:='';
  lengtht := length(Mystring);
  for a := 1 to lengtht do
  begin;
    c := mystring[a];
    if c = '|' then begin;
      a := a + 2;
    end else begin if c='`' then begin
    a:=a+1; end; end;
    if (c<>'|') and (c<>'`') then Strip:=Strip+c;
  end;
  stripe:=strip;
end;



function Spaces;
var
  I:integer;
  B:string;
begin
  if length(stripe(TheString))>Me then begin
    repeat
      delete(Thestring,length(stripe(TheString)),1);
    until length(stripe(TheString))=Me;
  end;
  if length(stripe(TheString))<Me then begin
    repeat
      TheString:=Thestring+' ';
    until length(stripe(TheString))=Me;
  end;
  if length(stripe(TheString))=Me then Spaces:=TheString;
end;

function dots;
var
  I:integer;
  B:string;
begin
  if length(stripe(TheString))>Me then begin
    repeat
      delete(Thestring,length(stripe(TheString)),1);
    until length(stripe(TheString))=Me;
  end;
  if length(stripe(TheString))<Me then begin
    repeat
      TheString:=Thestring+'.';
    until length(stripe(TheString))=Me;
  end;
  if length(stripe(TheString))=Me then DOTS:=TheString;
end;

function uplow (tempstr: linestring): linestring;
var
  i : integer;
begin
  for i := 1 to length (tempstr) do begin
    if (ord (tempstr [i] ) > 64) and (ord (tempstr [i] ) < 91) then
      tempstr [i] := chr (ord (tempstr [i] ) + 32);
    if tempstr[(i-1)]=' ' then tempstr[i]:=upcase(tempstr[i]);
  end;
  tempstr [1] := upcase (tempstr [1] );
  uplow := tempstr;
end;

{ Print X number of blank lines }
procedure crlf (blah: integer);
var blahh: integer;
begin
  for blahh := 1 to blah do swriteln ('');
end;

{ Converts a String to all uppercase }
function ucase (tempstr: string): string;
var
  i : integer;
begin
  for i := 1 to length (tempstr) do tempstr [i] := upcase (tempstr [i] );
  ucase := tempstr;
end;

{Procedure Shownews;
var line:string;
    lines:integer;
begin
SCLRSCR;
assign(newsfile,'jezebel.nws');
reset(newsfile);
repeat
readln(newsfile,line);
pipeln(line);
inc(lines);
if lines=23 then begin stop; lines:=0; end;
until eof(newsfile);
stop;
close(newsfile);
end;}
procedure CorY (default: char);
begin
  swrite (default);
  repeat
    sREAD_Char (choice);
    choice := upcase (choice);
    if choice = #13 then choice := default;
  until choice in ['C', 'Y'];
  if choice = 'Y' then pipeln (#8 + '|07Yesterday') else pipeln (#8 + '|07Continue');
end;

procedure SHOWNEWS;
begin
  SHOWF ('jezebel.nws');
  PIPE ('|07(|13C|07)|05ontinue Game or View |07(|13Y|07)|05esterday''s News|08: |15');
  CorY ('C'); ;
  delay (1000);
  if Choice = 'Y' then begin
    if not EXIST ('JEZNEWS.OLD') then begin
      PIPELN ('|04Sorry, No old news available at this time.'); stop; exit;
    end;
    SHOWF ('JEZNEWS.OLD');
    stop;
  end;
end;



Procedure Addnews(linetoadd:string);
begin
assign(newsfile,'JEZEBEL.NWS');
append(newsfile);
writeln(newsfile,linetoadd);
close(newsfile);
end;

Procedure Createnews;
var rando:integer;
begin
  assign(newsfile,'JEZEBEL.NWS');
  if EXIST ('JEZEBEL.NWS') then begin
    assign (OLDNEWS, 'JEZNEWS.OLD'); rewrite (OLDNEWS);
    reset (NewsFile);
    repeat
      readln (Newsfile, Add1News);
      writeln (OldNews, Add1News);
    until eof (NEWSFile);
    close (Newsfile);
    close (OldNews);
  end;
rewrite(newsfile);
writeln(newsfile,'|16|05          |05▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄');
writeln(newsfile,'          █▀|15.·. |05▀▀██▀▀▀▀▀▀▀███▀▀▀▀▀▀▀▀▀█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██▀▀▀▀▀▀▀████');
writeln(newsfile,'          █▄|15''|05▄▄|15°¼DoaS$$$Ss |05▀█ |15,sS$$$Ss. sS$Ss sSs s#$#s|05▐▌|15.s#$$#a |05▀██');
writeln(newsfile,'          █████ |15$$$''|05▄▄▄|15''$$$ |05█ |15$$'' |05■ |15''$$ ''$$$'' $$$  $$$ |05▐ |15$$$''°$$$a |05█');
writeln(newsfile,'          █████ |15$$''|05▄███ |15$$$ |05█ |15$$$$$$$$''|05▐ |15$$$  $$$  $$$ |05█ |15''$$s. ''$$ |05█');
writeln(newsfile,'          █████ |15$$ |05████ |15$$$ |05█ |15$$''      |05▀ |15$$$  $$$  $$$ |05▌ |15a ''$$$a ''|05▐█');
writeln(newsfile,'          ▓███ |15s$$s |05███ |15$$''|05▄█▄|15''ⁿ¼½½½¼ⁿ°|05▄ |15''$$²²$$$²²$$'' |05▌ |15$$a "$$$ |05▐█');
writeln(newsfile,'          ▓▓███▄▄▄▄████ |15$''|05▄█████▄▄▄▄▄████▄|15''|05▄██▄▄▄█▄|15''|05▄███ |15''$$$s$$'' |05██');
writeln(newsfile,'          ▒▒▓██████████▄|15°|05▄███████████████████████████████▄ |15''$$'' |05'+
'▄███');
writeln(newsfile,'          ░▒▒▓▓█████████████████████████████████████████████████████');
writeln(newsfile,'');
writeln(newsfile,'|07Todays Headline:');
rando:=random(7)+1;
case rando of
    1: writeln(newsfile,'|13Jezebel stopped by today, but left immediately.');
    2: writeln(newsfile,'|13Mr. User is beginning to suspect that he has a virus.');
    3: writeln(newsfile,'|15READ ALL ABOUT IT|07! |13Computer virus catches a virus!');
    4: writeln(newsfile,'|13Doctor''s study reports that laughing can firm abs!');
    5: writeln(newsfile,'|13Jezebel breaks into Wall Street, Microsoft stock disapears!');
    6: writeln(newsfile,'|13The Zodian Software Team got arrested for Trademark infringement!');
    7: writeln(newsfile,'|13Bill Gates has a baby daughter, and names her Jezebel!');
end;
writeln(newsfile,'');
close(newsfile);
end;

Procedure MakeAnnouncement;
var add1news:string;
begin
sclrscr;
  PIPELN ('|05You have one line to put in the daily news for others to read.');
  CRLF (1);
  PIPE ('|13> |15');
  prompt2(ADD1NEWS, 75,15,0);
  if length(ADD1NEWS)<2 then
    exit
  else begin
    ADDNEWS ('|05' + virusname + ' |13says|15:|07');
    ADDNEWS (ADD1NEWS);
    ADDNEWS ('');
  end;
end;

Procedure ExchangeScreen;
begin
SCLRSCR;
Pipeln('|16                       |04▄▄▄▄');
Pipeln('             ░|00|20▓|16  |04─▄▄▄█▀▀                     ▄▄█▀█▀▀');
Pipeln('          ─▄▄|00|20░|04|16▓▀█|12|20▄▄█▀|04|16█░                    ▄█▀                       '+
       ' |02░|00|18▓|16    |02░');
Pipeln('░    |04▀▀▀██|06|20░|04|16▀  |02░ |04█|12|20▐|23▓|20▓ |04|16█|00|20░|04|16▄                   '+
       '▐|12|20░|04|16▒             ▀▀▀█▄▄▄   |02▄|00|18░|02|16▓|00|18▓|16 |02░|00|18▓░▓|16');
Pipeln('|18░|02|16░|00|18▓|02|16░  ░ |04▐|06|20░▒|04|16▒ |02░▒░|04██|12|20█▓░ |04|16▀▀▀▀▀ |02■▀  ░|00'+
       '|18▓|16  |04▄ ▄▄▄▄▄▄█▓▄                 ▀|12|20▀|04|16▀▀▄▄ |02▀|00|18░|02|16▄  ▀|00|18░|02|16▄');
Pipeln('|00|18░|02|16▓|00|18░|02|16▓|00|18▓|16    |04▀|06|20░|04|16█▄ |02░ |04█|12|20░▓░ |04|16█|00|20'+
       '░|04|16░ |02▄|10|18▄|02|16▄  ░|00|18▓|02|16▓|00|18▒|02|16░|00|18▓|02|16░  ░ |04▀▀ ▄|23█|16▀▀'+
       '|22▓|16▄▄▄▄▄ ▄ |02░   ░   |04▄▄▄  ▀▄ |02▀▀  ▐|10|18░|16');
Pipeln('|18░░ |02|16▓▄ |04▀ ▀▀▀▀▀|15|20░|04|16█▄██|12|20░|04|16███|22▓|16▄▄ |02▀   ▄▄|10|18░|00░|02'+
       '|16▓|00|18░|02|16▒░░▒|00|18▓|02|16░░  |04▀|12|20▐▄|04|16▄   ▀▌    |02░ ░▒░   |12|20░░|00░|16'+
       '  |04▐|12▒ |02░ ▄|10|18░|02|16▀');
Pipe('▐|10|18░|02|16▄█▄▄|10|18▄|02|16▄▄▄▄▄▄▌░ |04▄|12|20░ |04|16▄█▄|12▒  |02░|00|18▓|16 |04▀■▄ |02▀▀|10|18');
Pipeln('░░|00░|02|16▓|00|18░|02|16▓|00|18░░|02|16▓░  |04▐|12|23█|16█▒  |04▄▀|02░ ░|00|18▓|02|16▒|00|18▓|02'+
       '|16▒|00|18▒|02|16▒░|12▄▄▓|20▒░|16░ |04▀ |02▄|00|18░ |02|16▀▐▌');
Pipe('▀■▄▐▄▄|10|18░|02|16█▀▀|00|18░|02|16▄▄|00|18░|02|16▓ |12|20░▓░░░|14░|04|16▓ |02░|00|18░|02|16▓|00|18▓');
Pipeln('|16  |04▐|12|20▐▄|16▄▄|04▄ |02▀▀▀▀▀|10|18░|16 |04▀▄ |12|20▐|23█|20▌|16░|04▐|12▒  |02░|00|18▓|02|16▒▒'+
       '|00|18░|02|16▓|00|18░|02|16▓▄  |04▄|12░ ▓  |10░|18▀|02|16▀ ░|10|18░|02|16▀');
Pipe(' ░▐|10|18░|16▒|02▀▌   ░ ▀|10|18░|02|16▒ |04█|12|20█▓▓▒░|00░|04|16░ |02▀|10|18░|00░|02|16▄ |04▀|12|20▀██');
Pipeln('████▄|16▄|20▄|16▄|04▄─ ▐|07|20░|12▐|23▓|14|20░|12|16▓|04█|12░ |02░▒|00|18░|02|16▓|00|18░|10░░░░|02'+
       '|16█▒ |12|20░|04|16▄▄|15|20░|04|16▄ |00|18░|02|16▌ ▄|00|18░|10▒|02|16▄');
Pipeln('░|00|18░|02|16▌▐▄  ░  |04▄   |02░ |04█|12|20██|19▓|20▓▒░|16░░ |02▄|10|18░░|02|16▒ |04▐|12'+
       '|20▐|23▓|20██████▓|16▒ |04▄ ▀ |12|20▐▓▓░|04|16█▒ |00|18░|02|16▓|10|18░░░|16▒|04▄ |02▀▀▀ '+
       '|12|20░█▄|04|16▄ |02▄|10|18▄|16 |02░█▀▌');
Pipeln('▄|18 |10░░▒|02|16▄ ░    |04▀▄  █|12|20▐██|22▓|20▓|16▒ |02▄|10|18▄▌|02|16▀ |04▄─▄|12|20▄███'+
       '███▀|04|16▀▄─────█|12|20░░|04|16██|00|20▒|16 |02▐|10|18░▒▒▒|16▄▄▄▌|04▀▄ |12|20░█|23█|20▒|04'+
       '|16▒ |10|18░|16 |00|18░|02|16▌  ░');
Pipe(' ▐▀▀|10|18░|02|16▀█|00|18░|02|16▄▄▄░|00|18▓|04|16▐|12|20▄▄▄▄███▓|16░|02▐|10|18▐|23▓|16▄ |04▀|12');
Pipeln('|20▀▄█████|16▓|20▀|04|16▀ |02░|04▐▌ |02▐|10|18░|16▒|04▐█|20 |12░ |00░|12|16░ |10|18▒▓▓▓|23██'+
       '|18█|16▒ |04▐█|12|20░|16█|23▓|20▀|04|16▀ |02▀█|10|18░|02|16▀ ░▒');
Pipeln(' ▀▀|10|18▀|02|16▀  ░   |04─▄▀  █|12|20█▀|23█|20▀|04|16▀ |02▀|10▀|18▀█|02|16▌|00|20▒|12▐█████▀'+
       '|04|16▀  |02▄▓ |04▀▄ |02▀▓▄|04▀|12|20░▓░░|16▒ |10▓|23▓|18██▀|16▀|02▀ |04▄▀ |00|20▒|12|16█|20▀'+
       '|16▀▀|04▀ |02█▌░▐|00|18░|02|16▓');
Pipeln(' ▄▓▀|10|18░|02|16▄▄▄▌ |04▄|12|20▄|04|16▄▄▄|12▄|20▄██████▄|16▄▄▄▄▄|20▄█▀█▄▌|04|16▌ |02▀▀|10▀|02'+
       '▀ ░░ |04▀■ ▄|12▄|20█▓▓|16▓▄ |10▀|02▀ |04▄▄|23▓|16▀|12|20▀|04|16▀▀▀ |02▄▌▀|10|18▀|02|16▀|18 |16▄'+
       '|00|18░|02|16█|10▒|18░|16');
Pipeln('|02▐|10|18░|16▒    |04─▄▀ ▀                  ▐|12|20▐▀|16▀▀|04▀▀▀ ▀ |02░|00|18░|10|16▒|18▓█▄'+
       '|16▄▄▄|02▄ |12▀█▌ |04▀▀▀▀ |02▄|10▄▄▄|18▌|02|16▄|10|18▄░  |02|16▀▀▀▀▀▀|10▐|18▓|16');
Pipeln('|02▀|10|18░|02|16▄▄ ░ |04▐▌ |15Exchange Protoplasm |04▀   |02▀|10▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀|02▀|08'+
       '▀ |12▀ |02▀|10▀▀▀▀▀▀    |02▀ ▀▀▀▓▄▄   |10▀');
Pipeln('|02░  ▀▀|00|18░|02|16▄ |04▀▄                                                              |02░  ▀▄ ░');
Pipeln('|00|18░|02|16░|00|18▓|16 |02▀▀▀|10|18░|02|16▄  |04▀  |151|08] |07Poster Of Jezebel  |101PP     '+
       '|154|08] |07Extra Mutation  |102PP Each     |02▐█|00|18░|16');
Pipeln('|10|18░|00░|02|16▓░|00|18▓|16  |02▐▓     |152|08] |07Extra Charm    |101PP Each    |155|08'+
       '] |07Change Name  |103PP            |02▄▀ ░');
Pipeln('░     ▄▀      |153|08] |07Extra Battles  |101PP Each    |156|08] |07Extra Attacks    |101PP Each |02▀');
Pipe('|14Your Choice|15: |02');
end;


procedure intro;
begin
SCLRSCR;
Pipeln('|16                                         |15▀|23▒░|16           ▀|23▒░|16');
Pipeln(' |13|21▀▀▀▀▀▀▀▀▀▀▀▀▀|16▀▀▀▀▀▀▀|21▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀|16 |15|23░|07|16█ |13|21▀▀▀▀▀▀▀▀▀▀|16 |15'+
       '|23░|07|16█ |13|21▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀|16');
Pipeln(' |21            |16 |15▄|07▀▀|15|23░▒|07|16▀|15▄ |21                   |16 |07█|08|23░|16 |21 '+
       '         |16 |07█|08|23░|16 |21                    |16');
Pipeln(' |21            |00▀▀▀|16 |15|23▒░|16 |00|21▀|16  |15▄▄▄  ▄▄▄▄▄ |00|21▄|16 |15▄▄▄ |00|21▄|16 '+
       '|08|23░|07|16█▄▄ |00|21▄▄|16 |15▄▄▄ |00|21▄|16 |08|23░|07|16█ |21   |15Version          |16');
Pipeln(' |21               |16 |23░▒|16  |07▄|15|23░▒|16 |23▒░|16 |23░|07|16▀▄|15|23░|07|16▀ ▄|15|23░▒'+
       '|16 |23▒░|16  |08|23▒░|16 |23▒░|16 |07▄|15|23░▒|16 |23▒░|16  |08|23▒░|16 |21      |151.3           |16');
Pipeln(' |21           |00▄▄▄ |16 |15|23▒░|16  |07▓▒ ▀▀▀ ▄▓▀ ▄ ▓▒ ▀▀▀  |08|23▓▒|16 |23▓▒|16 |07▓▒ '+
       '▀▀▀  |08|23▓▒|07|16▄ |00|21▄                  |16');
Pipeln(' |21           |16 |08▀|07▄▄▄|08|23▓|16▀ |00|21▀|16 |08▀|07▒▄▄▀ |08|23▄|07|16▄▄▒|08|23░|16'+
       '  ▀|07▒▄▄▀ |08▄|23▒░|07|16▄▒|08▀  ▀|07▒▄▄▀ |00|21▀|16 |08▀|23▓▒|07|16▄ |21                 |16');
Pipeln(' |21            |00▀▀▀▀▀▀   ▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀   ▀▀▀▀▀                 |16');
Pipeln(' |08▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█');
Pipeln('  |13C''om! Lets go Man!     |15▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |08█ |05CopyLEFT  |08(|07'+
       'c|08) |131996/7/8 |08█');
Pipeln('       |13Ouch! I Lost!     |15█|07█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▌███|15█ |08█ |05The Z-Soft '+
       'Team|15:       |08█');
Pipeln('  |13How do I restore?!?!?! |15█|07█  |14BBS Fatal Error!  |07▌█|08|23▀|07|16█|15█ |08'+
       '█   |15Brian J. Schulteis   |08█');
Pipeln(' |13Uh Oh there goes my     |15█|07█  |11Memory Overflow!  |07▌███|15█ |08█   |15& Ja'+
       'son Kessler      |08█');
Pipeln('                  |13drive! |15█|07█  |12Illegal Access!!  |07▌█|00|23o|07|16█|15█ '+
       '|08█ |14SCHULTEIS@USA.NET      |08█');
Pipe(' |13Try this one!?!?!       |15█|07█ |02A>|07Scan C:');
Set_Foreground(23);
sWrite('_');
Pipeln('|07         ▌█|00|23o|07|16█|15█ '+
       '|08█ |14home.onestop.net/zodian|08█');
Pipeln('          |13Nooooooooo!!!  |15█|07█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▌█|23 |16█|15█ |08▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀');
Pipeln('|13Geez.. Don''t make        |15▀▀|23▀▀|16▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀|23▀▀|16▀▀');
Pipeln('   |13a big fit!     |15██████████████▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█');
Pipeln('  |13Ouch! I Lost!   |15██|23  |05IBM  |15|16█████  |12▄            |07│═|12/|07═[|15--|07]═══|15█');
Pipeln('|13Bwahahahahaha!    |15██████████████|07─────|15────|07──────|15┼|07───|15───────█');
Pipeln('  |13I have you now! |15█▌▌▌▌▌▌▌▌▌▌|00|23▐|15|16██  |12▄            |07│ |12∙ |07════ ■ |15█');
Pipeln(' |13What''s a GPF?    |15██████████████▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█');
  pipeln ('|11                                  |15F|13RE|05EWA|13RE!|15!');
end;

function startstop: boolean;
begin
  startstop := false;
  abort := false;
  ch := chr (0);
  chn := 0;
  if skeypressed then
  begin
    sREAD_char (ch);
    chn := ord (ch);
  end;
  if ( (chn = 83) or (chn = 115) ) then
    abort := true
  else
    if (chn = 80) or (chn = 112) or (linecount = 22) then
    begin
      startstop := true;
      stop;
      set_foreground (15);
      chn := ord (ch);
      if ( (chn = 83) or (chn = 115) ) then abort := true;
      linecount := 0;
    end;
end;

procedure ShowF(filnam: linestring);
var
  temp: string [255];
begin
  assign (textfile, filnam);
  reset (textfile);
  readln(Textfile,Temp);
  sCLRSCR;
  repeat
    repeat
      readln (textfile, temp);
      pipeln (temp);
      linecount := succ (linecount);
    until eof (textfile) or startstop or abort;
  until eof (textfile) or abort;
  close (textfile);
  linecount := 0;
end;

procedure Spinner(X,y,f,num:byte);
begin
  sgoto_xy(X,y);
  set_foreground(f);
  case num of
    1: swrite('·');
    2: swrite('∙');
    3: swrite('*');
    4: swrite('');
    5: swrite('*');
    6: swrite('∙');
  end;
end;

procedure Choose1;
begin
SCLRSCR;
Pipeln('|13|21▀|05|16▀|08▀|05▀|08▀▀ ▀  ▀');
Pipeln('|21▀|16 |13|21▀|05|16▀ |08w|05e|13lcome .|05.|08.');
Pipeln('█    J|05e|13zebel |08V|05e|13rsion |081|05.|132');
Pipeln('|08▄    T|05h|13e |08Z|05o|13dian |08S|05o|13ftware |08T|05e|13am');
CRLF(1);
Pipeln('|08▀');
Pipeln('     |13┌─|05─|13─|05──|08─|05─|08──────────────────────────┐');
Pipeln('     |05│ |08▐|21 |15Choose A Name for yourself: |08|16▌ │');
Pipeln('     ├|05─|08──|05─|08───────────────────────────|05─|08─┤');
Pipeln('     │ .|05:|13]                         [|05:|08. |05│');
Pipeln('     |08└───────────────────────────|05─|08─|05──|13─|05─|13┘');
end;

Procedure TellDead;
begin
SCLRSCR;
Pipeln('|14|16A|04n|09s|15i |02by:        |08░░|02░|07░░░░|02░|07░░░░░░░░░░░░░░░|02░|07░░░░|02░'+
       '|07░|02░|07░');
Pipeln('|02Phalacy       |08░░░|07░░|02░|07░|08▓▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒|02░|08▒▒▒▒|02░|07░|02░|07░░');
Pipeln('             |08░░░|07░░|02░|07░|08▓▒▒▒▒|02░|08▒▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒|02░|08▒▒▒|02░|08▒'+
       '|07░|02░░|07░░');
Pipeln('            |08░░░|07░░░|02░|07░|08▓▒▒|04▒|02░|04▒▒▒|08▒▒|02░|04▒▒▒▒▒▒▒|08▒▒|04▒|02░|04'+
       '▒▒|08▒▒|02░|08▒▒|07░|02░|07░░░');
Pipeln('           |08░░░|07░░|02░|07░|08▓|02░|08▒▒▒|02░|08▒▒▒▒|04▒|08▒|02░|08▒▒▒|04▒|08▒▒▒▒▒'+
       '|02░|08▒▒▒|04▒|08▒▒|02░|08▒|07░░|02░|07░░');
Pipeln('           |08░░░|07░|02░|07░░|08▓▒|02░|08▒|02░|04▒▒▒▒▒|08▒|02░|08▒▒▒▒|04▒|08▒▒▒▒|02░'+
       '|04▒▒▒▒|08▒▒▒▒|02░|07░|02░|07░░░');
Pipeln('           |08░░░|02░|07░░░|08▓▒▒|02░|08▒|04▒|08▒▒|04▒|02░░|08▒▒▒▒▒|04▒|08▒▒▒▒▒|02░'+
       '|08▒▒▒▒▒▒|02░|08▒|07░░|02░|07░░');
Pipeln('           |08░░░|07░|02░|07░░|02░|08▒|02░|08▒▒|04▒|08▒▒|02░|04▒|08▒▒▒▒▒▒|04▒|08▒▒▒▒▒|04'+
       '▒|02░|08▒▒▒▒|02░|08▒▒|07░░|02░|07░░');
Pipeln('           |08░░░|02░|07░░|02░|08▓▒▒|02░|08▒|04▒|08▒|02░|08▒▒|04▒|08▒▒|04▒▒▒▒▒▒▒|08▒▒|04'+
       '▒|02░|08▒▒▒▒▒|02░|08▒|07░░░|02░|07░');
Pipeln('           |08░░|02░|07░░|02░|07░|08▓▒▒▒|02░|08▒▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒|02░|08▒▒▒▒|02░░'+
       '|07░░░░|02░');
Pipeln('           |08░|02░|08░|07░░░|02░|08▓▒▒▒▒|02░|08▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒|02░|08▒▒|02░|08'+
       '▒▒|02░|07░░|02░|07░');
Pipeln('           |08░░|02░|07░░░░|02░|08▒▒▒▒▒|02░░|08▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒|02░░|08▒▒▒|07░|02░░|07░░');
Pipeln('           |08░░░|02░|07░░░|02░|08▒▒▒▒▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒|07░|02░|07░░|02░');
Pipeln('           |08░░░|07░|02░|07░|02░|08▓▒▒▒▒▒▒▒|02░|08▒▒▒▒▒▒▒▒▒▒▒|02░|08▒▒▒▒▒▒▒▒▒▒|07░░|02░░|07░');
Pipeln('           |08░░░|07░░|02░|07░|02░|08▒▒▒|02▒|08▒▒▒▒|02░▓|08▒▒▒▒▒|02█|08▒|02░|08▒▒|02░░|08'+
       '▒▒▒▒|02▒|08▒▒▒|07░░|02░░|07░');
Pipeln('           |08░░░|02░|07░░|02░░█|07░░|02░█|07░░|02░|07░|02░░█|07░░░|02░|07░|02░|07░░|02░█'+
       '|07░░|02░|07░░░|02█|07░░|02░|07░|02░|07░');
Pipeln('  |02■▀▌░▀█▐▀|08░|02▒▒▓|07░|02░█|07░|02▓|07░|02▒░|07░░|02░|07░|02█░░|07░|02░|07░|02█░█▒▓'+
       '|07░|02▒▓░|07░░|02█|07░░░░|02█|07░░░|02░▀▐░█░▀▌█■ █▌░');
Pipeln(' ▀▓▌▐▓▀▀▐▐░▀▐░▌█░▀▐▄▌▒▌░▄▒█▐░▄▌▓█▐▌▄▒▀░▄▌▐▓▀░▐▄▌▓▐░▒▓▀░▄▒▓▀░░█ ░▀▌▐█');
crlf(1);
Pipeln('                           |12YOU ARE DEAD!!');
crlf(1);
pipeln('|07Thanks for playing, but you''ll have to try again tommorrow!');
pipeln('|15Remember, Jezebel hates quitters, try again tommorrow!');
stop;
end;

Procedure Laugh;
var
  laughfile:text;
  laughat:string;
  laughnum:integer;
  rnd1:integer;
begin
if size=originalsize then begin
pipeln('|04You just don''t seem to find anything funny.');
stop;
exit;
end;
assign(laughfile,'LAUGH.DAT');
reset(laughfile);
readln(laughfile,laughnum);
rnd1:=random(laughnum)+1;
for laughnum:=1 to rnd1 do
readln(laughfile,laughat);
close(laughfile);
sclrscr;
Pipeln('|15Your Joke is|07:');
pipeln('|13'+laughat);
crlf(1);
Pipeln('|15Bwahahahahahahhaha|07!! |15Laughter is the best medicine|07!');
size:=originalsize;
Pipeln('|05You are now back to |13'+litos(size)+'|05 bytes.');
stop;
end;


Procedure Choose2;
begin
SGOTO_XY(41,11);
Pipeln('|05──|08─|05─|08───────────────────────────────┐');
SGOTO_XY(37,12);
Pipeln('|05│ |08▐|21 |15What kind of Virus Are You?      |08|16▌ │');
SGOTO_XY(37,13);
Pipeln('├|05─|08────────────────────────────────|05─|08─|05─|08──┤');
SGOTO_XY(37,14);
Pipeln('│ |13M|05] |14Male Virus |08- |07Impress Jezebel      |08│');
SGOTO_XY(37,15);
Pipeln('│ |13F|05] |14Female Virus |08- |07Impress Brian      |08│');
SGOTO_XY(37,16);
Pipeln('│                                      │');
SGOTO_XY(37,17);
Pipeln('│ .|05:|13]   [|05:|08.                            |05│');
SGOTO_XY(37,18);
Pipe('|08└────────────────────────────────|05─|08─|05──|13─|05─|13┘');
end;


procedure mailtop (titl: string; from: string);
begin
  sCLRSCR;
  PIPELN ('  |07┌|08─ |05Title|15: |13' + SPACES (TITL, 30) + '               |07-                  |08─┐');
  PIPE ('|08  └─|07─ |05From|15: |13' + SPACES (FROM, 20) + '       |05To|15: |13' + SPACES (virusname,
  20) );
  pipeln ('    |07· |08∙|07∙ |08──|07─|08──┘');
  CRLF(1);
  PIPE (' |05msg |131   |05of |131 |07─ |08─  ─|07─ '
  +'|08──|07─|08─────────|07──|08');
  pipeln ('─────────────────|07─|08─────────────────────');
  CRLF(1);
end;

Procedure TopHalf(SIDE2:BOOLEAN);
begin
IF SIDE2 then SGOTO_XY(41,1);
Pipeln('|05|16┌--────────────────────────────────--─┐');
IF SIDE2 then SGOTO_XY(41,2);
Pipeln('│ |13|21▌ |08·|07·|15·        top virii        ·|07·|08· |13|16▌ |05│');
IF SIDE2 then SGOTO_XY(41,3);
Pipeln('├--────────────────────────────────--─┤');
IF SIDE2 then SGOTO_XY(41,4);
Pipeln('│ |15|23█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀|08▄|16 |05│');
end;

Procedure Middle(INSRT:String; LIN:Byte; SIDE2:BOOLEAN);
begin
IF SIDE2 then SGOTO_XY(41,LIN+4);
Pipeln('│ |15█|23 '+INSRT+'  |08|16█ |05│');
end;

Procedure BottomHalf(SIDE2:BOOLEAN;NOTALLWAY:BOOLEAN;DONTO:BYTE);
begin
IF (SIDE2) and (NOT NOTALLWAY) then SGOTO_XY(41,21) else
IF SIDE2 then SGOTO_XY(41,DONTO);
Pipeln('│ |15|23▀|08▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄|16█ |05│');
IF (SIDE2) and (NOT NOTALLWAY) then SGOTO_XY(41,22) else
if SIDE2 then SGOTO_XY(41,DONTO+1);
{If (NOT SIDE2) and (NOTALLWAY) then SGOTO_XY(1,22);}
Pipeln('└--────────────────────────────────--─┘');
end;

Procedure ShowSewer;
begin
sclrscr;
pipeln('|08|16▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀');
Pipeln('|10╓─╥─┐ ╥  ┬ ╥──┐   ╓─────┐ ╥─────┐ ╥  ╥  ┬ ╥─────┐ ╥─────┐ ╓─────┐  |02Where else');
Pipeln('  |10║   ╟──┤ ╟─     ║       ║       ║  ║  │ ║       ║     │ ║        |02can a Virus');
Pipeln('  |10╨   ╨  ┴ ╨──┘   ╙─────┐ ╟──     ║  ║  │ ╟──     ╟───┬─┘ ╙─────┐  |02grow?');
Pipeln('                        |10│ ║       ║  ║  │ ║       ║   │         │');
Pipeln('                  ╙─────┘ ╨─────┘ ╙──╨──┘ ╨─────┘ ╨   ┴─  ╙─────┘');
Pipeln('|08▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀');
Pipeln('|10|18░|02|16██▓|10|18▓|02|16▀|10|18░|02|16▀█|10|18░|02|16▓|10|18░|02|16██▀▓|10|18▓▒░|02|16█|10|18░|02|16'+
       '▓▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▓|10|18░▒▓|02|16▓█|10|18▓|02|16▀|10|18▓█▓▓|02|16█▀▓█|10|18░░|02|16█|10|18░░▒');
Pipeln('▓░|02|16▐ |10|18▒|16 |02▄  |10|18░|16  |02▓  ▐▌ ▓|10|18▓|02|16▀  |14As you enter the sewer, you can    |02'+
       '▀ |10|18▒|16  |02▓  |10|18▓|16  |18▒|16  |02█ |10|18░|02|16▀▀|10|18░|02|16▐|10|18');
Pipeln('▒|02|16▓  ▓    ▓  ▒   ▌  ▓ |14hear oozing from other Virii growing.  |10|18░|16  |02▒  |10|18▒|16  |02▄  ▌ ▓  ▄');
Pipeln('|10|18░|02|16▄  ▒    ▒  ░      ▄ |15────────────────────────────────────── |02▄  ░  |18▓|16       ▒    ');
Pipeln('|10|18░|16   |02░    ░  |13A|08] |13A|05t|07tempt Growth           |13M|08] |13M|05a|07ke '+
       'Announcement      |02▓       ░   ▀');
Pipeln('  ░         |13C|08] |13C|05o|07nverse w/ Slime        |13S|08] |13S|05p|07y on other Virii          |02░');
Pipeln('  ▒    ░    |13D|08] |13D|05a|07ily News               |13T|08] |13T|05r|07ansfer Protopla'+
       'sm         |02▒      ░');
Pipeln('  ▓ ▀  ▒    |13E|08] |13E|05x|07change Protoplasm      |13V|08] |13V|05i|07ew your Stats             |02▓      ▒');
if upcase(sex)='M' then
Pipeln('            |13F|08] |13F|05l|07irt w/ Jezebel         |13R|08] |13R|05e|07turn to Surface')
else
Pipeln('            |13F|08] |13F|05l|07irt w/ Brian           |13R|08] |13R|05e|07turn to Surface');
Pipeln('|02■ ▓  ▄                                                                ▀  ▓ ▀ ■░');
Pipeln(' ▀▄■   ▄▄▄▄  ▄                                                        ■▀ █■');
Pipeln('|08▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀');
Pipeln('|02▄|10|18▒|16▀■ |02[|10Sewers|02]');
Pipe(' ▀■ : |10');
end;


Procedure ShowMain;
begin
SCLRSCR;
Pipeln('|16                            |13▄|21  |05|16▄|08▀█|05▄▄|08▀█▄|05▄            |13▄|21  '+
       '|05|16▄  |13▄|21  |05|16▄· |13▄|05██▄▀███▄▄   .');
Pipeln('|16                          |05.▐████▌|08█|21▌  |13|16▄|08▀|21▌  |13|16▄ |05.  ∙  ▄|21  '+
       '   |16▌▐█|21  |16█|13▌|05▐████▌  ▀███|13▄');
Pipeln('                            |05▀███|13▌ |08▀|21   |05|16▌▐|21   |16▌      ▄▄▀|21   |13'+
       '|16▌ |05▀██▀  ▀███|13▌    |05███▌');
Pipeln('      |13|21█|16▀▀▀|05▀|13▀|05▀▀|08▀|05▀▀|08▀  ▀|05▀|08▀  ▀   |05▐███ ·▐███ ███|13█    '+
       '|05▄|21  |16█▌|21    |16   |08▄▄█  |05▐███ °  ▐███ ');
Pipeln('      |13|21▓|16  |05┌──|13─|05─|13──────────┐    |05████  ▐███|13▌|05▐███▌ |13▄|21    |05'+
       '|16▀ |21    |16  |08|21█▀  |16 |05°████    ▐███|13▌');
Pipeln('      |21▒|16  |05│ |15Jezebel Main |13│    |05████  ████▌████▌▐██|21 |16▀▄|08|21▀|05|16▌'+
       '|21    |16  |21    |16  ████    ████▌');
Pipeln('      |13|21▒|16  |05└─|13─|05─|13───────────┘    |05▐███  ████ ████ ███▌▀|21  |16▀▐|21  '+
       ' |16  ▐|21   |16  ████    ████  ');
Pipeln('      |13|21░|16                    |05· ▐██▌  ▐██▌ ▐██▌ ▐██▌   ·▐██▌  ▐██|13▌  |05▐██▌· '+
       '  ▐██▌');
Pipeln('      |13|21░|16                       |05▀▀    ▀▀   ▀▀   ▀▀      ▀▀ °  ▀▀    ▀▀      ▀▀ ░');
Pipeln('      |13|21░|16                                     |05·                    .           ░');
Pipeln('      |21 |16     ·|14?|05·|15Help                                                          |05▒');
Pipeln('      |21 |16     ·|14W|05·|15rite |07M|15ail                               |07S|13tats'+
       '|07:                |05▓');
Pipeln('      |21 |16     ·|14L|05·|15ist |07K|15nown |07V|15irii                         |13|21█|16▀▀▀'+
       '|05▀|13▀|05▀▀|13▀|05▀|13▀|05▀▀|13▀|05▀|13▀|05▀▀|13▀▀█ |21░|16');
Pipeln('      |05▓     ·|14B|05·|15attles                                  |13|21▓|16 |07Y|13our '+
       '|07N|13ame|07:        |13█ |21▒|16');
Pipeln('      |05▓     ·|14A|05·|15ttack |07V|15irii                             |13|21▒|16 |07'+
       SPACES(VIRUSNAME,17)+' |13█ |21▒|16');
Pipeln('      |05▓     ·|14V|05·|15iew |07S|15tats                               |13|21▒|16 |07S'+
       '|13ize|07:             |13|21█|16 |21▓|16');
Pipeln('      |05▒     ·|14S|05·|15ewers                                   |13|21░|16 |07'+
       SPACES(LITOS(SIZE)+' |15Bytes',17)+' |13|21█|16 |21█|16');
Pipeln('      |05░                                                |13█ |07B|13attl'+
       'es |07L|13eft|07:     |13|21█|16 |21█|16');
Pipeln('      |05░     ·|14Q|05·|15uit |07G|15ame                                |13█ |07'+
       SPACES(LITOS(battles),17)+'|13 █ |21█|16');
Pipeln('      |05┌──|13─|05─|13──────────┐                                 █|05▄▄|13▄|05▄|13▄▄|05'+
       '▄|13▄|05▄|13▄▄|05▄▄|13▄|05▄|13▄▄▄▄|21█|16 █');
Pipeln('      |05│ |15C|07hoice|08: |05< >  |13│                                   |08▄  ▄|05▄|08'+
       '▄  ▄|05▄▄|08▄|05▄▄|13▄|05▄|13▄▄▄▄|21█|16');
Pipe('      |05└─|13─|05─|13───────────┘');SGoto_xy(18,21); set_foreground(13);
end;

procedure stats;
begin
SCLRSCR;
Pipeln('|16     |13┌┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐');
Pipeln('     ├|05┼┼┼┼┼┼┼┼┼┼┼|15▄█████▄|05┼|15███████|05┼|15▄█████▄|05┼|15███████|05┼|15▄█████▄|05┼┼┼┼┼┼┼┼┼┼┼┼┼|13┤');
Pipeln('     ├|05┼┼┼┼┼┼┼┼┼┼┼|15██▄▄▄▄|05┼┼┼┼|15▐█▌|05┼┼┼|15██▄▄▄██|05┼┼┼|15▐█▌|05┼┼┼|15██▄▄▄▄|05┼┼┼┼┼┼┼┼┼┼┼┼┼┼|13┤');
Pipeln('     ├|05┼┼┼┼┼┼┼┼┼┼┼┼|15▀▀▀▀██|05┼┼┼|15▐█▌|05┼┼┼|15██▀▀▀██|05┼┼┼|15▐█▌|05┼┼┼┼|15▀▀▀▀██|05┼┼┼┼┼┼┼┼┼┼┼┼┼|13┤');
Pipeln('     ├|05┼┼┼┼┼┼┼┼┼┼┼|15▀█████▀|05┼┼┼|15▐█▌|05┼┼┼|15██|05┼┼┼|15██|05┼┼┼|15▐█▌|05┼┼┼|15▀█████▀|05┼┼┼┼┼┼┼┼┼┼┼┼┼|13┤');
Pipeln('     └┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┘');
Pipeln('  |15B|13B|05S |15N|13a|05me|07: |14'+SPACES(Uplow(Userh),21)+
       '|15B|13a|05ttles |15L|13e|05ft|07: |14'+litos(Battles));
Pipeln('  |15V|13i|05rus |15N|13a|05me|07: |14'+Spaces(Virusname,19)+
       '|15S|13t|05ealth |15L|13e|05vel|07: |14'+litos(Stealth));
Pipeln('  |15S|13i|05ze|07: |14'+Spaces(litos(size),25)+
       '|15A|13t|05tacks|07: |14'+litos(attacks));
Pipeln('  |15F|13i|05les |15I|13n|05fected|07: |14'+Spaces(litos(FilesInfected),15)+
       '|15P|13r|05otoplasm |15P|13o|05ds|07: |14'+litos(proto));
Pipeln('  |15T|13e|05am |15#|07: |14'+SPACES(litos(team),4)+'                   '+
       '|15C|13h|05arm|07: |14'+litos(Charm));
Pipeln('  |15M|13u|05tation |15L|13e|05vel|07: |14'+litos(mutation));
stop;
end;

Procedure SeeBattle;
begin
SCLRSCR;
Pipeln('|16   |07▄▄|08▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄|07▄▄');
Pipeln(' |08▄|23▀▒▄|16██████|23████▓███▓▓|16▄█|23▓|16██|23▓|16█|23▓▓|16███▀ ▀█▓█████|23▄▒▀|16▄');
Pipeln('▐|23▌▐|16████|23█|16███|23████▓███▓▓|16▄█|23▓|16██|23▓|16█|23▓▓|16███▀ ▀█▓███████|23▌▐|16▌');
Pipeln('|23█▐|16███▓▀ |05You have |13'+SPACES(litos(battles),2)+
' |05Battles Left Today   |08▀▓███|23▌|16█');
Pipeln('█ ▀█▌ ┌|15───────────────────────────────┐    |08▐███▓');
Pipeln('▄▀▄█  │ |13S|08]|05can for files to infect!    |15│     |08|23▓|16▀ █');
Pipeln('▒▓|23█▓|16  │ |13L|08]|05augh (Good for your health) |15│     |08|23▓|16█▄▓');
Pipeln('▓|23██▓|16  │ |13V|08]|05iew all your Stats          |15│     |08██ █');
Pipeln('|23█|16▀ ▀  │ |13R|08]|05eturn to the main menu      |15│     |08█ █▄');
Pipeln('██▄▓  └───────────────────────────────|15┘     |08|23▓|16█▓▓');
Pipeln('▓▄▓▒  ┌|15─────────────────────┐               |08|23▓|16▀ █');
Pipeln('▒▓█▓  │ |15Y|07our |15C|07hoice|15: [ ]    │               |08▌ █');
Pipeln('▓|23█|16█|23▓|16  └─────────────────────|15┘               |08|23▓|16▄ █');
Pipeln('|23█▐|16██▌   |13You Have |07'+SPACES(litos(size),13)+
       '             |08▐██|23▌|16█');
Pipeln('▐|23▌▐|16██▄▄ |13of |07'+SPACES(litos(originalsize)+' |13bytes',19)+
       '           |08▄▄█|23█▌▐|16▌');
Pipeln(' ▀|23▄▒▀|16█|23▀█|16███|23████▓███▓▓|16▄█|23▓|16██|23▓|16█|23▓▓|16███▀ ▀█▓███|23▀|16█|23▀▒▄|16▀');
SGOTO_XY(23,12);
end;


Procedure Infection;
var rand1,rand2:integer;
begin
 rand1:=random(10);
 if rand1=8 then begin
    crlf(1);
    Pipeln('|15'+k.virusname+'|07 attempts to purge you without success');
    exit;
                 end;
 if rand1=9 then begin
    crlf(1);
    Pipeln('|07You attempt to enhance the program with yourself, but make no progress.');
    exit;
                 end;
 if rand1<4 then begin
    crlf(1);
    Rand2:=random(k.size)+1;
    Pipeln('|15'+k.virusname+'|07 succesfully purges |15'+litos(rand2)+'|07 bytes of you.');
    size:=size-rand2;
    if size<1 then begin
      if mutation>0 then begin
                         mut:=mutation;
                         if random(100 div mut)+1 = 1 then begin
                                 pipeln('`!M`$U`#T`@A`0T`9I`!O`$N|15!');stop;
                                 size:=originalsize;
                                 dec(mutation);
                                 addnews('|15«|12«|04« |15'+virusname+'|16 mutated today! |04»|12»|15»');
                                 addnews('');
                                 exit;
                                                             end;
                         end;
      pipeln('|04Sorry..... You''ve been killed.. I guess he was too strong for you..');
      addnews('|15«|07«|08« |13'+virusname+' |05was killed while trying to enslave |13'+k.virusname+'|05 today.'+
              '|08»|07»|15»');
      addnews('');
      dead:=true;
      makeevent(k.virusname,'Jezebel','Victory!','You killed '+virusname+' in self defense today, congratulations!');
      k.originalsize:=k.originalsize+(originalsize div 10);
      k.size:=k.size+(originalsize div 10);
      inc(filesinfected);
      originalsize:=originalsize-(originalsize div 10);
      k.size:=k.originalsize;
      reset(scorefile);
      seek(scorefile,spynum);
      write(scorefile,k);
      close(scorefile);
      stop;
                   end;
    exit;
                 end;
 if rand1<8 then begin
    crlf(1);
    Rand2:=random(size)+1;
    Pipeln('|07You successfully enhance |15'+litos(rand2)+'|07 bytes of |15'+k.virusname+'|07.');
    k.size:=k.size-rand2;
    if k.size<1 then begin
      if k.mutation>0 then begin
                         mut:=k.mutation;
                         if random(100 div mut)+1 = 1 then begin
                                 pipeln('`!M`$U`#T`@A`0T`9I`!O`$N|15!');stop;
                                 k.size:=k.originalsize;
                                 dec(k.mutation);
                                 exit;
                                                             end;
                         end;

      pipeln('|13CONGRATULATIONS! You overwhelmed it!');
      addnews('|15'+k.virusname+'|07 became |15'+virusname+'|07''s slave today!');
      addnews('');
      makeevent(k.virusname,'Jezebel','Defeat!','You were enslaved by '+virusname+' for a day.');
      originalsize:=originalsize+(k.originalsize div 10);
      size:=size+(k.originalsize div 10);
      inc(filesinfected);
      k.originalsize:=k.originalsize-(k.originalsize div 10);
      k.size:=k.originalsize;
      k.dead:=true;
      reset(scorefile);
      seek(scorefile,spynum);
      write(scorefile,k);
      close(scorefile);
      stop;
    exit;
                            end;
                 end;
end;

Procedure JezPoster;
begin
if proto<1 then begin SCLRSCR; Pipeln('|04You need at least one protoplasm pod|15!');
stop; exit; end;
dec(proto);
SCLRSCR;
Pipeln('|06|23░░░░░░░░░|07|16▀▀▀▄▄|06|23░▒▒░░▒▒░░|07|16▀|04▄|12|20▓▒░░|04|16█▄▄|06▀|23▒▓|16 |04█|12'+
       '|20░▒▒▓|16█ |06█|23▒░▒░▒░░|07|16█████|08|23░░░░░░▒▒▓▒▒░░|07|16▄▄|15Jezebel!');
Pipeln('|07█|06|23░░|07|16▀▀▀▄▄▄|06|23▒░░▒▓▓|16▀▀▀▀|23▓▓|16▀|04▄█|12|20▓▒|04|16▄▄▀▀|12|20░|04|16█'+
       '|12|20░|04|16▄ ▀▄▄▀▀|12|20▒▓|16▌|06▐|23▓▓▓|04|16▄▄ ▄  ▄▄▄▄▄▄▄▄|08▀▀▀|23▓▓▓▒▒░░░░|07|16█████▄');
Pipeln('▄▄|06|23░░░|07|16█|06|23░▒▒▓▓|16▀|04▄|12|20░|04|16▄▓███▄ ██▀▀▀▀▀|12|20░ |04|16▄ ▀▄■▀██|12'+
       '|20▓|16▌|06▄|04▀|12|20▒|16 |06▀ |04█|12|20░|04|16▀▀▄▀▀|12|20░▒|04|16▀▀▀|12|20▒▓▓|04|16▀█|12'+
       '|20░|04|16▄▄ |08▀|23▓▓▒░|07|16█|08|23░|07|16█████');
Pipeln('|06|23░|07|16█|06|23░░░▒▒▓|16▀|04▄▄|12|20▓▒|04|16▀▀▄▄▄█ █  |12|20▓▓|16▀▀■   |04▀|06▄▄|12|22'+
       '░░|04|16▐|12|20░|04|16▐|12|20▓|16 |06▌|04▀|12|20░|16 |22░|06|16▄|04▀▄|12▀▄|04▀|12|20░|04|16'+
       '▄▄|12▀▀▀ |04▄▄▀▄██▀█▄ |08▀|23▓▒▒░|07|16█████');
Pipeln('|06|23░░|08░|07|16▀▀▀|04▄▄▀▀▄▄|12|20░|04|16█|12|20░|04|16█▓█ █ ▄▐|12|20▒|16 |06▄▄▄|12|22'+
       '░░░▒▒▒▒▒|16 |04█▐|12|20▒|16▌|22▒|16▄|04▀▄|06▀|12|22▒▒|16▄|04▀▄|12▀▀▄▄|04▀▀▀▀|12▄▄▄|04▀▀▄▀▄'+
       '|12|20░|04|16█ |08▀|07▄▄▄▀▀▀██');
Pipeln('|08|23▒░|07|16▀|04▄▄|12|20░|04|16▀▄|12|20░|04|16▀▀▀▄▀▀▀▄▄▀▄▄▀▐▌|12|22░░▒▒▒▒▒▒▒▒▒▒|04|16▐█ '+
       '|12|20▒|16 |22▓▓▓|16 |04▀▄|12▀   |04▀▀▄▄|12▀▀▀▀▀|04▄▄▀▀▄██|12|20░|04|16▐█ |07██████▄▄');
Pipeln('|08|23▓|16 |04█|12|20░░|04|16█▀▄▄|12|20░|04|16▀▄ ▀▓▀▄▄▀▀|06▄|12|22░|06|16▄|04▀▄|06▀|12|22'+
       '▒▒▒▓▓▓▓▓▓|16 |20░|04|16▌▀|12▄|22▓▓|16▀  ▄▄|04▀|12▄|22▓▓▓|16▀  |04▀▀|12|20░|04|16▀▀|12▄█ '+
       '|04█████▄▀█ |07███████');
Pipeln('▌|04█|12|20░░|04|16▀▄|12|20░░|04|16█▀▄▄▀▀▀▀ |06▄ |12|22░▒|06|16█▀▀ ▀▀|12|22▒▓▓▓▓▓▓|16▀|04'+
       '▄▀|12▄|22▓▓▓|16 ▄|22▓▓|16▀▀▀    |15▐|23▓|16 |12|22▓▓▓█|16█|22▓▓|16 |04▀██▄▀|12|20░|04|16▄'+
       '▀█ |07▀▀████');
Pipeln('|12|20░░|04|16█▀▄|12|20░░|04|16▀▄█|12|20░|04|16████▌|12|22░░░▒|16▄▄▄▄▄▄▄   ▀▀|22▓▓▓|16▄|22'+
       '▓▓▓▓|16▄|22▓▓▓|16  |02▄▄ |15▀ ▄|23▓▒|16 |12|22▓▓▓▓|16█|22▓▒|16 ▌|04███|12|20▒|04|16▄▀█|12'+
       '|20░|04|16█  |07▄▄▀▀');
Pipeln('|12|20░|04|16█▀▄|12|20░|04|16█▀▄|12|20░░|04|16██▓█▓▀|06▐|12|22░▒▓▓|16▀▀▀▀▀▀▀▀|22▓▓|16▄▄▀'+
       '|22▓▓▓▓▓|16█▐|22▓▓|16▌|15▐▄▄▄▄██▀▀|12▄|22▓▓▓▓▓|16█|22▓▒|16▌|20▓|04|16▐|12|20░|04|16█|12'+
       '|20░▒▒|04|16▀█▐▌ |08|23▒░░|07|16█');
Pipeln('|04█▀▄|12|20░|04|16█ |12|20░░ |04|16██▀▀▄▄█ |12|22▒▒▓|16 |15|23▒|16▄ ■ |02▄▄  |15▄ |12██'+
       '|22▓▓|16███|22▓▓▓|16█ |15▀▀|12▄▄▄▄▄█|22▓▓█▓▓▓▓|16▌|07█|12▀|04▄|12|20▒|16 |04███|12|20░░'+
       '|04|16▄▀|12|20░|04|16▌ |08|23▓▓░░|16');
Pipeln('|04█ |12|20░|04|16█ |12|20▒░|04|16██▀▓██|12|20░|04|16█▀ |12|22▒▓▓▓|16 |15|23▒▓|16▄▄▄▄▄█▀▀'+
       ' |12|22▓|16█▌███|22██|16██|22▓▓▓█|16████████|22█▓▓▒|16▌|07│|04██|12|20░░|04|16▐|12|20░|04'+
       '|16█|12|20░|04|16▌|12|20░|16 |04█|12|20░|16 |08▄▀|23▓▓|16');
Pipeln(' |12|20▒░|16 |20▓▒|04|16██ █|20 |12░░|04|16▀▄▀▄|06▀|12|22▓|16█▐|22▓|16▄▄|15▀▀▀|12▄▄▄█|22'+
       '▓▓▓|16██▐██|22▓█|16██████████████|22█▓▓▒|16▌|07│|04▓██|12|20░|04|16▐|12|20░|04|16'+
       '█▌█ █ █ |08|23▓▓▓|16▄');
Pipeln('|12|20▒░|04|16█ |12|20▒░|04|16█ ▓█|12|20░▒|16 |04█ |12|20▒░|04|16▌|07█ |12▐|22▓▓|16█████'+
       '█████████|22█|16██|22▓█|16█████████████|22▓▓▓▒|16▌|07│ |04██|12|20░|16 |04███ |12|20░|16 '+
       '|04█  |08▀▀▀');
Pipeln('|12|20░|04|16█ |12|20▓▒|04|16█▌███|12|20░|16 |20░|16 |20▒░░|04|16▌|07│|04▐|12▐|22▒▓▓|16███'+
       '█████████ ██▀▀██████████████|22▓▓▒▒|16 |07│|10█▄|04▀█ ███▌██|12|20░|04|16█Pmt!');
Pipeln('██ |12|20▒░|04|16█▓██|12|20░▒|16 |04█ |12|20░░|04|16█▌|07│|04▐▄|06▐|12|22▒▒▓|16██████████▌ '+
       '▄▄█▄▄████████████|22▓▓▒|06|16▀|10▄▄█|18▓|16▀▄|04▀█▐█|12|20░░|16 |04█▌|12|20░|04|16▌');
Pipeln('█ |12|20▒░|04|16██▀███ |12|20░|16 |20░|04|16██|12|20░|04|16▌|07│|04▐▓▄|06▀|12|22▒▒▓▓|16████'+
       '█████████▀▀▀▀▀▀██████|22█▓▒▒▒|06|16▌  |10▄|18▒░|16 |04▓█▐|12|20░▒▒░|04|16▐█ █▌');
Pipeln('█ |12|20▒|04|16██▌███ █ |12|20░░|04|16█▀|10▄ |18▓|16 ▄|04▓▄|06▀|12|22▒▒▒▓|16█████▀▀|04▄▄▄▄▄█▀'+
       '▀|12|20░░░|04|16▄|12▀████|22▓▒▒▒|06|16▀|04▄ |10▀|04▄|02▀|04▄█|20 |12░|04|16▐|12|20▒▓▓|04'+
       '|16▌▌█|12|20░|04|16██');
Pipeln('█ |12|20░|04|16█▓ █|12|20░|04|16█ |12|20░|16 |20░|04|16█▀|10▄▄|18▓▓▒|16▄▄|04▀▓▄|06▀|12|22▒'+
       '▒▓▓|16██▄|04▀|12|20▒|04|16▀▀|15▄▄▄▄▀▀|04▄▄|12|20░|16 ███|22▓▓▒▒|06|16▀|04▄▓█ █ ▓▌█|12|20░'+
       '|04|16▌|12|20░▒▓▒|04|16▌|12|20░|04|16▐███▌');
Pipeln(' |12|20▒░|04|16██ |12|20░░|04|16█ █ █▓█ |10▄▀|18░|16▀▄ |04▓█▌█ |06▀|12|22▒▒▓▓|16█▄▀|20▓|16▄'+
       '|04▄▄▄|12▄|20▓▓▒|04|16▀|12▄███|22▓▓▒|06|16▀  |04▓▓█▐▌██▐|20 |12░|16 |20▒▓▒░|04|16▐|12|20░'+
       '|04|16▌███|12|20░|16');
Pipeln(' |20░|04|16███ |12|20░|04|16██ █ █▓▓█▄▄|02▀|04▄▄█ |12|20░|16 |20░|04|16▌|12|20▓|16▄|06▀|12'+
       '|22▒▒▓▓|16█▄|04▀▀▀▀▀▀|12▄▄████|22▓|16█▀▄█▌|04░▒▓█▐▌|12|20░|04|16█▐|20 |12░|16 |04█|12|20░░'+
       '|04|16█▐|12|20░░|04|16▐███|12|20░|16');
Pipeln('|20░░|04|16██ |12|20░|04|16██ █▓█ █▓▓████|12|20░|04|16▓ ▓▌|12|20░|16 |20▒|04|16▒ |06▄▀▀|12'+
       '|22▒▓▓|16████████████▀▄|22▓|16██▌ |04░▓ █ █▌█|12|20░|04|16▌███|12|20░|04|16▌██|12|20░|04|16▌██ █');
Pipeln('|12|20░|04|16█▓▓ |12|20░|04|16█▓ ▓▌█▌██▓▓██|12|20░|04|16█▓▓ ▌█ ▓▒ |06▐|12|22░░|06|16▄▄|12▀▀'+
       '███████▀▀▄▄|22▓▓|16███▌ |04░▒ █ ▓▌█|12|20░|04|16▌|12|20░|04|16█|20 |12░|04|16▌██|12|20░░|04'+
       '|16▐|12|20░|04|16█▌');
stop;
end;

Procedure ExchangePPP;

Procedure Mocharm;
Var BUYING:Byte;
begin
If proto<1 then begin SCLRSCR; Pipeln('|04You need at least one ProtoPlasm Pod|15!');
stop; exit; end;
SCLRSCR;
Pipeln('|05You have |13'+litos(proto)+'|05 protoplasm pods, and charm costs |131 PP|05 each|13.');
Pipe('|05How many would you like to buy|13? |15');
SREAD_Num_Byte(Buying);
if buying=0 then exit;
If Buying>proto then begin Pipeln('|04Read carefully, you don''t have that many!');
                           stop; exit; end;
proto:=proto-buying;
charm:=charm+buying;
Pipeln('|07You now have |15'+litos(charm)+' |07charm|15.');stop;
end;

Procedure MoBattles;
Var BUYING:Byte;
begin
If proto<1 then begin SCLRSCR; Pipeln('|04You need at least one ProtoPlasm Pod|15!');
stop; exit; end;
SCLRSCR;
Pipeln('|05You have |13'+litos(proto)+'|05 protoplasm pods, and extra battles are |131 PP|05 each|13.');
Pipe('|05How many would you like to buy|13? |15');
SREAD_Num_Byte(Buying);
if buying=0 then exit;
If Buying>proto then begin Pipeln('|04Read carefully, you don''t have that many!');
                           stop; exit; end;
proto:=proto-buying;
battles:=battles+buying;
Pipeln('|07You now have |15'+litos(battles)+'|07 battles left|15.'); stop;
end;

Procedure MoAttacks;
Var BUYING:Byte;
begin
If proto<1 then begin SCLRSCR; Pipeln('|04You need at least one ProtoPlasm Pod|15!');
stop; exit; end;
SCLRSCR;
Pipeln('|05You have |13'+litos(proto)+'|05 protoplasm pods, and extra attacks are |131 PP|05 each|13.');
Pipe('|05How many would you like to buy|13? |15');
SREAD_Num_Byte(Buying);
if buying=0 then exit;
If Buying>proto then begin Pipeln('|04Read carefully, you don''t have that many!');
                           stop; exit; end;
proto:=proto-buying;
attacks:=attacks+buying;
Pipeln('|07You now have |15'+litos(attacks)+'|07 attacks left|15.'); stop;
end;

Procedure MoMutation;
Var BUYING:Byte;
begin
If proto<2 then begin SCLRSCR; Pipeln('|04You need at least two ProtoPlasm Pods|15!');
stop; exit; end;
SCLRSCR;
Pipeln('|05You have |13'+litos(proto)+'|05 protoplasm pods, and extra mutation is |132 PP|05 each|13.');
Pipe('|05How many would you like to buy|13? |15');
SREAD_Num_Byte(Buying);
if buying=0 then exit;
If (Buying*2)>proto then begin Pipeln('|04Read carefully, you don''t have that many!');
                           stop; exit; end;
proto:=proto-(buying*2);
mutation:=mutation+buying;
Pipeln('|07You now have |15'+litos(mutation)+'|07 mutation|15.'); stop;
end;

Procedure ChangeName;
Var NewName:string;
begin
SCLRSCR;
If Proto<3 then begin Pipeln('|04You need 3 protoplasm pods to change your name!');
stop; exit; end;
Pipe('|05Would you like to change your name|15? |13');
yesno('N');
If choice='Y' then begin
proto:=proto-3;
Pipeln('|15Here''s a free tip, You can use color codes in your name!');
Repeat
repeat
Pipe('|07I want my new name to be|08: ');
Prompt2(newname,50,15,5);
newname:=Striphigh(newname);
until ((Length(stripe(newName))> 2) and (ucase(stripe(newName)) <> 'JEZEBEL'));
Pipeln('|07Your new name is|08: |15'+newname+'|16');
Pipe('|05Is this ok|15? |13');
yesno('Y');
until choice='Y';
Pipeln('|07Ok|15,|07 Changed|15.');
virusname:=newname;
stop;
end;
end;



begin
repeat
    ExchangeScreen;
    repeat
      SREAD_Char (CHOICE); CHOICE := upcase (CHOICE);
    until pos (choice, '12345RQ') > 0;
    pipeln (CHOICE);crlf(1);
    Case Choice of
      '1': JezPoster;
      '2': MoCharm;
      '3': MoBattles;
      '4': MoMutation;
      '5': ChangeName;
      '6': MoAttacks;
      'R': exit;
      'Q': exit;
    end;
until 5<4;
end;




Procedure AskRiddle;
Type
    Riddles = Record
    lines: array[1..10] of string[80];
    clue: string[50];
    answer: string[50];
end;


var totals,ridnum:integer;
    i:byte;
    guess:string;
    rid:riddles;
    ridfile:file of riddles;
begin
assign(ridfile,'RIDDLES.DAT');
reset(ridfile);
i:=0;
Repeat
seek(ridfile,i);
read(ridfile,rid);
inc(i);
until eof(ridfile);
totals:=i; i:=random(totals)+1;
seek(ridfile,i);
read(ridfile,rid);
close(ridfile);
SCLRSCR;
Pipeln('|02You have the brute strength to go up a level, but Jezebel wants to know');
Pipeln('if you have the brains to go up a level. She wants you to answer a');
Pipeln('riddle for her.|10');
stop;
SCLRSCR;
i:=0;
Repeat
inc(i);
Writeln(SOUTPUT,rid.lines[i]);
until (length(rid.lines[i+1])<2) or (i=10);
crlf(1);
Pipe('|15 '); Writeln(SOUTPUT,rid.clue);
Pipe('|08>'); Prompt2(guess,length(rid.answer),15,2);
If ucase(guess)=ucase(rid.answer) then gotit:=true else begin gotit:=false;
                                                              wrongguess:=true;
                                                              end;
If Gotit then begin
Stop;
Pipeln('|10You Got it|15! |10Jezebel smiles upon thee|15!');
stop;
end else begin
Stop;
Pipeln('|04Sorry, That was not the correct answer. Go study, and try again tommorrow.');
Stop;
end;
end;

Procedure FlirtJ;

Procedure Nod;
begin
Crlf(1);
if charm<5 then
Pipeln('|11She barely notices. But you feel better.')
else
Pipeln('|11She smiles warmly. You feel better.');
size:=size+10;
originalsize:=originalsize+10;
flirted:=true;
stop;
end;

Procedure Poem;
begin
CRLF(1);
if charm<10 then begin
Pipeln('|04She laughs in your face and calls you a little boy!');
addnews('|14Jezebel laughed at '+virusname+' for reciting a poem to her today.');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She listens intently, and giggles gently. You feel better.');
size:=size+20;
originalsize:=originalsize+20;
flirted:=true;
stop;
end;

Procedure Sing;
Begin
CRLF(1);
if charm<20 then begin
Pipeln('|04She laughs in your face and makes fun of your voice.');
addnews('|14Jezebel laughed at '+virusname+' for singing to her today!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She listens intently, and blushes at the sound of her name. You feel great.');
size:=size+30;
originalsize:=originalsize+30;
flirted:=true;
stop;
end;

Procedure Rose;
begin
CRLF(1);
if charm<30 then begin
Pipeln('|04She shoves the rose up your keester!');
addnews('|14Jezebel rejected '+virusname+'''s rose today, he''s still removing');
addnews('the thorns!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She takes the rose, eats the flower, and thanks you with a kiss! SCHWING!');
size:=size+50;
originalsize:=originalsize+50;
flirted:=true;
stop;
end;

Procedure Invite;
begin
CRLF(1);
if charm<40 then begin
Pipeln('|04She tells you to take a bath more often!');
addnews('|14Jezebel wants everyone to know that '+virusname+' never takes a bath!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She shows up, wearing a teddy. You two have a great meal together!');
size:=size+90;
originalsize:=originalsize+90;
flirted:=true;
stop;
end;

Procedure Kiss;
begin
CRLF(1);
if charm<50 then begin
Pipeln('|04She darn near takes off your tongue!');
addnews('|14Jezebel is placing sexual harrassment charges against '+virusname+'.');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She takes you over to a dark corner, and you end up necking for six hours.');
size:=size+130;
originalsize:=originalsize+130;
flirted:=true;
stop;
end;

Procedure bed;
begin
CRLF(1);
if charm<60 then begin
Pipeln('|04She stuffs a broomstick up yer keester!');
addnews('|14'+virusname+' is having a broomstick surgically removed today!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11She accepts!');
stop;
pipeln('|08She shows up, wearing nothing but her socks!');
stop;
Pipeln('|08She does things to you that you''ll just have to imagine!');
stop;
size:=size+1000;
originalsize:=originalsize+1000;
flirted:=true;
stop;
end;


begin
SCLRSCR;
If flirted then begin
Pipeln('|03She walks away.');
stop; exit; end;
Pipeln('|15Flirt With Jezebel, eh? Do you think your man enough?');
crlf(1);
inc(charm);
Pipeln('|14N|02]|10od at her.');
Pipeln('|14R|02]|10ecite a poem to her');
Pipeln('|14S|02]|10ing to her');
Pipeln('|14G|02]|10ive her a Rose');
Pipeln('|14I|02]|10nvite her over for dinner');
Pipeln('|14P|02]|10lant a big kiss on her lips');
Pipeln('|14T|02]|10ake her to bed');
crlf(1);
Pipe('|12Whatcha gunna do: ');
    repeat
      SREAD_Char (CHOICE); CHOICE := upcase (CHOICE);
    until pos (choice, 'NRSGIPT') > 0;
    pipeln (CHOICE);crlf(1);
    Case Choice of
    'N': Nod;
    'R': Poem;
    'S': Sing;
    'G': Rose;
    'I': Invite;
    'P': Kiss;
    'T': Bed;
end;
end;

Procedure FlirtB;

Procedure Nod;
begin
Crlf(1);
if charm<5 then
Pipeln('|11He barely notices. But you feel better.')
else
Pipeln('|11He smiles warmly. You feel better.');
size:=size+10;
originalsize:=originalsize+10;
flirted:=true;
stop;
end;

Procedure Chuckle;
begin
CRLF(1);
if charm<10 then begin
Pipeln('|04He tells you to stop making so much noise.');
addnews('|14Brian told '+virusname+' to shutup today.');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He grins and smiles at you. You feel better.');
size:=size+20;
originalsize:=originalsize+20;
flirted:=true;
stop;
end;

Procedure Sing;
Begin
CRLF(1);
if charm<20 then begin
Pipeln('|04He laughs in your face and makes fun of your voice.');
addnews('|14Brian laughed at '+virusname+'''s singing voice today!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He listens intently, and drools slightly. You feel great.');
size:=size+30;
originalsize:=originalsize+30;
flirted:=true;
stop;
end;

Procedure Book;
begin
CRLF(1);
if charm<30 then begin
Pipeln('|04He shoves the book up your keester!');
addnews('|14Brian rejected '+virusname+'''s book today, she''s still adding');
addnews('bandaids to the papercuts!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He takes the book, reads it, and thanks you with a kiss! HUBBA HUBBA');
size:=size+50;
originalsize:=originalsize+50;
flirted:=true;
stop;
end;

Procedure Invite;
begin
CRLF(1);
if charm<40 then begin
Pipeln('|04He tells you to take a bath more often!');
addnews('|14Brian wants everyone to know that '+virusname+' never takes a bath!');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He shows up, with a box of chocolates. You two have a great meal together!');
size:=size+90;
originalsize:=originalsize+90;
flirted:=true;
stop;
end;

Procedure Kiss;
begin
CRLF(1);
if charm<50 then begin
Pipeln('|04He spits on the ground and runs!');
addnews('|14Brian is placing sexual harrassment charges against '+virusname+'.');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He takes you over to a dark corner, and you end up necking for six hours.');
size:=size+130;
originalsize:=originalsize+130;
flirted:=true;
stop;
end;

Procedure bed;
begin
CRLF(1);
if charm<60 then begin
Pipeln('|04He calls you a slut, and tells you to get lost!');
addnews('|14'+virusname+' is looking for a man, anyone interested?');
addnews('');
stop; flirted:=true; exit; end;
Pipeln('|11He accepts!');
stop;
pipeln('|08He shows up, wearing nothing but his socks!');
stop;
Pipeln('|08He does things to you that you''ll just have to email him to find out!');
stop;
size:=size+1000;
originalsize:=originalsize+1000;
flirted:=true;
stop;
end;


begin
SCLRSCR;
If flirted then begin
Pipeln('|03He walks away.');
stop; exit; end;
Pipeln('|15Flirt With Brian, eh? Do you think your fine enough?');
crlf(1);
Pipeln('|14N|02]|10od at him.');
Pipeln('|14C|02]|10huckle at his jokes');
Pipeln('|14S|02]|10ing to him');
Pipeln('|14G|02]|10ive him a StarTrek book');
Pipeln('|14I|02]|10nvite him over for dinner');
Pipeln('|14P|02]|10lant a big kiss on his lips');
Pipeln('|14T|02]|10ake him to bed');
crlf(1);
Pipe('|12Whatcha gunna do: ');
    repeat
      SREAD_Char (CHOICE); CHOICE := upcase (CHOICE);
    until pos (choice, 'NCSGIPT') > 0;
    pipeln (CHOICE);crlf(1);
    Case Choice of
    'N': Nod;
    'C': Chuckle;
    'S': Sing;
    'G': Book;
    'I': Invite;
    'P': Kiss;
    'T': Bed;
end;
end;

function striphigh(stripword:string):string;
var ag,imp:integer;

begin
imp:=length(stripword);
repeat
if ((ord(stripword[imp])<32) or (ord(stripword[imp])>127)) then
   DELETE(stripword,imp,1);
dec(imp);
until ((imp<1) or (imp=0));
striphigh:=stripword;
end;


function whatsregname:string;
var
  buh:string;
begin
     buh := board_name;
     insert('|07',buh,2);
     whatsregname:='|15'+buh;
end;
end.