Hallo,
ich habe hier einen kleinen NosTale Bot gescriptet.
Alles klappt perfekt, bis auf das, dass der Startbutton nicht funktioniert.
Ich schreibe Euch mal den Source rein, hoffe ihr könnt mir helfen.
SchonmalDanke im Vorraus.
Mit freundlichen Grüßen,
B-O
ich habe hier einen kleinen NosTale Bot gescriptet.
Alles klappt perfekt, bis auf das, dass der Startbutton nicht funktioniert.
Ich schreibe Euch mal den Source rein, hoffe ihr könnt mir helfen.
PHP Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf
$Form1 = GUICreate("NosTale AfK-Bot 2.0 By B-O", 633, 368, 191, 122)
$EasyBotting = GUICtrlCreateGroup("Easy Botting", 16, 8, 281, 121)
$OnlySpace = GUICtrlCreateRadio("Press only Space", 32, 32, 249, 17)
$SpaceX = GUICtrlCreateRadio("Press Space and X", 32, 56, 249, 17)
$OnlyZ = GUICtrlCreateRadio("Press only Z", 32, 80, 249, 17)
$ZX = GUICtrlCreateRadio("Press Z and X", 32, 104, 249, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$LvlModeSit = GUICtrlCreateGroup("Lvl Mode (Sitting)", 16, 136, 281, 225)
$SpaceOrangeLive = GUICtrlCreateRadio("Press only Space and sitting By Orange Live", 32, 160, 249, 17)
$SpaceRedLive = GUICtrlCreateRadio("Press only Space and sitting By Red Live", 32, 184, 249, 17)
$SpaceXOrangeLive = GUICtrlCreateRadio("Press Space+X and sitting By Orange Live", 32, 208, 249, 17)
$SpaceXRedLive = GUICtrlCreateRadio("Press Space+X and sitting By Red Live", 32, 232, 249, 17)
$ZOrangeLive = GUICtrlCreateRadio("Press only Z and sitting By Orange Live", 32, 256, 249, 17)
$ZRedLive = GUICtrlCreateRadio("Press only Z and sitting By Red Live", 32, 280, 249, 17)
$ZXOrangeLive = GUICtrlCreateRadio("Press Z+X and sitting By Orange Live", 32, 304, 249, 17)
$ZXRedLive = GUICtrlCreateRadio("Press Z+X and sitting By Red Live", 32, 328, 249, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$LvlModeDrink = GUICtrlCreateGroup("Lvl Mode (Drink a Pott)", 312, 8, 305, 121)
$HpBy = GUICtrlCreateLabel("If Hp By:", 328, 40, 45, 17)
$YourHp = GUICtrlCreateInput("", 384, 40, 73, 21)
$ThenHp = GUICtrlCreateLabel("Then press:", 472, 40, 60, 17)
$HpInput = GUICtrlCreateInput("", 544, 40, 57, 21)
$MpBy = GUICtrlCreateLabel("If Mp By:", 328, 80, 46, 17)
$YourMp = GUICtrlCreateInput("", 384, 80, 73, 21)
$ThenMp = GUICtrlCreateLabel("Then press:", 472, 80, 60, 17)
$MpInput = GUICtrlCreateInput("", 544, 80, 57, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$StartButton1 = GUICtrlCreateButton("Starting (F1)", 320, 144, 297, 81, 0)
$ExitButton2 = GUICtrlCreateButton("Exit", 320, 240, 297, 81, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $StartButton1
_Func1 ()
Case $ExitButton2
_Func2()
EndSwitch
WEnd
;==> Button
Func _Func1 ()
Run ("Nostale.exe")
EndFunc
Func _Func2 ()
Exit
EndFunc
;==> Easy Botting
$OnlySpace = Controlsend("NosTale","","","{Space}")
$SpaceX = Controlsend("NosTale","","","{Space}","{X}"),
$OnlyZ = Controlsend("NosTale","","","{Z}")
$ZX = Controlsend("NosTale","","","{Z}"),"{X}")
;==> Lvl Mode
$SpaceOrangeLive = Controlsend("NosTale","","","{Space}"),
If PixelGetcolor (123,55) <> 0xFCC000 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$SpaceRedLive = Controlsend("NosTale","","","{Space}"),
If PixelGetcolor (123,55) <> 0xFF3100 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXOrangeLive = Controlsend("NosTale","","","{Space}","{X}"),
If PixelGetcolor (123,55) <> 0xFCC000 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXRedLive = Controlsend("NosTale","","","{Space}","{X}")
If PixelGetcolor (123,55) <> 0xFF3100 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$ZOrangeLive = Controlsend("NosTale","","","{Z}"),
If PixelGetcolor (123,55) <> 0xFCC000 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$ZRedLive = Controlsend("NosTale","","","{Z}"),
If PixelGetcolor (123,55) <> 0xFF3100 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$ZXOrangeLive = Controlsend("NosTale","","","{Z}","{X}")
If PixelGetcolor (123,55) <> 0xFCC000 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$ZXRedLive = Controlsend("NosTale","","","{Z}","{X}"),
If PixelGetcolor (123,55) <> 0xFF3100 Then
Sleep ("10000")
Controlsend("NosTale","","","{C}")
EndIf
$YourHp =
$HpInput =
$YourMp =
$MpInput =
Mit freundlichen Grüßen,
B-O