WHM Spellcast Help

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » FFXI » Jobs » White Mage » WHM Spellcast help
WHM Spellcast help
 Bahamut.Alpaka
Offline
Server: Bahamut
Game: FFXI
user: MGreer
Posts: 127
By Bahamut.Alpaka 2011-08-28 20:07:10
Link | Quote | Reply
 
Made a WHM.xml and when I type in //sc set haste it equips my haste staff, but when I'm casting like haste and what not its not equiping :/
Code
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<guildwork
        character="Pigpig"
        server="Bahamut"
        description="WHM.xml"
        job="White Mage"
    />
    <config
        RequireVersion="2.18"
        ShowGearSwaps="false"
        Debug="true"
        ShowSpellInfo="false"
        />
    <variables clear="false">
        <var name="IceStaff">Aquilo's Staff</var>
        <var name="DarkStaff">Pluto's Staff</var>
        <var name="ThunderStaff">Indra's Staff +2</var>
        <var name="LightStaff">Surya's Staff +2</var>
        <var name="WindStaff">Auster's Staff</var>
        <var name="FireStaff">Vulcan's Staff</var>
        <var name="EarthStaff">Terra's Staff</var>
        <var name="WaterStaff">Neptune's Staff</var>
                <var name="HasteStaff">Celeritas Pole</var>
                <var name="EnhancingClub">Beneficus</var>
    </variables>
    <sets>
        <group default="yes" name="Main">
            <set name="Idle">
								<main>Owleyes</main>
								<sub>Genbu's Shield</sub>
								<ammo>Incantor Stone</ammo>
								<head>Orison Cap +2</head>
								<neck>Twilight Torque</neck>
								<lear>Roundel Earring</lear>
								<rear>Orison Earring</rear>
								<body>Orison Bliaud +2</body>
								<hands>Serpentes Cuffs</hands>
								<rring>Aquasoul Ring</rring>
								<lring>Aquasoul Ring</lring>
								<back>Umbra Cape</back>
								<waist>Pythia Sash +1</waist>
								<legs>Orsn. Pantaln. +2</legs>
								<feet>Serpentes Sabots</feet>
            </set>              
            <set name="Resting" BaseSet="Idle">
								<head>Oracle's Cap</head>
								<neck>Eidolon pendant</neck>
								<body>Errant Hpl.</body>
								<ammo>Clarus stone</ammo>
								<lear>Relaxing Earring</lear>
								<hands>Oracle's Gloves</hands>
								<back>Vita Cape</back>
								<waist>Austerity Belt</waist>
								<legs>Nisse Slacks</legs>
								<feet>Avocat Pigaches</feet>
								<main>$DarkStaff</main>
            </set>
            <set name="Healing" BaseSet="Idle">
								<main>$HasteStaff</main>
								<head>Orison Cap +2</head>
								<hands>Blessed Mitts +1</hands>
								<legs>Orsn. Pantaln. +2</legs>
								<waist>Austerity Belt</waist>
								<lear>Loquacious Earring</lear>
                                <feet>Blessed Pumps</feet>
                                <back>Vita Cape</back>
                                <ammo>Clarus Stone</ammo>
            </set>                      
            <set name="Haste" BaseSet="Idle">
								<main>$HasteStaff</main>					
								<hands>Blessed Mitts +1</hands>
								<legs>Bls. Trousers +1</legs>
								<waist>Siegel Sash</waist>
								<lear>Loquac. Earring</lear>
                                <feet>Blessed Pumps</feet>
                                <neck>Orison Locket</neck>
                                <head>Walahra Turban</head>
                                <ammo>Incantor Stone</ammo>                     
            </set>
            <set name="Regen" BaseSet="Haste">                
								<hands>Orison Mitts +2</hands>          
            </set>
            <set name="Stun" BaseSet="Haste">
                                <rring>Balrahn's Ring</rring>
                                <lring>Omega Ring</lring>
            </set>                      
            <set name="CCT" BaseSet="Idle">
								<main>$LightStaff</main>
								<sub>Reign Grip</sub>                   
								<legs>Orsn. Pantaln. +2</legs>
								<feet>Cure Clogs</feet>
								<lear>Loquac. Earring</lear>
                                <ammo>Incantor Stone</ammo>
                                <neck>Orison Locket</neck>
                                <rring>Aquasoul Ring</rring>
                                <lring>Aquasoul Ring</lring>                               
            </set>
            <set name="Cursna" BaseSet="Idle">
								<main>$EnhancingClub</main>
                                <sub>Genbu's Shield</sub>
								<body>Orison Bliaud +2</body>
								<head>Walahra Turban</head>
                                <legs>Bls. Trousers +1</legs>
								<lear>Loquac. Earring</lear>                                    
                                <rring>Sirona's Ring</rring>
                                <hands>Augur's Gloves</hands>                           
								<feet>Blessed Pumps</feet>
            </set>
            <set name="Cure" BaseSet="Idle">
								<main>$LightStaff</main>
								<sub>Verse Strap +1</sub>
								<back>Orison Cape</back>
								<rear>Roundel Earring</rear>
								<lear>Orison Earring</lear>
								<body>Orison Bliaud +2</body>
                                <waist>Cascade Belt</waist>
                                <rring>Aquasoul Ring</rring>
                                <lring>Aquasoul Ring</lring>
                                <ammo>Aqua Sachet</ammo>
								<legs>Orsn. Pantaln. +2</legs>
								<neck>Fylgja Torque +1</neck>
                                <feet>Zenith Pumps</feet>
                                <hands>Augur's Gloves</hands>
								<head>Orison Cap +2</head>                              
            </set>
            <set name="Cure2" BaseSet="Idle">
								<main>$LightStaff</main>
								<sub>Verse Strap +1</sub>
								<back>Orison Cape</back>
								<rear>Roundel Earring</rear>
								<lear>Orison Earring</lear>
								<body>Orison Bliaud +2</body>
                                <waist>Cascade Belt</waist>
                                <rring>Aquasoul Ring</rring>
                                <lring>Aquasoul Ring</lring>
                                <ammo>Aqua Sachet</ammo>
								<legs>Orsn. Pantaln. +2</legs>
								<neck>Fylgja Torque +1</neck>
                                <feet>Zenith Pumps</feet>
                                <hands>Augur's Gloves</hands>
								<head>Orison Cap +2</head>                         
            </set>                      
            <set name="Enhancing" BaseSet="Idle">
								<main>$EnhancingClub</main>
                                <sub>Genbu's Shield</sub>
								<lear>Loquac. Earring</lear>		
                                <rear>Augmenting Earring</rear>     
								<neck>Orison Locket</neck>
								<feet>Orsn. Duckbills +2</feet>
                                <waist>Siegel Sash</waist>
                                <ammo>Incantor Stone</ammo>
                                <hands>Augur's Gloves</hands>                           
                                <head>Selenian Cap</head>
            </set>
            <set name="Barspell" BaseSet="Idle">
								<main>$EnhancingClub</main>
                                <sub>Genbu's Shield</sub>
								<lear>Loquac. Earring</lear>
								<rear>Augmenting Earring</rear>     
								<neck>Enhancing Torque</neck>
								<feet>Orsn. Duckbills +2</feet>
                                <legs>Cleric's Pantaln.</legs>
                                <body>Orison Bliaud +2</body>
                                <waist>Cascade Belt</waist>
                                <hands>Augur's Gloves</hands>
                                <head>Orison Cap +2</head>
                                <ammo>Incantor Stone</ammo>
            </set>
            <set name="Stoneskin" BaseSet="Enhancing">
                                <rear>Aqua Pearl</rear>
                                <rring>Aquasoul Ring</rring>
                                <lring>Aquasoul Ring</lring>
								<neck>Morgana's Choker</neck>
                                <legs>Bls. Trousers +1</legs>
                                <body>Augur's Jaseran</body>
                                <hands>Blessed Mitts +1</hands>                         
            </set>                      
            <set name="Mind" BaseSet="Idle">
								<main>%SpellElementStaff</main>
								<legs>Bls. Trousers +1</legs>
								<body>Augur's Jaseran</body>
								<neck>Morgana's Choker</neck>
								<lear>Aqua Pearl</lear>
								<hands>Blessed Mitts +1</hands>
								<feet>Orsn. Duckbills +2</feet>
                                <waist>Cascade Belt</waist>
                                <rring>Aquasoul Ring</rring>
                                <lring>Aquasoul Ring</lring>
                                <ammo>Aqua Sachet</ammo>
                                <sub>Reign Grip</sub>
                                <head>Selenian Cap</head>
            </set>
            <set name="Divine" BaseSet="Mind">
								<lear>Novio Earring</lear>
                                <rear>Hecate's Earring</rear>
								<hands>Eradico Mitts</hands>
                                <ammo>Witchstone</ammo>
                                <back>Searing Cape</back>
                                <head>Selenian Cap</head>
            </set>      
            <set name="Repose" BaseSet="Haste">
								<main>$HasteStaff</main>
								<body>Augur's Jaseran</body>
                                <rring>Balrahn's Ring</rring>
                                <lring>Omega Ring</lring>
                                <sub>Verse Strap +1</sub>
            </set>                      
            <set name="Int" BaseSet="Haste">
								<main>%SpellElementStaff</main>
								<body>Augur's Jaseran</body>
								<hands>Cleric's Mitts</hands>
								<feet>Avocat Pigaches</feet>
                                <rring>Balrahn's Ring</rring>
                                <lring>Omega Ring</lring>
                                <head>Selenian Cap</head>
            </set> 
			<set name="Town">
								<main>Owleyes</main>
								<sub>Genbu's Shield</sub>
								<head>Orison cap +2</head>
								<neck>Fylgja torque +1</neck>
								<lear>Roundel earring</lear>
								<rear>Orison earring</rear>
								<body>Orison Bliaud +2</body>
								<hands>Serpentes cuffs</hands>
								<rring>Aquasoul ring</rring>
								<lring>Aquasoul ring</lring>
								<back>Umbra Cape</back>
								<waist>Pythia sash +1</waist>
								<legs>Orison pantaloons +2</legs>
								<feet>Serpentes sabots</feet>
			</set>
        </group>
    </sets>                     
    <rules>
        <!-- Rule: Equipping Idle set while Idling or Aftercast -->
        <equip when="AfterCast|Idle" set="Idle" />
        <!-- Rule: Equipping Rest gears while resting -->
        <equip when="Resting" set="Resting" />
        <!-- Rule: Equipping Cure Spellcasting and FastCast gears before casting -->
        <if spell="Cure*|Curaga*">
                    <equip when="Precast" set="CCT" />
                </if>
        <!-- input a midcast time -->           
        <midcastdelay delay="0.9" />            
       <!-- Rule: Right set for right spell -->
        <if spell="Cure*|Curaga*">
            <equip when="midcast" set="Cure" /> 
                </if>           
        <if spell="Poisona|Paralyna|Silena|Blindna|Viruna|Stona|Erase">
            <equip when="midcast" set="Healing" />
        </if>
        <if spell="Cursna">
            <equip when="midcast" set="Cursna" />
        </if>
        <if spell="Stun">
            <equip when="midcast" set="Stun" />
        </if>
        <if spell="Haste|Refresh|Esuna|Sacrifice|Raise*|Stun">
            <equip when="midcast" set="Haste" />
        </if>           
        <if spell="Bar*">
            <equip when="precast" set="Barspell" />
        </if>
        <if spell="Regen*">
            <equip when="precast" set="Regen" />
        </if>           
        <if spell="Protect*|Shell*|Protectra*|Shellra*|Auspice|Boost-*">
            <equip when="midcast" set="Enhancing" />
        </if>           
        <if spell="Stoneskin">
            <equip when="midcast" set="Stoneskin" />
        </if>           
        <if spell="Slow|Paralyze|Silence">
            <equip when="midcast" set="Mind" />
        </if>
        <if spell="Banish*|Banishga*|Holy">
            <equip when="midcast" set="Divine" />
        </if>
        <if spell="Repose|Flash">
            <equip when="midcast" set="Repose" />
        </if>           
        <if spell="Sleep*|Bind|Gravity|Blind|Dispel">
            <equip when="midcast" set="Int" />
        </if>
                <!-- Divine Caress -->
                <if  BuffActive="Divine Caress">
                    <if spell="Poisona|Paralyna|Silena|Blindna|Viruna|Stona|Cursna">
                        <equip when="Idle|Aftercast" set="Healing">
                                <hands lock="yes">Orison Mitts +2</hands>
                </equip>
            </if>
        </if>
            <!-- Outside Abyssea enm- cure set -->      
        <if NotArea="Abyssea-*">
                    <if spell="Cure*|Cura*">
                        <equip when="midcast" set="Cure2" />
            </if>
            </if>               
            <!-- Handling Balrahn's ring -->    
        <if Area="* Remnants|Nyzul Isle|Mamool Ja Training Grounds|Lebros Cavern|Leujaoam Sanctum|Periqia|Ilrusi Atoll">
                    <equip when="Idle|aftercast">
                    <rring lock="yes">Balrahn's Ring</rring>
            </equip>
            </if>             
			<!-- Handling Town Gear -->    
        <if Area="* Jeuno">
                    <equip when="Idle|aftercast" set="Town" />
            </if>             			
        <!-- Equip our staffs -->               
        <action type="equip" when="midcast">
            <main>$%SpellElementStaff</main>
        </action>

<!--=========================================================================
    Sleep Timers! Repose: 90seconds, Sleep I: 60seconds
=============================================================================-->
<if advanced='"$SleepTimers"="1"'>
    <if Spell="Repose|Sleep II">
        <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
        <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
        <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
    </if>
    <elseif Spell="Sleep|Sleepga">
        <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
        <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
    </elseif>
</if>

<!--=========================================================================
     Afflatus Handling
=============================================================================-->

<if mode="and" spell="Afflatus Solace" buffactive="Afflatus Solace">
	<cancelspell />
	<addtochat color="39">Afflatus Solace already active. %Spell cancelled.</addtochat>
</if>
<if mode="and" spell="Afflatus Misery" buffactive="Afflatus Misery">
	<cancelspell />
	<addtochat color="39">Afflatus Misery already active. %Spell cancelled.</addtochat>
</if>

<!--=========================================================================
     Utility Handling
=============================================================================-->
<if mode="and" skill="*Magic|Ninjutsu" buffactive="Silence">
	<cancelspell />
	<command>input /item "Echo Drops" <me></command>
</if>

	<!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
	<if Spell="Sneak|Monomi*" BuffActive="Sneak" SpellTargetType="Self">
		<command when="midcast">cancel 71</command>
		<midcastdelay delay="1.8" />
	</if>
	<if spell="Utsusemi: Ichi" BuffActive="Copy Image|Copy Image (2)" NotBuffActive="Silence|Mute|Omerta|Obliviscence">
		<midcastdelay delay="3.0" />
		<command when="midcast">cancel 66</command>
	</if>
	<elseif Spell="Stoneskin" BuffActive="Stoneskin">
		<command when="midcast">cancel 37</command>
		<midcastdelay delay="4.8" />
	</elseif>
	
    </rules>
