-
Member
How to find function that casts an ability?
Hello!
I started on WoW cheating since there are no "real" bots for rotation for servers that use their own custom clients.
So I found the action bar in about 5 minutes and that was easy and all but now I am stuck on finding the correct function that tells the game to cast that spell.
I have tried with the "Find out what accesses this address this address" on the action bar slot 1, and I get a bunch of results but I can't seem to find the one which is the function that calls to click that button.
Is there anyone in here that could help me figure this out?
image_2023-04-12_185710890.png
-
★ Elder ★
To cast a spell it is /cast
But then depends on what you are using and trying to do.
-
Member
Originally Posted by
BlueRainsky
To cast a spell it is /cast
But then depends on what you are using and trying to do.
I know the standard command in a macro is to type /cast
What I am looking for is how to call the game function that actually clicks the spell for me so that I can pass in the action bar it should click on and then it does it via code.
Trying to make my own rotation but since most of the good private servers are custom and don't work with something like Wrobot.
But I can`t seem to find what function is doing that in cheat engine.
-
Originally Posted by
syliaan
I know the standard command in a macro is to type /cast
What I am looking for is how to call the game function that actually clicks the spell for me so that I can pass in the action bar it should click on and then it does it via code.
Trying to make my own rotation but since most of the good private servers are custom and don't work with something like Wrobot.
But I can`t seem to find what function is doing that in cheat engine.
I think what you want is `/run UseAction(1) end`
This presses/clicks the first action bar. The macro `/click` is tied to hardware event as a protection mechanism while UseAction is protected on a software principle, so it's likely the trail you want to follow because following it's path will lead from Lua to the actual C function ClientCCast or whatever it is. They are both avenues you can pursue. The hardware level would just be a matter of emulating the hardware event rather than worrying yourself about covering your tracks when messing with the C. I had this thought about exploiting the recently added controller stuff like Xbox/Dualshock to go that route instead of bothering with all the stealth of being in process. Not sure what is best in your scenario but best of luck to you.
-
Post Thanks / Like - 1 Thanks
scizzydo (1 members gave Thanks to Glitt for this useful post)