Composure Spellcast

Language: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Red Mage » Composure Spellcast
Composure Spellcast
 Ragnarok.Legendarycloud
Offline
Server: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-06 12:59:28
Link | Quote | Reply
 
I've been modifying someone's spellcast today and I've hit a speedbump with rules for "Composure". I'm not very code-savvy so I don't know the correct words to put in the XML to make it work the way I want. What I'm looking to do is have SC equip full Estoqueur's gear when I'm casting enhancing magic on others, but equip my normal enhancing magic set when casting on myself. (Both with composure up)

I have yet to go home and try out my SC to see if it even works, but I think this is the only section of it that I'm having doubts about.
Code
            <if skill="enhancingmagic">
				<equip when="precast" set="HasteMagic" />
                <if BuffActive="Composure" advanced='"%target"!="<me>"'>
					<equip when="midcast" set="EnhanceOthers" />
				</if>
				<else>
					<equip when="midcast" set="EnhancingMagic" />
					<if spell="Refresh*">
						<equip when="midcast">
							<legs>Estoqueur's Fuseau +2</legs>
						</equip>
					</if>
				</else>
				<if spell="Stoneskin">
                    <equip when="precast" set="Stoneskin"> <waist Lock="Yes">Siegel Sash</waist></equip>
                    <command when="midcast">cancel 37</command>
                    <midcastdelay delay="3.8" />                
                    <equip when="aftercast" set="%status" />
                </if>
                <else>
                    <equip when="midcast" set="%skill" />
                </else>
            </if>
 Diabolos.Yugl
Offline
Server: Diabolos
Game: FFXI
user: Yugl
Posts: 138
By Diabolos.Yugl 2013-06-06 13:02:33
Link | Quote | Reply
 
Spelltargettype="SELF"
Spelltargettype="PLAYER"
[+]
 Ragnarok.Legendarycloud
Offline
Server: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-06 13:07:10
Link | Quote | Reply
 
Thank you!

Would this be correct now?
Code
                                <if BuffActive="Composure" Spelltargettype="PLAYER"
					<equip when="midcast" set="EnhanceOthers" />
				</if>
				<elseif BuffActive="Composure" Spelltargettype="SELF"
					<equip when="midcast" set="EnhancingMagic" />
				</elseif>
 Diabolos.Yugl
Offline
Server: Diabolos
Game: FFXI
user: Yugl
Posts: 138
By Diabolos.Yugl 2013-06-07 22:10:23
Link | Quote | Reply
 
I would do SELF before PLAYER because I'm uncertain if your character counts as PLAYER. Other than that, looks good.
[+]
 Odin.Jassik
VIP
Offline
Server: Odin
Game: FFXI
user: Jassik
Posts: 9534
By Odin.Jassik 2013-06-07 23:33:29
Link | Quote | Reply
 
you'll want to close those statements though
[+]
 Ragnarok.Legendarycloud
Offline
Server: Ragnarok
Game: FFXI
Posts: 209
By Ragnarok.Legendarycloud 2013-06-07 23:35:49
Link | Quote | Reply
 
Yeah, I caught that! Thank you both. :)
Log in to post.