public override bool CanUseItem(Player player) { if (Main.netMode > 0) { if (Main.netMode == NetmodeID.MultiplayerClient) { Hellion hell = new Hellion(); hell.HellionTaunt("This fight is not possible in Multiplayer, comeback in Single Player"); } return(false); } if (Hellion.GetHellion() == null && !IdgNPC.bossAlive && SGAWorld.downedSPinky && SGAWorld.downedCratrosityPML && SGAWorld.downedWraiths > 3 && NPC.CountNPCS(mod.NPCType("HellionMonolog")) < 1) { if (!Main.expertMode) { Hellion hell = new Hellion(); hell.HellionTaunt("What makes you think I'm going to challenge a NORMAL difficulty player? You shouldn't even have this item, cheater..."); return(false); } return(base.CanUseItem(player)); } else { return(false); } }
public override bool CanUseItem(Player player) { if (Hellion.GetHellion() == null && !IdgNPC.bossAlive && SGAWorld.downedSPinky && SGAWorld.downedCratrosityPML && SGAWorld.downedWraiths > 3 && NPC.CountNPCS(mod.NPCType("HellionMonolog")) < 1) { if (!Main.expertMode) { Hellion hell = new Hellion(); hell.HellionTaunt("What makes you think I'm going to challenge a NORMAL difficulty player? You shouldn't even have this item, cheater..."); return(false); } return(true); } else { return(false); } }
public override void PostUpdate() { if ((Main.netMode < 1 || Main.myPlayer == 0) && Main.expertMode) { NightmareHardcore = Main.LocalPlayer.GetModPlayer <SGAPlayer>().nightmareplayer ? 1 : 0; } WorldIsTin = (WorldGen.CopperTierOre == 7 ? false : true); Items.Glowrock.DoFallenSpaceRocks(); if (Main.dayTime == true) { harbingercounter = 0; } if (NPC.CountNPCS(NPCID.Golem) > 0 && SGAConfig.Instance.GolemImprovement) { golemchecker = 1; if (NPC.CountNPCS(mod.NPCType("SGAGolemBoss")) < 1) { NPC myowner = Main.npc[NPC.FindFirstNPC(NPCID.Golem)]; NPC.NewNPC((int)myowner.position.X, (int)myowner.position.Y, mod.NPCType("SGAGolemBoss")); //Main.NewText("Test: modded golem npc spawned", 25, 25, 80); } } else { golemchecker = 0; } harbingercounter += 1; if (NPC.downedAncientCultist) { stolecrafting += 1; } questvars[11] = Math.Max(questvars[11] - 1, 0); if (questvars[10] > 100 && questvars[10] < 1000) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 250) { hellinstance.HellionTaunt("..."); } if (questvars[10] == 400) { hellinstance.HellionTaunt("I see..."); } if (questvars[10] == 600) { hellinstance.HellionTaunt("A new challenger rises..."); } if (questvars[10] == 800) { hellinstance.HellionTaunt("Curious..."); } } if (questvars[10] > 1100 && questvars[10] < 2300) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 1200) { hellinstance.HellionTaunt("Another emmessary..."); } if (questvars[10] == 1400) { hellinstance.HellionTaunt("Fallen. hmp...?"); } if (questvars[10] == 1600) { hellinstance.HellionTaunt("The dragon?"); } if (questvars[10] == 1800) { hellinstance.HellionTaunt("'Planets.System.FindDraken'"); } if (questvars[10] == 2000) { hellinstance.HellionTaunt("Who is this who is slaying my emissaries?"); } if (questvars[10] == 2200) { hellinstance.HellionTaunt("No matter... We'll be meeting soon enough..."); } } if (questvars[10] > 2400 && questvars[10] < 3750) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 2400) { hellinstance.HellionTaunt("There is no mistake"); } if (questvars[10] == 2600) { hellinstance.HellionTaunt("the failures found the dragon"); } if (questvars[10] == 2800) { hellinstance.HellionTaunt("You there, human"); } if (questvars[10] == 3000) { hellinstance.HellionTaunt("Hand over the dragon, and I'll spare your world"); } if (questvars[10] == 3200) { hellinstance.HellionTaunt("After all, we're old acquaintances"); } if (questvars[10] == 3400) { hellinstance.HellionTaunt("And thanks to the incompetence of my minions, my mission will finally be complete"); } if (questvars[10] == 3600) { hellinstance.HellionTaunt("I'm sure your dragon will have something to say about this"); } if (questvars[10] == 3700) { Main.PlaySound(29, -1, -1, 105, 1f, -0.6f); hellinstance.HellionTaunt("I'll be waiting..."); } } if (stolecrafting == -400) { Idglib.Chat("Bet you were expecting him to drop an Ancient Manipulator huh?", 25, 25, 80); } if (stolecrafting == -200) { Idglib.Chat("Welp, we stole that from him, come fight us if you want it", 25, 25, 80); } if (stolecrafting == -50) { Idglib.Chat("We want our wraith core fragments back you son of a bitch...", 25, 25, 80); } }
public override void PostUpdate() { if ((Main.netMode < 1 || Main.myPlayer == 0) && Main.expertMode) { NightmareHardcore = Main.LocalPlayer.GetModPlayer <SGAPlayer>().nightmareplayer ? 1 : 0; } WorldIsTin = (WorldGen.CopperTierOre == 7 ? false : true); SGAWorld.modtimer += 1; if (Main.dayTime == true) { harbingercounter = 0; } if (NPC.CountNPCS(NPCID.Golem) > 0 && SGAConfig.Instance.GolemImprovement) { golemchecker = 1; if (NPC.CountNPCS(mod.NPCType("SGAGolemBoss")) < 1) { NPC myowner = Main.npc[NPC.FindFirstNPC(NPCID.Golem)]; NPC.NewNPC((int)myowner.position.X, (int)myowner.position.Y, mod.NPCType("SGAGolemBoss")); //Main.NewText("Test: modded golem npc spawned", 25, 25, 80); } } else { golemchecker = 0; } harbingercounter += 1; if (NPC.downedAncientCultist) { stolecrafting += 1; } if (Main.netMode < 1) { if (harbingercounter == 5) { if (Main.rand.Next(0, 10) < 5 && bossprgressor == 1 && downedHarbinger == false && DD2Event.DownedInvasionT3 && NPC.downedMartians) { harbingercounter = -600; Idglib.Chat("You feel a darker presence watching over you...", 0, 0, 75); } } if (harbingercounter == -5) { harbingercounter = 6; SGAmod.CalamityNoRevengenceNoDeathNoU(); NPC.SpawnOnPlayer(Main.rand.Next(0, Main.PlayerList.Count), mod.NPCType("Harbinger")); } } questvars[11] = Math.Max(questvars[11] - 1, 0); if (questvars[10] > 100 && questvars[10] < 1000) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 250) { hellinstance.HellionTaunt("..."); } if (questvars[10] == 400) { hellinstance.HellionTaunt("I see..."); } if (questvars[10] == 600) { hellinstance.HellionTaunt("A new challenger rises..."); } if (questvars[10] == 800) { hellinstance.HellionTaunt("Curious..."); } } if (questvars[10] > 1100 && questvars[10] < 2300) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 1200) { hellinstance.HellionTaunt("Another emmessary..."); } if (questvars[10] == 1400) { hellinstance.HellionTaunt("Fallen. hmp...?"); } if (questvars[10] == 1600) { hellinstance.HellionTaunt("The dragon?"); } if (questvars[10] == 1800) { hellinstance.HellionTaunt("'Planets.System.FindDraken'"); } if (questvars[10] == 2000) { hellinstance.HellionTaunt("Who is this who is slaying my emissaries?"); } if (questvars[10] == 2200) { hellinstance.HellionTaunt("No matter... We'll be meeting soon enough..."); } } if (questvars[10] > 2400 && questvars[10] < 3750) { questvars[10] += 1; questvars[11] = 120; Hellion hellinstance = new Hellion(); if (questvars[10] == 2400) { hellinstance.HellionTaunt("There is no mistake"); } if (questvars[10] == 2600) { hellinstance.HellionTaunt("the failures found the dragon"); } if (questvars[10] == 2800) { hellinstance.HellionTaunt("You there, human"); } if (questvars[10] == 3000) { hellinstance.HellionTaunt("Hand over the dragon, and I'll spare your world"); } if (questvars[10] == 3200) { hellinstance.HellionTaunt("After all, we're old acquaintances"); } if (questvars[10] == 3400) { hellinstance.HellionTaunt("And thanks to the incompetence of my minions, my mission will finally be complete"); } if (questvars[10] == 3600) { hellinstance.HellionTaunt("I'm sure your dragon will have something to say about this"); } if (questvars[10] == 3700) { Main.PlaySound(29, -1, -1, 105, 1f, -0.6f); hellinstance.HellionTaunt("I'll be waiting..."); } } if (stolecrafting == -400) { Idglib.Chat("Bet you were expecting him to drop an Ancient Manipulator huh?", 25, 25, 80); } if (stolecrafting == -200) { Idglib.Chat("Welp, we stole that from him, come fight us if you want it", 25, 25, 80); } if (stolecrafting == -50) { Idglib.Chat("We want our wraith core fragments back you son of a bitch...", 25, 25, 80); } if (tf2quest == 1) { tf2questcounter = tf2questcounter + 1; if (tf2questcounter == 60) { SgaLib.Chat("<Administrator> Greeting mercenary", 150, 150, 150); } if (tf2questcounter == 150) { SgaLib.Chat("<Administrator> You have just agreed to our contract terms", 150, 150, 150); } if (tf2questcounter == 280) { SgaLib.Chat("<Administrator> To fight for our new division, Terraria Co", 150, 150, 150); } if (tf2questcounter == 510) { SgaLib.Chat("<Administrator> I'll spare you the details, other than your first job", 150, 150, 150); } if (tf2questcounter == 640) { SgaLib.Chat("<Administrator> Kill a total of 1000 enemies; prove your even worth looking at", 150, 150, 150); } if (tf2questcounter == 770) { SgaLib.Chat("<Administrator> When your done, check your contracter. DO NOT Disapointment me...", 150, 150, 150); } if (tf2questcounter == 850) { tf2quest = 2; tf2questcounter = 0; } } if (tf2quest == 3) { tf2questcounter = tf2questcounter + 1; if (tf2questcounter == 60) { SgaLib.Chat("<Administrator> Very good", 150, 150, 150); } if (tf2questcounter == 150) { SgaLib.Chat("<Administrator> You've proven your, somewhat confident in your work", 150, 150, 150); } if (tf2questcounter == 280) { SgaLib.Chat("<Administrator> Now then, if I am to take back Mann Co I need resources", 150, 150, 150); } if (tf2questcounter == 510) { SgaLib.Chat("<Administrator> Most effectively... Australium...", 150, 150, 150); } if (tf2questcounter == 640) { SgaLib.Chat("<Administrator> I have added functions to your contracker, it will reveal veins of Australium in this world when used", 150, 150, 150); } if (tf2questcounter == 770) { SgaLib.Chat("<Administrator> You need to have 100 Gold Ingots in your inventory for it to work; it will not take Platinum!", 150, 150, 150); } if (tf2questcounter == 900) { SgaLib.Chat("<Administrator> However accessing this function may attract unwanted attention too early, I'm sure it's nothing you can't handle", 150, 150, 150); } if (tf2questcounter == 1030) { SgaLib.Chat("<Administrator> When your done, check your contracter. Try not to be a Disapointment.", 150, 150, 150); } if (tf2questcounter == 1050) { tf2quest = 4; tf2questcounter = 0; } } if (tf2quest == 5) { tf2questcounter = tf2questcounter + 1; if (tf2questcounter == 60) { SgaLib.Chat("<Administrator> Australium... A bountiful ammount of 100 veins", 150, 150, 150); } if (tf2questcounter == 150) { SgaLib.Chat("<Administrator> My plan is going accordingly", 150, 150, 150); } if (tf2questcounter == 280) { SgaLib.Chat("<Administrator> I think your due a promotion, to Commando", 150, 150, 150); } if (tf2questcounter == 510) { SgaLib.Chat("<Administrator> You have been granted knowledge of how to make higher tier items, including more TF2 emblems", 150, 150, 150); } if (tf2questcounter == 640) { SgaLib.Chat("<Administrator> Now for the next phase. I need 50 Australium bars", 150, 150, 150); } if (tf2questcounter == 770) { SgaLib.Chat("<Administrator> Minedown and smelt the ores you find, then report back right away", 150, 150, 150); } if (tf2questcounter == 900) { SgaLib.Chat("<Administrator> However accessing this function may attract unwanted attention too early, I'm sure it's nothing you can't handle", 150, 150, 150); } if (tf2questcounter == 1030) { SgaLib.Chat("<Administrator> When your done, check your contracter. Try not to be a Disapointment.", 150, 150, 150); } if (tf2questcounter == 1050) { tf2quest = 6; tf2questcounter = 0; } } }