aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs
blob: 77f63b575e093f3b9edbaa21f0befcba3dc300c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
using System;
using System.Drawing;
using System.Media;
using System.Threading.Tasks;
using System.Windows.Forms;
using Histacom2.Engine;
using Histacom2.Engine.Template;

namespace Histacom2.OS.Win95.Win95Apps.Story
{
    public class Hack2 : object
    {
        static WindowManager wm = new WindowManager();

        public static async void StartObjective()
        {
            WinClassicTerminal Console = new WinClassicTerminal(true);
            Random r = new Random();
            WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true);
            
            Console.WriteLine("telnet> 185.152.46.51 Connecting...");
            await Task.Delay(2500);
            Console.WriteLine("telnet> 185.152.46.51 Connected.");
            await Task.Delay(2500);
            Console.WriteLine("telnet> 185.152.46.51 set hostname to '12padams'.");
            await Task.Delay(2000);
            Console.WriteLine("12padams> WHAT DO YOU THINK YOU'RE DOING??");
            await Task.Delay(3000);
            Console.WriteLine("12padams> First you hack my FTP server..");
            await Task.Delay(4500);
            Console.WriteLine("12padams> Then you download my secret Time Distorter program?");
            await Task.Delay(4000);
            Console.WriteLine("12padams> Oh, and I know you activated it.");
            await Task.Delay(4000);
            Console.WriteLine("12padams> I can see your screen right now..");
            await Task.Delay(5000);
            Console.WriteLine("12padams> Now, in about 2 minutes you think you're going to be able to travel to 1999.");
            await Task.Delay(3500);
            Console.WriteLine("12padams> Well, I am sorry but I just can't let you do that.");
            await Task.Delay(5000);
            Console.WriteLine("12padams> You see, I have LOTS of power over your computer.");
            await Task.Delay(3400);
            Console.WriteLine("12padams> Okay, let me show you how easy this is.");
            await Task.Delay(1500);
            Console.WriteLine("Command> Hide Start Button");
            TitleScreen.frm95.startbutton.Hide();
            await Task.Delay(3500);
            Console.WriteLine("12padams> See how easy that was?");
            await Task.Delay(3700);
            Console.WriteLine("12padams> Now watch this..");
            await Task.Delay(3000);
            TitleScreen.frm95.desktopicons.BackgroundImage = Properties.Resources.Win95Error;
            TitleScreen.frm95.BackgroundImage = null;
            await Task.Delay(3000);
            Console.WriteLine("12padams> Hahaha, having a few errors are we?");
            await Task.Delay(2500);
            Console.WriteLine("telnet> 104.27.135.159 Connecting...");
            await Task.Delay(2500);
            Console.WriteLine("telnet> 104.27.135.159 Connected.");
            await Task.Delay(2500);
            Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'.");
            await Task.Delay(3000);
            Console.WriteLine("The Hidden Hacker> Great, you found the software.");
            await Task.Delay(3700);
            Console.WriteLine("12padams> How dare you..");
            await Task.Delay(3500);
            Console.WriteLine($"The Hidden Hacker> Don't worry {SaveSystem.ProfileName}.");
            await Task.Delay(4500);
            Console.WriteLine("The Hidden Hacker> I have to say, good job for getting the Time Distorter.");
            await Task.Delay(4000);
            Console.WriteLine("12padams> The Hidden Hacker.. I thought my first punishment was enough to keep you away.");
            await Task.Delay(4500);
            Console.WriteLine("The Hidden Hacker> Well, now that I have uncovered your secret, I'm not just gonna go away.");
            await Task.Delay(3600);
            Console.WriteLine("12padams> If you don't go, I'll make you go!");
            await Task.Delay(3700);
            Console.WriteLine($"The Hidden Hacker> Hey {SaveSystem.ProfileName}, don't worry about 12padams. You're about to get away from all this.");
            await Task.Delay(3500);
            Console.WriteLine("The Hidden Hacker> Let me fix this..");
            await Task.Delay(2500);
            Console.WriteLine("Command> Show Start Button");
            TitleScreen.frm95.startbutton.Show();
            TitleScreen.frm95.desktopicons.BackgroundImage = null;
            await Task.Delay(2900);
            Console.WriteLine("12padams> OKAY, NOW YOU'VE DONE IT!");
            await Task.Delay(2500);
            Console.WriteLine("Command> Stop Timer");
            TitleScreen.frm95.distort.lblCountDown.Hide();
            await Task.Delay(3000);
            Console.WriteLine("12padams> I bet you didn't see that one coming..");
            await Task.Delay(3700);
            Console.WriteLine("The Hidden Hacker> Oh but I did..");
            await Task.Delay(5000);
            Console.WriteLine("The Hidden Hacker> I converted the stop function to the hide function when I logged on..");
            await Task.Delay(4200);
            Console.WriteLine("12padams> NO! That's impossible!");
            await Task.Delay(3000);
            Console.WriteLine("The Hidden Hacker> Oh, is it? Well, watch this!");
            TitleScreen.frm95.distort.Counter = 16;
            await Task.Delay(2000);
            Console.WriteLine("Command> Show Timer");
            TitleScreen.frm95.distort.lblCountDown.Show();
            await Task.Delay(3000);
            Console.WriteLine("The Hidden Hacker> And here's one more command for you to learn.");
            await Task.Delay(2000);
            Console.WriteLine("Command> Disconnect 12padams");
            await Task.Delay(2000);
            Console.WriteLine("telnet> 12padams Disconnected.");
            await Task.Delay(3000);
            Console.WriteLine($"The Hidden Hacker> Good luck {SaveSystem.ProfileName}! I'll see you in the future!");
            await Task.Delay(4000);

