-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiamond2.Q
92 lines (75 loc) · 1.49 KB
/
diamond2.Q
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[General]
SyntaxVersion=2
BeginHotkey=121
BeginHotkeyMod=0
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=123
StopHotkeyMod=0
RunOnce=1
EnableWindow=
MacroID=c7e1d6a7-4dd2-49cb-95ff-a9531cc9590d
Description=dianmond2
Enable=0
AutoRun=0
[Repeat]
Type=0
Number=1
[SetupUI]
Type=2
QUI=
[Relative]
SetupOCXFile=
[Comment]
[Script]
For 9999
intPlantX = 500 'column base pos, leftmost
intPlantIntervalX = 84 'column interval
'========== buy cards x 10 ==========
Delay 222
KeyDown "6", 1
Delay 49
KeyUp "6", 1 'go to inventory
MoveTo 1196, 691
Delay 222
LeftClick 1 'go to shop
MoveTo 1195, 691
Delay 222
RightClick 1 'switch to gold shop
MoveTo 1174, 348
Delay 222
LeftClick 1 'buy cards x 10
MoveTo 765, 546
Delay 222
LeftClick 3 'confirm purchase
MoveTo 1200, 750
Delay 222
LeftClick 1 'exit shop
'========== buy cards x 10 ==========
For 9 'plant in 9 columns
'========== use card and plant ==========
Delay 222
KeyDown "6", 1 'go to inventory
Delay 100
KeyUp "6", 1
MoveTo 1068, 754 'go to next page
Delay 222
LeftClick 1
MoveTo 1149, 353 'use card
Delay 222
LeftClick 1
Delay 700
FindColor 800,500,870,570,"FFFFFF",intX,intY 'find the dropped card pos
If intX > 0 And intY > 0 Then
End If
MoveTo intX, intY 'pick up card
Delay 222
LeftClick 1
MoveTo intPlantX, 301 'plant ca
Delay 222
LeftClick 1
'========== use card and plant ==========
intPlantX = intPlantX + intPlantIntervalX 'move to the next col
Next
Delay 185000 ' 3 min for holes to recover, 5 sec for dropped cards to disappear
Next