The result is 3 times out of 3, I got all smithing text related to the boss that I used in my tests (Obsidian Samurai). I haven't got the skill drop related to him in my tests perhaps because either I already got it or the boss did not drop any skill or the script doesn't work for skill drop, further tests will be needed.
Anyway if anyone interested here is the slightly modified script.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>1009</ID>
<Description>"Max Drop Rate/ Item Rarity"</Description>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2021-02-09
Game : nioh2.exe
Version : 1.0.0.0
======================}
define(Yes_DropRate,db BE 3F 42 0F 00 90)
define(No_DropRate,db 03 B0 D8 16 00 00)
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
aobscanmodule(PSX_DropRate,nioh2.exe,03 B0 D8 16 00 00 8B C6 48 8B 74 24 38)
registersymbol(PSX_DropRate)
PSX_DropRate:
Yes_DropRate
[DISABLE]
unregistersymbol(PSX_DropRate)
PSX_DropRate:
No_DropRate
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
{
// ORIGINAL CODE - INJECTION POINT: nioh2.exe+F54E98
nioh2.exe+F54E3D: 48 8B 88 E8 0B 00 00 - mov rcx,[rax+00000BE8]
nioh2.exe+F54E44: 48 85 C9 - test rcx,rcx
nioh2.exe+F54E47: 75 07 - jne nioh2.exe+F54E50
nioh2.exe+F54E49: 48 8D 88 B0 09 00 00 - lea rcx,[rax+000009B0]
nioh2.exe+F54E50: E8 0B 8E A9 FF - call nioh2.exe+9EDC60
nioh2.exe+F54E55: 83 B8 E4 0D 00 00 00 - cmp dword ptr [rax+00000DE4],00
nioh2.exe+F54E5C: 76 33 - jna nioh2.exe+F54E91
nioh2.exe+F54E5E: 33 D2 - xor edx,edx
nioh2.exe+F54E60: 48 8B CF - mov rcx,rdi
nioh2.exe+F54E63: E8 48 17 AB FF - call nioh2.exe+A065B0
nioh2.exe+F54E68: 84 C0 - test al,al
nioh2.exe+F54E6A: 74 25 - je nioh2.exe+F54E91
nioh2.exe+F54E6C: 48 8B 87 70 02 00 00 - mov rax,[rdi+00000270]
nioh2.exe+F54E73: 48 8B 88 E8 0B 00 00 - mov rcx,[rax+00000BE8]
nioh2.exe+F54E7A: 48 85 C9 - test rcx,rcx
nioh2.exe+F54E7D: 75 07 - jne nioh2.exe+F54E86
nioh2.exe+F54E7F: 48 8D 88 B0 09 00 00 - lea rcx,[rax+000009B0]
nioh2.exe+F54E86: E8 D5 8D A9 FF - call nioh2.exe+9EDC60
nioh2.exe+F54E8B: 03 B0 E4 0D 00 00 - add esi,[rax+00000DE4]
nioh2.exe+F54E91: 48 8B 87 70 02 00 00 - mov rax,[rdi+00000270]
// ---------- INJECTING HERE ----------
nioh2.exe+F54E98: 03 B0 D8 16 00 00 - add esi,[rax+000016D8]
// ---------- DONE INJECTING ----------
nioh2.exe+F54E9E: 8B C6 - mov eax,esi
nioh2.exe+F54EA0: 48 8B 74 24 38 - mov rsi,[rsp+38]
nioh2.exe+F54EA5: 48 8B 6C 24 40 - mov rbp,[rsp+40]
nioh2.exe+F54EAA: 48 83 C4 20 - add rsp,20
nioh2.exe+F54EAE: 5F - pop rdi
nioh2.exe+F54EAF: C3 - ret
nioh2.exe+F54EB0: 33 C0 - xor eax,eax
nioh2.exe+F54EB2: 48 8B 6C 24 40 - mov rbp,[rsp+40]
nioh2.exe+F54EB7: 48 83 C4 20 - add rsp,20
nioh2.exe+F54EBB: 5F - pop rdi
nioh2.exe+F54EBC: C3 - ret
nioh2.exe+F54EBD: CC - int 3
nioh2.exe+F54EBE: CC - int 3
nioh2.exe+F54EBF: CC - int 3
nioh2.exe+F54EC0: 48 89 5C 24 08 - mov [rsp+08],rbx
nioh2.exe+F54EC5: 48 89 74 24 10 - mov [rsp+10],rsi
nioh2.exe+F54ECA: 57 - push rdi
nioh2.exe+F54ECB: 48 83 EC 20 - sub rsp,20
nioh2.exe+F54ECF: 48 8B 35 32 BA 7B 01 - mov rsi,[nioh2.exe+2710908]
nioh2.exe+F54ED6: 33 C9 - xor ecx,ecx
}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1