-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTutorial.mac
More file actions
234 lines (223 loc) · 6.1 KB
/
Tutorial.mac
File metadata and controls
234 lines (223 loc) · 6.1 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|---------------------- Coded by Taron @ MMOBugs.com ---------------------|
|-------------------------------------------------------------------------|
|- What: Runs the tutorial to get the Kobold Charm -|
|- Where: Tutorial A -|
|- How: /macro Tutorial -|
|- Notes: If you don't wish to move to PoK, use /macro tutorial nopok -|
|- Run this macro immediatly after making a new character -|
|-------------------------------------------------------------------------|
#Event BoxChange "Your task 'Jail Break!' has been updated."
#Event TutB "Your task 'Basic Training' has been updated."
Sub Main
/declare OldBox int outer 1
/declare TutB int outer 0
/if (${Zone.ID}!=188) {
/echo This isn't the tutorial...no macro for joo!
/squelch /endmacro
}
/tar npc Arias
/delay 10s (${Target.CleanName.Equal[Arias]})
/say escape
/delay 10s (${Window[TaskSelectWnd].Open})
/notify TaskSelectWnd TSEL_AcceptButton leftmouseup
:BoxChange
/doevents
/if (${OldBox}==1) /goto :BoxChange
/notify LargeDialogWindow LDW_OkButton leftmouseup
/face heading 265
/keypress up hold
:Moving
/if (${Me.X}>35) /goto :Moving
/keypress up
/tar npc jailor
/delay 10s (${Target.CleanName.Equal[The Gloomingdeep Jailor]})
/face fast
/keypress up hold
:MovingB
/if (${Target.Distance}>14) /goto :MovingB
/keypress up
/attack on
/delay 5m (!${Target.ID})
/tar corpse
/delay 10s (${Target.Type.Equal[Corpse]})
/delay 2s (${Window[advancedlootwnd]})
/if (${Window[advancedlootwnd]}) /notify advancedlootwnd ADLW_PLL_LootAllBtn leftmouseup
/delay 2s (!${Window[advancedlootwnd]})
/itemnotify "The Gloomingdeep Jailor's Key" leftmouseup
/delay 2s ${Cursor.ID}
/tar pet
/delay 10s (${Target.CleanName.Equal[Arias]})
/click left target
/delay 10s (${Window[GiveWnd].Child[GVW_MyItemSlot0].Tooltip.Length}>1)
/delay 1s
/notify GiveWnd GVW_Give_Button leftmouseup
/delay 10s (!${Window[GiveWnd].Open})
/notify LargeDialogWindow LDW_OkButton leftmouseup
/tar pet
/delay 10s (${Target.CleanName.Equal[Arias]})
/hail
|----- ZONING -----|
:Zoning
/if (${Zone.ID}!=189) /goto :Zoning
/tar myself
/delay 5s
/if (${Target.ID}!=${Me.ID}) /goto :Zoning
/tar npc Arias
/delay 10s (${Target.CleanName.Equal[Arias]})
/hail
/call Updating
:Absor
/tar npc Absor
/delay 10s (${Target.CleanName.Equal[Absor]})
/moveto loc -90 -198
/delay 1s
/delay 15s ${Me.Moving}
/if (${Target.Distance}>30) /goto :Absor
/hail
/delay 10s (${Window[LargeDialogWindow].Text.Equal[Weapons]})
/itemnotify 13 leftmouseup
/delay 10s (${Cursor.ID})
/click left target
/delay 10s (${Window[GiveWnd].Child[GVW_MyItemSlot0].Tooltip.Length}>1)
/delay 1s
/notify GiveWnd GVW_Give_Button leftmouseup
/delay 10s (!${Window[GiveWnd].Open})
/call Updating
:Vahlara
/tar npc Vahlara
/delay 10s (${Target.CleanName.Equal[Vahlara]})
/moveto loc -82 -51
/delay 1s
/delay 15s ${Me.Moving}
/if (${Target.Distance}>30) /goto :Vahlara
/keypress up
/hail
/delay 10s (${Cursor.ID})
/delay 1s
/autoinv
/delay 10s (${InvSlot[arms].Item.ID})
/delay 1s
/say others
/call Updating
/moveto loc -183.26 -69.78
/delay 1s
/delay 15s ${Me.Moving}
/if (${GroundItemCount[*Blue Mushroom]} > 0) {
/moveto loc ${Ground[*Blue Mushroom].Y} ${Ground[*Blue Mushroom].X}
/delay 15s (${Ground[*Blue Mushroom].Distance3D} < 20)
/itemtarget
/delay 1s
/grab
} else {
/echo Couldnt find ground item}
/end
}
/delay 1s
/if (${Cursor.ID}) /autoinventory
:Xenaida
/tar npc Xenaida
/delay 10s (${Target.CleanName.Equal[Xenaida]})
/moveto loc -109 -199
/delay 1s
/delay 15s ${Me.Moving}
/if (${Target.Distance}>30) /goto :Xenaida
/hail
/itemnotify "Gloomingdeep Mushrooms" leftmouseup
/delay 2s ${Cursor.ID}
/tar npc Xenaida
/delay 7s (${Target.CleanName.Equal[Xenaida]})
/click left target
/delay 10s (${Window[GiveWnd].Child[GVW_MyItemSlot0].Tooltip.Length}>1)
/delay 1s
/notify GiveWnd GVW_Give_Button leftmouseup
/delay 10s (!${Window[GiveWnd].Open})
/call Updating
/tar npc Rytan
/delay 10s (${Target.CleanName.Equal[Rytan]})
/face fast
/keypress up hold
:Rytan
/if (${Target.Distance}>15) /goto :Rytan
/keypress up
/say blessing
/delay 1s
:dialogagain
/if (${Window[LargeDialogWindow]}) {
/notify LargeDialogWindow LDW_OkButton leftmouseup
/delay 2s ${Window[LargeDialogWindow]}
/goto :dialogagain
}
/if (${Cursor.ID}) /autoinv
/call Updating
:Prathun
/tar npc Prathun
/moveto loc -34 -129
/delay 1s
/delay 15s ${Me.Moving}
/if (${Cursor.ID}) /autoinv
/if (${Target.Distance}>30) /goto :Prathun
/keypress up
/hail
/delay 1s
:DialogWindowHell
/if (${Window[LargeDialogWindow]}) {
/notify LargeDialogWindow LDW_OkButton leftmouseup
/delay 5
/delay 2s (${Window[LargeDialogWindow]})
/goto :DialogWindowHell
}
/if (${Cursor.ID}) /autoinventory
/call Updating
/tar npc Alga
/delay 10s (${Target.CleanName.Equal[Basher Alga]})
/face fast
/keypress up hold
:Alga
/if (${Target.Distance}>15) /goto :Alga
/keypress up
/hail
/delay 1s
/if (${Window[TaskSelectWnd]}) /notify TaskSelectWnd TSEL_AcceptButton leftmouseup
/delay 1s
/hail
:DialogStuff
/delay 1s
/if (${Window[LargeDialogWindow]}) {
/notify LargeDialogWindow LDW_OkButton leftmouseup
/delay 5
/delay 2s (${Window[LargeDialogWindow]})
/goto :DialogStuff
}
/call Updating
/tar npc Arias
/delay 10s (${Target.CleanName.Equal[Arias]})
/face fast
/keypress up hold
:Arias
/if (${Me.X}<-15) /goto :Arias
/keypress up
/hail
/delay 10s (${Cursor.Name.Equal[Kobold Skull Charm]})
/delay 1s
/autoinv
/echo All Done!
/if (${Param0.Equal[nopok]}) /return
/tar npc Arias
/delay 10s (${Target.CleanName.Equal[Arias]})
/say ready to leave
/echo Ending Macro
/end
/return
Sub Updating
/declare Checker int local ${TutB}
:Loop
/doevents
/delay 5
/if (${Checker}==${TutB}) /goto :Loop
/return
Sub Event_BoxChange
/varset OldBox 0
/return
Sub Event_TutB
/varcalc TutB ${TutB}+1
/return