By the way, i found enemieis with their -30 being 3 like the chacracters. The first ever enemy I tried... so I am reverting back to the previous formula.
PD. I did a double post by mistake, ugh.
EDIT. Other enemies end even Hunt Quests of the Orc Territory also have a 3 there. Same with enemies of the first area, although mine are the powered up version instead of the original one. Saame applies on all difficulties. They also have a Script_cmp far higher, so in the end, the issue of the old script was only on the first area before finishing chapter 3?
Edit2: Even on old save first area, the enemies have a 3 there, I don't know how that script could have been working for you. Maybe weaker enemies of the area? I started by the end. Edit: No all enemies and allies, everyone has a 3 there.
Edit3: the old script I gave you using multiple cmp wiht the rank works after a small fix. I used a 4byte by defualt byt Rank is 2byte, so by checking in 4 byte the value was always far greater than it should and was making them immortal. This works in excluding those enemies of level 4 and below from being affected by God Mode.
Code: Select all
[ENABLE]
aobscanmodule(GodModeAutoKill,$process,48 89 38 48 8B 5C 24 58) // should be unique
alloc(newmem,$1000,GodModeAutoKill)
label(code)
label(return)
newmem:
cmp [rax+50],(int)302
jl GodMode
cmp [rax+50],(int)344
jl CompareRank
jmp code
CompareRank:
cmp word ptr [rax+30],(int)24
jg GodMode
jmp code
AutoKill:
mov [rax],0
mov rbx,[rsp+58]
jmp return
GodMode:
mov rdi,[rax+10]
mov [rax],rdi
mov rbx,[rsp+58]
jmp return
code:
mov [rax],rdi
mov rbx,[rsp+58]
jmp return
GodModeAutoKill:
jmp newmem
nop 3
return:
registersymbol(GodModeAutoKill)
[DISABLE]
GodModeAutoKill:
db 48 89 38 48 8B 5C 24 58
unregistersymbol(*)
dealloc(*)
{
// ORIGINAL CODE - INJECTION POINT: sao_lr-Win64-Shipping.exe+1154BC2
sao_lr-Win64-Shipping.exe+1154B93: C6 44 24 30 3C - mov byte ptr [rsp+30],3C
sao_lr-Win64-Shipping.exe+1154B98: 48 8B D7 - mov rdx,rdi
sao_lr-Win64-Shipping.exe+1154B9B: C6 44 24 28 3D - mov byte ptr [rsp+28],3D
sao_lr-Win64-Shipping.exe+1154BA0: 48 8B CB - mov rcx,rbx
sao_lr-Win64-Shipping.exe+1154BA3: 48 C7 44 24 20 00 00 00 00 - mov qword ptr [rsp+20],00000000
sao_lr-Win64-Shipping.exe+1154BAC: E8 2F FF EC FF - call sao_lr-Win64-Shipping.exe+1024AE0
sao_lr-Win64-Shipping.exe+1154BB1: 48 8B 46 08 - mov rax,[rsi+08]
sao_lr-Win64-Shipping.exe+1154BB5: 48 C7 00 00 00 00 00 - mov qword ptr [rax],00000000
sao_lr-Win64-Shipping.exe+1154BBC: EB 07 - jmp sao_lr-Win64-Shipping.exe+1154BC5
sao_lr-Win64-Shipping.exe+1154BBE: 48 8B 46 08 - mov rax,[rsi+08]
// ---------- INJECTING HERE ----------
sao_lr-Win64-Shipping.exe+1154BC2: 48 89 38 - mov [rax],rdi
// ---------- DONE INJECTING ----------
sao_lr-Win64-Shipping.exe+1154BC5: 48 8B 5C 24 58 - mov rbx,[rsp+58]
sao_lr-Win64-Shipping.exe+1154BCA: 48 8B 74 24 60 - mov rsi,[rsp+60]
sao_lr-Win64-Shipping.exe+1154BCF: 48 8B 7C 24 68 - mov rdi,[rsp+68]
sao_lr-Win64-Shipping.exe+1154BD4: 48 83 C4 40 - add rsp,40
sao_lr-Win64-Shipping.exe+1154BD8: 41 5E - pop r14
sao_lr-Win64-Shipping.exe+1154BDA: C3 - ret
sao_lr-Win64-Shipping.exe+1154BDB: CC - int 3
sao_lr-Win64-Shipping.exe+1154BDC: CC - int 3
sao_lr-Win64-Shipping.exe+1154BDD: CC - int 3
sao_lr-Win64-Shipping.exe+1154BDE: CC - int 3
}
Edit4: On the old save I got a couple of medals thanks to the scripts, and the Script_cmp didn't change. The medals are likely not affecting the value, so only story progression and rank should be.
Edit5: second area has the same issue as the first since on easy there are low level enemies befor eending chapter 3. The new script works anyway. There are level 5 enemies on the second area story with a value exactly 344, so they aren't immortal, but if we have to increase the cmp value later, they will, so it is good to have it in mind.
Edit6. Current script is difinitely wroking everywhere unless our cmp can grow more than what we have, in which case we would ened to increase a bit the low level, still, it won't affect much since unless you cheat the Rank specifically you it is not normal to be Rank 50 before completing chapter 3 where these areas get updated with stronger enemies eliminating the issue.
Edit7: My Infinite Weapon Awakening works again... I think it can only be activated while on the field not towns.
Edit8: I am idiot, no wonder it didn't work my Reset Skill Cooldown, fixed and now works. have it activated and goodbye cooldowns.