forked from Bluefissure/Inviter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update party & change opcodes to hooking
- Loading branch information
1 parent
5282825
commit 8e04e7e
Showing
5 changed files
with
174 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Inviter.ClientStructs | ||
{ | ||
// Referred from https://github.com/aers/FFXIVClientStructs/blob/main/FFXIV/Group/GroupManager.cs | ||
|
||
// there are actually two copies of this back to back in the exe | ||
// maybe for 48 man raid support since the group manager can only hold 1 alliance worth of party members | ||
[StructLayout(LayoutKind.Explicit, Size = 0x3D70)] | ||
public unsafe struct GroupManager | ||
{ | ||
[FieldOffset(0x0)] public fixed byte PartyMembers[0x230 * 8]; // PartyMember type | ||
// for some reason the alliance array is size 20. it used to be 16 in old versions. | ||
[FieldOffset(0x1180)] public fixed byte AllianceMembers[0x230 * 20]; // PartyMember type | ||
[FieldOffset(0x3D40)] public uint Unk_3D40; | ||
[FieldOffset(0x3D44)] public ushort Unk_3D44; | ||
[FieldOffset(0x3D48)] public long Unk_3D48; | ||
[FieldOffset(0x3D50)] public long Unk_3D50; | ||
[FieldOffset(0x3D58)] public uint PartyLeaderIndex; // index of party leader in array | ||
[FieldOffset(0x3D5C)] public byte MemberCount; | ||
[FieldOffset(0x3D5D)] public byte Unk_3D5D; | ||
[FieldOffset(0x3D5E)] public bool IsAlliance; | ||
[FieldOffset(0x3D5F)] public byte Unk_3D5F; // some sort of count | ||
[FieldOffset(0x3D60)] public byte Unk_3D60; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Inviter.ClientStructs | ||
{ | ||
// Referred from https://github.com/aers/FFXIVClientStructs/blob/main/FFXIV/Group/PartyMember.cs | ||
[StructLayout(LayoutKind.Explicit, Size = 0x230)] | ||
public unsafe struct PartyMember | ||
{ | ||
// [FieldOffset(0x0)] public BuffList BuffList; | ||
[FieldOffset(0x190)] public float X; | ||
[FieldOffset(0x194)] public float Y; | ||
[FieldOffset(0x198)] public float Z; | ||
[FieldOffset(0x1A0)] public long Unk_1A0; | ||
[FieldOffset(0x1A8)] public uint ObjectID; | ||
[FieldOffset(0x1AC)] public uint Unk_ObjectID_1; | ||
[FieldOffset(0x1B0)] public uint Unk_ObjectID_2; | ||
[FieldOffset(0x1B4)] public uint CurrentHP; | ||
[FieldOffset(0x1B8)] public uint MaxHP; | ||
[FieldOffset(0x1BC)] public ushort CurrentMP; | ||
[FieldOffset(0x1BE)] public ushort MaxMP; | ||
[FieldOffset(0x1C0)] public ushort TerritoryType; // player zone | ||
[FieldOffset(0x1C2)] public ushort Unk_1C2; // seems to be 0x63/99, no idea what it is | ||
[FieldOffset(0x1C4)] public fixed byte Name[0x40]; // character name string | ||
[FieldOffset(0x204)] public byte Sex; | ||
[FieldOffset(0x205)] public byte ClassJob; | ||
[FieldOffset(0x206)] public byte Level; | ||
// 0x18 byte struct at 0x208 | ||
[FieldOffset(0x208)] public byte Unk_Struct_208__0; | ||
[FieldOffset(0x20C)] public uint Unk_Struct_208__4; | ||
[FieldOffset(0x210)] public ushort Unk_Struct_208__8; | ||
[FieldOffset(0x214)] public uint Unk_Struct_208__C; | ||
[FieldOffset(0x218)] public ushort Unk_Struct_208__10; | ||
[FieldOffset(0x21A)] public ushort Unk_Struct_208__14; | ||
[FieldOffset(0x220)] public byte Unk_220; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters