View difference between Paste ID: NxAzVKTU and XQaV8nJY
SHOW: | | - or go back to the newest paste.
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
===============================================================================
4
Sigmund's BLM script for Ashitacast
5-
v1.2, 03/28/14
5+
v1.3, 07/07/2014
6
7
Changes:
8-
* Added a /resist custom command that toggles on and off a mode where ele-
8+
* Due to changes in either the new version of Ashita or Ashitacast, the timing
9-
  mental resistance gear is equipped in place of regular nuke gear.  This mode
9+
  in which elemental nuke gear swaps back to idle gear is happening much sooner
10-
  is appropriate for fighting HNM/Sky/Sea opponents.
10+
  than it should.  This causes the bonuses from nuke gear to be completely neg-
11
  ated.  Until this issue is resolved, I have implemented some custom gearlock
12
  timings to keep nuking gear equipped until the spell is completely finished.
13
  
14-
* at_type does not return the correct target.  Once this bug is fixed, it'll
14+
  These timings do not take into account any haste or fast cast gear, or fast
15-
  be possible to put in a function that cancels sneak for you if re-applying on
15+
  cast conferred by /RDM.  If you are using this script, feel free to play
16-
  yourself.
16+
  around with the values below until things work right for you.
17
18
To do:
19
* Figure out a way to force activate the Sorcerer Ring's latent via gear swaps.
20
  
21
Note:
22
* Sometimes when changing rings or earrings in gear swaps, a ring or earring
23
  from a previous gear set is held over when swapping to the new set. This
24
  seems to happen when the new gearset has the same item in both slots (two
25
  phanntom earrings +1, one in each ear, for example.)  When writing gearsets,
26
  prioritize placing jewelry in the left ear or left ring finger first.
27
===============================================================================
28
-->
29
<ashitacast>
30
	<settings>
31
		<hpupdate>false</hpupdate>
32
		<autoupdate>true</autoupdate>
33
	</settings>
34
	
35
	<variables>
36
		<var name="MeleeMode">0</var>
37
		<var name="ResistMode">0</var>
38
	</variables>
39
	
40
	<sets>
41
		<set name="Idle">
42
			<main>Terra's Staff</main>
43
			<sub>Vivid Strap +1</sub>
44
			<ammo>Phtm. Tathlum</ammo>
45
			<head>none</head>
46
			<neck>Orochi Nodowa +1</neck>
47
			<lear>Sorcerer's Earring</lear>
48
			<rear>Antivenom Earring</rear>
49
			<body>Ixion Cloak</body>
50
			<hands>Sorcerer's Gloves</hands>
51
			<lring>Celestial Ring</lring>
52
			<rring>Celestial Ring</rring>
53
			<back>Umbra Cape</back>
54
			<waist>Headlong Belt</waist>
55
			<legs>Wizard's Tonban</legs>
56
			<feet>Herald's Gaiters</feet>
57
		</set>
58
		
59
		<set name="Resting">
60
			<main>Chatoyant Staff</main>
61
			<head>Cobra Hat</head>
62
			<neck>Beak Necklace +1</neck>
63
			<lear>Rapture Earring</lear>
64
			<rear>Antivenom Earring</rear>
65
			<body>Mahatma Hpl.</body>
66
			<hands>Genie Gages</hands>
67
			<lring>Celestial Ring</lring>
68
			<rring>Celestial Ring</rring>
69
			<back>Invigorating Cape</back>
70
			<waist>Qiqirn Sash +1</waist>
71
			<legs>Baron's Slops</legs>
72
			<feet>Arborist Nails</feet>
73
		</set>
74
		
75
		<set name="Haste">
76
			<head>Walahra Turban</head>
77
			<waist>Headlong Belt</waist>
78
		</set>
79
		
80
		<!-- Magic gearsets -->
81
		
82
		<!-- For future use -->
83
		<set name="HPConvert" />
84
		
85
		<set name="FastCast">
86
			<main>Chatoyant Staff</main>
87
			<sub>Vivid Strap +1</sub>
88
		</set>
89
		
90
		<set name="INT">
91
			<main>Chatoyant Staff</main>
92
			<sub>Vivid Strap +1</sub>
93
			<ammo>Phtm. Tathlum</ammo>
94
			<head>Demon Helm +1</head>
95
			<neck>Lmg. Medallion +1</neck>
96
			<lear>Omn. Earring +1</lear>
97
			<rear>Omn. Earring +1</rear>
98
			<body>Mahatma Hpl.</body>
99
			<hands>Mahatma Cuffs</hands>
100
			<lring>Omn. Ring +1</lring>
101-
			<feet>Custom M Boots</feet>
101+
102
			<back>Ixion Cape</back>
103
			<waist>Witch Sash</waist>
104
			<legs>Mahatma Slops</legs>
105
			<feet>Zenith Pumps +1</feet>
106
		</set>
107
		
108
		<set name="MND">
109
			<main>Chatoyant Staff</main>
110
			<sub>Vivid Strap +1</sub>
111
			<body>Mahatma Hpl.</body>
112
			<lring>Celestial Ring</lring>
113
			<rring>Celestial Ring</rring>
114
			<back>Ixion Cape</back>
115
			<waist>Witch Sash</waist>
116
			<legs>Mahatma Slops</legs>
117
		</set>
118
		
119
		<set name="Dark" baseset="INT">
120
			<sub>Dark Grip</sub>
121
			<neck>Dark Torque</neck>
122
			<lear>Dark Earring</lear>
123
			<rear>Incubus Earring +1</rear>
124
			<hands>Sorcerer's Gloves</hands>
125
			<legs>Wizard's Tonban</legs>
126
			<feet>Genie Huaraches</feet>
127
		</set>
128
		
129
		<set name="Elemental" baseset="INT">
130
			<lear>Moldavite Earring</lear>
131
			<body>Genie Weskit</body>
132
			<hands>Genie Manillas</hands>
133
		</set>
134
		
135
		<!-- For Sky, Sea, and other events where elemental resistance is high. -->
136
		<set name="ElementalResist" baseset="Elemental">
137
			<lear>Incubus Earring +1</lear>
138
			<rear>Incubus Earring +1</rear>
139
			<hands>Wizard's Gloves</hands>
140
		</set>
141
		
142
		<set name="Enfeebling">
143
			<head>Genie Tiara</head>
144
			<neck>Enfeebling Torque</neck>
145
			<lear>Incubus Earring +1</lear>
146
			<rear>Incubus Earring +1</rear>
147
			<body>Wizard's Coat</body>
148
			<legs>Genie Lappas</legs>
149
		</set>
150
		
151
		<set name="Enhancing">
152
			<neck>Enhancing Torque</neck>
153
			<lear>Augment. Earring</lear>
154
			<feet>Genie Huaraches</feet>
155
		</set>
156
		
157
		<set name="Healing" baseset="MND">
158
			<hands>Mahatma Cuffs</hands>
159
		</set>
160
		
161
		<set name="Stoneskin">
162
			<main>Chatoyant Staff</main>
163
			<sub>Vivid Strap +1</sub>
164
			<head>none</head>
165
			<neck>Enhancing Torque</neck>
166
			<lear>Augment. Earring</lear>
167
			<rear>Antivenom Earring</rear>
168
			<body>Ixion Cloak</body>
169
			<hands>Sorcerer's Gloves</hands>
170
			<lring>Celestial Ring</lring>
171
			<rring>Celestial Ring</rring>
172
			<back>Ixion Cape</back>
173
			<waist>Witch Sash</waist>
174
			<legs>Mahatma Slops</legs>
175
			<feet>Genie Huaraches</feet>
176
		</set>
177
		
178
		<!-- Weaponskills -->
179
		<set name="WS-SpiritTaker">