            while (TitleScreen.frm95.distort.Counter != 0) { }
            TitleScreen.frm95.distort.lblCountDown.Text = "Initiating Time Travel Sequence...";
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            await Task.Delay(100);
            Program.Invert(Console.cmdPrompt);
            app.Close();
            await Task.Delay(100);
            TitleScreen.frm95.taskbar.BackgroundImage = null;
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95.taskbar, false);
            await Task.Delay(100);
            TitleScreen.frm95.taskbar.Hide();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Hide();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Show();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Hide();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Show();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Hide();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Show();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Hide();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Show();
            await Task.Delay(100);
            TitleScreen.frm95.desktopicons.Hide();
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
            Program.Invert(TitleScreen.frm95, false);
            await Task.Delay(100);
            TitleScreen.frm95.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).BringToFront();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).maximizebutton.Enabled = false;
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).WindowState = FormWindowState.Maximized;
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).right.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).left.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottom.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).top.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottomleftcorner.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottomrightcorner.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).topleftcorner.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).toprightcorner.Hide();
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).Dock = DockStyle.Fill;
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).max = true;
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore;
            ((WinClassic)TitleScreen.frm95.distort.ParentForm).programtopbar.Hide();
            TitleScreen.frm95.distort.BackColor = Color.Black;
            TitleScreen.frm95.distort.btnGo.Hide();
            foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Silver;
            TitleScreen.frm95.distort.lblCountDown.Text = "Traveling...";

            Point start = TitleScreen.frm95.distort.lblTo.Location;
            Point end = new Point(TitleScreen.frm95.distort.lblDestYear.Location.X - TitleScreen.frm95.distort.lblTo.Width - 10, TitleScreen.frm95.distort.lblDestYear.Location.Y);
            int increment = (end.X - start.X) / 50;

            SoundPlayer sp = new SoundPlayer(Properties.Resources.distort1);
            sp.Play();
            await Task.Delay(1000);

            for (int i = 0; i < 50; i += 2)
            {
                TitleScreen.frm95.distort.lblTo.ForeColor = Color.White;
                TitleScreen.frm95.distort.lblTo.Location = new Point(TitleScreen.frm95.distort.lblTo.Location.X + increment, TitleScreen.frm95.distort.lblTo.Location.Y);
                await Task.Delay(100);
                TitleScreen.frm95.distort.lblTo.ForeColor = Color.Silver;
                TitleScreen.frm95.distort.lblTo.Location = new Point(TitleScreen.frm95.distort.lblTo.Location.X + increment, TitleScreen.frm95.distort.lblTo.Location.Y);
                await Task.Delay(100);
            }
            foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Gray;
            await Task.Delay(100);
            foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Black;
            await Task.Delay(2000);
            sp.Stop();

            SaveSystem.UpgradeFileSystem("98");
            SaveSystem.CurrentSave.CurrentOS = "98";
            SaveSystem.currentTheme = new Default98Theme();
            SaveSystem.CurrentSave.ThemeName = "default98";
            TitleScreen.frm95.distort.ParentForm.Close();
            foreach (Form frm in Application.OpenForms) if (frm is WinClassic) frm.Close();
            Program.title.StartGame();
            TitleScreen.frm95.Close();
            return;
        }
    }
}