alloc(newmem,4048,"DiabloImmortal.exe"+67AF20)
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 // address 0x0 value vtmem

// Party
// Codex
// Settings
// World Map
// Westmarch
// Blacksmith
cmp byte ptr [rcx+133],01 // text LU CODEX + SKILL + SETTING + BLACKSMITH [rcx+B0]+50
jne if00
mov [rax+8*0],rcx
mov [rax+8*0],rcx
if00:


// SETTING > Server: #6f614dHelliquary [rcx+B0]+50+0>7
// Server: #6f614dHelliquary
// Server: #6f614dDarkening of Tristram

// #8e735cServer: #6f614dHelliquary
// #8e735cServer: #6f614dDarkening of Tristram

cmp byte ptr [rcx+133],01 // text all [rcx+B0]+50>0
jne if13
mov [rax+8*10],rcx
mov [rax+8*10],rcx
if13:



// Elder Rift >  Exit Rift 374 222 > 2 SELECT
cmp byte ptr [rcx+133],01 // text all [rcx+B0]+[50]
jne if51
cmp [rcx+70],(float)429 // 459-30
jb if51
cmp [rcx+70],(float)489 // 459+30
ja if51
cmp [rcx+74],(float)185 // 205-30
jb if51
cmp [rcx+74],(float)235 // 205+30
ja if51
mov [rax+8*51],rcx
if51:

// Elder Rift >  BAT VIEW EVENT #ffedc1Go Now  680 108 X
cmp byte ptr [rcx+133],01 // text all [rcx+B0]+[50]
jne if55
cmp [rcx+70],(float)500 // 530-30
jb if55
cmp [rcx+70],(float)560 // 530+30
ja if55
cmp [rcx+74],(float)98 // 128-30
jb if55
cmp [rcx+74],(float)158 // 128+30
ja if55
mov [rax+8*55],rcx
if55:







pop rax

sub rsp,20
cmp byte ptr [rcx+00000133],00

// rcx+133 = 1 tat = 0
// [rcx+B0]+50 = text
// rcx+C0 = text
// rcx+70 = float x min
// rcx+74 = float y min ( y = 500-y CT )

// rcx+50 = float x max ( x = x )
// rcx+54 = float y max ( y = 500-y CT )





exit:
jmp returnhere

"DiabloImmortal.exe"+67AF20:
jmp newmem
nop
nop
nop
nop
nop
nop
returnhere:

