Moon Phase With Spellcast.

Language: JP EN DE FR
New Items
2026-01-06
6703 users online
Forum » FFXI » Jobs » Blue Mage » Moon phase with spellcast.
Moon phase with spellcast.
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-06 19:15:04
Link | Quote | Reply
 
I need help with line 185 - 191. My Artemis' Medal wont change during moon. http://pastebin.com/u8UY6Dha

I also took out all neck armor except that one and it still wont equip it.
 Cerberus.Kaht
Offline
Server: Cerberus
Game: FFXI
User: kaht
Posts: 636
By Cerberus.Kaht 2011-10-06 20:33:12
Link | Quote | Reply
 
Does pastebin remove all indentation, or does your original code look like that? If you'd indent the code it would probably make it easy to find your problem.
 Quetzalcoatl.Neisan
Offline
Server: Quetzalcoatl
Game: FFXI
User: Nanashi14
Posts: 387
By Quetzalcoatl.Neisan 2011-10-06 20:42:28
Link | Quote | Reply
 
EDIT: one sec, checking over it again, rule is slightly different. Mine doesn't have the advanced clause, and only checks for specific spells.
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-07 11:17:47
Link | Quote | Reply
 
Bump and run!
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
User: Kalila
Posts: 14552
By Siren.Kalilla 2011-10-07 11:31:44
Link | Quote | Reply
 
Plugged Sey's spellcast into the XML Code Updater on the windower forums under the spellcast section, here it is indented:

