aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs55
1 files changed, 22 insertions, 33 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 85b14f5..293d4bb 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -21,25 +21,15 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
static bool devMode = true;
// This is the very first story script!
- public static void startObjective()
+ public static void StartObjective()
{
System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
-
- WinClassicTerminal Console = new WinClassicTerminal(true);
- WinClassic app = wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
-
- Console.WriteLine("telnet> 104.27.135.159 Connecting...");
-
tmr.Interval = 1;
tmr.Tick += new EventHandler(CheckIfSoundFinished);
if (devMode == true)
{
- Thread contObjective = new Thread(continueObjective);
-
- app.Close();
-
- contObjective.Start();
+ ContinueObjective();
}
else
{
@@ -48,40 +38,39 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
}
}
- public static void continueObjective()
+ public static async void ContinueObjective()
{
WinClassicTerminal Console = new WinClassicTerminal(true);
- wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
-
- Application.DoEvents();
+ WinClassic app = wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
+ Console.WriteLine("telnet> 104.27.135.159 Connecting...");
+ await Task.Delay(2500);
Console.WriteLine("telnet> 104.27.135.159 Connected.");
- Thread.Sleep(2500);
+ await Task.Delay(2500);
Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'.");
- Thread.Sleep(2500);
+ await Task.Delay(2500);
Console.WriteLine("TheHiddenHacker> I see you have access to 12padams.com.");
- Thread.Sleep(4500);
+ await Task.Delay(4500);
Console.WriteLine("TheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site.");
- Thread.Sleep(6000);
+ await Task.Delay(6000);
Console.WriteLine("TheHiddenHacker> 12padams has a secret, and I need you to help me find it.");
- Thread.Sleep(3500);
+ await Task.Delay(3500);
Console.WriteLine("TheHiddenHacker> I was snooping around his website, when he blacklisted my IP address.");
- Thread.Sleep(4000);
- Console.WriteLine("TheHiddenHacker> While I was serching, I noticed a file that I didn't have permission to download. I need you to get it for me.");
- Thread.Sleep(6500);
- Console.WriteLine("TheHiddenHacker> First, I'll need you to download an FTP client, avalible under the software section of 12padams' website.");
- Thread.Sleep(5000);
+ await Task.Delay(4000);
+ Console.WriteLine("TheHiddenHacker> While I was searching, I noticed a file that I didn't have permission to download. I need you to get it for me.");
+ await Task.Delay(6500);
+ Console.WriteLine("TheHiddenHacker> First, I'll need you to download an FTP client, available under the software section of 12padams' website.");
+ await Task.Delay(5000);
Console.WriteLine("TheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password.");
- Thread.Sleep(4500);
+ await Task.Delay(4500);
Console.WriteLine("TheHiddenHacker> The hostname is 172.68.119.42, and the username is most likely 12padams. I'm not too sure what the password is, however.");
- Thread.Sleep(3500);
+ await Task.Delay(3500);
Console.WriteLine("TheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website.");
- Thread.Sleep(3500);
+ await Task.Delay(3500);
Console.WriteLine("TheHiddenHacker> I don't have much time to talk - I'd quickly copy down those details into Notepad before this Terminal gets closed.");
- Application.DoEvents();
-
- Thread.Sleep(36000);
+ await Task.Delay(36000);
+ app.Close();
}
public static void CheckIfSoundFinished(Object sender, EventArgs e)
@@ -91,7 +80,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
// Continue from where we were
System.Windows.Forms.Timer trm = sender as System.Windows.Forms.Timer;
- continueObjective();
+ ContinueObjective();
trm.Stop();
}
}