-
Member
BoundingRadius + CombatReach + SpecID
Since several Days i am looking for BoundingRadius + CombatReach + SpecID offsets, i dumped the object memory (from the unit ptr on)
but couldnt find them, does someone have these offsets probably and would share? (retail)
and could someone explain how to find them?
Edit:
Found it out thanks
Last edited by Van152; 2 Days Ago at 02:59 AM.
-
Active Member
Originally Posted by
Van152
Since several Days i am looking for BoundingRadius + CombatReach + SpecID offsets, i dumped the object memory (from the unit ptr on)
but couldnt find them, does someone have these offsets probably and would share? (retail)
and could someone explain how to find them?
Edit:
Found it out for BoundingRadius and CombatReach, only thing left is SpecID
I am not sure about the retail but it usually can be found in places like CastShapeshiftForm(index) (E8 ?? ?? ?? ?? 8B F8 85 C0 75 10 E8 ?? ?? ?? ?? 48 85 C0 74 06 8B B8 ?? ?? ?? ?? 41 B1 ?? 44 8B) or where ChrSpecialization db2 offset is being accessed to call DBGetRecord.
-
Post Thanks / Like - 1 Thanks
Van152 (1 members gave Thanks to InnerSilence for this useful post)
-
Member
Thanks alot i found it ^^ the Pattern doesnt work for retail but i got this offset for ChrSpecialization: 0xe056b
the pattern Fusion generated for this function is waaay to long to post xD
i found the objPtr+SpecID_Offset offset by looking through some xrefs in qword_422AE50
-
Member
If someone have any hints on getting the npc_ID i would appreciate too!
i tried to extract it from the GUID but it seems that this isnt possible anymore?
well, at least it does not show the npc_id for every npc object, only for a few and mostly its wrong.
also i tried finding it in the objBase but i wasnt lucky...
-
Member
after some hours of trying to bitshift the low:high formatted guid to extract the NPC_ID/Object ID from it, i found the GUIDToString Function
well, with that its pretty easy to get the NPCID convert the packed GUID to String GUID and extract the 6. segment of it.
this is the IDA pattern to GUIDToString from the latest patch (11.2.0.63305)
48 89 5C 24 ? 48 89 6C 24 ? 56 48 83 EC ? 41 8B F0
also some other one i found out (just wanted to give something back):
//Calculate BoundingRadius: 48 89 5C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 41 56 48 83 EC ? 48 8B C2
// CalcCombatReachPercentage: 48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 49 8B C0 48 8B F2 48 8B D9
//MisManager: 48 8B 1D ? ? ? ? 8B F2 48 8B F9
// xref to Update_Missile check Label 170: 48 89 4C 24 ? 55 53 56 57 41 54 41 55 41 56 41 57 48 81 EC ? ? ? ? 48 8D 6C 24 ? 8B 51
//Descriptor Register: 40 53 48 83 EC ? E8 ? ? ? ? E8 ? ? ? ? E8
//PlayerTargetingPriority(needed for SpecID): 40 55 56 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 41 B9
//WorldToScreen: 48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8B B4 24
//WorldFrame:GetScreenCoordinates: 4C 8B DC 49 89 5B ? 49 89 73 ? 57 48 83 EC ? 48 8B F9 0F 29 74 24
//GetScreenWidth: 48 83 EC ? 0F 29 74 24 ? F3 0F 10 35 ? ? ? ? E8 ? ? ? ? F3 0F 5E F0 F3 0F 10 05 ? ? ? ? F3 0F 59 05 ? ? ? ? F3 0F 59 C6 0F 28 74 24 ? F3 0F 5E 05 ? ? ? ? 48 83 C4 ? C3 48 89 5C 24
//GetScreenHeight: 48 83 EC ? 0F 29 74 24 ? F3 0F 10 35 ? ? ? ? E8 ? ? ? ? F3 0F 5E F0 F3 0F 10 05 ? ? ? ? F3 0F 59 05 ? ? ? ? F3 0F 59 C6 0F 28 74 24 ? F3 0F 5E 05 ? ? ? ? 48 83 C4 ? C3 48 83 EC
//CameraPosition: 40 53 48 83 EC ? 48 8B D9 E8 ? ? ? ? F2 0F 10 80 ? ? ? ? F2 0F 11 03 8B 80 ? ? ? ? 89 43 ? 48 83 C4 ? 5B C3 CC CC CC CC CC CC CC 40 53
//HandleTerrainClick: 48 89 5C 24 ? 48 89 74 24 ? 57 48 81 EC ? ? ? ? 83 79 ? ? 48 8B D9 74
I hope this will be helpful for some!
Also I got a new challenge, i want to draw some stuff like circles around targets/players and spell ESP for this i need the WorldToScreen/GetScreenCoordinates function, as you can see i got it ^^
but somehow i always got the wrong position, i started by drawing a little square on Player Position (player position is correct i get it via GetPosition function call, and it is returning WorldCoords)
but somehow, the position of the square is always of.
i noticed also that the UIParent:GetWidth & GetHeight are returning weird screen sizes my monitor is running in 2560x1440 and wow is running in 1920x1080
UIParent returns: 1820x1024
WorldFrame: 1365x768
UIScale: 0.75
i am pretty clueless after searching alot. What type das the GetScreenCoordinates returns? NDC or DDC?
maybe this could help me to convert these weird values into pixel on the correct position
8d3455d1d3e7933220331c5bb6bad5e30b7275f13c502ea8153ef22dc973ce80 hosted at ImgBB — ImgBB
Screenshot-4 hosted at ImgBB — ImgBB
Edit: i found out that the problem is the Viewport, i couldnt find... does someone has any hints or could me direct in the right direction?
Last edited by Van152; 5 Days Ago at 06:04 AM.
-
Post Thanks / Like - 1 Thanks
Creepwalker (1 members gave Thanks to Van152 for this useful post)
-
Contributor
FInd one you know or use ID tip addon and open reclass, go to target unit pointer and find it..
Actually you dont even need reclass, just find one for your target, start at base and scan for int == npc_id print offset profit
-
Member
Maybe https://www.ownedcore.com/forums/wor...dtoscreen.html ([Classic] 1.13.2.32089 - WorldToScreen) can help you.
Regarding the ID, can't you use GetItemID ( offset 0x88 )? Or are you looking for a different ID?
-
Member