<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
  <CheatEntries>
    <CheatEntry>
      <ID>92</ID>
      <Description>"Coordinates"</Description>
      <Options moBindActivation="1"/>
      <LastState Value="" Activated="0" RealAddress="00000000"/>
      <Color>80000008</Color>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>75</ID>
          <Description>"x_coord"</Description>
          <LastState Value="64809.90234" Activated="0" RealAddress="0D121C58"/>
          <Color>80000008</Color>
          <VariableType>Float</VariableType>
          <Address>0075C4BC</Address>
          <Offsets>
            <Offset>188</Offset>
            <Offset>4</Offset>
            <Offset>8</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>91</ID>
          <Description>"y_coord"</Description>
          <LastState Value="2949.252441" Activated="0" RealAddress="0D121C54"/>
          <Color>80000008</Color>
          <VariableType>Float</VariableType>
          <Address>0075C4BC</Address>
          <Offsets>
            <Offset>184</Offset>
            <Offset>4</Offset>
            <Offset>8</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>90</ID>
          <Description>"z_coord"</Description>
          <LastState Value="14018.39258" Activated="0" RealAddress="0D121C50"/>
          <Color>80000008</Color>
          <VariableType>Float</VariableType>
          <Address>0075C4BC</Address>
          <Offsets>
            <Offset>180</Offset>
            <Offset>4</Offset>
            <Offset>8</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>93</ID>
      <Description>"Auto Assemble script"</Description>
      <LastState Activated="0"/>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

label(z_coord)
label(x_coord)
label(y_coord)

label(save_coord)
label(load_coord)

label(s_enable)
label(l_enable)

registersymbol(s_enable)
registersymbol(l_enable)


"DW6_WIN.exe"+14017:
jmp newmem
nop
nop
nop
returnhere:

newmem:
cmp [s_enable],1
je save_coord

cmp [l_enable],1
je load_coord

jmp originalcode

save_coord:
mov [s_enable],0
push ebx
mov ebx,[esi+00000180]
mov [x_coord],ebx
mov ebx,[esi+00000184]
mov [z_coord],ebx
mov ebx,[esi+00000188]
mov [y_coord],ebx
pop ebx
jmp originalcode

load_coord:
mov [l_enable],0
cmp [z_coord],0
je originalcode
push ebx
mov ebx,[x_coord]
mov [esi+00000180],ebx
mov ebx,[z_coord]
mov [esi+00000184],ebx
mov ebx,[y_coord]
mov [esi+00000188],ebx
pop ebx

originalcode:
movq xmm0,[esi+00000180]

exit:
jmp returnhere

x_coord:
dd 0
z_coord:
dd 0
y_coord:
dd 0
s_enable:
dd 0
l_enable:
dd 0


[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"DW6_WIN.exe"+14017:
movq xmm0,[esi+00000180]
//Alt: db F3 0F 7E 86 80 01 00 00
unregistersymbol(s_enable)
unregistersymbol(l_enable)
</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Toggle Activation</Action>
          <Keys>
            <Key>96</Key>
          </Keys>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols>
    <SymbolEntry>
      <Name>gmode</Name>
      <Address>00478E66</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>instantkill</Name>
      <Address>0253000A</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>infitem</Name>
      <Address>0040BC50</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>alllegionsexp</Name>
      <Address>0040A1D4</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>infbull</Name>
      <Address>00456567</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>combo1</Name>
      <Address>0051C103</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>combo2</Name>
      <Address>0050C55B</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>combo3</Name>
      <Address>004E1E8E</Address>
    </SymbolEntry>
  </UserdefinedSymbols>
</CheatTable>
