Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //pVac Char Spot
- DWORD pVacAoE = 0x00958DA7;
- DWORD AoERet = pVacAoE + 6;
- int Time = 0;
- void __declspec(naked) _stdcall AoEAsm()
- {
- __asm
- {
- mov eax,[esi+0x110]
- cmp dword ptr [Time],0x007F0
- jnl [ResetAll]
- push ecx
- push edx
- inc [Time]
- mov edx,0
- mov edx, dword ptr ds:[edx+0x00B2E26C]
- mov edx, dword ptr ds:[edx+0x5F4]
- mov ecx, dword ptr ds:[eax+0x0C]
- cmp ecx,edx
- jg Next
- jl Prev
- EndPVac:
- pop ecx
- pop edx
- jmp [AoERet]
- Next:
- mov dword ptr [eax+0x50],00
- jmp EndPVac
- Prev:
- mov dword ptr [eax+0x4C],00
- jmp EndPVac
- ResetAll:
- jmp [AoERet]
- }
- }
- void Form1::checkBox14_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
- {
- if(this->checkBox14->Checked)
- {
- DWORD dwProtect;
- VirtualProtect((LPVOID)pVacAoE, 6, PAGE_EXECUTE_READWRITE, &dwProtect);
- Jump(pVacAoE, AoEAsm, 1);
- }
- else
- {
- Time = 0;
- memcpy((void*)pVacAoE, "\x8B\x86\x10\x01\x00\x00", 6);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement