Here's an Item Editor. To make it work right you have to go into the Forge, select Temper, then Pick your Item. Once you're in the menu to actually temper your item the values will properly populate. Make the changes you want then back out of the item and the stats should take effect. I'm not expanding any further, so if you guys want to add to it feel free. Also, as previously stated in here, if you edit your item to absurd levels, the game is going to revert them to normal through sanity checks. Enjoy.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>90231</ID>
<Description>"Item Editor"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : nioh2.exe
Version:
Date : 2021-02-07
Author : Zach
This script does blah blah blah
}
[ENABLE]
aobscanmodule(Item_Edit,nioh2.exe,44 8B 57 0C 44 8B CA) // should be unique
alloc(newmem,$1000,Item_Edit)
globalalloc(ItemEdit,4)
label(code)
label(return)
newmem:
push rax
lea rax,[rdi+0C]
mov [ItemEdit],rax
pop rax
code:
mov r10d,[rdi+0C]
mov r9d,edx
jmp return
Item_Edit:
jmp newmem
nop 2
return:
registersymbol(Item_Edit)
[DISABLE]
Item_Edit:
db 44 8B 57 0C 44 8B CA
unregistersymbol(Item_Edit)
dealloc(newmem)
dealloc(ItemEdit)
{
// ORIGINAL CODE - INJECTION POINT: nioh2.exe+F52D4F
nioh2.exe+F52D36: 84 C0 - test al,al
nioh2.exe+F52D38: 74 0E - je nioh2.exe+F52D48
nioh2.exe+F52D3A: 0F BE D3 - movsx edx,bl
nioh2.exe+F52D3D: 8D 42 01 - lea eax,[rdx+01]
nioh2.exe+F52D40: 83 F8 06 - cmp eax,06
nioh2.exe+F52D43: 7D 03 - jnl nioh2.exe+F52D48
nioh2.exe+F52D45: 8D 5A 01 - lea ebx,[rdx+01]
nioh2.exe+F52D48: 33 D2 - xor edx,edx
nioh2.exe+F52D4A: 80 FB 05 - cmp bl,05
nioh2.exe+F52D4D: 77 3A - ja nioh2.exe+F52D89
// ---------- INJECTING HERE ----------
nioh2.exe+F52D4F: 44 8B 57 0C - mov r10d,[rdi+0C]
// ---------- DONE INJECTING ----------
nioh2.exe+F52D53: 44 8B CA - mov r9d,edx
nioh2.exe+F52D56: 48 0F BE C3 - movsx rax,bl
nioh2.exe+F52D5A: 48 8D 0C 80 - lea rcx,[rax+rax*4]
nioh2.exe+F52D5E: 48 8D 05 AB 0D CE 00 - lea rax,[nioh2.exe+1C33B10]
nioh2.exe+F52D65: 4C 8D 04 88 - lea r8,[rax+rcx*4]
nioh2.exe+F52D69: 0F 1F 80 00 00 00 00 - nop dword ptr [rax+00000000]
nioh2.exe+F52D70: 41 6B 00 64 - imul eax,[r8],64
nioh2.exe+F52D74: 44 3B D0 - cmp r10d,eax
nioh2.exe+F52D77: 72 10 - jb nioh2.exe+F52D89
nioh2.exe+F52D79: 41 8D 51 01 - lea edx,[r9+01]
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>90242</ID>
<Description>"Familiarity"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>4 Bytes</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>0</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>90233</ID>
<Description>"Attack?"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>-6</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>90235</ID>
<Description>"Effect 1"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>24</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>90241</ID>
<Description>"Effect 2"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>30</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>90239</ID>
<Description>"Effect 3"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>48</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>90237</ID>
<Description>"Effect 4"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>ItemEdit</Address>
<Offsets>
<Offset>54</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>