-
Contributor
[retail] 11.0.7.58911 offsets
Does someone have the Unit struct? Seems like stuff like GetHealth,GetHealthMax / Mana, power is bound to Localplayer in Retail. In Classic this was in the Unit struct but couldnt find it in Retail..
Some of them might be broken tho.
Code:
Detected game version: 11.0.7.58911
Pattern search...
========-------Pattern search completed-------========
========-------X-HOOK Pattern output:-------========
========-------ClntObjMgr functions:-------========
Offset_ClntObjMgrEnumVisibleObjectsPtr = 0x00000000020F8420
Offset_ClntObjMgrGetMapId = 0x00000000020F9020
Offset_ClntObjMgrIsValid = 0x00000000020F99D0
========-------Movement functions:-------========
Offset_ClickToMove = 0x00000000020F8420
Offset_FaceTo = 0x00000000020E7B90
Offset_Jump = 0x00000000020E76E0
========-------Validation functions:-------========
Offset_InvalidPtrCheckMin = 0x0000000006067B98
Offset_InvalidPtrCheckMax = 0x0000000006067BA0
Offset_HardwareEventPtr = 0x0000000003482CD0
========-------Item functions:-------========
Offset_CGItem_UseItemParm = 0x00000000047B1B80
Offset_CGItem_UseItem = 0x0000000002766B20
========-------Spell functions:-------========
Offset_Spell_C_GetMinMaxRange = 0x000000000261A090
Offset_Spell_C_IsCurrentSpell = 0x0000000000000000
Offset_Spell_C_GetSpellCoolDown = 0x000000000261C4A0
Offset_Spell_C_CastSpell = 0x000000000294D850
Offset_Spell_C_HaveSpellPower = 0x0000000002621D20
Offset_SpellBook_findSlotBySpellId = 0x0000000002A55F70
Offset_SpellBook_FindSpellByName = 0x0000000000000000
Offset_SpellBook_Instance = 0x00000000007482B0
Offset_SpellBook_RepeatingSpellId = 0x000000001D1BE29B
Offset_CGUnit_IsSpellKnown = 0x0000000002A5F870
========-------General Unit functions:-------========
Offset_UnitReaction = 0x0000000002749870
Offset_Cooldown = 0x00000000042FD990
Offset_GuidToString = 0x000000000245B4A0
========-------CGPlayer functions:-------========
Offset_CGPlayer_C_HandleRepopRequest = 0x0000000002A3C3D0
========-------CGGameObject functions:-------========
Offset_CGGameObject_C_CanUse = 0x0000000000000000
Offset_CGGameObject_C_CanUseNow = 0x0000000000000000
Offset_CGGameObject_C_IsLocked = 0x0000000000000000
========-------Sprite functions:-------========
Offset_SpriteLeftClick = 0x00000000029618B0
Offset_SpriteRightClick = 0x0000000002961D30
========-------Combat functions:-------========
Offset_CGUnit_C_OnAttackIconPressed = 0x0000000000000000
Offset_CGUnit_C_IsInMelee = 0x00000000000000000
========-------Camera functions:-------========
Offset_Bool_MustEnterInstanceToRecoverBodymsg = 0x000000000430BCE4
Offset_CameraMgr = 0x00000000047617E8
Offset_CameraPtr = 0x0000000000003A58
========-------WorldFrame functions:-------========
Offset_WorldFrame_GetWorld = 0x00000000002310C0
Offset_WorldFrame_Intersect = 0x0000000002235FB0
Offset_WorldFrame_GetScreenCoordinates = 0x000000000236C3F0
========-------Input functions:-------========
Offset_InputControl = 0x00000000042E9640
Offset_ToggleControlBit = 0x000000000247A750
Offset_HandleTerrainClick = 0x0000000002621380
========-------Attack functions:-------========
Offset_CanAttack = 0x0000000002703440
Offset_IsOutDoors = 0x000000004A9B52C8
Offset_Dismount = 0x00000000027141E0
========-------ItemCache functions:-------========
Offset_GetItemCacheEntry = 0x00000000005191A0
Offset_ItemCacheEntryBase = 0xFFFFFFFF90C1C2D2
========-------Merchant functions:-------========
Offset_Merchant_unk_arg = 0x000000000130E260
Offset_Merchant = 0x0000000002C51520
Offset_MerchantItems = 0x00000000049BE5C8
Offset_MerchantCount = 0x00000000049BE5CC
Offset_MerchantItemsInfoSize = 0x0000000000000098
Offset_MerchantItemsInfoStackCount = 0x0000000000000000
Offset_MerchantSellItem = 0xFFFFFFFF8E1D6B98
Offset_MerchantBuyItem = 0x00000000026C0AA0
Offset_MerchantGetAllRepairCost = 0x0000000002D56EE0
Offset_MerchantRepairStruct = 0x00000000006A1B20
Offset_MerchantRepairAllItems = 0x0000000002950EE0
========-------Skill functions:-------========
Offset_GetSkillIndexById = 0x0000000002675D80
Offset_UseActionBar = 0x0000000002BE2EB0
========-------Corpse Retrieval functions:-------========
Offset_CorpseMapID = 0x000000000430BCE0
Offset_CorpsePos = 0x000000000430BD20
========-------Rune functions:-------========
Offset_GetRuneType = 0x0000000000000000
Offset_IsRuneAtCooldown = 0x0000000000000000
========-------Gossip functions:-------========
Offset_GossipSelectOption = 0x0000000002C9FA10
========-------Target functions:-------========
Offset_LastTargetGuid = 0x00000000416159DA
========-------Bone Position functions dunno if we can get this working THO:-------========
Offset_CM2ModelGetBonePosition = 0x0000000000000000
========-------GameTime functions:-------========
Offset_GameTime = 0x00000000002AB3F0
========-------Quest functions:-------========
Offset_Quest_SelectActiveQuest = 0x0000000002670230
Offset_Quest_SelectAvalibleQuest = 0x000000003BBC28C7
Offset_Quest_AcceptQuest = 0x0000000002E23570
Offset_Quest_IsQuestComplete = 0x0000000002E0D100
Offset_Quest_GetReward = 0x0000000004A359A8
Offset_Quest_GetQuestReward = 0x00000000026759D0
Offset_Quest_GetQuestRewardid = 0x0000000004A37D98
========-------Other:-------========
Offset_isLootWindowOpen = 0x0000000000000000
Offset_IsPlayerInWorld = 0x000000000497E554
Offset_LastRedMessage = 0x000000000497E810
Offset_InstanceName = 0x0000000000000000
========-------Unit Attributes:-------========
Offset_Type = 0x0000000000000008
Offset_Guid = 0x0000000000000018
Offset_Owner = 0x0000000000000000
Offset_Race = 0x0000000000000000
Offset_Class = 0x0000000000000000
Offset_Sex = 0x0000000000000000
Offset_AnimationStatus = 0x0000000000000000
Offset_GatherStatus = 0x0000000000000000
Offset_GetHealth = 0x00000000000016D0 //GetMax +0x8
Offset_GetMaxHealth = 0x0000000000001920 // or 0x1920 Cvar
Offset_UnitFlag1 = 0x0000000000000019
Offset_UnitFlag2 = 0x000000000000001D
Offset_UnitFlag3 = 0x0000000000000021
Offset_DynamicFlag = 0x00000000000000DC
Offset_CreatureInfo = 0x0000000000000118
========-------Movement functions:-------========
Offset_Movement_Pointer = 0x00000000000000A0
Offset_Movement_Transport_Pointer = 0x0000000000000000
Offset_Movement_TransportGuid = 0x0000000000000010
Offset_Movement_Position = 0x0000000000000018
Offset_Movement_Rotation = 0x0000000000000028
Offset_Movement_Pitch = 0x0000000000000154
Offset_Movement_UnitSpeed = 0x00000000000001A0
Offset_Movement_MovementFlag = 0x00000000000000F8
Offset_Movement_MovementFlagEx = 0x00000000000000FC
Offset_Movement_CollisionWidth = 0x0000000000000244
Offset_Movement_CollisionHeight = 0x0000000000000248
Offset_Movement_WalkableSlope = 0x000000000000024C
Offset_Movement_Direction = 0x0000000000000000
Offset_Movement_Direction2 = 0x0000000000000000
========-------Aura functions:-------========
Offset_AuraCount = 0x000000005C894873 //Broken was 85 C9 78 73 48 89 5C 24 ? 56 48 83 EC 20 48 8B 82 ? ? ? ?
Offset_AuraTable = 0x000000005C89487B
Offset_AuraSize = 0x00000000000000C8
Last edited by maikel233; 02-06-2025 at 05:37 PM.
-
Member
Hi maikel233. are you working on retail now? here is what I get
public const int Health = 0x1918; //tested //int32
public const int MaxHealth = 0x1920; //tested //int32 in retail int health is scaled based on the player level
public const int MaxPower = 0x19C8; //tested //int32
public const int Level = 0x1928; //tested //int32
public const int Power1 = 0x16D8; //tested //mana //int32
public const int Power2 = 0x16DC; //tested //energy //int32
public const int Power3 = 0x16E0; //tested // //int32
public const int Power4 = 0x16E4; //teseted //chi
public const int Power5 = 0x16E8; //teseted //combo points //int32
-
Contributor
Originally Posted by
Aigewen
Hi maikel233. are you working on retail now? here is what I get
public const int Health = 0x1918; //tested //int32
public const int MaxHealth = 0x1920; //tested //int32 in retail int health is scaled based on the player level
public const int MaxPower = 0x19C8; //tested //int32
public const int Level = 0x1928; //tested //int32
public const int Power1 = 0x16D8; //tested //mana //int32
public const int Power2 = 0x16DC; //tested //energy //int32
public const int Power3 = 0x16E0; //tested // //int32
public const int Power4 = 0x16E4; //teseted //chi
public const int Power5 = 0x16E8; //teseted //combo points //int32
Hey i was trying to make my application compatible with Retail, Clasic and SOD.
However alot of functions like spellbook, cgunit,cgobject now have have extra args.
Idk if i continue tho its alot of work.
-
Member
What do you need exactly? These are on PTR/beta client (will be valid in a week or two on live):
Code:
uint32_t power = 0x1758;
uint32_t secondary_power = 0x175c;
uint32_t race = 0x198c;
uint32_t class_ = 0x198d;
uint32_t sex = 0x198e;
uint32_t health = 0x1998;
uint32_t max_health = 0x19a0;
uint32_t level = 0x19a8;
uint32_t power_max = 0x1bf8;
uint32_t secondary_power_max = 0x1bfc;
uint32_t aura_start = 0x598; (static_assert(sizeof(aura) == 0xE8);)
Anyone has retail/ptr address for inventory and bags?
EDIT: looking to check which trinkets character has equipped and pots.
Last edited by ByteWielder42; 02-14-2025 at 09:09 PM.
-
Member
Retail :
Inventory = localplayer + 0xA6D8
In the inventory you have the bags/container guid
Trinkets are guid index 12 and 13
-
Post Thanks / Like - 1 Thanks
ByteWielder42 (1 members gave Thanks to Lumi666 for this useful post)
-
Member
Thanks, works like a charm ptr/beta at: 0xa790