-
Basic Targeting (Left Click)
I have the VMT position for game objects that works for a lot of things (anything that underlying is a game object). However, I don't have this flexibility when trying to left click most units or mob types. I'm also trying to find CGGameUI::Target, to target specific units, but it seems that has been changed to target last, nearest, etc instead of using a guid or lightuserdata.
Any help here would be greatly appreciated. My near goal is to just target by GUID or userdata. Thank you.
Last edited by Glitt; 07-13-2024 at 11:18 PM.
Reason: CGGameUI::
-
Are you looking for the mouse click call I mentioned here? He can also be used for target selection https://www.ownedcore.com/forums/wor...fset-dump.html ([classic][Cata][4.4.0.54558] offset dump)
-
Originally Posted by
qop1832
Does it have an official name in the mac symbols binary (mouse_addr). I can't find the first pattern. As I understand you are writing the guid field to the mouse then confirming it with a click.
-
Yes, that's it, but I don't know what its official name is. Because I don't have a Mac... I uploaded 3.4.3.55586 in the binary file (this is the special WLK version for China.)... It is located at 0x3D3DFB0.... The binary file is at GitHub - qop1832/wow_dump_file: 脱壳文件
-
Post Thanks / Like - 1 Thanks
Glitt (1 members gave Thanks to qop1832 for this useful post)
-
Active Member
I do it by writing the guid to the lasttarget global and then run the TargetLastTarget() lua function.
-
Originally Posted by
thateuler
I do it by writing the guid to the lasttarget global and then run the TargetLastTarget() lua function.
This sounds more efficient or simple. I would like to just use the Target function if possible, but I'm not sure if that's how it works. Also having trouble finding mousover or lasttarget smh...
-
Active Member
I'm using this pattern. Its been stable for several updates now. Maybe even since TBC? (I forget)
Code:
.text:0000000140679270 48 89 7C 24 20 mov qword ptr [rsp+38h+var_18], rdi
.text:0000000140679275 48 89 7C 24 28 mov qword ptr [rsp+38h+var_18+8], rdi
.text:000000014067927A 0F 10 44 24 20 movups xmm0, [rsp+38h+var_18]
.text:000000014067927F 48 89 7C 24 20 mov qword ptr [rsp+38h+var_18], rdi
.text:0000000140679284 48 89 7C 24 28 mov qword ptr [rsp+38h+var_18+8], rdi
.text:0000000140679289 0F 11 05 D8 73 73 02 movups cs:CGGameUI__m_lastTarget, xmm0
48 89 7C 24 ? 0F 10 44 24 ? 48 89 7C 24 ? 48 89 7C 24 ? 0F 11 05 ? ? ? ?
Last edited by thateuler; 07-15-2024 at 05:46 PM.
-
Post Thanks / Like - 1 Thanks
Glitt (1 members gave Thanks to thateuler for this useful post)
-
Originally Posted by
thateuler
I'm using this pattern. Its been stable for several updates now. Maybe even since TBC? (I forget)
Code:
.text:0000000140679270 48 89 7C 24 20 mov qword ptr [rsp+38h+var_18], rdi
.text:0000000140679275 48 89 7C 24 28 mov qword ptr [rsp+38h+var_18+8], rdi
.text:000000014067927A 0F 10 44 24 20 movups xmm0, [rsp+38h+var_18]
.text:000000014067927F 48 89 7C 24 20 mov qword ptr [rsp+38h+var_18], rdi
.text:0000000140679284 48 89 7C 24 28 mov qword ptr [rsp+38h+var_18+8], rdi
.text:0000000140679289 0F 11 05 D8 73 73 02 movups cs:CGGameUI__m_lastTarget, xmm0
48 89 7C 24 ? 0F 10 44 24 ? 48 89 7C 24 ? 48 89 7C 24 ? 0F 11 05 ? ? ? ?
Lol timing I just found it on retail. Something like this worked...
Code:
enum_objects(all_callback, ACTIVEPLAYER);
auto base = (uintptr_t)GetModuleHandle(NULL);
auto player = object_pool.at(0);
auto g = reinterpret_cast<guid*>(base + 0x43E4C38);
*g = player->id();
-
Member
Just writing to the target guid offset actually works btw:
Code:
pub fn target_by_guid(&self, guid: GUID) {
self.process
.write_mem::<i128>(self.module_base_address + OFFSETS.target_guid, guid);
}
This is the pattern I use for the offset:
Code:
48 39 05 ?? ?? ?? ?? 49 8B F0 48 8B FA 48 8B E9 75 62 48 8B 03
-
Post Thanks / Like - 1 Thanks
cloakr (1 members gave Thanks to Trioxygen for this useful post)
-
I get no response on retail writing to current target.
edit: nvm it appears I was trying to set the target of a stool XD
Last edited by Glitt; 07-17-2024 at 04:26 PM.
Reason: edit