CHEATENGINE	         Enable/Disable minimum ResourceÈ ¥	   iEnableMR                   Enable/Disable God ModeÌ ¥	   iEnableMH                    Enable/Disable minimum PointsÐ ¥	   iEnableMP                    Auto assemble cheat        ÿ             C  //=========================================
// Order Of War
// Game Version  : 1.0.1858(.25593)
// Script Version: 1.0
// CE Version    : 5.5
// Resource, GodMode, Points
// 15-Oct-2009
//=========================================

[ENABLE]
alloc(MyCode,1024)

//=========================================
// Declaration section
label(_MonDisp)
label(_MonRes)
label(_BackMR)
label(_ExitMR)
label(_MonHP)
label(_BackMH)
label(_ExitMH)
label(_MonPoints)
label(_BackMP)
label(_ExitMP)
label(_IniVar)
label(_BackIV)
label(iEnableMR)
label(iEnableMH)
label(iEnableMP)
label(pDisp)
label(iPlayerID)

registersymbol(MyCode)
registersymbol(iEnableMR)
registersymbol(iEnableMH)
registersymbol(iEnableMP)

//=========================================
// Hacking Points
oow_final_dx10.exe+2aaafc:
 jmp _MonDisp
 
oow_final_dx10.exe+2af1d4:
 jmp _MonRes
_BackMR:

oow_final_dx10.exe+2ad386:
 jmp _MonHP
_BackMH:

oow_final_dx10.exe+31ba82:
 jmp _MonPoints
 nop
_BackMP:

oow_final_dx10.exe+11ced4:
 jmp _IniVar
 nop
_BackIV:

MyCode:
//=========================================
_MonDisp:
 mov [pDisp],eax             // Save ptr for further use

 fld dword ptr [eax+08]      // Original code
 pop ecx                     // Original code 
 ret 0004                    // Original code 

//=========================================
_MonRes:
 cmp dword ptr [iEnableMR],0
 je _ExitMR                  // Jump if feature is disabled

 cmp ebx,[pDisp]             // Player´s Resource?
 jne _ExitMR                 // Jump if false

 mov eax,[edx]               // Get player id
 mov [iPlayerID],eax         // Save it for further use
 
 mov eax,43fa0000            // 500 (float)
 cmp eax,[edx+04]            // Current value >= minimum?
 jle _ExitMR                 // Jump if true
 
 mov [edx+04],eax            // Update current value

_ExitMR:
 fstp dword ptr [ebx+08]     // Original code
 mov eax,[esi]               // Original code
 jmp _BackMR                 // Back to main code

//=========================================
_MonHP:
 push ebx
 
 cmp dword ptr [iEnableMH],0
 je _ExitMH                  // Jump if feature is disabled

 mov ebx,[esi+10]            // Get unit owner id
 cmp ebx,[iPlayerID]         // Player´s unit?
 jne _ExitMH                 // Jump if false

 mov ebx,#50000
 cmp ebx,[ecx+10]            // Current value >= minimum?
 jle _ExitMH                 // Jump if true
 
 mov [ecx+10],ebx            // Update current value

_ExitMH:
 pop ebx

 add ebp,[ecx+10]            // Original code
 cmp eax,ebx                 // Original code
 jmp _BackMH                 // Back to main code

//=========================================
_MonPoints:
 mov [esi+00000144],eax      // Original code

 cmp dword ptr [iEnableMP],0
 je _ExitMP                  // Jump if feature is disabled

 mov eax,#5000
 cmp eax,[esi+00000144]      // Current value >= Minimum?
 jle _ExitMP                 // Jump if true
 
 mov [esi+00000144],eax      // Make current value = minimum

_ExitMP:
 jmp _BackMP                 // Back to main code

//=========================================
_IniVar:
 mov [oow_final_dx10.exe+00BB8208],esi // Original code
 
 mov [pDisp],esi             // Initialize to any value
 mov [iPlayerID],esi         // Initialize to any value
 
 jmp _BackIV                 // Back to main code

//=========================================
// Variables
iEnableMR:
 dd 1
iEnableMH:
 dd 1 
iEnableMP:
 dd 1 
pDisp:
 dd MyCode
iPlayerID:
 dd MyCode

//=========================================
// Original Codes
[DISABLE]
oow_final_dx10.exe+2aaafc:
 fld dword ptr [eax+08]
 pop ecx
 ret 0004
 
oow_final_dx10.exe+2af1d4:
 fstp dword ptr [ebx+08]
 mov eax,[esi]

oow_final_dx10.exe+2ad386:
 add ebp,[ecx+10]
 cmp eax,ebx

oow_final_dx10.exe+31ba82:
 mov [esi+00000144],eax

oow_final_dx10.exe+11ced4:
 mov [oow_final_dx10.exe+00BB8208],esi
 
dealloc(MyCode)
unregistersymbol(MyCode)
unregistersymbol(iEnableMR)
unregistersymbol(iEnableMH)
unregistersymbol(iEnableMP)   üªj oow_final_dx9.exeüª* ƒÀtÙ@YÂ Ù;006aaafc - d9 40 08 - fld dword ptr [eax+08] - rds res dispÔñj oow_final_dx9.exeÔñ* èœ”óÿÙ[‹‹OK006af1d4 - d9 5b 08 - fstp dword ptr [ebx+08] -  upds disp value - edx=real†Ój oow_final_dx9.exe†Ó* 3É‹ i;ÃuÊ‰6006ad386 - 03 69 10 - add ebp,[ecx+10] - rds hp (this)‚ºq oow_final_dx9.exe‚º1 j j ‰†D  ‹Bh”J0071ba82 - 89 86 44 01 00 00 - mov [esi+00000144],eax - upds points on buyÔÎQ oow_final_dx9.exeÔÎ ÆD$ ‰5‚û èaHU =0051ced4 - 89 35 08 82 fb 00 - mov [00fb8208],esi - ini value     ¥   MyCode   11A50000È ¥	   iEnableMR   11A500C8Ì ¥	   iEnableMH   11A500CCÐ ¥	   iEnableMP   11A500D0    