Jump to content

A little help over herrrreeeee


Souls
 Share

Recommended Posts

Ok so this is my Eternal Wars Autoclicker Beta 3 (or EWAB3)

;EWAB3

HotKeySet("{F2}", "msn")
HotkeySet("{F11}", "HK_STOP")
HotKeySet("{DEL}", "quit")

Func msn()
;clicks

while(1)
Sleep(2200) 
If (PixelGetColor (372, 500) = 0xFF9966) Then
    Send("{TAB}")
Send("{TAB}")
Send("{ENTER}")
Sleep(350)

EndIf   

If (PixelGetColor (421, 468) = 0x666666) Then
    
Send("{TAB}")
Send("{ENTER}")

EndIf

If (PixelGetColor (442, 478) = 0xFFFFFF) Then
    Exit
EndIf

If (PixelGetColor (465, 591) = 0xFFA500) Then
    Exit
EndIf
If (PixelGetColor (922, 447) = 0x371617) Then
    Exit
EndIf

If (PixelGetColor (442, 483) = 0x371617) Then
    Exit
EndIf

$coord = PixelSearch( 440, 482, 677, 536, 0x040204, 0, 2)
if @Error = 0 then 
    Exit
    
EndIf



WEnd



EndFunc 

;Stops the program
Func HK_STOP()
while 1 = 1
  Sleep(100)
wend
EndFunc

;the exit function
Func quit()
Exit
EndFunc



TrayTip("Souls Autoclicker", "DELETE= Exit", 5, 1)
TraySetIcon("Shell32.dll",112)

; Need to keep the program running until you press the hotkey
while(1)
sleep(1000)
WEnd

Ok so my problem is that if i can put two "$coord = PixelSearch( 440, 482, 677, 536, 0x040204, 0, 2)

if @Error = 0 then

Exit

" scripts in the same function and if so how can I make both of them work at the same time?

Link to comment
Share on other sites

Try this,

If PixelSearch( 0, 0, 20, 300, 0xFFFFFF, 10 ) and PixelSearch( 0, 0, 20, 300, 0xFFA500, 10 ) and PixelSearch( 0, 0, 20, 300, 0x371617, 10 ) and PixelSearch( 0, 0, 20, 300, 0x371617, 10 ) then
exit
endif

I'm sorry, but i have to tell you this isn't the best way to do this type of thing!

Edited by backstabbed

tolle indicium

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...