Friday, February 27, 2009

AoC Script: guard auto combo/stance changer




This is for 30 guard (if you have higher guard you may need to change combos)
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 autoit3 for the script to run.

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

; 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

Autoit is pressed key mapping. This should help understand ispressed func.

01 Left mouse button
02 Right mouse button
04 Middle mouse button (three-button mouse)
05 Windows 2000/XP: X1 mouse button
06 Windows 2000/XP: X2 mouse button
08 BACKSPACE key
09 TAB key
0C CLEAR key
0D ENTER key
10 SHIFT key
11 CTRL key
12 ALT key
13 PAUSE key
14 CAPS LOCK key
1B ESC key
20 SPACEBAR
21 PAGE UP key
22 PAGE DOWN key
23 END key
24 HOME key
25 LEFT ARROW key
26 UP ARROW key
27 RIGHT ARROW key
28 DOWN ARROW key
29 SELECT key
2A PRINT key
2B EXECUTE key
2C PRINT SCREEN key
2D INS key
2E DEL key
30 0 key
31 1 key
32 2 key
33 3 key
34 4 key
35 5 key
36 6 key
37 7 key
38 8 key
39 9 key
41 A key
42 B key
43 C key
44 D key
45 E key
46 F key
47 G key
48 H key
49 I key
4A J key
4B K key
4C L key
4D M key
4E N key
4F O key
50 P key
51 Q key
52 R key
53 S key
54 T key
55 U key
56 V key
57 W key
58 X key
59 Y key
5A Z key
5B Left Windows key
5C Right Windows key
60 Numeric keypad 0 key
61 Numeric keypad 1 key
62 Numeric keypad 2 key
63 Numeric keypad 3 key
64 Numeric keypad 4 key
65 Numeric keypad 5 key
66 Numeric keypad 6 key
67 Numeric keypad 7 key
68 Numeric keypad 8 key
69 Numeric keypad 9 key
6A Multiply key
6B Add key
6C Separator key
6D Subtract key
6E Decimal key
6F Divide key
70 F1 key
71 F2 key
72 F3 key
73 F4 key
74 F5 key
75 F6 key
76 F7 key
77 F8 key
78 F9 key
79 F10 key
7A F11 key
7B F12 key
7C-7F F13 key - F16 key
80H-87H F17 key - F24 key
90 NUM LOCK key
91 SCROLL LOCK key
A0 Left SHIFT key
A1 Right SHIFT key
A2 Left CONTROL key
A3 Right CONTROL key
A4 Left MENU key
A5 Right MENU key
BA ;
BB =
BC ,
BD -
BE .
BF /
C0 `
DB [
DC \
DD ]

http://werik.com/

Age of Conan Cheats

If you enjoyed this post, make sure you subscribe to our RSS feed! or follow us on Twitter

0 kommentarer:

Post a Comment

 
Age of Conan Cheats © 2009