diff --git a/d2bs/kolbot/libs/bots/Coldworm.js b/d2bs/kolbot/libs/bots/Coldworm.js index 30518baf2..ce203ed17 100644 --- a/d2bs/kolbot/libs/bots/Coldworm.js +++ b/d2bs/kolbot/libs/bots/Coldworm.js @@ -1,9 +1,24 @@ +/** +* @filename Coldworm.js +* @author kolton, edited by 13ack.Stab +* @desc kill Coldworm; optionally kill Beetleburst and clear Maggot Lair +*/ + function Coldworm() { var i; Town.doChores(); Pather.useWaypoint(43); Precast.doPrecast(true); + + // Beetleburst, added by 13ack.Stab + if (Config.Coldworm.KillBeetleburst) { + if (!Pather.moveToPreset(me.area, 1, 747)) { + throw new Error("Failed to move to Beetleburst"); + } + + Attack.clear(15, 0, getLocaleString(2882)); + } for (i = 62; i <= 64; i += 1) { if (!Pather.moveToExit(i, true)) { @@ -24,4 +39,4 @@ function Coldworm() { } return true; -} \ No newline at end of file +} diff --git a/d2bs/kolbot/libs/common/Config.js b/d2bs/kolbot/libs/common/Config.js index d8023a6a7..e37ac6497 100644 --- a/d2bs/kolbot/libs/common/Config.js +++ b/d2bs/kolbot/libs/common/Config.js @@ -383,6 +383,7 @@ var Config = { ShopNPC: "anya" }, Coldworm: { + KillBeetleburst: false, ClearMaggotLair: false }, Summoner: { diff --git a/d2bs/kolbot/libs/config/Amazon.js b/d2bs/kolbot/libs/config/Amazon.js index d80adc115..7a977c92b 100644 --- a/d2bs/kolbot/libs/config/Amazon.js +++ b/d2bs/kolbot/libs/config/Amazon.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Assassin.js b/d2bs/kolbot/libs/config/Assassin.js index ef3569318..5d82ac185 100644 --- a/d2bs/kolbot/libs/config/Assassin.js +++ b/d2bs/kolbot/libs/config/Assassin.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Barbarian.js b/d2bs/kolbot/libs/config/Barbarian.js index db41be1ea..435c33992 100644 --- a/d2bs/kolbot/libs/config/Barbarian.js +++ b/d2bs/kolbot/libs/config/Barbarian.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Druid.js b/d2bs/kolbot/libs/config/Druid.js index 5f4017fcc..64de70b5f 100644 --- a/d2bs/kolbot/libs/config/Druid.js +++ b/d2bs/kolbot/libs/config/Druid.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Necromancer.js b/d2bs/kolbot/libs/config/Necromancer.js index 0bcb59153..c7bd010f0 100644 --- a/d2bs/kolbot/libs/config/Necromancer.js +++ b/d2bs/kolbot/libs/config/Necromancer.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Paladin.js b/d2bs/kolbot/libs/config/Paladin.js index bb043dc5b..6d0fb8bab 100644 --- a/d2bs/kolbot/libs/config/Paladin.js +++ b/d2bs/kolbot/libs/config/Paladin.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City diff --git a/d2bs/kolbot/libs/config/Sorceress.js b/d2bs/kolbot/libs/config/Sorceress.js index bdac32a71..8a15ed1da 100644 --- a/d2bs/kolbot/libs/config/Sorceress.js +++ b/d2bs/kolbot/libs/config/Sorceress.js @@ -52,6 +52,7 @@ function LoadConfig() { // *** act 2 *** Scripts.Radament = false; Scripts.Coldworm = false; + Config.Coldworm.KillBeetleburst = false; Config.Coldworm.ClearMaggotLair = false; // Clear all 3 levels Scripts.AncientTunnels = false; Config.AncientTunnels.OpenChest = false; // Open special chest in Lost City