#include<stdio.h>
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<process.h>
void spcline(int x)
{int i;
 for(i=0;i<=x;i++)
 {cout<<"                                                                                ";
 }
}
void delline(char *x,int y)
{for(int i=0;x[i]!='\0';i++)
   {delay(y);
    cout<<x[i];
   }
}
void icon(int x)
{ settextstyle(3,0,8);
      setcolor(x);
      outtextxy(150,120,"T");
      settextstyle(3,0,5);
      setcolor(x);
      outtextxy(185,158,"ALK");
      settextstyle(3,0,8);
      setcolor(x);
      outtextxy(280,120,"T");
      settextstyle(3,0,5);
      setcolor(x);
      outtextxy(316,158,"O");
      settextstyle(3,0,8);
      setcolor(x);
      outtextxy(380,120,"M");
      settextstyle(3,0,5);
      setcolor(x);
      outtextxy(425,158,"E");
      settextstyle(2,0,7);
      setcolor(x);
      outtextxy(340,215,"UNTIL END");
      settextstyle(1,0,65);
      setcolor(x);
      outtextxy(480,125,"I");
   }
   void icon2(char *x)
   {settextstyle(3,0,8);
      setcolor(WHITE);
      outtextxy(100,100,"SITUATION ");
      settextstyle(3,0,10);
      setcolor(WHITE);
      outtextxy(280,180,x);
    }
