don't forget that there are some hacks, by what s4 crashesQuote:
can you check my code? Keep crashingg ,
Code:#RequireAdmin #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <NoMadMemory.au3> $InfSp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945F88BE55DC3CCCCCCCCCCCCCC558BEC51894D" ) $200hp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D64") $InfAmmo = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"7605E9870000008B55E8") $GodMode = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"7205E9760B00008B4D90") $NoLaser = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A218D4D9851E8") $InstantRespawn = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"043B48087209C745B001000000EB07C745B0000000000FB655B085D20F85D4") $1Hit = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCC558BEC51") $SpeedHackRun = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"006A038D95C8") $SpeedHackWalk = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A038D853CFEFFFF50E8") $Invisible = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"74108B55FC8B8AA0020000") $Suicide = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D70") $HitRange = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945C48B4DF464890D") #Region ### START Koda GUI section ### Form=c:\users\ems\desktop\tick all.kxf $Form1_1 = GUICreate("AnimeLover's Trainer", 565, 271, 192, 110) $Group1 = GUICtrlCreateGroup("Group1", 8, 16, 545, 241) $Checkbox1 = GUICtrlCreateCheckbox("Inf Sp", 24, 64, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox2 = GUICtrlCreateCheckbox("Godmode", 24, 104, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox3 = GUICtrlCreateCheckbox("1Hit", 24, 144, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox4 = GUICtrlCreateCheckbox("Invisible", 24, 184, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox5 = GUICtrlCreateCheckbox("200HP", 168, 64, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateGroup("", -99, -99, 1, 1) $Checkbox6 = GUICtrlCreateCheckbox("No Laser", 168, 112, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox7 = GUICtrlCreateCheckbox("Speed Hack (run)", 168, 144, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox8 = GUICtrlCreateCheckbox("Suicide", 168, 184, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox9 = GUICtrlCreateCheckbox("Instant Respawn", 312, 104, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox10 = GUICtrlCreateCheckbox("Inf Ammo", 312, 64, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox11 = GUICtrlCreateCheckbox("Speed Hack (walk)", 312, 144, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Checkbox12 = GUICtrlCreateCheckbox("Hit Range", 312, 184, 137, 41) GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0xFF0000) $Button1 = GUICtrlCreateButton("EXIT", 464, 104, 81, 73) GUICtrlSetFont(-1, 16, 800, 0, "Palatino Linotype") GUICtrlSetColor(-1, 0x800080) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $Pid = ProcessExists("S4Client.exe") $OPEN = _MemoryOpen ($Pid) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Exit Case $Checkbox1 If GUICtrlRead($Checkbox1) = 1 Then _memorywrite($InfSp,$open,"2348303835","long") Else _memorywrite($InfSp,$open,"2348303833","long") EndIf Case $Checkbox2 If GUICtrlRead($Checkbox2) = 1 Then _memorywrite($200HP,$open,"2348565979","long") Else _memorywrite($200HP,$open,"2348565977","long") EndIf Case $Checkbox3 If GUICtrlRead($Checkbox3) = 1 Then _memorywrite($InfAmmo,$open,"2280231056","long") Else _memorywrite($InfAmmo,$open,"2280195446","long") EndIf Case $Checkbox4 If GUICtrlRead($Checkbox4) = 1 Then _memorywrite($Godmode,$open,"2348565979","long") Else _memorywrite($Godmode,$open,"2348565977","long") EndIf Case $Checkbox5 If GUICtrlRead($Checkbox5) = 1 Then _memorywrite($NoLaser,$open,"1301115242","long") Else _memorywrite($NoLaser,$open,"1301094762","long") EndIf Case $Checkbox6 If GUICtrlRead($Checkbox6) = 1 Then _memorywrite($InstantRespawn,$open,"989874827","long") Else _memorywrite($InstantRespawn,$open,"990136971","long") EndIf Case $Checkbox7 If GUICtrlRead($Checkbox7) = 1 Then _memorywrite($1Hit,$open,"989874827","long") Else _memorywrite($1Hit,$open,"990136971","long") EndIf Case $Checkbox8 If GUICtrlRead($Checkbox8) = 1 Then _memorywrite($SpeedHackRun,$open,"2366073344","long") Else _memorywrite($SpeedHackRun,$open,"2365811200","long") EndIf Case $Checkbox9 If GUICtrlRead($Checkbox9) = 1 Then _memorywrite($SpeedHackWalk,$open,"2366073344","long") Else _memorywrite($SpeedHackWalk,$open,"2365811200","long") EndIf Case $Checkbox10 If GUICtrlRead($Checkbox10) = 1 Then _memorywrite($Invisible,$open,"2240612202","long") Else _memorywrite($Invisible,$open,"2240611178","long") EndIf Case $Checkbox11 If GUICtrlRead($Checkbox11) = 1 Then _memorywrite($Suicide,$open,"2348565983","long") Else _memorywrite($Suicide,$open,"2348565977","long") EndIf Case $Checkbox12 If GUICtrlRead($Checkbox12) = 1 Then _memorywrite($HitRange,$open,"2344895963","long") Else _memorywrite($HitRange,$open,"2344895961","long") EndIf EndSwitch WEnd Func _MemoryScan($ah_Handle, $pattern, $after = False, $iv_addrStart = 0x00000000, $iv_addrEnd = 0X0FFFFFFF, $step = 51200) If Not IsArray($ah_Handle) Then SetError(1) Return -1 EndIf $pattern = StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "") If StringLen($pattern) = 0 Then SetError(2) Return -2 EndIf For $addr = $iv_addrStart To $iv_addrEnd Step $step - (StringLen($pattern) / 2) StringRegExp(_MemoryRead($addr, $ah_Handle, "byte[" & $step & "]"), $pattern, 1, 2) If Not @error Then If $after Then Return StringFormat("0x%.8X", $addr + ((@extended - 2) / 2)) Else Return StringFormat("0x%.8X", $addr + ((@extended - StringLen($pattern) - 2) / 2)) EndIf EndIf Next Return -3 EndFunc ;==>_MemoryScan
here is fixed
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NoMadMemory.au3>
$InfSp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945F88BE55DC3CCCCCCCCCCCCCC558BEC51894D")
$200hp = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D64")
$InfAmmo = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"7605E9870000008B55E8")
$GodMode = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"7205E9760B00008B4D90")
$NoLaser = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A218D4D9851E8")
$InstantRespawn = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"043B48087209C745B001000000EB07C745B0000000000FB655B085D20F85D4")
$1Hit = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCC558BEC51")
$SpeedHackRun = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"006A038D95C8")
$SpeedHackWalk = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"6A038D853CFEFFFF50E8")
$Invisible = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"74108B55FC8B8AA0020000")
$Suicide = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945FC8BE55DC3CCCCCCCCCCCCCCCCCCCCCCCCCC558BEC51894DFC8D4508508B0D70")
$HitRange = _MemoryScan(_MemoryOpen(ProcessExists("S4Client.exe")),"D945C48B4DF464890D")
#Region ### START Koda GUI section ### Form=c:\users\ems\desktop\tick all.kxf
$Form1_1 = GUICreate("AnimeLover's Trainer", 565, 271, 192, 110)
$Group1 = GUICtrlCreateGroup("Group1", 8, 16, 545, 241)
$Checkbox1 = GUICtrlCreateCheckbox("Inf Sp", 24, 64, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox2 = GUICtrlCreateCheckbox("Godmode", 24, 104, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox3 = GUICtrlCreateCheckbox("1Hit", 24, 144, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox4 = GUICtrlCreateCheckbox("Invisible", 24, 184, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox5 = GUICtrlCreateCheckbox("200HP", 168, 64, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Checkbox6 = GUICtrlCreateCheckbox("No Laser", 168, 112, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox7 = GUICtrlCreateCheckbox("Speed Hack (run)", 168, 144, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox8 = GUICtrlCreateCheckbox("Suicide", 168, 184, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox9 = GUICtrlCreateCheckbox("Instant Respawn", 312, 104, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox10 = GUICtrlCreateCheckbox("Inf Ammo", 312, 64, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox11 = GUICtrlCreateCheckbox("Speed Hack (walk)", 312, 144, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Checkbox12 = GUICtrlCreateCheckbox("Hit Range", 312, 184, 137, 41)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
$Button1 = GUICtrlCreateButton("EXIT", 464, 104, 81, 73)
GUICtrlSetFont(-1, 16, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0x800080)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Pid = ProcessExists("S4Client.exe")
$OPEN = _MemoryOpen ($Pid)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Exit
case $Checkbox1
If GUICtrlRead($Checkbox1) = 1 Then
_memorywrite($InfSp,$open,"2348303835","long")
Else
_memorywrite($InfSp,$open,"2348303833","long")
EndIf
Case $Checkbox2
If GUICtrlRead($Checkbox2) = 1 Then
_memorywrite($200HP,$open,"2348565979","long")
Else
_memorywrite($200HP,$open,"2348565977","long")
EndIf
Case $Checkbox3
If GUICtrlRead($Checkbox3) = 1 Then
_memorywrite($InfAmmo,$open,"2280231056","long")
Else
_memorywrite($InfAmmo,$open,"2280195446","long")
EndIf
Case $Checkbox4
If GUICtrlRead($Checkbox4) = 1 Then
_memorywrite($Godmode,$open,"2348565979","long")
Else
_memorywrite($Godmode,$open,"2348565977","long")
EndIf
Case $Checkbox5
If GUICtrlRead($Checkbox5) = 1 Then
_memorywrite($NoLaser,$open,"1301115242","long")
Else
_memorywrite($NoLaser,$open,"1301094762","long")
EndIf
Case $Checkbox6
If GUICtrlRead($Checkbox6) = 1 Then
_memorywrite($InstantRespawn,$open,"989874827","long")
Else
_memorywrite($InstantRespawn,$open,"990136971","long")
EndIf
Case $Checkbox7
If GUICtrlRead($Checkbox7) = 1 Then
_memorywrite($1Hit,$open,"989874827","long")
Else
_memorywrite($1Hit,$open,"990136971","long")
EndIf
Case $Checkbox8
If GUICtrlRead($Checkbox8) = 1 Then
_memorywrite($SpeedHackRun,$open,"2366073344","long")
Else
_memorywrite($SpeedHackRun,$open,"2365811200","long")
EndIf
Case $Checkbox9
If GUICtrlRead($Checkbox9) = 1 Then
_memorywrite($SpeedHackWalk,$open,"2366073344","long")
Else
_memorywrite($SpeedHackWalk,$open,"2365811200","long")
EndIf
Case $Checkbox10
If GUICtrlRead($Checkbox10) = 1 Then
_memorywrite($Invisible,$open,"2240612202","long")
Else
_memorywrite($Invisible,$open,"2240611178","long")
EndIf
Case $Checkbox11
If GUICtrlRead($Checkbox11) = 1 Then
_memorywrite($Suicide,$open,"2348565983","long")
Else
_memorywrite($Suicide,$open,"2348565977","long")
EndIf
Case $Checkbox12
If GUICtrlRead($Checkbox12) = 1 Then
_memorywrite($HitRange,$open,"2344895963","long")
Else
_memorywrite($HitRange,$open,"2344895961","long")
EndIf
EndSwitch
WEnd
Func _MemoryScan($ah_Handle, $pattern, $after = False, $iv_addrStart = 0x00000000, $iv_addrEnd = 0X0FFFFFFF, $step = 51200)
If Not IsArray($ah_Handle) Then
SetError(1)
Return -1
EndIf
$pattern = StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "")
If StringLen($pattern) = 0 Then
SetError(2)
Return -2
EndIf
For $addr = $iv_addrStart To $iv_addrEnd Step $step - (StringLen($pattern) / 2)
StringRegExp(_MemoryRead($addr, $ah_Handle, "byte[" & $step & "]"), $pattern, 1, 2)
If Not @error Then
If $after Then
Return StringFormat("0x%.8X", $addr + ((@extended - 2) / 2))
Else
Return StringFormat("0x%.8X", $addr + ((@extended - StringLen($pattern) - 2) / 2))
EndIf
EndIf
Next
Return -3
EndFunc ;==>_MemoryScan
HaMaDa, how to make hacks like crafting bypass, random shop bypass, fly, 0 gravity and etc