Code xml
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    <guildwork
        character="Sey"
        server="Cerberus"
        description="My BLU Script"
        job="BLU"
        />
    <config
        debug="true"
        normalgroup="common"
        normalset="idle"
        showgearswaps="false"
        showspellinfo="false"
        />
    <variables>
        <!-- Elemental Staffs, put what staff to use for each element here -->
        <var name="Staff-Fire">Vulcan's Staff</var>
        <var name="Staff-Ice">Aquilo's Staff</var>
        <var name="Staff-Wind">Auster's Staff</var>
        <var name="Staff-Earth">Terra's Staff</var>
        <var name="Staff-Thunder">Jupiter's Staff</var>
        <var name="Staff-Water">Neptune's Staff</var>
        <var name="Staff-Light">Apollo's Staff</var>
        <var name="Staff-Dark">Pluto's Staff</var>
        <var name="Sword">Almace</var>
    </variables>
    <sets>
        <group name="common" default="yes">
            <set name="idle">
                <main>Almace</main>
                <head>Mavi Kavuk +2</head>
                <neck>Mavi Scarf</neck>
                <lear>Suppanomimi</lear>
                <rear>Brutal Earring</rear>
                <body>Mavi Mintan +2</body>
                <hands>Mavi Bazubands +2</hands>
                <lring>Rajas Ring</lring>
                <rring>Spiral Ring</rring>
                <back>Atheling Mantle</back>
                <legs>Mavi Tayt +2</legs>
                <feet>Mavi Basmak +2</feet>
                <waist>Twilight Belt</waist>
                <ammo>Mavi Tathlum</ammo>
                <sub>Shamshir +2</sub>
            </set>
            <set name="main">
                <main>Almace</main>
                <head>Mavi Kavuk +2</head>
                <body>Mavi Mintan +2</body>
                <hands>Homam Manopolas</hands>
                <legs>Mavi Tayt +2</legs>
                <lring>Rajas Ring</lring>
                <rring>Spiral Ring</rring>
                <lear>Suppanomimi</lear>
                <rear>Brutal Earring</rear>
                <feet>Homam Gambieras</feet>
                <waist>Twilight Belt</waist>
                <neck>Mavi Scarf</neck>
                <back>Atheling Mantle</back>
                <ammo>Mavi Tathlum</ammo>
                <sub>Shamshir +2</sub>
            </set>
            <set name="macc">
                <legs>Teal Slops</legs>
                <feet>Mavi Basmak +2</feet>
                <rring>Omega Ring</rring>
            </set>
            <set name="fastcast">
                <body>Mavi Mintan +2</body>
                <rear>Loquac. Earring</rear>
            </set>
            <set name="rest">
                <body>Mavi Mintan +2</body>
                <back>Felicitas Cape</back>
                <waist>Austerity Belt</waist>
                <neck>Eidolon Pendant</neck>
                <legs>Nisse Slacks</legs>
            </set>
            <set name="phystr">
                <main>Almace</main>
                <head>Aias Bonnet</head>
                <hands>Aurore Gloves</hands>
                <legs>Mavi Tayt +2</legs>
                <lring>Rajas Ring</lring>
                <body>Magus Jubbah +1</body>
                <rring>Spiral Ring</rring>
                <rear>Brutal Earring</rear>
                <waist>Warwolf Belt</waist>
                <feet>Areion's Gamashes</feet>
                <neck>Kubira Beads</neck>
                <ammo>Mavi Tathlum</ammo>
            </set>
            <set name="phydex">
                <main>Almace</main>
                <head>Aias Bonnet</head>
                <hands>Aurore Gloves</hands>
                <legs>Mavi Tayt +2</legs>
                <lring>Rajas Ring</lring>
                <body>Loki's Kaftan</body>
                <rring>Jupiter's Ring</rring>
                <rear>Brutal Earring</rear>
                <lear>Suppanomimi</lear>
                <waist>Warwolf Belt</waist>
                <feet>Lithe Boots</feet>
                <back>Nifty Mantle</back>
                <neck>Kubira Beads</neck>
                <ammo>Thunder Sachet</ammo>
            </set>
            <set name="phyagi">
                <main>Almace</main>
                <head>Deceit Mask</head>
                <hands>Aurore Gloves</hands>
                <legs>Mavi Tayt +2</legs>
                <lring>Rajas Ring</lring>
                <body>Loki's Kaftan</body>
                <rring>Solemn Ring</rring>
                <rear>Brutal Earring</rear>
                <lear>Suppanomimi</lear>
                <waist>Warwolf Belt</waist>
                <feet>Lithe Boots</feet>
                <back>Potentia Cape</back>
                <neck>Arctier's Torque</neck>
                <ammo>Breeze Sachet</ammo>
            </set>
            <set name="matk">
                <head>Teal Chapeau</head>
                <hands>Mavi Bazubands +2</hands>
                <lring>Omega Ring</lring>
                <body>Teal Saio</body>
                <rring>Spiral Ring</rring>
                <sub>Bugard Strap +1</sub>
                <neck>Artemis' Medal</neck>
                <lear>Moldavite Earring</lear>
                <waist>Penitent's Rope</waist>
                <legs>Teal Slops</legs>
                <rear>Hecate's Earring</rear>
                <feet>Mavi Basmak +2</feet>
                <back>Potentia Cape</back>
                <ammo>Snow Sachet</ammo>
            </set>
            <set name="Curing">
                <head>Teal Chapeau</head>
                <hands>Mavi Bazubands +2</hands>
                <lring>Omega Ring</lring>
                <body>Teal Saio</body>
                <rring>Solemn Ring</rring>
                <sub>Bugard Strap +1</sub>
                <neck>Artemis' Medal</neck>
                <lear>Moldavite Earring</lear>
                <waist>Penitent's Rope</waist>
                <legs>Jet Seraweels</legs>
                <rear>Hecate's Earring</rear>
                <feet>Mavi Basmak +2</feet>
                <back>Oretania's Cape</back>
                <ammo>Aqua Sachet</ammo>
            </set>
            <set name="Charged-W">
                <head>Aias Bonnet</head>
                <body>Loki's Kaftan</body>
                <hands>Mavi Bazubands +2</hands>
                <legs>Mavi Tayt +2</legs>
                <lring>Rajas Ring</lring>
                <rring>Jupiter's Ring</rring>
                <lear>Hecate's Earring</lear>
                <rear>Moldavite Earring</rear>
                <feet>Mavi Basmak +2</feet>
                <waist>Warwolf Belt</waist>
                <neck>Kubira Beads</neck>
                <back>Nifty Mantle</back>
                <ammo>Thunder Sachet</ammo>
            </set>
        </group>
    </sets>
    <rules>
        <if status="idle">
            <aftercastdelay delay="7" />
            <equip when="aftercast|idle" set="idle"/>
        </if>
        <elseif status="engaged">
            <aftercastdelay delay="7" />
            <equip when="engaged|aftercast" set="main"/>
        </elseif>
        <if skill="bluemagic" buffactive="Chain Affinity" >
            <if advanced='"element" != "Earth|Fire|Water|Wind|Ice|Thunder|Dark|Light"'>
                <equip>
                    <head lock="yes">Mavi Kavuk +2</head>
                </equip>
            </if>
        </if>
        <if skill="bluemagic" >
            <if advanced='"element" = "Earth|Fire|Water|Wind|Ice|Thunder|Dark|Light"'>
                <if Moon="Full Moon|*Gibbous">
                    <equip>
                        <neck lock="yes">Artemis' Medal</neck>
                    </equip>
                </if>
            </if>
        </if>
        <if spell="Quad. Continuum|Goblin Rush|Frenetic Rip|Delta Thrust|Empty Thrash|Whirl of Rage|Vertical Cleave|Heavy Strike">
            <equip when="precast" set="phystr" />
        </if>
        <elseif spell="Hysteric Barrage|Vanity Dive|Disseverment|Chant du Cygne">
            <equip when="precast" set="phydex" />
        </elseif>
        <elseif spell="Benthic Typhoon">
            <equip when="precast" set="phyagi" />
        </elseif>
        <elseif spell="Plenilune Embrace|Magic Fruit|White Wind">
            <equip when="precast" set="fastcast" />
            <midcastdelay delay=".8" />
            <equip when="midcast" set="Curing" />
        </elseif>
        <elseif spell="1000 Needles|Radiant Breath|Death Ray|Eyes on Me|Heat Breath|Firespit|Seedspray|Magnetite Cloud|Acrid Stream|
            Maelstrom|Regurgitation|Hecatomb Wave|Mysterious Light|Frost Breath|Ice Break|Blitzstrahl|Mind Blast|Evryone. Grudge|Dark Orb|Thermal Pulse|Thunderbolt">
            <equip when="precast" set="fastcast" />
            <midcastdelay delay=".8" />
            <equip when="midcast" set="matk">
                <main>$Staff-%SpellElement</main>
            </equip>
        </elseif>
        <elseif spell="Charged Whisker">
            <equip when="precast" set="fastcast" />
            <midcastdelay delay=".8" />
            <equip when="midcast" set="Charged-W">
                <main>$Staff-%SpellElement</main>
                <sub>Spear Strap</sub>
            </equip>
        </elseif>
        <elseif spell="Dream Flower|Sopoforic">
            <equip when="precast" set="fastcast" />
            <midcastdelay delay=".8" />
            <equip when="midcast" set="macc" />
        </elseif>
        <elseif spell="actinic burst">
            <equip when="precast" set="macc" />
        </elseif>
        <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement")' >
            <if Element="Dark">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </if>
            <elseif Element="Light">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
            <elseif Element="Thunder">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                    <waist lock="yes">Rairin Obi</waist>
                </equip>
            </elseif>
            <elseif Element="Ice">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
            <elseif Element="Fire">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
            <elseif Element="Wind">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
            <elseif Element="Water">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
            <elseif Element="Earth">
                <equip when="midcast">
                    <back lock="yes">Twilight Cape</back>
                </equip>
            </elseif>
        </if>
        <if spell="autoset">
            <equip when="Resting" set="rest" />
        </if>
        <if spell="Monomi: Ichi" SpellTargetType="Self">
            <command when="precast">cancel 71</command>
        </if>
        <elseif spell="Utsusemi: Ichi" SpellTargetType="Self">
            <midcastdelay delay="1.5" />
            <command when="midcast">cancel 66</command>
        </elseif>
    </rules>
