I am learning coding, I just started with AutoIt to create simple scripts and I'd like to understand a very used Nostale bot made with Autoit (
) It only has several lines that I tried to copy in my own AutoIt file that you can find below and then execute it but it doesn't work, it says there is an error. I probably made some mistakes can you guys take a look at it and tell me what do I have to do to make it work ? It's probably so basic to y'all who use C++ but well I need to start somewhere
Code:
Func Départ ()
WinActivate("NosTale","")
AutoItSetOption ("PixelCoordMode",2)
Sleep(500)
while 1
$agresse = 0
If PixelGetColor(170,28) = 0x6B6C6C Then
ToolTip("En combat [Vie < 45%]",0,0)
$var = 0
While $var < 15
$var = $var 1
VerifVie()
Ramasse()
Combat()
WEnd
Repos()
Else
ToolTip("Nostale en combat",0,0)
VerifVie()
Ramasse()
SelectMob()
Combat
EndIf
WEnd
EndFunc