</spellcast>

 Lakshmi.Greggles
Offline
Server: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-08-28 20:30:21
Link | Quote | Reply
 
You don't get an end tag error from that xml, due to using the < > rather than & l t ; and & g t ;? (No spaces, lol) I don't think you're allowed to use the former.

I deleted from the sleep timers to the end because of the < > thing -- it gave me end tag errors otherwise.

I put in my own haste gear and it appears to equip properly, you probably just need to fix it up.

**edit** Bah, I suck today. Edited a bunch of stuff lol.

You don't get an end tag error from that xml, due to using the < > rather than & l t ; and & g t ;? (No spaces, lol) I don't think you're allowed to use the former.

I deleted from the sleep timers to the end because of the < > thing -- it gave me end tag errors otherwise.

I put in my own haste gear and it appears to equip properly, you probably just need to fix it up.

**edit** Bah, I suck today. Edited a bunch of stuff lol.

**edit2** so I just realized that since ffxiah automically replaces & g t ; and the like to the < and >, when you copy and paste the xml you're going to get end tag errors. As such, I deleted the second post and decided to say that I tested it, it works fine. If you don't have an endtag error, then you probably put it in correctly, so I won't post the xml. It did work when I did test it though.
 Bahamut.Alpaka
Offline
Server: Bahamut
Game: FFXI
user: MGreer
Posts: 127
By Bahamut.Alpaka 2011-08-28 21:03:12
Link | Quote | Reply
 
I'm not getting any errors, it just doesnt work for me :/
 Cerberus.Vaness
Offline
Server: Cerberus
Game: FFXI
Posts: 1515
By Cerberus.Vaness 2011-08-28 21:42:15
Link | Quote | Reply
 
I personally just impleted the actual <main lock="yes">Celeritas Pole</main> and it work perfectly fine.

You don't really need variable for this anyway.
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2011-08-28 22:28:21
Link | Quote | Reply
 
Bahamut.Alpaka said: »
I'm not getting any errors, it just doesnt work for me :/
Your problem is probably this:
Code
        <action type="equip" when="midcast">
            <main>$%SpellElementStaff</main>
        </action>

Most likely if you have a wind staff it'd put that on otherwise it'll just leave whatever is in your idle or precast gear sets.

So long as there are no other rules that need to be parsed for your haste cast I would simply place a return at the end of the macro. So your code would look like this:
Code
        <if spell="Haste|Refresh|Esuna|Sacrifice|Raise*|Stun">
            <equip when="midcast" set="Haste" />
			<action type="return" />
        </if>  


Honestly haven't tested it or anything but try it out.

Edit: as a note, this isn't the only spell this affects. You'll want to make sure that the proper weapon is geared in any case where the proper weapon is not an elemental staff of the spell element.
Log in to post.