</spellcast>

The section by itself:
Code xml
        <if skill="bluemagic" >
            <if advanced='"element" = "Earth|Fire|Water|Wind|Ice|Thunder|Dark|Light"'>
                <if Moon="Full Moon|*Gibbous">
                    <equip>
                        <neck lock="yes">Artemis' Medal</neck>
                    </equip>
                </if>
            </if>
        </if>

The section Sey is talking about is between 191 and 199 in the part I posted.
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
User: Kalila
Posts: 14552
By Siren.Kalilla 2011-10-07 11:32:54
Link | Quote | Reply
 
Sey, what does your DEBUG say when you run it?
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-07 11:35:32
Link | Quote | Reply
 
Nothing. It runs thru ok.
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
User: Kalila
Posts: 14552
By Siren.Kalilla 2011-10-07 11:42:33
Link | Quote | Reply
 
from the looks of it, to me you shouldn't even be using advanced rules when there is one made for it already:

Code xml
        <if skill="bluemagic" >
            <if Element="Earth|Fire|Water|Wind|Ice|Thunder|Dark|Light">
                <if Advanced='"%MoonPCT"&gt.;"59"'>
                    <equip>
                        <neck lock="yes">Artemis' Medal</neck>
                    </equip>
                </if>
            </if>
        </if>

Try that

Edit: Changed the moon rule (remove the period between gt and ; for it to work)
 Ragnarok.Nausi
Offline
Server: Ragnarok
Game: FFXI
User: Nausi
Posts: 6709
By Ragnarok.Nausi 2011-10-07 12:25:19
Link | Quote | Reply
 
