Usurper wrote: ↑Sat Apr 25, 2020 7:36 am
DkFreddan wrote: ↑Fri Apr 24, 2020 7:43 am
And what does that do?
it Kills all animal on the map with lowest weight leaving only the highest weight animals
How do i use it? i made the code like this in highlight animals
{ Game : theHunterCotW_F.exe
Version:
Date : 2020-04-11
Author : ctl3d
This script does blah blah blah
}
[ENABLE]
aobscanmodule(address,theHunterCotW_F.exe,0F 2E 80 A8 02 00 00 75 ?? F3 0F ?? ?? ?? ?? ?? ?? 0F 2E 80 AC 02 00 00 75 ?? F3 0F ?? ?? ?? ?? ?? ?? 0F 2E 80 B0 02 00 00 75 ?? 48 8D 55 A8 48 8B ?? ?? ?? ?? ?? E8 ?? ?? ?? ?? F3 0F 10 45 A8 F3 0F 11 45 D8 F3 0F 10 4D AC F3 0F 11 4D DC F3 0F 10 45 B0 F3 0F 11 45 E0 C7 45 E4 00 00 80 3F 0F 28 DF 0F 28 D7) // should be unique
assert(address,0F 2E 80 A8 02 00 00)
alloc(newmem,$1000,"theHunterCotW_F.exe"+7A8DA1)
alloc(tagged,$4)
registerSymbol(tagged)
label(code)
label(return)
newmem:
mov [tagged],rax
cmp [rax+00000174],0 //is Alive?
jle code
mov [rax+000002A8],(float)0.0 //red
mov [rax+000002AC],(float)0.0 //green
red:
mov [rax+000002A8],(float)1.0 //red
mov [rax+000002AC],(float)0.0 //green
mov [rax+000002B0],(float)0.0 //blue
jmp code
green:
mov [rax+00000174],0 //animal current health <--------
mov [rax+00000170],0 //animal max health <-------
mov [rax+000002A8],(float)0.0 //red
mov [rax+000002AC],(float)1.0 //green
mov [rax+000002B0],(float)0.0 //blue
jmp code
mov [rax+000002B0],(float)0.0 //blue
mov [rbx],(float)10.0
code:
ucomiss xmm0,[rax+000002A8]
jmp return
address:
jmp newmem
nop 2
return:
registersymbol(address)
[DISABLE]
address:
db 0F 2E 80 A8 02 00 00
// ucomiss xmm0,[rax+000002A8]
dealloc(newmem)
dealloc(tagged)
unregistersymbol(address)
{
// ORIGINAL CODE - INJECTION POINT: "theHunterCotW_F.exe"+7A8DA1
"theHunterCotW_F.exe"+7A8D78: 44 0F B6 64 24 30 - movzx r12d,byte ptr [rsp+30]
"theHunterCotW_F.exe"+7A8D7E: 66 90 - nop
"theHunterCotW_F.exe"+7A8D80: 48 8B CB - mov rcx,rbx
"theHunterCotW_F.exe"+7A8D83: E8 48 10 00 00 - call theHunterCotW_F.exe+7A9DD0
"theHunterCotW_F.exe"+7A8D88: 48 8B F0 - mov rsi,rax
"theHunterCotW_F.exe"+7A8D8B: 48 85 C0 - test rax,rax
"theHunterCotW_F.exe"+7A8D8E: 0F 84 25 01 00 00 - je theHunterCotW_F.exe+7A8EB9
"theHunterCotW_F.exe"+7A8D94: 45 84 E4 - test r12l,r12l
"theHunterCotW_F.exe"+7A8D97: 74 7A - je theHunterCotW_F.exe+7A8E13
"theHunterCotW_F.exe"+7A8D99: F3 0F 10 05 37 EC 9D 01 - movss xmm0,[theHunterCotW_F.exe+21879D8]
// ---------- INJECTING HERE ----------
"theHunterCotW_F.exe"+7A8DA1: 0F 2E 80 A8 02 00 00 - ucomiss xmm0,[rax+000002A8]
// ---------- DONE INJECTING ----------
"theHunterCotW_F.exe"+7A8DA8: 75 69 - jne theHunterCotW_F.exe+7A8E13
"theHunterCotW_F.exe"+7A8DAA: F3 0F 10 05 2A EC 9D 01 - movss xmm0,[theHunterCotW_F.exe+21879DC]
"theHunterCotW_F.exe"+7A8DB2: 0F 2E 80 AC 02 00 00 - ucomiss xmm0,[rax+000002AC]
"theHunterCotW_F.exe"+7A8DB9: 75 58 - jne theHunterCotW_F.exe+7A8E13
"theHunterCotW_F.exe"+7A8DBB: F3 0F 10 05 1D EC 9D 01 - movss xmm0,[theHunterCotW_F.exe+21879E0]
"theHunterCotW_F.exe"+7A8DC3: 0F 2E 80 B0 02 00 00 - ucomiss xmm0,[rax+000002B0]
"theHunterCotW_F.exe"+7A8DCA: 75 47 - jne theHunterCotW_F.exe+7A8E13
"theHunterCotW_F.exe"+7A8DCC: 48 8D 55 A8 - lea rdx,[rbp-58]
"theHunterCotW_F.exe"+7A8DD0: 48 8B 0D C1 19 AB 01 - mov rcx,[theHunterCotW_F.exe+225A798]
"theHunterCotW_F.exe"+7A8DD7: E8 64 F6 18 00 - call theHunterCotW_F.exe+938440
}
Is that correct? Cause i still see low level mooses and stuff? not only max weight