From d24e54df28d92afebcd6d890e579340df84a010b Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 26 May 2022 12:35:28 +0800 Subject: + fix gemstoneMoneyHud for some people + fix scan current pet from pets menu --- features/hud/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/hud') diff --git a/features/hud/index.js b/features/hud/index.js index c6254d4..f375d41 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -458,7 +458,7 @@ class Hud extends Feature { if (Date.now() - this.lastSwappedPet > 1000) { inv[i].getLore().forEach(line => { - if (line.includes("Click to despawn.")) { + if (line.includes("Click to despawn!")) { this.petElement.setText("&6Pet&7> &7" + inv[i].getName().split("(")[0]) this.petText = "&6Pet&7> &7" + inv[i].getName().split("(")[0] } -- cgit From 83036d85a38729adf8fad5bc9bf38a06c183adf0 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 27 May 2022 14:10:18 +0800 Subject: + bestiary hud elements (hopefully not scuffed) --- features/hud/index.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'features/hud') diff --git a/features/hud/index.js b/features/hud/index.js index f375d41..947fef0 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -492,13 +492,6 @@ class Hud extends Feature { this.petElement.setText(this.petText) } - if (Date.now() - this.lastUpdatedStatData > 5 * 60000) { - - this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) - - this.lastUpdatedStatData = Date.now() - } - let soulflowCount = 0 let hasSoulflowItem = false Player.getInventory().getItems().forEach(i => { @@ -650,13 +643,6 @@ class Hud extends Feature { updateHudThingos() { let insb = this.FeatureManager.features["dataLoader"].class.isInSkyblock - if (Date.now() - this.lastUpdatedStatData > 5 * 60000 && this.hudStat[0].enabled.getValue() && (!this.lastStatData || insb || this.hudStat.map(a => (!a.enabled.getValue() || a.onlySb.getValue())).includes(false))) { - - this.FeatureManager.features["dataLoader"].class.loadApiData("skyblock", false) - - this.lastUpdatedStatData = Date.now() - return - } this.hudStat.forEach(stat => { if (stat.enabled.getValue()) { -- cgit From 51cdd4ca4ea64e1a9a67b99c274693a54f7f535d Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 28 May 2022 21:29:35 +0800 Subject: + asd --- features/hud/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'features/hud') diff --git a/features/hud/index.js b/features/hud/index.js index 947fef0..db12055 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -252,10 +252,11 @@ class Hud extends Feature { this.lastSwappedPet = Date.now() }) this.registerChat("&r&aYour &r${pet} &r&alevelled up to level &r&9${level}&r&a!&r", (pet, level) => { - this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet) - this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet - - this.lastSwappedPet = Date.now() + if (this.petText.split("] ")[1] === pet) { + this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet) + this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet + this.lastSwappedPet = Date.now() + } }) this.registerSoopy("apiLoad", this.apiLoad) -- cgit