From afa5ebcc90ec2c2f67a2974822a5216e1d423cd6 Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Fri, 22 Nov 2024 20:58:57 +0100 Subject: [PATCH] fix hunt relays --- Automaton/Features/HuntRelayHelper.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Automaton/Features/HuntRelayHelper.cs b/Automaton/Features/HuntRelayHelper.cs index d978e04..d47ef7e 100644 --- a/Automaton/Features/HuntRelayHelper.cs +++ b/Automaton/Features/HuntRelayHelper.cs @@ -57,7 +57,7 @@ public class HuntRelayHelperConfiguration ]; } -[Tweak(outdated: true)] +[Tweak] public class HuntRelayHelper : Tweak { public override string Name => "Hunt Relay Helper"; @@ -246,7 +246,7 @@ private void HandleRelayLink(uint _, SeString link) if (channel.GetAttribute()!.FancyName.StartsWith("Linkshell") && Player.CurrentWorld != Player.HomeWorld) continue; if (islocal && Player.Object.CurrentWorld.Value.RowId != payload.World.RowId && Config.OnlySendLocalHuntsToLocalChannels) continue; - TaskManager.EnqueueDelay(500); + //TaskManager.EnqueueDelay(500); #pragma warning disable CS0618 // Type or member is obsolete TaskManager.Enqueue(() => { @@ -271,6 +271,7 @@ private Lumina.Text.SeStringBuilder BuildRelayMessage(MapLinkPayload MapLink, Wo switch (s) { case "": + // Hook PronounModule.Instance()->VirtualTable->ProcessString and decode the Utf8String to check the args here in case they change in the future sb.BeginMacro(Lumina.Text.Payloads.MacroCode.Fixed) .AppendIntExpression(200) .AppendIntExpression(3) @@ -279,6 +280,7 @@ private Lumina.Text.SeStringBuilder BuildRelayMessage(MapLinkPayload MapLink, Wo .AppendIntExpression(MapLink.RawX) // x -> (int)(MathF.Round(posX, 3, MidpointRounding.AwayFromZero) * 1000) .AppendIntExpression(MapLink.RawY) // y .AppendIntExpression(-30000) // z or -30000 for no z + .AppendIntExpression(0) // PlaceName override if not 0 .EndMacro(); break; case "":