Skip to content

Commit

Permalink
fix hunt relays
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Nov 22, 2024
1 parent 699069c commit afa5ebc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Automaton/Features/HuntRelayHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class HuntRelayHelperConfiguration
];
}

[Tweak(outdated: true)]
[Tweak]
public class HuntRelayHelper : Tweak<HuntRelayHelperConfiguration>
{
public override string Name => "Hunt Relay Helper";
Expand Down Expand Up @@ -246,7 +246,7 @@ private void HandleRelayLink(uint _, SeString link)
if (channel.GetAttribute<XivChatTypeInfoAttribute>()!.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(() =>
{
Expand All @@ -271,6 +271,7 @@ private Lumina.Text.SeStringBuilder BuildRelayMessage(MapLinkPayload MapLink, Wo
switch (s)
{
case "<flag>":
// 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)
Expand All @@ -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 "<world>":
Expand Down

0 comments on commit afa5ebc

Please sign in to comment.