[Aide] Andy Trainer's

  • Partenaires

Utilisateurs qui regardent le poste (Total: 0, Members: 0, Invité: 0)

Statut
La discussion n'est pas ouverte à d'autres réponses
Ice-Crack

Ice-Crack

Level 4
Level 3
Level 2
Level 1
6 Mai 2011
494
0
742
30
Script corrigé. Je me suis aperçu que tu avais repris le code source de quelqu'un, j'espère que tu lui a demandé son accord avant de faire ça ?? La prochaine fois je ne t'aiderai pas.

#RequireAdmin

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Trainer's Andy", 242, 161, -1, -1)
$Checkbox1 = GUICtrlCreateCheckbox("Godmod", 16, 8, 65, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Infini Ammo", 16, 128, 81, 17)
$Checkbox3 = GUICtrlCreateCheckbox("200 hp", 16, 104, 65, 17)
$Checkbox4 = GUICtrlCreateCheckbox("1 HitKill", 16, 80, 57, 17)
$Checkbox5 = GUICtrlCreateCheckbox("Fast Fire", 16, 56, 65, 17)
$Checkbox6 = GUICtrlCreateCheckbox("CutSpeed", 16, 32, 97, 17)
$Button1 = GUICtrlCreateButton("Start ?!", 112, 64, 113, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()
Switch $nMsg

Case -3
Exit

Case $Button1
cheat()

EndSwitch
WEnd

Func cheat()

ToolTip("En Attente d'S4League", 0, 0)
$PID = ProcessWait("S4Client.exe")
Sleep(400)
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
Sleep(1000)

If GUICtrlRead ($Checkbox1) = 1 Then
_MEMORYWRITE(0x00504AF8 , $OPEN, "4226388112", "long")
EndIf

If GUICtrlRead ($Checkbox2) = 1 Then
_MEMORYWRITE(0x007614B2 , $OPEN, "2348565979 ", "long")
EndIf

If GUICtrlRead ($Checkbox3) = 1 Then
_MEMORYWRITE(0x007614B2 , $OPEN, "3051982992 ", "long")
EndIf

If GUICtrlRead ($Checkbox4) = 1 Then
_MEMORYWRITE(0x00505469 , $OPEN, "1593591259 ", "long")
EndIf

If GUICtrlRead ($Checkbox5) = 1 Then
_MEMORYWRITE(0x0054A939 , $OPEN, "990399115 ", "long")
EndIf

If GUICtrlRead ($Checkbox6) = 1 Then
_MEMORYWRITE(0x005FE35E , $OPEN, "2240612458 ", "long")
EndIf

_memoryclose($OPEN)
_processresume("HGWC.exe")
_processresume("S4Client.exe")
Exit

EndFunc

Func _PROCESSSUSPEND($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc



Func _PROCESSRESUME($PROCESS)
$PROCESSID = ProcessExists($PROCESS)
If $PROCESSID Then
$AI_HANDLE = DllCall("kernel32.dll", "int", "OpenProcess", "int", 2035711, "int", False, "int", $PROCESSID)
$I_SUCESS = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $AI_HANDLE[0])
DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $AI_HANDLE)
If IsArray($I_SUCESS) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc

Erreurs :​
- Toutes les erreurs étaient au niveau de la GUI (l'interface) : dans le script tu déclares 6 CheckBox mais dans la GUI on en voit qu'une seule, c'est pour ça que ça crash.
(Je t'es redimensionné la GUI de façon à ce que toutes les CheckBox apparaissent.)​

Cordialement, Ice.​
 
Ice-Crack

Ice-Crack

Level 4
Level 3
Level 2
Level 1
6 Mai 2011
494
0
742
30
Ok, edit avant la prochaine fois ;)
 
Statut
La discussion n'est pas ouverte à d'autres réponses