Skip to content

Commit

Permalink
Update to Dalamud API 11 and FFXIV 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RenNagasaki committed Nov 21, 2024
1 parent 2d3e05e commit 52cbb94
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Echosync/Echosync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="Dalamud.Plugin.Bootstrap.targets" />

<PropertyGroup>
<Version>0.0.0.3</Version>
<Version>0.1.0.0</Version>
<Description>Echosync</Description>
<PackageProjectUrl>https://github.com/RenNagasaki/Echosync</PackageProjectUrl>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
Expand Down
1 change: 1 addition & 0 deletions Echosync/Helper/AddonTalkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private unsafe void OnPreReceiveEvent(AddonEvent type, AddonArgs args)
if (!config.Enabled) return;
if (condition[ConditionFlag.OccupiedSummoningBell]) return;
if (!condition[ConditionFlag.OccupiedInQuestEvent] && !condition[ConditionFlag.OccupiedInCutSceneEvent] && !condition[ConditionFlag.OccupiedInEvent]) return;
if (!SyncClientHelper.Connected || SyncClientHelper.ConnectedPlayersDialogue < 2) return;
if (args is not AddonReceiveEventArgs receiveEventArgs) return;

LogHelper.Info(MethodBase.GetCurrentMethod().Name, $"Param: {receiveEventArgs.EventParam} Type: {receiveEventArgs.AtkEventType} B: {receiveEventArgs.AtkEvent}", SyncClientHelper.CurrentEvent);
Expand Down
4 changes: 3 additions & 1 deletion Echosync/Helper/ClickHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public static void ClickDialogue(nint addon, EKEventId eventId)
new()
{
Listener = (AtkEventListener*)unitBase,
Flags = 132,
State = new AtkEventState() {
StateFlags = AtkEventStateFlags.Completed | AtkEventStateFlags.Unk3,
},
Target = &AtkStage.Instance()->AtkEventTarget
}
};
Expand Down
3 changes: 2 additions & 1 deletion Echosync/Helper/SyncClientHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public static void CreateMessage(SyncMessages message, string dialogue = "")
return;
}

var characterName = "|" + ClientState.LocalPlayer?.Name.TextValue + "@" + ClientState.LocalPlayer?.HomeWorld.Id ?? "TEST";
var worldId = ClientState.LocalPlayer?.HomeWorld.Value.Name;
var characterName = "|" + ClientState.LocalPlayer?.Name.TextValue + "@" + worldId ?? "TEST";
var npcId = !string.IsNullOrWhiteSpace(AddonTalkHelper.ActiveNpcId) ? "|" + AddonTalkHelper.ActiveNpcId : "";
dialogue = !string.IsNullOrWhiteSpace(dialogue) ? "|" + dialogue : "";

Expand Down
6 changes: 3 additions & 3 deletions Echosync/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.13, )",
"resolved": "2.1.13",
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
"requested": "[11.0.0, )",
"resolved": "11.0.0",
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
},
"WebSocketSharp": {
"type": "Direct",
Expand Down

0 comments on commit 52cbb94

Please sign in to comment.