Set Three Empty Mod Slots
Code: Select all
[ENABLE]
aobscanmodule(modcheck,DXM-Win64-Shipping.exe,48 8B 42 D8 48 89 41 E8) // should be unique
alloc(newmem,$1000,modcheck)
aobscanmodule(modcheck1,DXM-Win64-Shipping.exe,48 8B 42 E0 48 89 41 F0) // should be unique
alloc(newmem1,$1000,modcheck1)
aobscanmodule(modcheck2,DXM-Win64-Shipping.exe,48 8B 42 E8 48 89 41 F8) // should be unique
alloc(newmem2,$1000,modcheck2)
label(code)
label(return)
label(code1)
label(return1)
label(code2)
label(return2)
newmem:
cmp dword ptr[rdx-28],0741
jne code
mov dword ptr[rdx-28],0
code:
mov rax,[rdx-28]
mov [rcx-18],rax
jmp return
modcheck:
jmp newmem
nop
nop
nop
return:
registersymbol(modcheck)
newmem1:
cmp dword ptr[rdx-20],0741
jne code1
mov dword ptr[rdx-20],0
code1:
mov rax,[rdx-20]
mov [rcx-10],rax
jmp return1
modcheck1:
jmp newmem1
nop
nop
nop
return1:
registersymbol(modcheck1)
newmem2:
cmp dword ptr[rdx-18],0741
jne code2
mov dword ptr[rdx-18],0
code2:
mov rax,[rdx-18]
mov [rcx-08],rax
jmp return2
modcheck2:
jmp newmem2
nop
nop
nop
return2:
registersymbol(modcheck2)
[DISABLE]
modcheck:
db 48 8B 42 D8 48 89 41 E8
modcheck1:
db 48 8B 42 E0 48 89 41 F0
modcheck2:
db 48 8B 42 E8 48 89 41 F8
unregistersymbol(modcheck)
dealloc(newmem)
unregistersymbol(modcheck1)
dealloc(newmem1)
unregistersymbol(modcheck2)
dealloc(newmem2)
Activate this in "Factory -> Customize Equipment -> Armor/Weapon". Then press Q/E (the button that switches Armor/Weapon). It should make all parts get three empty slots.
Deactivate this script in "Customize Equipment" to avoid any conflict. Maybe.
Have fun and hope it works.