diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/dungeonMap/index.js | 20 | ||||
-rw-r--r-- | features/dungeonSolvers/index.js | 4 | ||||
-rw-r--r-- | features/events/index.js | 2 |
3 files changed, 20 insertions, 6 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 1da7c3f..91c145b 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -183,6 +183,7 @@ class DungeonMap extends Feature { let lastXY = "" let registerActionBar = this.registerCustom("actionbar", (curr, max) => { + return let loc = this.getRoomXYWorld() if (lastXY !== loc.join(",")) { @@ -197,6 +198,21 @@ class DungeonMap extends Feature { } }) registerActionBar.trigger.setCriteria('&7${curr}/${max} Secrets').setParameter('contains'); + + this.registerCommand("setrooms", (curr, max) => { + let loc = this.getRoomXYWorld() + + if (lastXY !== loc.join(",")) { + lastXY = loc.join(",") + return + } + if (curr === max) curr = "&a" + curr + if (this.roomDataStuff.get(loc.join(",")) !== curr + " " + max) { + this.roomDataStuff.set(loc.join(","), curr + " " + max) + + socketConnection.sendDungeonData2(this.people, [loc.join(","), curr + " " + max]) + } + }) } updateDungeonMapData2(data) { @@ -869,13 +885,11 @@ class DungeonMap extends Feature { isGreen = true } } - // console.log(ent[1], isGreen) if (isGreen) { let total = ent[1].split(" ")[1] ent[1] = "&a" + total + " " + total - // console.log(ent[1]) + this.roomDataStuff.set(loc, "&a" + total + " " + total) } - // console.log(ent[1], isGreen) } } // if (!this.renderImage) return diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 76bf5f4..21730ad 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -48,8 +48,6 @@ class DungeonSolvers extends Feature { Arcade: "&e", }; - this.IceSprayWarn = new ToggleSetting("Ice Spray Drop Ping", "Renders a big title so you don't miss ice spray wands", true, "ice_spray_ping", this).contributor("EmeraldMerchant"); - this.lastWorldload = Date.now() this.lividFindEnabled = new ToggleSetting("Correct livid finder", "Finds the real livid to kill in the f5 boss fight", true, "livid_find_enabled", this); this.lividFindHud = new ToggleSetting("Show Livid Hp", "Shows the nametag of the correct livid", true, "livid_hud_enabled", this).requires(this.lividFindEnabled); @@ -103,6 +101,8 @@ class DungeonSolvers extends Feature { this.forgorEnabled = new ToggleSetting("Change withermancer death message to forgor ", "", true, "withermancer_forgor", this); this.f7waypoints = new ToggleSetting("Waypoints for P3 F7/M7", "(Only shows unfinished ones)", true, "f7_waypoints", this); + this.IceSprayWarn = new ToggleSetting("Ice Spray Drop Ping", "Renders a big title so you don't miss ice spray wands", false, "ice_spray_ping", this).contributor("EmeraldMerchant"); + this.registerChat("&r&c ☠ &r${player} were killed by Withermancer&r&7 and became a ghost&r&7.&r", (player, e) => { if (this.forgorEnabled.getValue()) { cancel(e); diff --git a/features/events/index.js b/features/events/index.js index de5d119..847de49 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -231,7 +231,7 @@ class Events extends Feature { let mythMobs = [] this.todoE.forEach(e => { e = new Entity(e) - let health = e.getName().removeFormatting().split(" ")[4].split("/")[0] + let health = e.getName().removeFormatting().split(" ")[4]?.split("/")[0] if (this.MythMobsHP.getValue() && health != 0 && (e.getName().removeFormatting().includes("Exalted") || e.getName().removeFormatting().includes("Stalwart"))) { mythMobs.push(e.getName()) } |