//alloc(newmem,4048,"DiabloImmortal.exe"+6AE9BA)
alloc(newmem,2048,"DiabloImmortal.exe"+621E3A)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:


push rax
mov rax,newmem+500 // vtmem

cmp byte ptr [rcx+15B],01 // inventory > text name
jne if01
cmp [rcx+70],(float)18 // 23-5
jb if01
cmp [rcx+70],(float)28 // 23+5
ja if01
cmp [rcx+74],(float)428 // 433-5
jb if01
cmp [rcx+74],(float)438 // 433+5
ja if01
mov [rax+8*0],rcx
if01:

cmp byte ptr [rcx+15B],01 // inventory > text Platinum
jne if02
cmp [rcx+70],(float)562 // 572-10
jb if02
cmp [rcx+70],(float)600 // 572+10
ja if02
cmp [rcx+74],(float)426 // 431-5
jb if02
cmp [rcx+74],(float)436 // 431+5
ja if02
mov [rax+8*1],rcx
if02:


pop rax

exit:

// rcx+15B = 1 tat = 0
// [rcx+B0]+50 = text
// rcx+C0 = text
// rcx+70 = float x
// rcx+74 = float y

cmp byte ptr [rcx+0000015B],00
//mov rdi,r8
//mov rax,rdx
//mov rbx,rcx

jmp returnhere

//"DiabloImmortal.exe"+6AE9BA:
"DiabloImmortal.exe"+621E3A:
jmp newmem
nop
nop
returnhere:

