francesco149 wrote:Nerrazzuri wrote:francesco149 wrote:I already use a var for desired misses, wich is miss_amount. Misses is how many times i got missed. Anyways, i just noticed that i forgot to initialize "Misses" to 0. But i still have the KB problem o_0. They miss me, but i get knockback wich is not supposed to happen.
Okay, just read back your script and realize that.
About the no kb part did it work in AA script form?
Its GMS, and yes it does work in the AA form.
Well, I'm not sure with the script tho, but if you want to have a 7 miss god mode with NoKB together I can do something like this for you.
Code: Select all
void __declspec(naked) MissAsm()
{
__asm
{
inc [bMissRound]
cmp [bMissRound], [MissAmount]
ja StopMiss
xor eax,eax
jmp [ulMissOpcode]
StopMiss:
mov [bMissRound],0x00
jmp [ulMissReturn]
}
}
void MissNoKB()
{
CopyMemory(bMissMem, (void*)ulMissAddy, 6);
Jump(ulMissAddy, MissAsm, 1);
*(unsigned char*)0x008581BD = 0x00;//enable byte for nokb
while(!MissExit)
{
Sleep(200);
}
CopyMemory((void*)ulMissAddy, bMissMem, 6);
*(unsigned char*)0x008581BD = 0x01;//disable byte for nokb
}
of course you'll need to define
Code: Select all
const unsigned long ulMissAddy = 0x00A5F318;
const unsigned long ulMissOpcode = ulMissAddy + *(unsigned long*)(ulMissAddy + 2) + 6;
const unsigned long ulMissReturn = ulMissAddy + 6;
unsigned char MissAmount;//FF maximum, a.k.a 225 miss, i think you know what you are doing right since you know how to edit some of the ASM script.
and for the Jump part, define something like this before your inline asm
Code: Select all
bool Jump(unsigned long ulAddress, void* Function, unsigned long ulNops)
{
__try
{
*(unsigned char*)ulAddress = 0xE9;
*(unsigned long*)(ulAddress + 1) = jmp(ulAddress, Function);
memset((void*)(ulAddress + 5), 0x90, ulNops);
return true;
}
__except (EXCEPTION_EXECUTE_HANDLER) { return false; }
}
Hope that helps. And check before copy paste, cause I type this in plain text, might be some mistake there, but generally, you can combine 2 hacks together as you make it in ASM but different method in C++.
[Off Topic]
PM me your MSN, someone is offering you something good.