From a6a7f33795b51ea679e048771dd9ffc5fcc365c5 Mon Sep 17 00:00:00 2001 From: jakeQT <96396730+jakeQT@users.noreply.github.com> Date: Fri, 17 Jun 2022 22:21:23 +0800 Subject: added cool others inquis spawned notification + cool others inquis spawned notification --- features/events/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index 5a1420b..a7cdbe5 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -36,6 +36,7 @@ class Events extends Feature { new SettingBase("NOTE: You must have music disabled for burrial guessess to work", "/togglemusic", false, "burrial_guess_into", this).requires(this.showBurrialGuess) this.otherInquisWaypoints = new ToggleSetting("Show other users inquis locations", "May be usefull for loot share", true, "inquis_location_other", this) + this.otherInquisPing = new ToggleSetting("Show cool title when someone's inquis spawned", "May be usefull for loot share", true, "inquis_ping_other", this) this.shinyBlocks = [] @@ -80,7 +81,6 @@ class Events extends Feature { return } this.slayerLocationDataH[user] = [loc, Date.now()] - if (this.otherInquisWaypoints.getValue()) Client.showTitle(user + "'s inquis spawned", "", 20, 60, 20) } renderWorld(ticks) { @@ -121,6 +121,9 @@ class Events extends Feature { if (this.otherInquisWaypoints.getValue()) { Object.keys(this.slayerLocationDataH).forEach(key => { + if (this.otherInquisPing.getValue()) { + Client.showTitle("&r&6&l[&b&l&kO&6&l] MINOS INQUISITOR [&b&l&kO&6&l]", "", 0, 50, 10); + } drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: key + "'s inquis" }) }) } @@ -461,4 +464,4 @@ class Events extends Feature { module.exports = { class: new Events() -} \ No newline at end of file +} -- cgit From 44ce6c6aedd7d1e08814ad08cfeeb526c665ad06 Mon Sep 17 00:00:00 2001 From: jakeQT <96396730+jakeQT@users.noreply.github.com> Date: Fri, 17 Jun 2022 22:32:00 +0800 Subject: Update index.js --- features/events/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'features/events') diff --git a/features/events/index.js b/features/events/index.js index a7cdbe5..200e0cc 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -81,6 +81,10 @@ class Events extends Feature { 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); + } + } renderWorld(ticks) { @@ -121,9 +125,6 @@ class Events extends Feature { if (this.otherInquisWaypoints.getValue()) { Object.keys(this.slayerLocationDataH).forEach(key => { - if (this.otherInquisPing.getValue()) { - Client.showTitle("&r&6&l[&b&l&kO&6&l] MINOS INQUISITOR [&b&l&kO&6&l]", "", 0, 50, 10); - } drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: key + "'s inquis" }) }) } -- cgit