From 90982b9a0b5ce9c9fa58598973e023380522ea96 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 22 May 2019 05:51:46 +0200 Subject: [PATCH] Update/fix memory offsets Seems at least two of these offsets moved forwards by a couple of bytes. I can't find anything else that's obviously broken, but the display of job colors / aggro list target info etc. works again now. --- EnmityPlugin/FFXIVMemory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EnmityPlugin/FFXIVMemory.cs b/EnmityPlugin/FFXIVMemory.cs index 1789182..394c965 100644 --- a/EnmityPlugin/FFXIVMemory.cs +++ b/EnmityPlugin/FFXIVMemory.cs @@ -376,9 +376,9 @@ public unsafe Combatant GetCombatantFromByteArray(byte[] source) combatant.PosY = *(Single*)&p[offset + 8]; combatant.Heading = *(Single*)&p[offset + 16]; - combatant.TargetID = *(uint*)&p[5744]; + combatant.TargetID = *(uint*)&p[5832]; - offset = 5880; + offset = 5968; if (combatant.type == ObjectType.PC || combatant.type == ObjectType.Monster) { combatant.CurrentHP = *(int*)&p[offset + 8];