180
			<ammo>Phtm. Tathlum</ammo>
181
			<head>Mahatma Hat</head>
182
			<neck>Promise Badge</neck>
183
			<lear>Celestial Earring</lear>
184
			<rear>Celestial Earring</rear>
185
			<body>Mahatma Hpl.</body>
186
			<hands>Mahatma Cuffs</hands>
187
			<lring>Omn. Ring +1</lring>
188
			<rring>Omn. Ring +1</rring>
189
			<back>Ixion Cape</back>
190
			<waist>Witch Sash</waist>
191
			<legs>Mahatma Slops</legs>
192
			<feet>Mahatma Pigaches</feet>
193
		</set>
194
		
195
		<include>
196
			<item>Aquilo's Staff</item>
197
			<item>Thunder Grip</item>
198
		</include>
199
	</sets>
200
	
201
	<inputcommands>
202
		<cmd input="/melee">
203
			<if advanced="$MeleeMode=0">
204
				<setvar name="MeleeMode" value="1" />
205
				<command>/ac disable main</command>
206
				<command>/ac disable sub</command>
207
				<addtochat color="57">Melee mode enabled!</addtochat>
208
			</if>
209
			<else>
210
				<setvar name="MeleeMode" value="0" />
211
				<command>/ac enable main</command>
212
				<command>/ac enable sub</command>
213
				<addtochat color="57">Melee mode disabled.</addtochat>
214
			</else>
215
		</cmd>
216
		<cmd input="/resist">
217
			<if advanced="$ResistMode=0">
218
				<setvar name="ResistMode" value="1" />
219
				<addtochat color="57">Elemental resistance mode enabled!</addtochat>
220
			</if>
221
			<else>
222
				<setvar name="ResistMode" value="0" />
223
				<addtochat color="57">Elemental resistance mode disabled.</addtochat>
224
			</else>
225
		</cmd>
226
		<cmd input="/debug" />
227
	</inputcommands>
228
	
229
	<idlegear>
230
		<if p_status="resting">
231
			<equip set="Resting" />
232
		</if>
233
		<else>
234
			<equip set="Idle" />
235
		</else>
236
	</idlegear>
237
	
238
	<!-- Put fast cast gear in the premagic section. -->
239
	<premagic>
240
		<equip set="FastCast" />
241
	</premagic>
242
	
243
	<midmagic>
244
		<if ad_type="blackmagic">
245
			<if ad_skill="darkmagic">
246
				<equip set="Dark" />
247
				<!-- Use Thunder Grip for Stun instead of the Dark Grip -->
248
				<if ad_name="Stun">
249
					<equip><sub>Thunder Grip</sub></equip>
250
				</if>
251
			</if>
252
			<elseif ad_skill="elementalmagic">
253
				<!-- Elemental debuffs benefit from pure INT. -->
254
				<if ad_name="Burn|Choke|Drown|Frost|Rasp|Shock">
255
					<equip set="INT" />
256
				</if>
257
				<!-- Nuke gear -->
258
				<else>
259
					<!-- If /resist is turned on, elemental resist gear
260
					     will be used in place of regular nuke gear.    -->
261
					<if advanced="$ResistMode=1">
262
						<equip set="ElementalResist" />
263
						<!-- CONDITIONAL NUKE GEAR CHECKS BELOW -->
264
						<!-- Use Aquilo's if casting ice nukes. -->
265
						<if ad_name="Blizza*|Freeze*">
266
							<equip><main>Aquilo's Staff</main></equip>
267
						</if>
268
					</if>
269
					<!--- If /resist is turned off, regular nuking gear will be used. -->
270
					<else>
271
						<equip set="Elemental" />
272
						<!-- CONDITIONAL NUKE GEAR CHECKS BELOW -->
273
						<!-- Use Aquilo's if casting ice nukes. -->
274
						<if ad_name="Blizza*|Freeze*">
275
							<equip><main>Aquilo's Staff</main></equip>