void engine1();
void engine2();
void engine3();
void main()
{clrscr();
 int gdriver=DETECT,gmode;
 initgraph(&gdriver,&gmode,"c:\\turboc3\\BGI");
 int x,y,i;
 x=getmaxx()/1;
 y=getmaxy()/1;
 engine1();
 engine2();
 engine3();
 restorecrtmode();
 closegraph();
}
 void engine1()
{ int x,y,i;
 cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n";
 delay(800);
 settextstyle(3,0,8);
 setcolor(WHITE);
 outtextxy(150,120,"T");
 settextstyle(3,0,5);
 setcolor(WHITE);
 outtextxy(185,158,"ALK");
 settextstyle(3,0,8);
 setcolor(WHITE);
 outtextxy(280,120,"T");
 settextstyle(3,0,5);
 setcolor(WHITE);
 outtextxy(316,158,"O");
 settextstyle(3,0,8);
 setcolor(WHITE);
 outtextxy(380,120,"M");
 settextstyle(3,0,5);
 setcolor(WHITE);
 outtextxy(425,158,"E");
 delay(2500);
 cout<<"\t\t";
 cout<<"    ";
 for(i=0;i<36;i++)
     cout<<"-";
 settextstyle(2,0,7);
 setcolor(WHITE);
 outtextxy(340,215,"UNTIL END");
 cout<<"\n\n\t\t";
 cout<<"    ";
 for(i=0;i<36;i++)
    cout<<"-";
 settextstyle(1,0,65);
 setcolor(WHITE);
 outtextxy(480,125,"I");
 cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\tPART 1.0.0";
 delay(1800);
 for(i=0;i<4;i++)
 {delay(40);
  setbkcolor(WHITE);
  delay(40);
  setbkcolor(BLACK);
 }
 delay(2500);
 cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
 settextstyle(2,0,5);
 setcolor(WHITE);
 outtextxy(150,200,"THIS IS MADE FOR THOSE WHO NEED IT");
 settextstyle(2,0,5);
 setcolor(WHITE);
 outtextxy(150,250,"NOT FOR THOSE WHO THINK IT AS FUN");
 delay(3000);
 //setbkcolor(BLACK);
 /*cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
 cout<<"LOADING";
 cout<<"\n";
 for(i=0;i<5;i++)
    {delay(800);
     cout<<"-";
     if(i==0)
     {icon(8);
    }
    }
 for(i=0;i<10;i++)
    {delay(500);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(100);
  cout<<"-";
  if(i==62)
    {delay(40);
     setbkcolor(WHITE);
     delay(40);
     setbkcolor(BLACK);
    }
 }*/
 cleardevice();
}
 void engine2()
{
 clrscr();
 spcline(2);
 int i,x,y;
 char *fi,fj[10],v[20], c[10],*b1,*b2,*a,*b,s1,*r1,*r2,*r3,*r4,*r5,*b3,*b4,*b5,*b6,*b7,*b8,*b9,*b10,*b11,*b12,*b13,*b14,*b15,*b16,*b17,*b18,*b19,*b20,R1[10],R2[10],R3[10];
 icon(8);
 spcline(1);
 cout<<"PLEASE ENTER THE ACTIVATION CODE :- ";
 gets(v);
 if(v[0]=='S'&&v[1]=='K'&&v[2]=='S'&&v[3]=='1'&&v[4]=='2'&&v[5]=='1'&&v[6]=='2'&&v[7]=='1'&&v[8]=='9'&&v[9]=='6'&&v[10]=='6'&&v[11]=='S'&&v[12]=='0'&&v[13]=='8'&&v[14]=='0'&&v[15]=='8'&&v[16]=='1'&&v[17]=='9'&&v[18]=='6'&&v[19]=='8')
   {spcline(3);
    goto go;
   }
 else{spcline(1);
      cout<<"INCORRECT CODE";
      delay(2400);
      exit(0);
    }
 go:
 clrscr();
 icon(8);
 spcline(4);
 fi="IT'S YOUR FIRST TIME....\n\nTYPE YES OR NO : ";
 delline(fi,80);
 gets(fj);
 if(fj[0]=='N'||fj[0]=='n'&&fj[1]=='O'||fj[1]=='o')
    goto hello;
 if(fj[0]=='y'||fj[0]=='Y'&&fj[1]=='E'||fj[1]=='e'||fj[1]=='S'||fj[1]=='s')
   goto open;
 else
 {cout<<"\nINAPPROPRIATE FILL";
  exit(0);
 }
 open:
 clrscr();
 /*setbkcolor(BLACK);
 cout<<"\n\n\n\n\n  ";
  a="THIS SOFTWARE HAS REAL PROOF OF HAVING CONECTION WITH REAL SPIRITS MOVING AROUND YOU. FROM THEM YOU CAN ASK ANY QUESTION. \n\n ITS OUR ADVISE THAT WHEN WE MAKE YOUR CONNECTION TO ANY ONE OF THEM YOU PLEASE DON'T TRY TO HURT THEM... \n\n AS OVER 129 DEATHS HAS BEEN RECORDED OF USERS WHO TRY TO DO THIS...\n\n NOW IT'S UPTO YOU HOW YOU TAKE THEM LIGHT OR SERIOUS ";
  delline(a,80);
 b="\n\nIF YOU WANT YOU CAN LEAVE NOW...\n\n DO YOU WANT TO LEAVE?\n\nTYPE YES OR NO:-";
 delline(b,80);
 gets (c);
 if (c[0]=='Y'||c[0]=='y'&&c[1]=='E'||c[1]=='e'&&c[2]=='S'||c[2]=='s')
     exit(0);
 if (c[0]=='N'||c[0]=='n'&&c[1]=='O'||c[1]=='o')
 {clrscr();*/
  /* b2="\n\nBEFORE WE CONNECT YOU TO A SPIRIT WE NEED TO KNOW ABOUT YOUR BEHAVIOR...\n\n*PLEASE GIVE ALL THE ANSWERS WHICH WILL BE ASK BELOW.\n\nYOU WILL SEE FOUR OPTIONS FOR THREE DIFFERENT SITUATIONS IN WHICH YOU HAVE TO   CHOOSE ANY ONE.\n\nYOUR EACH RESPONSE SHOWS YOUR THINKING AND BEHAVIOR AS WELL AS YOUR MIND\nDECISIONS.\n\n\n\n\n\n\n\n\tSO SELECT ANY OPTION VERY CAREFULLY... ";
  delline(b2,80);
  delay(2500);
  cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
      icon(8);
      r1="I";
      icon2(r1);
      delay(3000);
   clrscr();
   spcline(1);
   b3="YOU ARE SITTING ON A CHAIR AND LISTENING A SONG, IN A ROOM WHERE LIGHTS ARE OFF AND TIME IS SOMETHING 5:37 P.M OF LATE EVENING. YOUR ROOM IS QUIT DARK AND NO   ONE IS THE HOUSE, BESIDE YOU...\n";
   delline(b3,80);
   delay(2800);
   spcline(2);
   b4="SUDDENLY THE MUSIC HAS STOPPED AND YOU LISTEN A VOICE....\nI AM STANDING 20 MILES AWAY FROM YOU\n";
   delline(b4,80);
   delay(1500);
   b5="I AM STANDING 6 MILES AWAY FROM YOU\n";
   delline(b5,80);
   delay(1500);
   b6="I AM STANDING 2 MILES AWAY FROM YOU\n";
   delline(b6,80);
   delay(1500);
   b7="I AM STANDING IN THE FRONT OF YOUR MAIN DOOR\n";
   delline(b7,80);
   delay(1500);
   b8="I AM STANDING IN HALL\n";
   delline(b8,80);
   delay(1500);
   spcline(2);
   b9="I AM STANDING BEHIND YOU....\n\n";
   delline(b9,80);
   delay(1500);
   cout<<"\t\tPLEASE TURN YOUR FACE BACK.";
  delay(3000);
  screen1:
  clrscr();
  spcline(2);
  b10="IN THIS SITUATION WHAT YOU WILL DO\n";
  delline(b10,80);
  delay(2000);
  spcline(3);
  cout<<"(a) I WILL TURN MY FACE.\n(b) I WILL SHOUT\n(c) I WILL NOT TURN\n(d) I WILL THROW THE PHONE BUT NOT TURN AROUND\n";
  spcline(2);
  cout<<"PLEASE TYPE YOUR CHOICE : ";
  gets(R1);
  if (R1[0]!='a'&&R1[0]!='b'&&R1[0]!='c'&&R1[0]!='d'&&R1[0]!='A'&&R1[0]!='B'&&R1[0]!='C'&&R1[0]!='D')
     {spcline(2);
       cout<<"INAPPROPRIATE FILL.";
       delay(1200);
       goto screen1;
      }
  delay(2000);
  cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
      icon(8);
      r2="II";
      icon2(r2);
      delay(3000);
  clrscr();
  spcline(1);
  b11="YOU ARE WALKING ON A PLATFORM IN A RAILWAY STATION AND TIME IS SOME 11:12 PM OF LATE NIGHT.\n";
  delline(b11,80);
  delay(1500);
  spcline(2);
  b12="THERE WAS NO ONE ON THAT PLATFORM BESIDE A TRAIN WHOSE NAME IS NOT DISPLAYING ON THE SCREEN AS WELL AS NO ONE IS ANOUNCING ABOUT IT.\n";
  delline(b12,80);
  delay(1500);
  spcline(2);
  b13="YOU HEARD A NOISE FROM ONE OF THE COACH....\nYOU START GOING TOWARD IT AND WHEN YOU OPEN THE DOOR OF THAT COACH YOU SEE...\n";
  delline(b13,80);
  delay(1500);
  spcline(2);
  b14="A WOMAN IS SITTING ON THE FLOOR AND HER FACE IS COVERED BY HER LONG HAIR.\n\n SHE IS BEHAVING VERY ABNORMAL. AND BESIDE HER THERE IS NO ONE IN THAT COACH....";
  delline(b14,80);
  delay(3000);
  screen2:
  clrscr();
  spcline(2);
  b15="IN THIS SITUATION WHAT YOU WILL DO...\n";
  delline(b15,80);
  spcline(2);
  cout<<"(a) I WILL GO THERE AND TRY TO TALK TO HER\n(b) I WILL SHOUT\n(c) I WILL IGNORE HER\n(d) I WILL LEAVE THAT PLATFORM\n";
  spcline(2);
  cout<<"PLEASE TYPE YOUR CHOICE : ";
  gets(R2);
  if (R2[0]!='a'&&R2[0]!='b'&&R2[0]!='c'&&R2[0]!='d'&&R2[0]!='A'&&R2[0]!='B'&&R2[0]!='C'&&R2[0]!='D')
     {spcline(2);
       cout<<"INAPPROPRIATE FILL.";
       delay(1200);
       goto screen2;
      }
  delay(2000);*/
  cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
      icon(8);
      r3="III";
      icon2(r3);
      delay(3000);
  clrscr();
  spcline(1);
  b16="YOU ARE WALKING ON A ROAD AND HAVING A LICENSED REVOLVER IN YOUR BAG WHICH YOU  ARE CARRYING...\n";
  delline(b16,80);
  delay(2000);
  spcline(1);
  b17="YOU CAN'T SEE ANY VEHICLE ON THAT ROAD TO A FAR DISTANCE.\nON THAT TIME   SOME DOGS SUDDENLY COME OUT FROM THE BUSHES AND SOURROUND YOU TO SOME DISTANCE...\n";
  delline(b17,80);
  delay(2000);
  spcline(2);
  b18="THEY START ROARING ON YOU,\nAND IN NERVOUSNES YOU TAKE OUT YOUR REVOLVER FROM YOUR BAG AND POINT IT TOWARD  THEM\n";
  delline(b18,80);
  delay(2000);
  spcline(1);
  b19="AND THEY START RUNNING TOWARD YOU....";
  delline(b19,80);
  delay(3000);
  screen3:
  clrscr();
  spcline(2);
  b20="IN THIS SITUATION WHAT YOU WILL DO...\n";
  delline(b20,80);
  spcline(2);
  cout<<"(a) I WILL SHOOT THEM\n(b) I WILL SHOOT IN AIR JUST TO THREAT THEM\n(c) I WILL START RUNNING AWAY FROM THEM\n(d) I WILL SHOOT MYSELF\n";
  spcline(2);
  cout<<"PLEASE TYPE YOUR CHOICE : ";
  gets(R3);
  if (R3[0]!='a'&&R3[0]!='b'&&R3[0]!='c'&&R3[0]!='d'&&R3[0]!='A'&&R3[0]!='B'&&R3[0]!='C'&&R3[0]!='D')
     {spcline(2);
       cout<<"INAPPROPRIATE FILL.";
       delay(1200);
       goto screen3;
      }

  hello:   //aydguyed
  delay(3000);
 // clrscr();
  /*b1="PLEASE WAIT WHILE WE CONNECT YOU TO A SPIRIT...";
  delline(b1,80);
  delay(1200);
  cout<<"\n\nLOADING APPLICATIONS\n";
  delay(1000);
  for(i=0;i<5;i++)
    {delay(300);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(90);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
    cout<<"\nOPENING ENGINE 1\n";

  for(i=0;i<5;i++)
    {delay(100);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(5);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
 cout<<"\nOPENING ENGINE 2\n";

  for(i=0;i<5;i++)
    {delay(8);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(10);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(5);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {delay(10);
     cout<<"-";
    }
 cout<<"\nCOLLECTING INFORMATION\n";
  delay(400);
  for(i=0;i<5;i++)
    {delay(100);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(8);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
    cout<<"\nCHECKING SORRROUNDING\n";
  delay(400);
  for(i=0;i<5;i++)
    {delay(50);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(8);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
 cout<<"\nNAVIGATING AREA\n";
  delay(400);
  for(i=0;i<5;i++)
    {delay(100);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(50);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
 cout<<"\nFINDING CONNECTION\n";
  delay(400);
  for(i=0;i<5;i++)
    {delay(100);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(8);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(10);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }

 cout<<"\nESTABLISHING CONNECTON\n";
  delay(1000);
  for(i=0;i<5;i++)
    {delay(100);
     cout<<"-";
       }
 for(i=0;i<5;i++)
    {delay(70);
     cout<<"-";
    }
 for(i=0;i<64;i++)
 {delay(100);
  cout<<"-";
 }
 for(i=0;i<5;i++)
    {cout<<"-";
    }
    }
  delay(2800);*/
 cleardevice();
}
 void engine3()
{clrscr();
 cout<<"hi";
 delay(1800);
 cleardevice();
}
