-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathidle.macro
381 lines (373 loc) · 10.4 KB
/
idle.macro
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
// idle.mac
// START: DHAwakeAFK integration
//------------------------------------------------
setglobal idlemacrofilerevision "20210615-2100-0012"
idleMe
{
if IdleCount > gIdleTime // Only execute this part one time per gIdleTime period
if messageStatus == 1
// message "[17]** idle.macro / idleMe **"
end if
// pause 100
label LOOPY1
if count1 < 100
set count1 + 1
goto LOOPY1
end if
// end label LOOPY1
setglobal thankcounter + 100
label DHAwakeAFK
"/karma \r"
set scanText @env.textLog
if scanText < "You have karma to give."
if thankcounter < thankcooloff
// message "idle[26]:thankcounter was = " thankcounter
setglobal thankcounter thankcooloff
// message "idle[28]:Set thankcounter to trigger next go around = " thankcounter
end if
end if
// message "idle[31]::** ThankExile **::"
label pickanotherexile
if ThankRandom == 1 // if thank a random exile from those clanning is turned on in Character file
call ExilePicker
end if // ThankRandom
if ThankExile == 1 // if thank one of these exiles is turned on in Character file
random
setglobal randomExileClanning " Aurelie "
or
setglobal randomExileClanning " Connie "
or
setglobal randomExileClanning " Coriakin "
or
setglobal randomExileClanning " Dandelion "
or
setglobal randomExileClanning " Ebony "
or
setglobal randomExileClanning " JoMaril "
or
setglobal randomExileClanning " Kori "
or
setglobal randomExileClanning " Kvynn "
or
setglobal randomExileClanning " Largo "
or
setglobal randomExileClanning " Lorikeet "
or
setglobal randomExileClanning " Luna "
or
setglobal randomExileClanning " Maximus "
or
setglobal randomExileClanning " Mehan "
or
setglobal randomExileClanning " Mork "
or
setglobal randomExileClanning " Phroon "
or
setglobal randomExileClanning " Pirate "
or
setglobal randomExileClanning " Poplar "
or
setglobal randomExileClanning " Punisher "
or
setglobal randomExileClanning " Ramandu "
or
setglobal randomExileClanning " Skirwan "
or
setglobal randomExileClanning " Shadowfire "
or
setglobal randomExileClanning " Taryn "
end random
end if // ThankExile
/*
REMOVED EXILES UNTIL THEY COME BACK
or
setglobal randomExileClanning " DragonHawk "
or
setglobal randomExileClanning " Drablak "
or
setglobal randomExileClanning " Finegas "
or
setglobal randomExileClanning " Frozenham "
or
setglobal randomExileClanning " Geotzu "
or
setglobal randomExileClanning " Gremlins "
or
setglobal randomExileClanning " Kalypso "
or
setglobal randomExileClanning " Matt "
or
setglobal randomExileClanning " Measle "
or
setglobal randomExileClanning " Mirabel "
or
setglobal randomExileClanning " MrFancyPants "
or
setglobal randomExileClanning " Odesseus "
or
setglobal randomExileClanning " Omega "
or
setglobal randomExileClanning " Paramedic "
or
setglobal randomExileClanning " Superchicken "
or
setglobal randomExileClanning " StarswordEojek "
*/
if thankcounter >= thankcooloff
// message "idle[104]:thankcounter = " thankcounter
// message "idle[105]:randomExileClanning is = " randomExileClanning
if @my.name == "inu teisei"
"/thank " randomExileClanning thankfnf
else
"/thank " randomExileClanning thankreg
end if
set scanText @env.textLog
if scanText < "You gave signed good karma to "
setglobal thankcounter 1
setglobal pickanother 0
// message "idle[111]:thanked randomExileClanning = " randomExileClanning
if resetAmCadding == 1
setglobal AmCadding 1
end if
setglobal redopickexilecounter 0
end if
if scanText < "is not in the lands."
setglobal pickanother 1
// message "idle[119]: set pickanother from is not in the lands."
end if
if scanText < " as much good karma as is allowed."
setglobal pickanother 1
// message "idle[123]: set pickanother from is not in the lands."
end if
if pickanother == 1
// message "idle[126]: pickanother is " pickanother
setglobal thankcounter + 1
// message "idle[128]:randomExileClanning was = " randomExileClanning
setglobal redopickexilecounter + 1
// message "idle[130]:redopickexilecounter is = " redopickexilecounter
if redopickexilecounter >= 30
if ThankRandom == 0
setglobal ThankRandom 1
// message "idle[134] temporarily turning ON ThankRandom "
end if
if AmCadding == 1
setglobal resetAmCadding 1
// setglobal AmCadding 0
// message "idle[139] temporarily turning OFF AmCadding"
end if
// setglobal resetPickexileclanning 1
else
goto pickanotherexile
end if
end if
if scanText < "You gave signed good karma to "
setglobal thankcounter 1
setglobal pickanother 0
// message "idle[149]:thanked randomExileClanning = " randomExileClanning
if resetAmCadding == 1
setglobal AmCadding 1
end if
if resetPickexileclanning == 1
setglobal redopickexilecounter 0
end if
end if
end if // thankcounter
// message "idle[158]:thankcounter = " thankcounter
// message "idle[159]:redopickexilecounter = " redopickexilecounter
// "/pose sit \r"
random // other actions
// message "idle[163]::** CheckMoney **::"
"/money \r"
if ThankRandom == 0
set infoExileClanning @selplayer.simple_name
// message "idle[167]:infoExileClanning = " infoExileClanning
end if
if InfoExile == 1
"/info " infoExileClanning " \r"
end if
// "/pose thoughtful \r"
or
// message "idle[174]::** InfoRandomExile **::"
if ThankRandom == 0
set infoExileClanning @selplayer.simple_name
// message "idle[177]: infoExileClanning = " infoExileClanning
end if
if InfoExile == 1
"/info " infoExileClanning " \r"
end if
or
// message "idle[183]::** OccupyRandom **::"
if OccupyRandom == 1
// message "idle[185]::** OCCUPY **::"
call occupy
end if
end random // other actions
if OccupyRandom == 1
// message "idle[190]::** OccupyRandom is 1 **::"
if even == 0
"\move e walk \r"
"\move w walk \r"
"\move e walk \r"
set even 1
else
"\move w walk \r"
"\move e walk \r"
"\move w walk \r"
set even 0
end if
"\move stop \r"
pause 4
"\pose leanleft \r"
end if // OccupyRandom
if messageStatus == 1
// message "idle[218]:: ** Random idle section **"
end if
random // idle
setglobal pausecount 180
// setglobal thankcounter + 180
or
setglobal pausecount 170
// setglobal thankcounter + 170
or
setglobal pausecount 160
// setglobal thankcounter + 160
or
setglobal pausecount 150
// setglobal thankcounter + 150
or
setglobal pausecount 140
// setglobal thankcounter + 140
or
setglobal pausecount 130
// setglobal thankcounter + 130
or
setglobal pausecount 120
// setglobal thankcounter + 120
or
setglobal pausecount 110
// setglobal thankcounter + 110
or
setglobal pausecount 100
// setglobal thankcounter + 100
or
setglobal pausecount 90
// setglobal thankcounter + 90
or
setglobal pausecount 80
// setglobal thankcounter + 80
or
setglobal pausecount 70
// setglobal thankcounter + 70
or
setglobal pausecount 60
// setglobal thankcounter + 60
or
setglobal pausecount 50
// setglobal thankcounter + 50
or
setglobal pausecount 40
// setglobal thankcounter + 40
or
setglobal pausecount 30
// setglobal thankcounter + 30
end random // idle
setglobal thankcounter + pausecount
label LOOPY2
if count2 < pausecount
set count2 + 1
goto LOOPY2
end if
// end label LOOPY2
if messageStatus == 1
// message "idle[262]:** Random action section **"
end if
if AmCadding == 0
random // action poses
"/pose akimbo \r"
"/pose lie \r"
or
"/pose angry \r"
"/pose lie \r"
or
"/pose attack east \r"
"/pose lie \r"
or
"/pose attack north \r"
"/pose lie \r"
or
"/pose attack south \r"
"/pose lie \r"
or
"/pose attack west \r"
"/pose lie \r"
or
"/pose bless \r"
"/pose lie \r"
or
"/pose bow \r"
// "/action prays to the god Eldon \r"
pause 15
"/pose lie \r"
or
"/pose celebrate \r"
pause 15
"/pose lie \r"
or
"/pose cry \r"
"/pose lie \r"
or
"/pose kneel \r"
or
"/pose leanleft \r"
"/pose lie \r"
or
"/pose leanright \r"
"/pose lie \r"
or
"/pose lie \r"
or
"/pose salute \r"
"/pose lie \r"
or
"/pose seated \r"
or
"/pose sit \r"
or
"/pose surprised \r"
"/pose lie \r"
or
"/pose thoughtful \r"
"/pose lie \r"
or
"/pose walkleft \r"
"/pose lie \r"
or
"/pose walkright \r"
"/pose lie \r"
end random // action poses
end if // AmCadding == 0 - action poses
set IdleCount 0
end if // IdleCount > gIdleTime
setglobal thankcounter + 1 // cool off counter for thanking-GK
set IdleCount + 1
// when IdleCount exceeds global gIdleTime from character file
// this will return to GoScanner.Macro at "label returnFromIdleMe"
// somewhere around line 140
}
//------------------------------------------------
// END: DHAwakeAFK integration
//------------------------------------------------
message "idle[343]:: ===> Loaded idle.macro"
/*
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
R E V I S I O N L O G
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Attributions: Idle and awakeafk macros by DragonHawk, others by Raul and Noivad
200XMMDD-Inu: Adding Idle macro to this one big loop to stop possible conflicts between the two
20180630-Inu: Moved out of default to shorten the length of that file. Moved DHAwakeAFK to idle.mac.
All Called functions return by default. So no need for Goto at end.
20201011-Inu: Added additional logic to allow for thanking as soon as possible using thankcounter
Added two different modes of thanking, original random exile clanning ThankRandom
and the new friends and family list ThankExile - also randomized.
20210224-Inu: Moved this log.
*/