Script schliest sich nach einem Durchgang

  • Sooo ich habe mal für Jedi Knights 2 Jedi Outcast einen autohealer gebastelt, scheint auch so weit so gut zu funktionieren... aber wenn der script einmal durchgegangen ist, schliest er sich wieder

    [autoit]

    #include <NomadMemory.au3>
    #RequireAdmin

    HotKeySet("{f5}", "_StartBot")
    HotKeySet("{f6}", "_PauseBot")
    HotKeySet("{f7}", "_EndeBot")
    Global $Active = 1


    $process = _memoryopen(ProcessExists("jk2mp.exe"))

    $x1 = 0x90A320 ; health adresse
    $x2 = 0x8F8FEC ; Item adresse
    If ProcessExists("jk2mp.exe") = False Then
    MsgBox("JK2 Autobacta", "Ravand's Autobacta", "Start JK2 first.")
    Exit
    EndIf

    ; $health = InputBox("Type in.", "Type minimum Health tolerance." & @LF & "Bacta must be on ENTER key." & @LF & "" & @LF & "F5=Start Hack" & @LF & "F6=Pause Hack" & @LF & "F7=Quit Hack")
    While _MemoryRead($x2, $process, 'dword') = 6 ;value of having the item

    If _MemoryRead($x1, $process, 'dword') < 23 Then ; minimum health
    Send("{ENTER}")
    EndIf
    Sleep(1)
    WEnd


    Func _StartBot()
    $Active = 1
    EndFunc ;==>_StartBot

    Func _PauseBot()
    $Active = 0

    EndFunc ;==>_PauseBot

    Func _EndeBot()
    Exit
    EndFunc ;==>_EndeBot

    [/autoit]

    +>06:00:57 AutoIT3.exe ended.rc:0 <- mehr kommt nicht

    Wenn ich das Item wieder aufhebe, schliest sich der prozess sofort... woran könnte das liegen?
    Ich wäre sehr dankbar :)
    mfg
    ravand

    PS: mir ist aufgefallen, das der bot manchmal sehr spaet reagiert? i,welche tipps den script zu beschleunigen?

    Einmal editiert, zuletzt von ravand (29. Juli 2010 um 06:02)

  • Ich verweise dich auf die Forenregeln

    Zitat

    Also kein Support von unserer Seite. MfG

    Make it idiot proof, and someone will build a better idiot!

    Ich würd so gern die Welt verändern, aber Gott gibt mir den Quellcode nicht.