diff options
| -rw-r--r-- | PortEngine/StorylineAPI.cs | 108 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.Designer.cs | 16 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.cs | 10 |
3 files changed, 71 insertions, 63 deletions
diff --git a/PortEngine/StorylineAPI.cs b/PortEngine/StorylineAPI.cs index a109c8b..90047d0 100644 --- a/PortEngine/StorylineAPI.cs +++ b/PortEngine/StorylineAPI.cs @@ -31,124 +31,124 @@ namespace PortEngine public class StorylineAPI { - public static void StartHijackEvent1(TextBox txtHijack1) + public async static void StartHijackEvent1(TextBox txtHijack1) { if (GeneralAPI.HijackStorylineState == 1) { - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("PortOS is now booting..." + Environment.NewLine); - Thread.Sleep(5000); + await Task.Delay(5000); txtHijack1.AppendText("SYSTEM ERROR: HIJACKED" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Incoming connection..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G is now connected..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: WHO ARE YOU???" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: HOW DID YOU FIND THIS OS?!?!?!?!?" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: SINCE YOU FOUND THIS COMPUTER" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: PREPARE FOR YOUR COMPUTER TO DIE!!!!!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G is deleting /sys/..." + Environment.NewLine); - Thread.Sleep(1000); + await Task.Delay(1000); txtHijack1.AppendText("Incoming connection..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("??? is now Connected..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("???: Hey there! Let me help you…" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("??? interupted the deletion of /sys/" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("??? is restoring /sys/" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: GAH! I CAN’T DELETE ANYTHING" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("/sys/ is restored..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G: WHO ARE YO-" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G has been kicked by ???" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("A.H.G disconnected…" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("???: Sorry about that let me reveal myself..." + Environment.NewLine); - Thread.Sleep(1000); + await Task.Delay(1000); txtHijack1.AppendText("??? is now known as Adam…" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Adam: I am Adam and I am one of the developers of PortOS!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Adam: As you know, A.H.G is a group of hackers that destroys PortOS computers." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Adam: This computer will shortly reboot and redirected to the desktop…" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Adam: Also make sure to open Chatter once you get to the desktop!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Adam disconnected..." + Environment.NewLine); - Thread.Sleep(5000); + await Task.Delay(5000); txtHijack1.Clear(); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("PortOS is now booting..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("GUI Driver has been found!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Starting Desktop..." + Environment.NewLine); - Thread.Sleep(3000); + await Task.Delay(3000); } else { txtHijack1.AppendText("PortOS is now booting..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("GUI Driver has been found!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtHijack1.AppendText("Starting Desktop..." + Environment.NewLine); - Thread.Sleep(3000); + await Task.Delay(3000); } } - public static void StartChatterEvent1(TextBox txtSentMessageDump) + public async static void StartChatterEvent1(TextBox txtSentMessageDump) { if (GeneralAPI.ChatterStorylineState == 1) { txtSentMessageDump.AppendText("Adam has entered the channel..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Hey there user!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> You need to set a name so I know who you are." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Open the settings application to change your username using the intuitive interface presented to you." + Environment.NewLine); - Thread.Sleep(10000); + await Task.Delay(10000); txtSentMessageDump.AppendText("<Adam> Great!" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Hello, " + GeneralAPI.PlayerName + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> If you open your app launcher, there is an application called the 'QuantumNet Browser'" + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> The QuantumNet is not a normal type of internet connection." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> It protects your privacy and has custom web-pages." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Think of it like the deep web, but, deeper." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> It does not use the normal domains used with the World Wide Web, it uses specially formatted domains." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Your computer seems to come with the best subscription out there of the QuantumNet. To check your subscription information, open the QuantumNet browser and type 'qt.quantumisp/home'" + Environment.NewLine); - Thread.Sleep(15000); + await Task.Delay(15000); txtSentMessageDump.AppendText("<Adam> The domain names are pretty much a mixed version of the ones you would see on the normal Internet." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Now, I need to talk about security and power. These will be important things when you go on with your quests or future endeavors inside of the QuantumNet." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Malwarebits is a very useful QuantumSite to visit. It will allow you to upgrade those things. To do this, head to 'qt.malwarebits/home'" + Environment.NewLine); - Thread.Sleep(15000); + await Task.Delay(15000); txtSentMessageDump.AppendText("<Adam> To upgrade these, you will need to earn HackPoints. The easiest way to do this is to play games." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> Anyways, I will see you... later..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("<Adam> I need to work on... something else..." + Environment.NewLine); - Thread.Sleep(2000); + await Task.Delay(2000); txtSentMessageDump.AppendText("Adam has disconnected from the channel. " + Environment.NewLine); } } diff --git a/Project Ports/hijackScreen.Designer.cs b/Project Ports/hijackScreen.Designer.cs index c605dfb..c251ca7 100644 --- a/Project Ports/hijackScreen.Designer.cs +++ b/Project Ports/hijackScreen.Designer.cs @@ -30,6 +30,7 @@ { this.hijackPanel = new System.Windows.Forms.Panel(); this.txtHijack = new System.Windows.Forms.TextBox(); + this.btnSkipHijack = new System.Windows.Forms.Button(); this.hijackPanel.SuspendLayout(); this.SuspendLayout(); // @@ -39,6 +40,7 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.hijackPanel.BackColor = System.Drawing.Color.Black; + this.hijackPanel.Controls.Add(this.btnSkipHijack); this.hijackPanel.Controls.Add(this.txtHijack); this.hijackPanel.Location = new System.Drawing.Point(0, 0); this.hijackPanel.Name = "hijackPanel"; @@ -55,13 +57,24 @@ this.txtHijack.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtHijack.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtHijack.ForeColor = System.Drawing.Color.White; - this.txtHijack.Location = new System.Drawing.Point(15, 12); + this.txtHijack.Location = new System.Drawing.Point(12, 12); this.txtHijack.Multiline = true; this.txtHijack.Name = "txtHijack"; this.txtHijack.ReadOnly = true; this.txtHijack.Size = new System.Drawing.Size(957, 547); this.txtHijack.TabIndex = 3; // + // btnSkipHijack + // + this.btnSkipHijack.Font = new System.Drawing.Font("Consolas", 10F); + this.btnSkipHijack.Location = new System.Drawing.Point(880, 531); + this.btnSkipHijack.Name = "btnSkipHijack"; + this.btnSkipHijack.Size = new System.Drawing.Size(103, 37); + this.btnSkipHijack.TabIndex = 4; + this.btnSkipHijack.Text = "Skip"; + this.btnSkipHijack.UseVisualStyleBackColor = true; + this.btnSkipHijack.Click += new System.EventHandler(this.btnSkipHijack_Click); + // // hijackScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -83,5 +96,6 @@ private System.Windows.Forms.Panel hijackPanel; private System.Windows.Forms.TextBox txtHijack; + private System.Windows.Forms.Button btnSkipHijack; } }
\ No newline at end of file diff --git a/Project Ports/hijackScreen.cs b/Project Ports/hijackScreen.cs index e8d4168..fca9070 100644 --- a/Project Ports/hijackScreen.cs +++ b/Project Ports/hijackScreen.cs @@ -40,19 +40,13 @@ namespace Project_Ports private void hijackScreen_Load(object sender, EventArgs e) { - StorylineAPI.StartHijackEvent1(txtHijack); - Desktop desktop = new Desktop(); - Properties.Settings.Default.hijacked = false; - desktop.Show(); - this.Close(); + StorylineAPI.StartHijackEvent1(txtHijack); } - private void button1_Click(object sender, EventArgs e) + private void btnSkipHijack_Click(object sender, EventArgs e) { Desktop desktop = new Desktop(); - Properties.Settings.Default.hijacked = false; desktop.Show(); - this.Close(); } } } |
