From 41aeba198222468f386d6636e44e9231338ce860 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 30 Aug 2022 20:36:33 +0800 Subject: clear diana waypoints command default values for inquis alert location --- features/events/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'features/events/index.js') diff --git a/features/events/index.js b/features/events/index.js index 2b189ba..7ede6b0 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -135,6 +135,12 @@ class Events extends Feature { delete this.slayerLocationDataH[player] }) + this.registerCommand("cleardianawaypoints", () => { + this.burrialData.points = [] + this.burrialData.locations = [] + this.burrialData.historicalLocations = [] + ChatLib.chat(this.FeatureManager.messagePrefix + "Cleared all diana waypoints!") + }) } step_1fps() { @@ -215,7 +221,7 @@ class Events extends Feature { if (this.otherInquisWaypoints.getValue()) { Object.keys(this.slayerLocationDataH).forEach(key => { - drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: "§c" + key + "'s inquis" }) + drawCoolWaypoint(this.slayerLocationDataH[key][0][0] || 0, this.slayerLocationDataH[key][0][1] || 0, this.slayerLocationDataH[key][0][2] || 0, 255, 0, 0, { name: "§c" + (key || "ERROR") + "'s inquis" }) }) } } -- cgit