From a31005540112f8ea9462feeee378b3010ae658fe Mon Sep 17 00:00:00 2001 From: bgkillas Date: Thu, 31 Oct 2024 09:14:11 -0400 Subject: [PATCH] fix tower for real --- .../files/system/player_tether/player_tether.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/quant.ew/files/system/player_tether/player_tether.lua b/quant.ew/files/system/player_tether/player_tether.lua index 16af78c4..48ad4b20 100644 --- a/quant.ew/files/system/player_tether/player_tether.lua +++ b/quant.ew/files/system/player_tether/player_tether.lua @@ -188,13 +188,24 @@ local was_notplayer = false function module.on_world_update() if GameGetFrameNum() % 10 == 7 then local x2, y2 = EntityGetTransform(ctx.my_player.entity) - if is_in_box(9200, 11000, 8300, 9800, x2, y2) then + if np.GetGameModeNr() ~= 2 + and tonumber(SessionNumbersGetValue("NEW_GAME_PLUS_COUNT")) == 0 + and is_in_box(9200, 11000, 8300, 9800, x2, y2) then local any_not = false for _, player in pairs(ctx.players) do local x, y = EntityGetTransform(player.entity) - if not is_in_box(9200, 11000, 8300, 9800, x, y) then + if not is_in_box(9200, 11000, 4000, 9800, x, y) then any_not = true end + if is_in_box(0, 1000, -2000, 0, x, y) then + async(function() + EntitySetTransform(ctx.my_player.entity, 770, 900) + wait(30) + EntitySetTransform(ctx.my_player.entity, 770, 900) + float() + end) + return + end end if any_not then rpc.teleport_to_tower()