276
						</if>
277
						<!-- Uggalepih Pendant latent checker -->
278
						<!-- NOTE:  If you play on a private server, the Uggy pendant
279
							 may not be put on at the appropriate time due to differ-
280
							 ences between client spell MP costs and server MP costs  -->
281
						<if advanced="%ad_mppaftercast<51">
282
							<equip><neck>Uggalepih Pendant</neck></equip>
283
						</if>
284
						<!-- Sorcerer's Ring latent checker -->
285
						<if advanced="(%p_hpp<76)&(%p_tp<100)">
286
							<equip><lring>Sorcerer's Ring</lring></equip>
287
						</if>
288
						<!-- Sorcerer's Tonban latent checker -->
289
						<if advanced="%ad_element=%e_dayelement">
290
							<equip><legs>Sorcerer's Tonban</legs></equip>
291
						</if>
292
					</else>
293
					<!-- As of 7/7/14, nukes need custom delay timings or else idle gear is swapped back in too soon. -->
294
					<!-- These values don't take into account haste or fast cast.  Tweak these numbers as needed. -->
295
					<if ad_name="*IV"> <!-- Tier IV -->
296
						<gearlock length="9" />
297
					</if>
298
					<elseif ad_name="*III"> <!-- Tier III -->
299
						<if ad_name="*ga III">
300
							<gearlock length="8" />
301
						</if>
302
						<else>
303
							<gearlock length="7" />
304
						</else>
305
					</elseif>
306
					<elseif ad_name="*II"> <!-- Tier II -->
307
						<if ad_name="*ga II">
308
							<gearlock length="6" />
309
						</if>
310
						<else>
311
							<gearlock length="5" />
312
						</else>
313
					</elseif>
314
					<else> <!-- Tier I -->
315
						<if ad_name="*ga">
316
							<gearlock length="4" />
317
						</if>
318
						<else>
319
							<gearlock length="3" />
320
						</else>
321
					</else>
322
				</else>
323
			</elseif>
324
			<elseif ad_skill="enfeeblingmagic">
325
				<equip set="INT" />
326
				<equip set="Enfeebling" />
327
				<!-- Put on Dark Grip for landing Sleeps -->
328
				<if ad_name="Sleep*">
329
					<equip><sub>Dark Grip</sub></equip>
330-
		<elseif ad_name="Cyclone|Gust Slash">
330+
331-
			<equip set="INT" />
331+
332
		</if>
333
		<elseif ad_type="whitemagic">
334
			<if ad_skill="enfeeblingmagic">
335
				<equip set="MND" />
336
				<equip set="Enfeebling" />
337
			</if>
338
			<elseif ad_skill="enhancingmagic">
339
				<if ad_name="Stoneskin">
340
					<equip set="Stoneskin" />
341
				</if>
342
				<elseif ad_name="Bar*|Phalanx">
343
					<equip set="Enhancing" />
344
				</elseif>
345
				<elseif ad_name="Sneak">
346
					<!-- Make sure to replace the name in "t_name" with your own
347
					     before using this script.                                -->
348
					<if at_name="Sigmund">
349
						<command>/cancel 71</command>
350
					</if>
351
				</elseif>
352
			</elseif>
353
			<elseif ad_skill="healingmagic">
354
				<if ad_name="Cur*">
355
					<equip set="Healing" />
356
				</if>
357
				<elseif ad_name="*Raise|Reraise">
358
					<equip set="Haste" />
359
				</elseif>
360
			</elseif>
361
		</elseif>
362
		<elseif ad_type="ninjutsu">
363
			<if ad_name="Utsusemi*">
364
				<equip set="Haste" />
365
			</if>
366
		</elseif>
367
	</midmagic>
368
	
369
	<weaponskill>
370
		<if ad_name="Spirit Taker">
371
			<equip set="WS-SpiritTaker" />
372
		</if>
373
	</weaponskill>
374
</ashitacast>