Hello there, about six months ago i started my personal project for a bot, i thought i was doing fine until i got to call attack and target functions.
I have just these six months of experience with software developing in c++ and absolutely zero experience or knowledge about assembly but i managed to make it work for others functions like move, movepet and loot, by copy-paste the function found with cheat engine and passing the right value.
Sadly this didn't work for target and attack functions, for the first it work well, but the name shown above is incorrect, i get the name of the last manually-target and if there is none it show just "name".
The attack function does not work at all, or well, it just work at random so at least i know i'm in the right function.
It can not work sometimes, then i restart the system or the game and then it work perfectly.
These are the functions.
void FunctionCall::Target(LPVOID TargetAddress)
{
LPVOID a = (LPVOID)0x0019FAE0;
_asm
{
MOV EAX, a (removing this change nothing)
MOV EDX, [TargetAddress]
MOV EAX, [lpvTargetThis] //indirizzo fisso
MOV EAX, [EAX]
call lpvTarget
}
}
void FunctionCall::Attack(LPVOID Skill)
{
qDebug() << "ingresso funzione attacco" << UnitManager << Skill << lpvAttack; (from the debug the addresses are the right ones)
_asm
{
MOV EDX, [Skill]
MOVEAX, UnitManager
call lpvAttack
}
}
Someone more experienced can help me please?