I'm not actually good at giving tutorials. So i'll explain you "what does what" with an example
You need;
- AutoIT
- NFS: World
Code:
#Region Includes
#Include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <MemoryModuleGetBaseAddress.au3>
#Include <NomadMemory.au3>
#EndRegion Includes
; Required files for this tutorial. Without them this won't work!
#Region Global Variables
#RequireAdmin
Global $TRUE = False
#EndRegion Global Variables
; Required "terms" for this trainer to function.
#Region Hotkeys
HotKeySet("{F1}", "Function1")
#EndRegion Hotkeys
; Hotkey Setting for "anti-cheat function"
#Region Check NFSW
If ProcessExists("nfsw.exe") = 0 Then
MsgBox(16,"ERROR", "Start NFS:World first!", 0)
Exit
EndIF
#EndRegion Check NFSW
; Check For Process "nfsw.exe"
; If process "nfsw.exe" doesn't exist then show message box + exit
#Region GUI
GUICreate("Press ESC to exit", 100, 55, -1, -1, BitXOR($WS_CAPTION, $WS_MINIMIZEBOX )) ; GUI Creation - ("Window Name", Width, Height)
GUICtrlSetFont(-1, 15, 800, 0, "") ; Here i change the font of the GUI
$AntiCheat = GUICtrlCreateLabel("F1 - Anti-Cheat", 24, 20, 250, 20) ; Here i declare a variable to "AntiCheat"
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
; Required variables to make program exit when you click the "x" at the top-right
Func Function1()
AntiCheat()
Switch $True
Case 0
GUICtrlSetColor ($AntiCheat, 16711680)
$TRUE = True
Case 1
GUICtrlSetColor ($AntiCheat, Default)
$TRUE = False
EndSwitch
EndFunc
#EndRegion GUI
; - " Func Function1() " Basically an "IF" value - If Function1 enabled;
; - " AntiCheat() " - When Function1 gets activated, active " Func AntiCheat() " too
; - " Switch $True " Switch to True-False Recongnition
; - " Case 0 " If Function1 gets activated - change color of the AntiCheat (on gui) to Red - " $TRUE = True " (IN 0-1 Type - 0 Disabled, 1 Enabled)
; - " Case 1 " If Function1 gets de-activated - change color of the AntiCheat (on gui) to Default (black) - " $TRUE = False " same as top
; - " EndSwitch " Finishes/Ends True-False Recongnition
#Region Anti-Cheat
Func AntiCheat()
$IPID_AC = ProcessExists("nfsw.exe") ; Basically an equality - After you did this you can simply write " $IPID_AC " instead of " ProcessExists("nfsw.exe") "
$MEMOPEN_AC = _MEMORYOPEN($IPID_AC) ; Opens Memory for " $IPID_AC " - Allows read-write access
$SMODULE_AC = "nfsw.exe" ; Defines target exe
$IOFFSET_AC = 0x28676E ; Target Offset (not ADDRESS)
$IOFFSET2_AC = 0x286770 ; Target Offest nr.2 (not ADDRESS)
$BASEADDR_AC = _MEMORYMODULEGETBASEADDRESS($IPID_AC, $SMODULE_AC) + $IOFFSET_AC ; Gets ADDRESS of the offset on target exe
$BASEADDR2_AC = _MEMORYMODULEGETBASEADDRESS($IPID_AC, $SMODULE_AC) + $IOFFSET2_AC ; Gets ADDRESS of the offset nr.2 on target exe
_MEMORYWRITE($BASEADDR_AC, $MEMOPEN_AC, "3947024947", "long") ; Change the value of the Found ADDRESS ( $BASEADDR_AC ) to "3947024947" )
_MEMORYWRITE($BASEADDR2_AC, $MEMOPEN_AC, "2421812034", "long") ; Change the value of the Found ADDRESS ( $BASEADDR2_AC ) to "2421812034" )
_MEMORYCLOSE($MEMOPEN_AC) ; Closes Memory (Returns to Read-Only Access)
EndFunc
#EndRegion Anti-Cheat
#Region Comment
;
; "Regions" are not necessary. I added them to easier this tutorial.
#EndRegion Comment
Some Notes;
- " ; " Is a comment variable on AutoIT - Like " // " on CE (lua)
- "Regions" are there for you to see "what is what" - You can delete them if you want
- Required files/Includes are at the RAR I uploaded - Get them!
If you have any questions feel free to ask !
© Copyrighted to "berkay2578"
Sharing this tutorial on other forums without my permission is not permitted.






