Sign in to follow this  
Followers 0
Disciples

Funcs aren't going at same time?

2 posts in this topic

Kk, well here is my script :

HotKeySet("{F5}", "_Start")
HotKeySet("{F6}", "_Stop")
HotKeySet("{F9}", "_Exit")
AdlibEnable("HP",100) 
Global $Colors = StringSplit("0x6B0967,0x663340,0xffff93,0x4C4C00,0x9f772B,0xBfBf99, 0xBE1010", ",")

While 1
    Sleep(10)
WEnd

Func _Search()
    While 1
        For $x = 1 To $Colors[0]
            $coord = PixelSearch(388,318,624,366, $Colors[$x]) ;searches for monster, if not found keeps searching
            If IsArray($coord) Then
                MouseClick("left",503,349)
                sleep(500)
                MouseClick("left",502,365)
                sleep(500)
                MouseClick("left",508,355)
                sleep(500)
                MouseClick("left",510,375)
                sleep(500)
                MouseClick("left",513,371)
                sleep(500)
            Else
                MouseClick("left",256,326)
            EndIf


       Next
    Wend
EndFunc
Func _Start()
    MouseClick ("left",578,265)
    MouseClick ("left", 610,223)
    _Search()
EndFunc   ;==>_Start

Func _Stop()
While 1
    Sleep(10)
WEnd
EndFunc   ;==>_Stop

Func _Exit()
    Exit
EndFunc   ;==>_Exit
Func hp()
    if "0xBE1010" <> "0x"&Hex(PixelGetColor(228,157),6) then 
        sleep(1000);change coordinates of position on that pixel
        MouseClick("left", 731,330,"",0) 
        Do

Sleep(100)
        Until "0xBE1010" = "0x"&Hex(PixelGetColor(420,158),6);end hp pixel position for full hp
    EndIf
EndFunc

The func hp() doesn't seem to go at all? But it is set up correct. Like the _search() func always goes, and when my hp is lower than 228,157 it doesn't seem to exit?

If anyone could help, or show me where in the Help file I can go that would be great!

Share this post


Link to post
Share on other sites



Opt("TrayIconDebug", 1)

HotKeySet("{F5}", "_Start")
HotKeySet("{F6}", "_Stop")
HotKeySet("{F9}", "_Exit")

Global $Colors = StringSplit("0x6B0967,0x663340,0xffff93,0x4C4C00,0x9f772B,0xBfBf99, 0xBE1010", ",")

While 1
    Sleep(10)
WEnd

Func _Search()
    While 1
        For $x = 1 To $Colors[0]
            $coord = PixelSearch(388,318,624,366, $Colors[$x]) ;searches for monster, if not found keeps searching
            If IsArray($coord) Then
                MouseClick("left",503,349,1,0)
                sleep(50)
                MouseClick("left",502,365,1,0)
                sleep(50)
                MouseClick("left",508,355,1,0)
                sleep(50)
                MouseClick("left",510,375,1,0)
                sleep(50)
                MouseClick("left",513,371,1,0)
                sleep(50)
                hp()
            Else
                MouseClick("left",256,326,1,0)
                hp()
            EndIf


       Next
    Wend
EndFunc

Func _Start()
    MouseClick ("left",578,265,1,0)
    MouseClick ("left", 610,223,1,0)
    _Search()
EndFunc   ;==>_Start

Func _Stop()
While 1
    Sleep(10)
WEnd
EndFunc   ;==>_Stop

Func _Exit()
    Exit
EndFunc   ;==>_Exit
Func hp()
    if "0xBE1010" <> "0x"&Hex(PixelGetColor(228,157),6) then ;change coordinates of position on that pixel
        MouseClick("left", 731,330,1,0) 
        Do
            Sleep(100)
        Until "0xBE1010" = "0x"&Hex(PixelGetColor(420,158),6);end hp pixel position for full hp
    EndIf
EndFunc

this shud work now


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0