Skip to content

Commit

Permalink
Merge pull request kolton#69 from SamuelMS/master
Browse files Browse the repository at this point in the history
Add new Beetleburst script option for Coldworm.js
  • Loading branch information
kolton committed Feb 13, 2014
2 parents 727298c + 947ea68 commit f01bb0e
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 1 deletion.
17 changes: 16 additions & 1 deletion d2bs/kolbot/libs/bots/Coldworm.js
Original file line number Diff line number Diff line change
@@ -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)) {
Expand All @@ -24,4 +39,4 @@ function Coldworm() {
}

return true;
}
}
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/common/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ var Config = {
ShopNPC: "anya"
},
Coldworm: {
KillBeetleburst: false,
ClearMaggotLair: false
},
Summoner: {
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Assassin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Barbarian.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Druid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Necromancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Paladin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions d2bs/kolbot/libs/config/Sorceress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f01bb0e

Please sign in to comment.