From 453284c454714d97c8fba00414ad2acd2ecc862d Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 31 Aug 2022 07:24:13 +0800 Subject: + hide inquis waypoints for NON party members setting --- features/events/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index 7ede6b0..5e20036 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -62,6 +62,7 @@ class Events extends Feature { this.otherInquisWaypoints = new ToggleSetting("Show other users inquis locations", "If disabled others wont be able to see urs", true, "inquis_location_other", this).requires(this.loadFromParticles) this.otherInquisPing = new ToggleSetting("Show cool title when someone's inquis spawned", "May be usefull for loot share", true, "inquis_ping_other", this).requires(this.loadFromParticles) this.limitPMemb = new ToggleSetting("Only send inquis ping to party members", "If not in a party it works as default", true, "inquis_ping_party", this).requires(this.otherInquisPing) + this.limitPMembRecieve = new ToggleSetting("Only RECIEVE inquis ping from party members", "To prevent trolling for streamers", false, "recieve_inquis_ping_party", this).requires(this.otherInquisPing) this.shinyBlocks = [] this.MythMobsHPGuiElement = new ToggleSetting("Render Mythological Mobs hp on your screen", "This will help you to know their HP.", true, "myth_mobs_hp", this).contributor("EmeraldMerchant"); @@ -175,6 +176,10 @@ class Events extends Feature { delete this.slayerLocationDataH[user] return } + + if (this.limitPMembRecieve.getValue()) { + if (!this.FeatureManager.features["dataLoader"].class.partyMembers.has(user)) return + } this.slayerLocationDataH[user] = [loc, Date.now()] if (this.otherInquisPing.getValue()) { Client.showTitle("&r&6&l[&b&l&kO&6&l] MINOS INQUISITOR [&b&l&kO&6&l]", `${user}'s Inquisitor`, 0, 50, 10); -- cgit