aboutsummaryrefslogtreecommitdiff
path: root/features/events
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-08 09:43:57 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-08 09:43:57 +0800
commitc92f4e93147874e6d3f28799bbe3196e55de4b3a (patch)
tree4eaca5ea00481d80db57879d8ba53616aa69eca8 /features/events
parent5cd8bd6a4c0a61d3258816ae4a9666daade4d2da (diff)
downloadSoopyV2-c92f4e93147874e6d3f28799bbe3196e55de4b3a.tar.gz
SoopyV2-c92f4e93147874e6d3f28799bbe3196e55de4b3a.tar.bz2
SoopyV2-c92f4e93147874e6d3f28799bbe3196e55de4b3a.zip
+ fix inquis waypoints
+ add waypoints on /patcher sendcoords
Diffstat (limited to 'features/events')
-rw-r--r--features/events/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js
index eb29128..c315955 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -1,6 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
+import socketConnection from "../../socketConnection";
import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawCoolWaypoint, drawLine } from "../../utils/renderUtils";
import { calculateDistanceQuick } from "../../utils/utils";
import SettingBase from "../settings/settingThings/settingBase";
@@ -62,11 +63,16 @@ class Events extends Feature {
this.registerChat("&r&eYou finished the Griffin burrow chain! &r&7(4/4)&r", this.burrialClicked)
this.inquisWaypointSpawned = false
this.registerChat("${a}You dug out a ${thing}!", (a, thing) => {
+ console.log(a, thing)
if (a.includes(":") || a.length === 0 || a.length > 50) return
if (!thing.toLowerCase().includes("inquis")) return
this.inquisWaypointSpawned = true
socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] });
})
+ this.registerCommand("fakeinquis", () => {
+ this.inquisWaypointSpawned = true
+ socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] });
+ })
}
inquisData(loc, user) {