aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-30 20:36:33 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-30 20:36:33 +0800
commit41aeba198222468f386d6636e44e9231338ce860 (patch)
tree4e5deb0b836b861568eed11a061bddd0d732eb2c /features/events/index.js
parentc755594ea466fa0df177131ab9bebc5fe52cbc1f (diff)
downloadSoopyV2-41aeba198222468f386d6636e44e9231338ce860.tar.gz
SoopyV2-41aeba198222468f386d6636e44e9231338ce860.tar.bz2
SoopyV2-41aeba198222468f386d6636e44e9231338ce860.zip
clear diana waypoints command
default values for inquis alert location
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js8
1 files changed, 7 insertions, 1 deletions
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" })
})
}
}