This is what i use to swap between 3 pieces of gear for SCH
Code xml
				<if spell="Sto*|Wat*|Aer*|Fir*|Bli*|Thu*|*Helix">
					<if buffactive="Ebullience|Rapture">
						<action type="equip" when="midcast" >
							<head>Savant's Bonnet +2</head>
						</action>
					</if>
					<if buffactive="Penury|Parsimony">
						<action type="equip" when="midcast">
							<legs>Savant's Pants +2</legs>
						</action>
					</if>			
					<if advanced='("%SpellElement"="%DayElement")||("%SpellElement"="%WeatherElement")'>
						<action type="equip" when="midcast">
							<waist>$%SpellElementObi</waist>
							<back>Twilight Cape</back>
						</action>
					</if>
					<if advanced='("%SpellElement"="%DayElement")'>
						<action type="equip" when="midcast">
							<lring>Zodiac Ring</lring>
						</action>
					</if>
					<if  MPPLT="51">
						<if Advanced='"%MoonPCT">"75"'>
							<action type="equip" when="midcast" >
								<neck>Artemis Medal</neck>
							</action>
						</if>
						<else>
							<action type="equip" when="midcast" >
								<neck>Uggalepih Pendant</neck>
							</action>
						</else>
					</if>
					<elseif  MPPGT="51">
						<if Advanced='"%MoonPCT"<"50"'>
							<action type="equip" when="midcast" >
								<neck>Savant's Chain</neck>
							</action>
						</if>
						<else>
							<action type="equip" when="midcast" >
								<neck>Artemis Medal</neck>
							</action>
						</else>
					</elseif>
</if>


This logic checks your MP% FIRST for Ugg Pendant then for the Moonphase for the Art Medal. (or at least i think it does >.>)
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-08 18:57:38
Link | Quote | Reply
 
Tried it all and nothing works. I'll just full time it on nukes.
 Quetzalcoatl.Mitosis
Offline
Server: Quetzalcoatl
Game: FFXI
User: xMitosisx
Posts: 317
By Quetzalcoatl.Mitosis 2011-10-08 19:13:38
Link | Quote | Reply
 
It's early, I'm tired, and I know very little of what gear BLU can use. The only way I can help is by posting the way I do it for my BLM, which never gives me any problems. Just change the neck pieces I have in there to match what you have available.

http://pastebin.com/kQemdtpV
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-09 12:31:53
Link | Quote | Reply
 
OK so I figured out that my Includes folder should be "Include". So spellcast was never checking moon phase to begin with. I also used Quetzalcoatl.Mitosis' pastebin and works great.

My only issue is I only need it for magical blue spells, not physical.
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-09 18:25:40
Link | Quote | Reply
 
I tried to add in these lines but it screws it up.



<if skill="bluemagic" >
<if advanced='"element" = "Earth|Fire|Water|Wind|Ice|Thunder|Dark|Light"'>

<if advanced='("%moonpct">"79")||("%moonpct"="100")'>
<action type="equip" when="midcast">
<neck lock="t">Artemis' Medal</neck>
</action>
<action type="command">input /echo Artemis</action>
</if>
<elseif MPPAftercastlt="51">
<action type="equip" when="midcast">
<neck lock="t">Uggalepih Pendant</neck>
</action>
<action type="command">input /echo Uggy</action>
</elseif>
<elseif MPPAftercastgt="50" advanced='("%moonpct">"34")'>
<action type="equip" when="midcast">
<neck lock="t">Artemis' Medal</neck>
</action>
<action type="command">input /echo Artemis</action>
</elseif>
<else>
<action type="equip" when="midcast">
<neck lock="t">Kubira Beads</neck>
</action>
<action type="command">input /echo Kubira</action>
</else>
</if>
 Quetzalcoatl.Mitosis
Offline
Server: Quetzalcoatl
Game: FFXI
User: xMitosisx
Posts: 317
By Quetzalcoatl.Mitosis 2011-10-09 18:35:06
Link | Quote | Reply
 
Glad I could help =]

About the physical/magical question, I really can't help there because I don't know which spells are which.

The element line you have in there... replace "element" with "%SpellElement"

Not saying this will fix your problem, but it will make that one line work.

Edit: You're also missing an "</if>" statement. Just add it to the last line and it should work properly.
 Cerberus.Sey
Offline
Server: Cerberus
Game: FFXI
User: Sey
Posts: 256
By Cerberus.Sey 2011-10-10 10:58:47
Link | Quote | Reply
 
Problem solved!!!
What I end up doing was I used the
<if>spell="Charged Whisker|Dark Orb|Regurgitation">

So now my physical spells are using the correct modifier neck and the nukes I used will follow your moon set. :-D
Log in to post.