so recently my friend and i got into asm for ds3 and we wanted to make a script that doesnt consume any items when its used. so far we have done that in a sense but also it seems if you try to pick up lets say a weapon the game will just crash instantly. i actually didn't write the code myself but i tried looking at ways to fix it and came up empty.
any help would be appreciated. as for the opcodes it seems one of them is an opcode for when the item is dropped from the item stack and the other when its consumed. not sure how to potentially write it but yeah any help would be nice.
[ENABLE] aobscanmodule(NoGoodsAOB,DarkSoulsIII.exe,89 51 08 C3 4C 8D 83 98 00 00 00) alloc(NoGoods,$128,NoGoodsAOB) label(code) label(return) NoGoods: code: movzx r8d,[rbx+00001EEA] mov r8,r8d sub [rcx+08],r8d ret lea r8,[rbx+00000098] jmp return NoGoodsAOB: jmp NoGoods nop nop nop nop nop nop return: registersymbol(NoGoodsAOB) [DISABLE] NoGoodsAOB: db 89 51 08 C3 4C 8D 83 98 00 00 00 unregistersymbol(NoGoodsAOB) dealloc(NoGoods)