diff options
| author | lempamo <[email protected]> | 2017-06-20 17:21:27 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-06-20 17:21:27 -0400 |
| commit | fc728100a39bff88215b0b21602afbda9ff6b00b (patch) | |
| tree | 5d99edd1c5320dc47872a829306a02641577543c /TimeHACK.Main/OS/Win95/Win95Apps/Story | |
| parent | e83df06641d130fb979b562ab74e284f5952c9e0 (diff) | |
| parent | ffc4a480f23e38d58a3b4c940e3045237835a342 (diff) | |
| download | histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.tar.gz histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.tar.bz2 histacom2-fc728100a39bff88215b0b21602afbda9ff6b00b.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 77 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs | 15 |
2 files changed, 62 insertions, 30 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs index 4a2c988..38962fe 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs @@ -7,34 +7,81 @@ using System.Media; using System.Text; using System.Threading; using System.Threading.Tasks; +using System.Windows.Forms; using TimeHACK.Engine; namespace TimeHACK.OS.Win95.Win95Apps.Story { - class Hack1 : NormalHack + static class Hack1 : Object { - WinClassicTerminal term = new WinClassicTerminal(); - WindowManager wm = new WindowManager(); - - + static WinClassicTerminal Console = new WinClassicTerminal(); + static WindowManager wm = new WindowManager(); + static Boolean ended = false; + static Thread soundThread = new Thread(dialup_sound_play); + static Boolean devMode = true; // This is the very first story script! - public void startObjective() + public static void startObjective() { - - wm.startWin95(term, "MS-DOS Prompt", null, true, true); - term.WriteLine("192.168.0.1 Connecting..."); - Thread soundThread = new Thread(dialup_sound_play); - soundThread.Start(); - soundThread.Join(); - term.WriteLine("192.168.0.1 Connected."); + System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer(); + + 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) + { + continueObjective(); + } + else + { + soundThread.Start(); + tmr.Start(); + } } - public void dialup_sound_play() + public static void continueObjective() + { + Console.WriteLine("\ntelnet> 104.27.135.159 Connected."); + Thread.Sleep(2500); + Console.WriteLine("\ntelnet> 104.27.135.159 set hostname to 'TheHiddenHacker'."); + Thread.Sleep(2500); + Console.WriteLine("\nTheHiddenHacker> I see you have access to 12padams.com."); + Thread.Sleep(4500); + Console.WriteLine("\nTheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site."); + Thread.Sleep(6000); + Console.WriteLine("\nTheHiddenHacker> 12padams has a secret, and I need you to help me find it."); + Thread.Sleep(3500); + Console.WriteLine("\nTheHiddenHacker> I was snooping around his website, when he blacklisted my IP address."); + Thread.Sleep(4000); + Console.WriteLine("\nTheHiddenHacker> 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("\nTheHiddenHacker> First, I'll need you to download an FTP client, avalible under the software section of 12padams' website."); + Thread.Sleep(5000); + Console.WriteLine("\nTheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password."); + Thread.Sleep(4500); + Console.WriteLine("\nTheHiddenHacker> 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); + Console.WriteLine("\nTheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website."); + } + + public static void CheckIfSoundFinished(Object sender, EventArgs e) { - SoundPlayer dialup_sound; + if (soundThread.IsAlive == false) + { + // Continue from where we were + System.Windows.Forms.Timer trm = sender as System.Windows.Forms.Timer; + continueObjective(); + trm.Stop(); + } + } + + public static void dialup_sound_play() + { + SoundPlayer dialup_sound; // Play Dial-up Sound Stream audio = Properties.Resources.modem_dial; dialup_sound = new SoundPlayer(audio); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs deleted file mode 100644 index b5c63a6..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TimeHACK.OS.Win95.Win95Apps.Story -{ - class NormalHack - { - - } -} |
