Sign in to follow this  
Followers 0
Skilinium

Script freeze (100% CPU.)

3 posts in this topic

The problem is.. that when i run the script.. it uses 100% CPU. (Freezes.)

Would anyone see the bug?

It worked good before.. maybe some error or so?

HotKeySet("x", "_Quit");X to quit

Func _Quit()
Exit
EndFunc  ;==>_Quit

while 1
    
$scan = PixelGetColor(148,519) 
$scan2 = PixelGetColor(264,539)
$scan3 = PixelGetColor(116,46)
$scan4 = PixelGetColor(148,519)
$scan5 = PixelGetColor(378,153)
$scancolor = Dec("201038") 
$scancolor2 = Dec("F80000")
$scancolor3 = Dec("E03000")
$scancolor4 = Dec("5828F0")
$scancolor5 = Dec("00EC88")

WEnd

While 1

if $scan5 == $scancolor5 Then;Auto Attacker (To 1 Mob.)
    MouseClick("left",253,503, 5,0)
    Sleep(11000)
    
EndIf

if $scan == $scancolor then;Use pot.
    MouseClick("left",224,513, 5,0)
    sleep(1000)
    
EndIf

If $scan2 == $scancolor2 then;Auto use skill
    MouseClick("left",278,497, 3,0)
    Sleep(1000)
    MouseClick("left",343,372, 3,0)
    Sleep(1000)
    MouseClick("left",693,253, 3,0)
    Sleep(1000)
    
EndIf

if $scan3 == $scancolor3 Then;Auto Walk.
    MouseClick("left", 100,500, 1,0)
    MouseDown("left")
    Sleep(2000)
    MouseClick("left", 700,500, 1,0)
    MouseDown("left")
    Sleep(2000)
    
EndIf

if $scan4 == $scancolor4 Then;After pot usage
    MouseClick("left",278,497, 3,0)
    Sleep(1000)
    MouseClick("left",343,372, 3,0)
    Sleep(1000)
    MouseClick("left",693,253, 3,0)
    Sleep(1000)
    
EndIf

WEnd

Share this post


Link to post
Share on other sites



Yes, i did removed that olso.. but it still uses 100% CPU.

Share this post


Link to post
Share on other sites

ty ^^

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