-
Member
[TBC Classic] [2.5.2.40011]
Code:
class Offsets
{
public static class Player
{
//48 8D 0D ?? ?? ?? ?? E8 0E ?? ?? ?? 48 83 ?? ?? ?? ?? 00 00 00
public static int LocalGuid = 0x2D65CD0;//0x2D2ACE0
public static int CurrentRage = (0x19 * 4);
public static int CurrentEnergy = (0x1B * 4);
public static int MaxEnergy = (0x23 * 4);
public static int PlayerInformation = 0x198;
public static int PlayerPositionX = 0x20;
public static int PlayerPositionY = PlayerPositionX + sizeof(float);
public static int PlayerPositionZ = PlayerPositionX + sizeof(float) * 2;
public static int PlayerFacing = 0x1604;
}
public static class Chat
{
// 4C 8D 15 ?? ?? ?? ?? 4C 89 44 24 68
public const int ChatStart = 0x307DD90;//0x3042D90;
// 8B 0D ? ? ? ? B8 ? ? ? ? 03 CE F7 E9
public const int chatBufferPos = 0x30AD8D0;//0x30728D0;
public const int OffsetToNextMsg = 0xCB8;
public const int MsgSenderGuid = 0x00;
public const int MsgSenderName = 0x34;
public const int MsgFullMessage = 0xE6;
public const int MsgChatType = 0xCA0;
public const int MsgChannelNum = 0xCA4;
public const int MsgTimeStamp = 0xCB0;
public const int ChatQueueDepth = 0x3C;
}
public static class ObjectManager
{
//48 8D 0D ?? ?? ?? ?? 41 B8 B7 0B 00 00 48 8D 95 B0 00 00 00 0F 1F 40 00
public static int LastRedMessage = 0x307C8A0;//0x30418A0;
//48 83 EC 28 48 8B 05 ?? ?? ?? ?? 48 85 C0 74 7D
public static int LoadingWindow = 0x2D4F020;//0x2D14030;
//40 53 48 83 EC 20 F6 05 both
public static int IsInGame = 0x307DA64;//0x3042A64;
//43 88 84 20 AC 00 00 00
public static int MapId = 0x307D45C;//0x304245C;
//BA 01 00 00 00 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 48 85 C0 74 12
public static int MouseOverGuid = 0x307DA88; //old:0x3042A88;;
//4C 8B 05 ?? ?? ?? ?? 45 33 F6
public static int ObjectManagerBase = 0x2E89BA8; //0x2E4EBA8;;
public static int FirstObject = 0x18;
public static int NextObject = 0x70;
}
public static class WowObject
{
public static int X = 0x1600;
public static int Y = X + sizeof(float);
public static int Z = X + sizeof(float) * 2;
public static int Rotation = X + 0x10;
public static int DescriptorFields = 0x10;
public static int Pitch = X + 0x14;
public static int GameObjectX = 0x1B0;
public static int GameObjectY = GameObjectX + sizeof(float);
public static int GameObjectZ = GameObjectX + sizeof(float) * 2;
public static int GameObjectRotation = GameObjectX + 0x10;
public static int TransportGUID = 0x15F0;
public static int Type = 0x20;
public static int Guid = 0x58;
}
public static class UnitAuras
{
public static int AuraCount1 = 0x1B20;
public static int AuraCount2 = 0x1B28;
public static int AuraTable1 = 0x1B28;
public static int AuraTable2 = 0x1B20;
public static int AuraSize = 0xB0;
public static int AuraSpellId = 0x88;
public static int AuraStack = 0x39;
public static int TimeLeft = 0x40;
public static int OwnerGUID = 0x20;
public static int AuraTableOffset = 0x00;
public static int AuraFlags = 0x90;
public static int AuraLevel = 0x92;
}
public static class Camera
{
// Active player created
//48 8B 05 ? ? ? ? 48 8B 88 ? ? 00 00 48 8B 43
public static int CameraPointer = 0x315F3A8; //0x3124398;
public static int CameraOffset = 0x38E0;//old:0x38D8;
public static int Fov = 0x40;
public static int Position = 0x10;
public static int ViewMatrix = 0x1C;
}
public static class Unit
{
public static int Level = 0x134;
public static int CurrentHealth = 0xDC;
public static int MaxHealth = 0xFC;
public static int DynamicFlags = 0x14;
public static int CurrentMana = 0xE4;
public static int MaxMana = 0x104;
public static int Target = 0x9C;
}
}
-
Post Thanks / Like - 1 Thanks
Razzue (1 members gave Thanks to tayl for this useful post)
-
-
Post Thanks / Like - 1 Thanks
tayl (1 members gave Thanks to Razzue for this useful post)
-
Have you tested the Auras out at all ?
Can't seems to get them right on my end...
-
Member
Originally Posted by
Dupheadss
Have you tested the Auras out at all ?
Can't seems to get them right on my end...
Offsets to auratable and spellid are good, not sure about others.
-
Originally Posted by
tayl
Offsets to auratable and spellid are good, not sure about others.
How are you reading them, UnitBase + 0x1B28 ?
QZGq41y.png
https://i.imgur.com/QZGq41y.png
Looking at the addresses I always get 0s despite having various auras up.
-
Member
Originally Posted by
Dupheadss
Actually, I don't know if auraCount is supposed to always be 256, but it works.
1222.PNG 122.PNG
Last edited by tayl; 09-03-2021 at 05:01 AM.
-
-