From dcaac6365c36ea26563a60764990e1f13aeae37a Mon Sep 17 00:00:00 2001 From: MarioE Date: Wed, 28 May 2014 18:24:33 -0400 Subject: [PATCH] Add /sb fishron and /sb * --- TShockAPI/Commands.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index b4deefb9..1d9af36e 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1746,6 +1746,17 @@ namespace TShockAPI NPC npc = new NPC(); switch (args.Parameters[0].ToLower()) { + case "*": + case "all": + int[] npcIds = { 4, 13, 35, 50, 125, 126, 127, 134, 222, 245, 262, 266, 370 }; + TSPlayer.Server.SetTime(false, 0.0); + foreach (int i in npcIds) + { + npc.SetDefaults(i); + TSPlayer.Server.SpawnNPC(npc.type, npc.name, amount, args.Player.TileX, args.Player.TileY); + } + TSPlayer.All.SendSuccessMessage("{0} has spawned all bosses {1} time(s).", args.Player.Name, amount); + return; case "brain": case "brain of cthulhu": npc.SetDefaults(266); @@ -1758,6 +1769,13 @@ namespace TShockAPI TSPlayer.Server.SpawnNPC(npc.type, npc.name, amount, args.Player.TileX, args.Player.TileY); TSPlayer.All.SendSuccessMessage("{0} has spawned the Destroyer {1} time(s).", args.Player.Name, amount); return; + case "duke": + case "duke fishron": + case "fishron": + npc.SetDefaults(370); + TSPlayer.Server.SpawnNPC(npc.type, npc.name, amount, args.Player.TileX, args.Player.TileY); + TSPlayer.All.SendSuccessMessage("{0} has spawned Duke Fishron {1} time(s).", args.Player.Name, amount); + return; case "eater": case "eater of worlds": npc.SetDefaults(13);