xtuaok/ACT_EnmityPlugin

4.0 support

Closed this issue · 2 comments

Please add 4.0 support.

krvi commented

I've been looking at this since 4.0 and the relevant info, that I am certain about, and can add is that

offset = 160; //appears to be the same regardless of mode
combatant.PosX = *(float*)&p[offset];
combatant.PosZ = *(float*)&p[offset + 4];
combatant.PosY = *(float*)&p[offset + 8];

as well as

offset = (_mode == FFXIVClientMode.FFXIV_64) ? 0x1684 : 0x1364;
combatant.Job = (JobEnum)p[offset + 62];
combatant.Level = p[offset + 64];
combatant.CurrentHP = *(int*)&p[offset + 8];
combatant.MaxHP = *(int*)&p[offset + 12];
combatant.CurrentMP = *(int*)&p[offset + 16];
combatant.MaxMP = *(int*)&p[offset + 20];
combatant.CurrentTP = *(short*)&p[offset + 24];
combatant.MaxTP = 1000;

I do have some pointers (charmap = ffxiv.exe + 0x10FC398) but it may be inaccurate, so I'd prefer signatures.

almost done.
btw, dx9 support has been dropped.