#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=S4 League.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
#include <NomadMemory.au3>
$Form1 = GUICreate("S4 League 测试外挂", 314, 141, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("无限的SP", 8, 8, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("无重力", 8, 32, 97, 17)
$Checkbox3 = GUICtrlCreateCheckbox("快速火灾", 8, 56, 65, 17)
$Checkbox4 = GUICtrlCreateCheckbox("无限子弹", 8, 80, 97, 17)
$Checkbox5 = GUICtrlCreateCheckbox("无敌模式", 8, 104, 97, 17)
$Label1 = GUICtrlCreateLabel("By cmc5410", 208, 120, 99, 17)
$Button1 = GUICtrlCreateButton("开启辅助!", 232, 8, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
EndSwitch
WEnd
Func _Hack()
Tooltip("Waiting for S4Client.exe..." ,0,0)
$PID = ProcessExists("S4Client.exe")
ProcessWait($PID)
Tooltip("Made by cmc5410" ,0,0)
$Open = _MEMORYOPEN($PID)
if GUICTRLREAD($Checkbox1) = 1 Then
_MemoryWrite(0x005BDEF4,$OPEN,"7985408""long")
if GUICTRLREAD($Checkbox2) = 1 Then
_MemoryWrite(0x00507D14,$OPEN,"5692314112""long")
if GUICTRLREAD($Checkbox3) = 1 Then
_MemoryWrite(0x5479A9,$OPEN,"999329936""long")
if GUICTRLREAD($Checkbox4) = 1 Then
_MemoryWrite(0x75C1FF,$OPEN,"37008""byte[4]")
if GUICTRLREAD($Checkbox5) = 1 Then
_MemoryWrite(0x005017d8,$OPEN,"4226388112""long")
EndIf
EndIf
EndIf
EndIf
EndIf
endfunc