-
Active Member
using Mouse over to select a target 3.3.5a
Hello everyone, I decided to port the bot from classic to 3.3.5.
I'm having trouble using the Mouse_Over_GUID global offset
When I write the GUID of a mob into Mouse_ower_GUID and then click on interaction with the mouse pointer, the mob is not targeted
Code:
Mouse_Over_GUID = 0x00BD07A0;
Unsigned __int64 mobGUID = GetClosestMobGuid(); // Returns the GUID of the nearest mob, 8 bytes in size
if(moGUID>0) // If the result is not 0
{
WriteBytes(Mouse_Over_GUID, mobGUID, 8); // Write the resulting GUID, 8 bytes in size, into memory
PressActionKey(); // press the key to interact with the mouse cursor
}
In this case, the data is written to memory at the current address, but nothing works.
What am I doing wrong, what byte size should the GUID have?
This method works great in classic wow but does not work in 3.3.5. in classic Wow the GUID is 16 bytes
Last edited by Hrap; 09-14-2024 at 01:59 PM.
-
The GUID of a 32-bit client is 8 bytes.
-
Post Thanks / Like - 1 Thanks
Hrap (1 members gave Thanks to qop1832 for this useful post)