[TUTORIAL]How to Create Your First S4League Trainer {AutoIt}

06/11/2012 21:04 MrT3CkToNiCk#1
Hi all! I write a tutorial for create your first trainer with autoit!

1) Download NomadMemory.au3 (Download at the end of the tutorial) and put it in AutoIt/Include

2) Download KODA Form Designer

3) Open KODA

4) Create an Form (Example:)
[Only registered and activated users can see links. Click Here To Register...]

5) Edit it with the Object Inspector:
[Only registered and activated users can see links. Click Here To Register...]

6) Then the edit,click the green arrow to get the form code:
[Only registered and activated users can see links. Click Here To Register...]

7) Copy the code
[Only registered and activated users can see links. Click Here To Register...]

8) Create an new project of autoit and paste the code

9) Now,then wend add this:
Code:
Func START()
	GUISetState(@SW_HIDE)
	ToolTip("Waiting For S4League...", 0, 0) 'The text of the tooltip
	$WAIT = ProcessWait("S4Client.exe") 'Wait the process S4Client
	$PID = ProcessExists("S4Client.exe") 'When s4 league is open,do a pause and the change the memory (Address)
	Sleep(500)   
    $OPEN = _MemoryOpen ($PID);    
 If GUICtrlRead($Checkbox1) = 1 Then    
     _MemoryWrite(0xYourAddres,$OPEN,"NewValue","Type")   'Edit Your Address with the address of your functions (Don't delete 0x)!,NewValue with the new value and type with that of your cheat.
  EndIf
The Final Code is:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("My First Trainer", 245, 123, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 96, 72, 75, 25)
$Checkbox1 = GUICtrlCreateCheckbox("Inf Ammo", 8, 24, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd

Func START()
	GUISetState(@SW_HIDE)
	ToolTip("Waiting For S4League...", 0, 0)
	$WAIT = ProcessWait("S4Client.exe")
	$PID = ProcessExists("S4Client.exe")
	Sleep(500)   
    $OPEN = _MemoryOpen ($PID);    
 If GUICtrlRead($Checkbox1) = 1 Then    
     _MemoryWrite(0xAddress,$OPEN,"Value","Type")    
  EndIf
06/11/2012 21:11 Krasti#2
The "tutorial" is too empty ;O
I mean you don't explain how to design,what every function do etc..
Not even tutorial
06/11/2012 21:14 Mr.Dark Byte#3
Close It it it it it it it it it it it it it it it
already Released--->[Only registered and activated users can see links. Click Here To Register...]
06/11/2012 21:19 kiler1997#4
Quote:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("My First Trainer", 245, 123, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 96, 72, 75, 25)
$Checkbox1 = GUICtrlCreateCheckbox("Inf Ammo", 8, 24, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $Button1
START()
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Func START()
GUISetState(@SW_HIDE)
ProcessWait("S4Client.exe")
$pid = ProcessExists("S4Client.exe")
ToolTip("Run s4 client!", 0, 0)
$open = _memoryopen($pid)
Sleep(Random(350, 700))
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0x0075C1FF, $Open, "2833879184", "long") ;Inf Ammo
EndIf
Exit
EndFunc
it will be easier
06/11/2012 22:39 Dark12363-s4#5
if the type was 4 bypes, how would it look like?
Code:
If GUICtrlRead($Checkbox1) = 1 Then 
_MemoryWrite(0x0B89938C, $Open, "2000008", "4byte")
is it like that?
06/11/2012 22:42 MrT3CkToNiCk#6
Quote:
Originally Posted by Dark12363-s4 View Post
if the type was 4 bypes, how would it look like?
Code:
If GUICtrlRead($Checkbox1) = 1 Then 
_MemoryWrite(0x0B89938C, $Open, "2000008", "4byte")
is it like that?
No,4byte in autoit is long
06/11/2012 22:59 Dark12363-s4#7
Quote:
Originally Posted by MrT3CkToNiCk View Post
No,4byte in autoit is long
k thx I guess xP
04/10/2013 12:03 bajed10#8
what is the COMplete ADress of INFI SIP

(0xXXXXXXXX,$OPEN,XXXXXXXXXX,long or float?)
04/10/2013 13:56 ★ MrJava ★#9
Quote:
Originally Posted by kiler1997 View Post
it will be easier
Yes your "Tutorial is Better" you can add to you tutorial my Suspender and Resumer
04/14/2013 09:40 dogtag130#10
how i open the form??
04/14/2013 11:03 gadmaxsasuke#11
nice but i think if you made a video it will be easier
04/17/2013 11:57 Windows 7 Pro64#12
Ich Werde mal Versuchen Ü,Ü
04/17/2013 12:27 Hassler999#13
Schöne sache so geht das ganz easy ;) hat in Thx verdient ^^
04/17/2013 13:14 badrulsenoi#14
Please make video tuto ..
04/17/2013 13:22 SkýC0ré#15
enough Video´s on Youtube.

Take SuFu!

Kind Regards