Utsu Help

Eorzea Time
 
 
 
Language: JP EN FR DE
users online
Forum » Windower » Spellcast Scripting » Monk » utsu help
utsu help
 Seraph.Jacaut
Offline
Server: Seraph
Game: FFXI
user: Jacaut
Posts: 383
By Seraph.Jacaut 2014-01-02 20:51:45
Link | Quote | Reply
 
okay so when i try to cast utsusemi, either one it wont work, neither through macro typing to magic list. unless i do it in /raw command and i dont understand why. can someone help me out? thanks!
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2014-01-02 21:40:20
Link | Quote | Reply
 
Code
<if Skill="Ninjutsu">
	<!-- Ninjutsu Rules -->
	<if Spell="Utsusemi*">
		<if spell = "Utsusemi: Ichi" buffactive = "Copy Image*" NotBuffActive = "Silence|Mute|Omerta|Obliviscence">
			<midcastdelay delay = "3.3" />
			<cmd when = "midcast">cancel 66</cmd>
		</if>
		<else>
			<cancelspell/>
			<return/>
		</else>
	</if>
	<else>
		<equip when="precast|midcast" set="Utsu"/>
	</else>
</if>


These are your Utsusemi rules. Utsu Ni and Ichi are being caught by the first if (skill=ninjutsu) and second if (spell=utsusemi*), but not the third if (spell=utsusemi:ichi AND buffactive="copy image" AND notbuffactive=silence|mute|omerta|oblivicense), and so are defaulting to the following else statement, which cancels the spell and exits the control flow.

Basically, you're missing an elseif after the if to catch Ichi and Ni (other than in the case that you are casting Ichi and have shadows already up). You also have no equip tags, so it..won't equip anything when you cast.

Something like this will work, not taking into consideration what sets you actually want to use for precast and/or midcast.

Edit: Actually, this is a little cleaner. Also, last time I checked you cannot queue command statements--so keep in mind that your cancel may not actually wait 3.3 seconds.
Code
<if Skill="Ninjutsu">
	<!-- Ninjutsu Rules -->
	<if Spell="Utsusemi*">		
		<if NotBuffActive = "Silence|Mute|Omerta|Obliviscence">
			<equip when="precast|midcast" set="Utsu"/>
			<if spell = "Utsusemi: Ichi" buffactive = "Copy Image*">				
				<midcastdelay delay = "3.3" />
				<cmd when = "midcast">cancel 66</cmd>
			</if>
		</if>
		<else>
			<cancelspell/>
			<return/>
		</else>
	</if>
	<else>
		<equip when="precast|midcast" set="Utsu"/>
	</else>
</if>
 Ramuh.Austar
Offline
Server: Ramuh
Game: FFXI
user: Austar
Posts: 10481
By Ramuh.Austar 2014-01-02 21:42:15
Link | Quote | Reply
 
change <if skill="Ninjutsu"> to <if type="Ninjutsu"> too line 410. i always had issues with if skill for some reason
 Seraph.Jacaut
Offline
Server: Seraph
Game: FFXI
user: Jacaut
Posts: 383
By Seraph.Jacaut 2014-01-03 00:29:26
Link | Quote | Reply
 
ty ty i just use templetes i find and i prob. copy and pasted the ninjutsu from another xml i had somewhere a long time ago ill fix it in the morning, ended up making macros with /raw commands and equiping sets i wanted with /sc lol