| Posted: August 17th, 2008 |
|
Total Posts:48 Joined:2007
|
|
This is for 30 guard. If you have higher guard you may need to change combos. I will update when i get my guard higher. This will change to frenze stance on the last hit on 2 main combo's. I bound them to Q and E. It will also finish every combo for you. It can detect button press (4-5-6-7-8-9) and then will finish combo. It will also detect mouse press but you need to get coords for that to work. I use the coords of the pic of the combo in the combo icon that pops up when u do a combo. This has timing for each combo. Adjust as you see fit. You need autoit ver3 for the script to run. Post if you need help.
Default key binds.
Q =
buff
flashing arc 3
left attack
frenze
right attack
guard
E =
buff
flashing arc 2
frenze
right attack
guard
These need to be this way or changed in script
4 = flashing arc 3
5 = guard 2 or 1 ----used to refreash stance change
6 = flashing arc 2
7 = slam -------------used to refreash stance change
8 = Enraging strike 3
9 = Brutal Enraging strike 3
alt1 = left arrow
alt2 = up arrow
alt3 = right arrow
alt4 = buff
alt5 = frenze stance
alt6 = guard stance
#include <Misc>
; Detect windows by class name
opt("winTitleMatchMode", 4)
If @error Then
MsgBox(4096, "Error", "detect window")
endif
; Set Coordinate mode to relative to window
AutoItSetOption ( "PixelCoordMode", 2 )
AutoItSetOption ( "MouseCoordMode", 2 )
AutoItSetOption ( "SendKeyDownDelay", 50 )
global $Window = winGetHandle("classname=Conan")
If @error Then
MsgBox(4096, "Error", "Could not find the correct window WinActivate($Window); ")
endif
; Main Loop
While WinExists($Window)
$button34 = button4();
$button35 = button5();
$button36 = button6();
$button38 = button8();
$button39 = button9();
If _IsPressed("51") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "4" ) ; combo
sleep (500)
Send ( "!1" ) ; left attack
sleep (200)
Send ( "!5" ) ; frenze
sleep (1000)
Send ( "!3" ) ; right attack
sleep (1900)
Send ( "!6" ) ; guard
EndIf
If _IsPressed("45") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "6" ) ; combo
sleep (500)
Send ( "!5" ) ; frenze
sleep (1000)
Send ( "!3" ) ; right attack
sleep (1900)
Send ( "!6" ) ; guard
EndIf
If _IsPressed("34") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
If $button34 == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
If _IsPressed("35") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
EndIf
If $button35 == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
EndIf
If _IsPressed("36") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
If $button36 == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
If _IsPressed("38") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!3" ) ; right attack
sleep (1500)
Send ( "!1" ) ; left attack
sleep (1500)
EndIf
If $button38 == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!3" ) ; right attack
sleep (1500)
Send ( "!1" ) ; left attack
sleep (1500)
EndIf
If _IsPressed("39") == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
If $button39 == 1 Then
Send ( "!4" ) ; buff
sleep (200)
Send ( "!1" ) ; left attack
sleep (1500)
Send ( "!3" ) ; right attack
sleep (1500)
EndIf
Wend
Func button4()
$color1="0xFBF8F7"
If pixelgetcolor(796, 688) = $color1 then
return 1;
Else
return 0;
endif
EndFunc
Func button5()
$color1="0xE7F9F1"
If pixelgetcolor(805, 690) = $color1 then
return 1;
Else
return 0;
endif
EndFunc
Func button6()
$color1="0xFCFCFC"
If pixelgetcolor(813, 722) = $color1 then
return 1;
Else
return 0;
endif
EndFunc
Func button8()
$color1="0xFBF9F4"
If pixelgetcolor(799, 702) = $color1 then
return 1;
Else
return 0;
endif
EndFunc
Func button9()
$color1="0xC69245"
If pixelgetcolor(792, 693) = $color1 then
return 1;
Else
return 0;
endif
EndFunc
Last edited by owner2119 on August 17th, 2008, 8:39 am, edited 2 times in total. |
|