<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="14">
  <CheatEntries>
    <CheatEntry>
      <ID>1</ID>
      <Description>"Friend is God &amp;&amp; Enemy is Dead"</Description>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(enemy)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [ebx+10],1//checks the group(friend is 1 and enemy is 2)
jne enemy
mov eax,461C3C00//move 9999 to friend unit
jmp originalcode
enemy:
mov eax,0//move 0 to enemy unit
originalcode:
mov [ebx+04],eax//this is the original code
fldz

exit:
jmp returnhere

"Tutorial-i386.exe"+250C6:
jmp newmem
returnhere:

[DISABLE]

dealloc(newmem)
"Tutorial-i386.exe"+250C6:
mov [ebx+04],eax
fldz
</AssemblerScript>
      <Hotkeys>
        <Hotkey>
          <Action>Activate</Action>
          <Keys/>
          <ID>0</ID>
        </Hotkey>
      </Hotkeys>
    </CheatEntry>
  </CheatEntries>
  <CheatCodes>
    <CodeEntry>
      <Description>LIFE ALL</Description>
      <Address>004250C6</Address>
      <ModuleName>Tutorial-i386.exe</ModuleName>
      <ModuleNameOffset>250C6</ModuleNameOffset>
      <Before>
        <Byte>45</Byte>
        <Byte>FC</Byte>
        <Byte>8B</Byte>
        <Byte>45</Byte>
        <Byte>FC</Byte>
      </Before>
      <Actual>
        <Byte>89</Byte>
        <Byte>43</Byte>
        <Byte>04</Byte>
      </Actual>
      <After>
        <Byte>D9</Byte>
        <Byte>EE</Byte>
        <Byte>D9</Byte>
        <Byte>43</Byte>
        <Byte>04</Byte>
      </After>
    </CodeEntry>
  </CheatCodes>
  <UserdefinedSymbols/>
  <Comments>In this script the friend team will have unlimited life and one hit kill for enemies
</Comments>
</CheatTable>
