diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-30 20:36:33 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-08-30 20:36:33 +0800 |
commit | 41aeba198222468f386d6636e44e9231338ce860 (patch) | |
tree | 4e5deb0b836b861568eed11a061bddd0d732eb2c | |
parent | c755594ea466fa0df177131ab9bebc5fe52cbc1f (diff) | |
download | SoopyV2-41aeba198222468f386d6636e44e9231338ce860.tar.gz SoopyV2-41aeba198222468f386d6636e44e9231338ce860.tar.bz2 SoopyV2-41aeba198222468f386d6636e44e9231338ce860.zip |
clear diana waypoints command
default values for inquis alert location
-rw-r--r-- | features/events/index.js | 8 | ||||
-rw-r--r-- | features/globalSettings/index.js | 4 |
2 files changed, 10 insertions, 2 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" }) }) } } diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 5465629..9e58d6f 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -230,7 +230,7 @@ class GlobalSettings extends Feature { delay(time * 1000, () => { packetReceived.unregister() tick.unregister() - ChatLib.chat(this.FeatureManager.messagePrefix + "Tps: " + (ticks / time).toFixed(1)) + ChatLib.chat(this.FeatureManager.messagePrefix + "Tps: " + Math.min(20, ticks / time).toFixed(1)) }) }) @@ -353,6 +353,8 @@ class GlobalSettings extends Feature { return ret })) { + Client.showTitle("SNIPE THING", "CHECK CHAT", 20, 60, 20) + new TextComponent(this.FeatureManager.messagePrefix + "Bin found " + numberWithCommas(a.starting_bid) + " " + a.item_name).setClick("run_command", "/viewauction " + a.uuid).chat() } }) |