Re: Assassin's Creed: Origins [Engine:AnvilNEXT64]
Posted: Thu Mar 22, 2018 3:45 pm
Thank you Sunbeam very much appreciated!
Community Cheat Tables of Cheat Engine
https://fearlessrevolution.com/
Code: Select all
fullaccess( ACOrigins.exe, 0x1000 )
define( Hook, ACOrigins.exe+800 )
[ENABLE]
label( hTable )
aobscanmodule( AmmoWrite_AOB, ACOrigins.exe, 48895C241048896C241848897424205741544155415641574883EC50488D5940 )
label( AmmoWrite )
registersymbol( AmmoWrite )
Hook:
push rax
push rbx
push rdx
push rcx // store current __this
call GetWorld
mov rcx,[rax+98] // Entity
call ACOrigins.exe+1146720 // GetBhvAssassin
mov rcx,[rax+30] // CharacterAI
mov rcx,[rcx+40]
mov rbx,[ACOrigins.exe+4BD53B0]
lea rax,[rcx+160]
movzx ecx,byte ptr [rbx+49]
mov rax,[rax]
mov rcx,[rax+rcx*8]
add rcx,-50 // Inventory
mov rax,rcx
pop rcx // restore __this
cmp rcx,rax // compare
pop rdx
pop rbx
pop rax
jne short Hook_exit_A
// if our Inventory, then exclude ammo and tools
push rax
push rbx
push rcx
push rdi
mov rax,[r8]
mov rbx,hTable
xor rcx,rcx
Hook_loop:
mov rdi,[rbx+rcx*8]
test rdi,rdi
je short Hook_exit_B
cmp [rax+10],rdi
jne short @f
xor edx,edx // make it so update is done with 0
jmp short Hook_exit_B
@@:
inc ecx
jmp Hook_loop
Hook_exit_B:
pop rdi
pop rcx
pop rbx
pop rax
Hook_exit_A:
mov [rsp+10],rbx
jmp AmmoWrite_AOB+5
hTable:
dq 00000043E344147B // Hunter Arrows
dq 00000043E344147A // Light Arrows
dq 0000007C47909FC5 // Warrior Arrows
dq 0000007C47909FC7 // Predator Arrows
dq 000000DD50E53022 // Smoke Screen
dq 000000DD50E48FD8 // Fire Bomb
dq 0000014AE00E0706 // Berserk
dq 000001539F14A2DF // Poison Darts
dq 000001539F14A2E2 // Sleep Darts
dq 0000014AE00E06CB // Flesh Decay Toxin
dq 0
AmmoWrite_AOB:
AmmoWrite:
jmp Hook
[DISABLE]
AmmoWrite:
db 48 89 5C 24 10
unregistersymbol( AmmoWrite )