5
"Freeze Food"
Auto Assembler Script
[ENABLE]
aobscan(foodcount,8B 51 04 8B 09 0F AC D1 0C C1 FA 0C 85 C9)
alloc(newmem,48)
label(_food)
label(returnhere)
newmem:
cmp byte ptr [_food+4],01
je short @f
mov edx,[ecx+1]
shr edx,04
mov [_food],edx
mov byte ptr [_food+4],01
@@:
mov edx,[_food]
shl edx,04
mov [ecx+1],edx
mov edx,[ecx+04]
mov ecx,[ecx]
jmp returnhere
_food:
dq 0
foodcount:
jmp newmem
returnhere:
registersymbol(_food)
registersymbol(foodcount)
[DISABLE]
dealloc(newmem)
foodcount:
db 8B 51 04 8B 09
//mov edx,[ecx+04]
//mov ecx,[ecx]
//8B 51 04 8B 09 0F AC D1 0C C1 FA 0C 85 C9
//8B 51 04 3B FA 7C 06 7F 08 3B F0 77 04 33 C0 EB 05 B8 01 00 00 00 85 C0 0F 94 C0
unregistersymbol(_food)
unregistersymbol(foodcount)
9
"count at"
4 Bytes
_food
25
"No Damage To Units (Take Damage first) v1"
Auto Assembler Script
[ENABLE]
aobscan(damage,8D 8B 28 01 00 00 * * * * * 8B 53 68)
alloc(newmem,2048)
label(returnhere)
newmem:
lea ecx,[ebx+00000128]
mov eax,[ebx+B4]
test eax,eax
je short @f
cmp [eax+1C],0
je damage+B
@@:
jmp returnhere
damage:
jmp newmem
nop
returnhere:
registersymbol(damage)
[DISABLE]
dealloc(newmem)
damage:
db 8D 8B 28 01 00 00
//lea ecx,[ebx+00000128]
unregistersymbol(damage)
35
"No Damage To Units (Take Damage first) v2"
Auto Assembler Script
[ENABLE]
aobscan(damage,8D 8B 28 01 00 00 * * * * * * 8B 53 68)
alloc(newmem,2048)
label(returnhere)
newmem:
lea ecx,[ebx+00000128]
mov eax,[ebx+B4]
test eax,eax
je short @f
cmp [eax+1C],0
je damage+C
@@:
jmp returnhere
damage:
jmp newmem
nop
returnhere:
registersymbol(damage)
[DISABLE]
dealloc(newmem)
damage:
db 8D 8B 28 01 00 00
//lea ecx,[ebx+00000128]
unregistersymbol(damage)
34
"No Damage to Building (Take Damage first)"
Auto Assembler Script
[ENABLE]
aobscan(bhp,2B 45 0C 1B 55 10)
alloc(newmem,2048)
label(returnhere)
label(temp)
newmem:
mov [temp],eax
test esi,esi
je short @f
mov eax,[esi+B4]
test eax,eax
je short @f
cmp [eax+1C],0
jne short @f
mov [esi+1E],01
mov eax,[temp]
jmp returnhere
@@:
mov eax,[temp]
sub eax,[ebp+0C]
sbb edx,[ebp+10]
jmp returnhere
temp:
dd 0
bhp:
jmp newmem
nop
returnhere:
registersymbol(bhp)
[DISABLE]
dealloc(newmem)
bhp:
db 2B 45 0C 1B 55 10
//sub eax,[ebp+0C]
//sbb edx,[ebp+10]
unregistersymbol(bhp)