-
Member
Set player target Wow 1.12.1 problems
Hi all.
I am having a bit of difficulty acquiring a target in wow 1.12.1. I understand that I can use onRightClick and some other functions but for the time being that is not really my goal. I wish to acquire a target by writing its GUID into RAM. Well that is the idea anyway. Reason for this well for the time being I am trying to make the bot as passive as possible and keeping the intrusive methods to the minimum. I only write to CTM and as of now I also found the address of Lock Target GUID which to a good extent works. I write to it and I do indeed target a mob but the in game GUI does not respond, let me clarify. By writing a GUID to that address I gain a target and I can cast spells but the mob icon with health mana/energy/rage does not show up next to mine in the upper left corner.
So if anyone could further elaborate on this matter on how to target a mob by writing to a memory address as opposed to going with shell code and relaying on calls of built in methods that would be great. Also if you know for a fact that this is not possible to do the way I want it done please do let me know.
Progress thus far:
Navigation works well with detour and am able to calculate path between any to given points in world(fun times here figuring out how Recast/Detour works..... )
Motion also with rather well, I can move the player in any direction with great precision
NPC interaction also works, quest accepting and quest turning in
ObjManager is also loaded and individual target tracking works, stats of a mob are updated etc...
Now I ve come to the point when I would like to attack a mob and I am having a bit of difficulty actually targeting a mob, so if anyone could help with this particular problem.
I know also that I can write to GUID of the last target press tab and gain target but again I would prefer the previously stated approach.
-
Is this something you intend to release? If not, some rudimentary protection should be all you need from Warden. I think there are even open source implementations that you could use. It would make your life considerably easier.
-
Member
Could I trouble you for those links if possible. I was considering opening up a remote thread to call a function in wow for targeting but I hoped that I would manage to handle targeting via RAM write. Targeting is just one of two pieces left of the puzzle the other one is the AI that I am working on that will control the player.
-
This is from one of the most recently active threads on this very forum: GitHub - Zz9uk3/ZzukBot_V3: A bot for World of Warcraft. Visit https://forum.zzukbot.com/index.php?/forum/68-core-development/ -- he has a 'Protection' directory in there. I don't know what it does or how, but the author is active on this site. Maybe you could ask him.
-
Banned
The method I use for my Vanilla Bot - I think this does as you require.
PHP Code:
public static void TargetUnit(ulong guid)
{
lock (thisLock)
{
var num = hook.Memory.AllocateMemory(8);
hook.Memory.Write(num, guid);
string[] asm = {"mov ecx, " + num, "call " + 0x489A40, "retn"};
hook.InjectAndExecute(asm);
hook.Memory.FreeMemory(num);
}
}
-
Active Member
Last edited by uzzy13u; 03-24-2022 at 06:01 AM.
-
Member
Originally Posted by
WiNiFiX
The method I use for my Vanilla Bot - I think this does as you require.
PHP Code:
public static void TargetUnit(ulong guid)
{
lock (thisLock)
{
var num = hook.Memory.AllocateMemory(8);
hook.Memory.Write(num, guid);
string[] asm = {"mov ecx, " + num, "call " + 0x489A40, "retn"};
hook.InjectAndExecute(asm);
hook.Memory.FreeMemory(num);
}
}
Could I please trouble you for the link to the library you are calling InjectAndExecute from?
-
Originally Posted by
killmeplease
Could I please trouble you for the link to the library you are calling InjectAndExecute from?
Memory Hacking Library List
Will need to google BlackMagic, looks like the link is dead.
-
Post Thanks / Like - 1 Thanks
killmeplease (1 members gave Thanks to DarkLinux for this useful post)