using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Media; using Histacom2.Engine; using Histacom2.Engine.Template; using Histacom2.GlobalPrograms; namespace Histacom2.OS.Win98.Win98Apps { public partial class WebChat1999 : UserControl { WindowManager wm = new WindowManager(); SoundPlayer join = new SoundPlayer(Properties.Resources.AIMbuddyjoin); SoundPlayer leave = new SoundPlayer(Properties.Resources.AIMbuddyleave); SoundPlayer send = new SoundPlayer(Properties.Resources.AIMmessagesent); public SoundPlayer receive = new SoundPlayer(Properties.Resources.AIMmessagereceived); SoundPlayer file = new SoundPlayer(Properties.Resources.AIMfile); int chatStage = 0; public WebChat1999() { InitializeComponent(); } private void WebChat1999_Load(object sender, EventArgs e) { button5.Hide(); label5.Hide(); } private void button1_Click(object sender, EventArgs e) { if (txtscreenname.Text == "") { wm.StartInfobox95("Invalid Username", "Your username cannot be blank.", InfoboxType.Warning, InfoboxButtons.OK); return; } if (txtscreenname.Text.Length > 12) { wm.StartInfobox95("Invalid Username", "Your username needs to be less than 12 characters.", InfoboxType.Warning, InfoboxButtons.OK); return; } if (txtscreenname.Text.Contains(" ")) { wm.StartInfobox95("Invalid Username", "Your username cannot contain spaces.", InfoboxType.Warning, InfoboxButtons.OK); return; } if (txtscreenname.Text == "SkyHigh" | txtscreenname.Text == "rain49" | txtscreenname.Text == "12padams") { wm.StartInfobox95("Invalid Username", "That username is already taken.", InfoboxType.Warning, InfoboxButtons.OK); return; } ParentForm.AcceptButton = button2; TitleScreen.username = txtscreenname.Text; login.Hide(); listBox1.Items.Add(TitleScreen.username); listBox1.Items.Add("ThatDude"); history.AppendText("System: " + TitleScreen.username + " has joined the chat." + Environment.NewLine); join.Play(); chatScript1(); } private async void chatScript1() { await Task.Delay(2000); history.AppendText("ThatDude: oh hello!" + Environment.NewLine); receive.Play(); await Task.Delay(5500); history.AppendText("ThatDude: just wondering, are you that guy who travelled thru time with nothing but a computer?" + Environment.NewLine); receive.Play(); await Task.Delay(250); chatStage = 1; await Task.Delay(7000); if (chatStage == 1) { chatStage = 4; chatScript2(); } } private async void chatScript2() { if (chatStage == 2) { await Task.Delay(3000); history.AppendText("ThatDude: omg really??" + Environment.NewLine); receive.Play(); await Task.Delay(4000); history.AppendText("ThatDude: hold on, let me check your ip to make sure" + Environment.NewLine); receive.Play(); } else if (chatStage == 3) { await Task.Delay(2800); history.AppendText("ThatDude: oh.." + Environment.NewLine); receive.Play(); await Task.Delay(5500); history.AppendText("ThatDude: lemme just check your ip quick to find out who ya are tho" + Environment.NewLine); receive.Play(); } else { await Task.Delay(3300); history.AppendText("ThatDude: hold on, let me just check your ip real quick" + Environment.NewLine); receive.Play(); } await Task.Delay(5000); history.AppendText("ThatDude: YES! ITS YOU!" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("ThatDude: hey just wait a sec here" + Environment.NewLine); receive.Play(); await Task.Delay(3000); listBox1.Items.Remove("ThatDude"); listBox1.Items.Add("HiddenHacker"); history.AppendText("System: ThatDude is now known as HiddenHacker." + Environment.NewLine); file.Play(); await Task.Delay(5000); history.AppendText("HiddenHacker: yeah, sorry bout the fake name" + Environment.NewLine); receive.Play(); await Task.Delay(5000); history.AppendText("HiddenHacker: anyways, ive waited about a whole year to see if that time distorter worked" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("HiddenHacker: and it looks like it worked" + Environment.NewLine); receive.Play(); await Task.Delay(5000); history.AppendText("HiddenHacker: now, after you left 1998, 12padams tried to attack me, but closed my telnet before he could" + Environment.NewLine); receive.Play(); await Task.Delay(2500); history.AppendText("HiddenHacker: since then, ive been in hiding" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("HiddenHacker: lately, ive been hiding in this webchat" + Environment.NewLine); receive.Play(); await Task.Delay(4000); history.AppendText("HiddenHacker: because he'll never think to look in his own app!" + Environment.NewLine); receive.Play(); await Task.Delay(2000); listBox1.Items.Add("12padams"); history.AppendText("System: 12padams has joined the chat." + Environment.NewLine); join.Play(); await Task.Delay(2500); history.AppendText("12padams: at last i found you!" + Environment.NewLine); receive.Play(); await Task.Delay(1500); history.AppendText("HiddenHacker: oh CRAP!" + Environment.NewLine); receive.Play(); await Task.Delay(1500); history.AppendText("HiddenHacker: quick! lets logout!" + Environment.NewLine); receive.Play(); await Task.Delay(1250); history.AppendText("12padams: oh come on guys.." + Environment.NewLine); receive.Play(); await Task.Delay(1750); history.AppendText("HiddenHacker: no! i cant close the webchat!" + Environment.NewLine); receive.Play(); await Task.Delay(2500); history.AppendText("12padams: please just calm down, im not angry with you" + Environment.NewLine); receive.Play(); await Task.Delay(1750); history.AppendText("HiddenHacker: wait, really?" + Environment.NewLine); receive.Play(); await Task.Delay(1100); history.AppendText("12padams: yea" + Environment.NewLine); receive.Play(); await Task.Delay(2750); history.AppendText($"12padams: infact, id like to thank you for getting my time distorter, {SaveSystem.ProfileName}" + Environment.NewLine); receive.Play(); await Task.Delay(4000); history.AppendText("12padams: because if you hadn't done that, i would have completely forgot about it" + Environment.NewLine); receive.Play(); await Task.Delay(1750); history.AppendText($"HiddenHacker: dont forget that i told {SaveSystem.ProfileName} that the time distorter existed!" + Environment.NewLine); receive.Play(); await Task.Delay(2000); history.AppendText("12padams: right, right :P" + Environment.NewLine); receive.Play(); await Task.Delay(5000); history.AppendText("12padams: anyways, since you both now know about the time distorter, i say we work together as a team" + Environment.NewLine); receive.Play(); await Task.Delay(2000); history.AppendText("HiddenHacker: a team?" + Environment.NewLine); receive.Play(); await Task.Delay(1100); history.AppendText("12padams: yea" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("12padams: ill be the developer, making new versions of the time distorter" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText($"12padams: {SaveSystem.ProfileName} will be the tester, using the software to travel thru time" + Environment.NewLine); receive.Play(); await Task.Delay(2500); history.AppendText("12padams: and hiddenhacker, you will be the overseer" + Environment.NewLine); receive.Play(); await Task.Delay(2500); history.AppendText("HiddenHacker: okay.. what does that mean?" + Environment.NewLine); receive.Play(); await Task.Delay(4500); history.AppendText($"12padams: you have to monitor what happens with {SaveSystem.ProfileName}'s distorter and let me know when it arrives safely" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("HiddenHacker: wait.. does that mean we are going to time travel again?" + Environment.NewLine); receive.Play(); await Task.Delay(1100); history.AppendText("12padams: yep!" + Environment.NewLine); receive.Play(); await Task.Delay(4000); history.AppendText("12padams: we cant use 0.1 anymore tho, since it only works in 1998 and only takes you to 1999" + Environment.NewLine); receive.Play(); await Task.Delay(4000); history.AppendText("12padams: thankfully, i made a new version that works in any year and takes you to 2000" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText($"12padams: so yeah, {SaveSystem.ProfileName} is gonna test 0.2, the new version" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("HiddenHacker: why does he need to try it out again? it should work fine, just like 0.1" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("12padams: it may not, though. didnt you read my article?" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("HiddenHacker: uhh, i cant. you blocked me from seeing your site" + Environment.NewLine); receive.Play(); await Task.Delay(2500); history.AppendText("12padams: oh right, sorry about that!" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("12padams: basically, the article was about the y2k bug" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("12padams: its where computers think that the year 2000 is actually 1900" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("12padams: that could drastically affect our method of time travel" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("HiddenHacker: and you want him to risk his life just to see the effects?" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("12padams: its the only way to make sure that time travel works properly" + Environment.NewLine); receive.Play(); await Task.Delay(4500); history.AppendText("HiddenHacker: ok, so what do i need to do again?" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText($"12padams: as i said before, make sure that {SaveSystem.ProfileName} arrives safely in 2000" + Environment.NewLine); receive.Play(); await Task.Delay(3000); history.AppendText("HiddenHacker: but what if he doesnt make it?" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("12padams: we will cross that bridge when we come to it" + Environment.NewLine); receive.Play(); await Task.Delay(3500); history.AppendText("12padams: anyways, im gonna upload 0.2 right now" + Environment.NewLine); receive.Play(); await Task.Delay(4500); history.AppendText("System: File \"tdistortv2\" has been uploaded." + Environment.NewLine); label5.Show(); button5.Show(); file.Play(); await Task.Delay(4500); history.AppendText($"12padams: go ahead and install it {SaveSystem.ProfileName}, we'll wait" + Environment.NewLine); receive.Play(); } private void button2_Click(object sender, EventArgs e) { string msg = typechat.Text; if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine); typechat.Text = ""; send.Play(); switch (chatStage) { case 1: // td asks are you the time distorter guy if (msg.Contains("yes") || msg.Contains("yea") || msg.Contains("yep") || msg.Contains("thats me") || msg.Contains("that's me")) chatStage = 2; else if (msg.Contains("no") || msg.Contains("nope") || msg.Contains("not")) chatStage = 3; else chatStage = 4; chatScript2(); break; } } private void button5_Click(object sender, EventArgs e) { WinClassicDownloader opendownload = new WinClassicDownloader(); WindowManager wm = new WindowManager(); wm.Init(opendownload, "Downloader", null, false, true); opendownload.appName.Text = "Downloading: Time Distorter 0.2"; opendownload.amountToDL = 42; } } }