SCH Script Woes

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Spellcast Scripting » Scholar » SCH script woes
SCH script woes
 Asura.Ivykyori
Offline
サーバ: Asura
Game: FFXI
user: ivykyori
Posts: 422
By Asura.Ivykyori 2013-04-28 17:40:56  
K, so I have an XML that I use for SCH and it works fine to some degree, but I got a new piece that I want to add in (Argute Gown) and for some reason, it's not changing my body. This is what I have for it:
Code
<set name="Sublimation" >
			<body>Argute Gown</body>
            </set>


What it's supposed to do is change into that body when I'm in Sublimation, then switch back when I claim my mp. It doesn't do that, hence why I'm coming to yall. Certainly all SCH's didn't hang up their mortarboards after Embrava ***-up, so...HALP?
 Phoenix.Thorbean
Offline
サーバ: Phoenix
Game: FFXI
user: Thorbean
Posts: 397
By Phoenix.Thorbean 2013-04-28 17:51:04  
Somewhare near the bottom of your rules add this:
<if buffactive="Sublimation: Activated">
<equip when="aftercast|idle" set="Sublimation" />
</if>

You only want it equipped while charging, so if you have a full charge, you switch to your propper idle body. You can also add a load of +HP gear into your sublimation set so you can build a higher charge.
 Asura.Ivykyori
Offline
サーバ: Asura
Game: FFXI
user: ivykyori
Posts: 422
By Asura.Ivykyori 2013-04-28 18:31:54  
Hmm...didn't work for some reason. There might be something else in the xml mucking something up. Eh well...
 Phoenix.Thorbean
Offline
サーバ: Phoenix
Game: FFXI
user: Thorbean
Posts: 397
By Phoenix.Thorbean 2013-04-28 19:10:51  
post the xml, it'll be easier to track down the problem.
 Asura.Ivykyori
Offline
サーバ: Asura
Game: FFXI
user: ivykyori
Posts: 422
By Asura.Ivykyori 2013-04-28 19:21:24  
Code
<?xml version="1.0" ?>

<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    <config
        RequireVersion="2.40"
        ShowGearSwaps="false"
        Debug="false"
        ShowSpellInfo="false"
        />
    <variables>
        <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
        <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
        <var name="SleepTimers">0</var>
        <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
        <var name="UggPendant">0</var>
		<!-- use Twilight Cape or not? set to 0 if you do not have it. -->
		<var name="TwilightCape">1</var>
		<!-- use Artemis' Medal or not? set to 0 if you do not have it. -->
		<var name="ArtemisMedal">0</var>
        <!-- Elemental Grips, set to 1 for each you have -->
        <var name="LightGrip">0</var>
        <var name="DarkGrip">1</var>
        <var name="ThunderGrip">1</var>
        <var name="IceGrip">1</var>
        <var name="FireGrip">0</var>
        <var name="WindGrip">0</var>
        <var name="WaterGrip">0</var>
        <var name="EarthGrip">0</var>
        <!-- Elemental Staffs, input what staff to use for each element here -->
        <var name="IceStaff">Iridal Staff</var>
        <var name="DarkStaff">Iridal Staff</var>
        <var name="ThunderStaff">Iridal Staff</var>
        <var name="WindStaff">Iridal Staff</var>
        <var name="FireStaff">Iridal Staff</var>
        <var name="EarthStaff">Iridal Staff</var>
        <var name="LightStaff">Iridal Staff</var>
        <var name="WaterStaff">Iridal Staff</var>
        <!-- Elemental Obi's, set to 1 for the ones you have. -->
        <var name="DarkObi">0</var>
        <var name="LightObi">0</var>
        <var name="ThunderObi">0</var>
        <var name="IceObi">0</var>
        <var name="FireObi">0</var>
        <var name="WindObi">0</var>
        <var name="WaterObi">0</var>
        <var name="EarthObi">0</var>
        <!--Do not change these-->
        <var Name="ChangeAddendum">0</var>
        <var Name="ChangeArt">0</var>
        <var Name="StratagemPrep">0</var>
        <var Name="StratagemConserveMP">0</var>
        <var Name="StratagemFastCast">0</var>
        <var Name="StratagemAreaEffect">0</var>
        <var Name="StratagemPotency">0</var>
		<var Name="StratagemDuration">0</var>
		<var Name="StratagemChain">0</var>
        <!--Set these to 1 if you want Spellcast to automatically change your Arts and Addendum to match the spell you're using, otherwise set to 0-->
        <var Name="AutomaticArts">1</var>
        <var Name="AutomaticAddendum">1</var>
        <!--Set this to 1 if you want Stratagems to be queued and automatically used before a spell, otherwise set to 0 (Recommended if using Automatic Arts/Addendums)-->
        <var Name="QueueStratagems">1</var>
		<var Name="SublimationSet">0</var>
    </variables>
    <sets>
        <group name="SCH" default="yes">
            <set name="Standard">
                <main>Iridal Staff</main>
				<sub>Ice Grip</sub>
                <ammo>Witchstone</ammo>
                <head>Argute Mortarboard</head>
                <neck>Savant's Chain</neck>
                <lear>Bloodgem Earring</lear>
                <rear>Hecate's Earring</rear>
			    <body>Savant's Gown +1</body>
                <hands>Savant's Bracers +2</hands>
                <lring>Strendu Ring</lring>
                <rring>Dark Ring</rring>
                <back>Twilight Cape</back>
                <waist>Searing Sash</waist>
                <legs>Savant's Pants +2</legs>
                <feet>Savant's Loafers +1</feet>
            </set>
            <set name="Resting" BaseSet="Standard">
                <main lock="true">Iridal Staff</main>
				<legs>Nisse Slacks</legs>
				<back>Vita Cape</back>
            </set>
            <set name="FullDamage" >
                <sub>Ice Grip</sub>
                <ammo>Witchstone</ammo>
                <head>Savant's Bonnet +1</head>
                <neck>Stoicheon Medal</neck>
                <lear>Bloodgem Earring</lear>
                <rear>Hecate's Earring</rear>
                <body>Savant's Gown +1</body>
                <hands>Savant's Bracers +2</hands>
                <back>Twilight Cape</back>
				<waist>Searing Sash</waist>
                <legs>Savant's Pants +2</legs>
				<lring>Strendu Ring</lring>
                <rring>Dark Ring</rring>
				<feet>Savant's Loafers +1</feet>
            </set>
            <set name="LightResist" BaseSet="FullDamage" />
            <set name="MidResist" BaseSet="FullDamage" />
            <set name="HighResist" BaseSet="FullDamage" />
            <set name="DarkMagic" BaseSet="Standard" />
            <set name="EnfeeblingMagic" >
				<ammo>Savant's Treatise</ammo>
                <head>Scholar's M.board</head>
                <neck>Enfeebling Torque</neck>
                <body>Savant's Gown +2</body>
                <hands>Argute Bracers +1</hands>
                <legs>Savant's Pants +2</legs>
				<lring>Omega Ring</lring>
				<rring>Karka Ring</rring>
            </set>
            <set name="HealingMagic" >
			<back>Oretania's Cape</back>
			<feet>Argute Loafers</feet>
            </set>
			<set name="CureCastTime" BaseSet="FastCast" >
			</set>
            <set name="DivineMagic" />
            <set name="EnhancingMagic" >
				<ammo>Savant's Treatise</ammo>
				<waist>Cascade Belt</waist>
				<head>Savant's Bonnet +2</head>
				<body>Anhur Robe</body>
				<hands>Augur's Gloves</hands>
				<legs>Portent Pants</legs>
				<feet>Rubeus Boots</feet>
				<neck>Colossus's Torque</neck>
			</set>
			<set name="Sublimation" >
			<body>Argute Gown</body>
            </set>
        </group>
    </sets>
    <rules>
		<if Spell="Sneak" >
            <if BuffActive="Sneak" >
				<if SpellTarget="Ivykyori">
					<midcastdelay delay="1.0" />
					<command when="midcast">cancel 71</command>
					<return />
				</if>
			</if>
        </if>
		<!--if Spell="*storm" >
			<equip when="precast" set="FastCast" />
			<equip when="midcast" >
				<feet>Argute Loafers +2</feet>
			</equip>
		</if-->
		
		<if Spell="Escape|Warp|Teleport-*|Tractor|Protectra*|Shellra*">
            <return />
        </if>
		
		<!--Queues up Stratagems for use before spells if enabled-->
        <if Spell="Accession|Alacrity|Celerity|Ebullience|Manifestation|Parsimony|Penury|Rapture|Perpetuance|Immanence">
            <if Advanced="$QueueStratagems=1 AND $StratagemPrep=0">
                <if Spell="Parsimony|Penury">
                    <if Advanced="$StratagemConserveMP=0">
                        <var cmd="set StratagemConserveMP 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Reduces the MP cost of your next spell by 50%.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemConserveMP 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
                <if Spell="Alacrity|Celerity">
                    <if Advanced="$StratagemFastCast=0">
                        <var cmd="set StratagemFastCast 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Reduces the casting time and recast time of your next spell by 50%.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemFastCast 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
                <if Spell="Accession|Manifestation">
                    <if Advanced="$StratagemAreaEffect=0">
                        <var cmd="set StratagemAreaEffect 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Extends the effect of your next spell to targets within range. MP cost and recast time are doubled.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemAreaEffect 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
                <if Spell="Ebullience|Rapture">
                    <if Advanced="$StratagemPotency=0">
                        <var cmd="set StratagemPotency 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Enhances potency of your next spell.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemPotency 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
				<if Spell="Perpetuance">
                    <if Advanced="$StratagemDuration=0">
                        <var cmd="set StratagemDuration 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Increases duration of your next enhancing spell.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemDuration 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
				<if Spell="Immanence">
                    <if Advanced="$StratagemChain=0">
                        <var cmd="set StratagemChain 1" />
                        <addtochat Color="121">[Stratagem: Enabled] Allows next elemental spell to be used in skillchain.</addtochat>
                    </if>
                    <else>
                        <var cmd="set StratagemChain 0" />
                        <addtochat Color="121">[Stratagem: Disabled]</addtochat>
                    </else>
                </if>
                <cancelspell />
            </if>
        </if>
        <if Type="BlackMagic|WhiteMagic">
            <if Type="BlackMagic">
                <!--Uses to Dark Arts if casting a Black Magic spell-->
                <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$AutomaticArts=1 AND $ChangeArt=0">
                    <if BuffActive="Enlightenment" >
						<var cmd="set ChangeArt 0" />
					</if>
					<else>
						<var cmd="set ChangeArt 1" />
						<command>wait 1.5;%Spell %SpellTargetRaw;</command>
						<command>Dark Arts</command>
						<cancelspell />
						<return />
					</else>
                </if>
                <!--Uses Addendum: Black if required to cast spell-->
                <if Spell="Sleep*|Dispel|Break|*IV|*V" NotBuffActive="Addendum: Black|Enlightenment" Advanced='$AutomaticAddendum=1 AND $ChangeAddendum=0
                    AND ("%Spell"="Stone V" OR "%Spell"="Water V" OR "%Spell"="Aero V" OR "%Spell"="Fire V" OR "%Spell"="Blizzard V" OR "%Spell"="Thunder V" OR "%Spell"="Aero IV" OR "%Spell"="Blizzard IV" OR "%Spell"="Fire IV" OR "%Spell"="Sleep II" OR "%Spell"="Stone IV" OR "%Spell"="Thunder IV" OR "%Spell"="Water IV" OR "%Spell"="Break"
                    OR (("%Spell"="Dispel" AND ("%SubJob"!="RDM" OR ("%SubJob"="RDM" AND %SubJobLVL<32)))
                    OR ("%Spell"="Sleep" AND (("%SubJob"!="BLM" AND "%SubJob"!="DRK" AND "%SubJob"!="RDM")
                    OR (("%SubJob"="BLM" AND %SubJobLVL<20)
                    OR ("%SubJob"="DRK" AND %SubJobLVL<30)
                    OR ("%SubJob"="RDM" AND %SubJobLVL<25))))))'>
                    <if NotBuffActive="Dark Arts" Advanced="$ChangeArt=0">
                        <var cmd="set ChangeArt 1" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Dark Arts</command>
                        <cancelspell />
                        <return />
                    </if>
                    <var cmd="set ChangeAddendum 1" />
                    <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                    <command>Addendum: Black</command>
                    <cancelspell />
                    <return />
                </if>
                <!--Uses Stratagems if they have been added to the queue-->
                <if Advanced="$QueueStratagems=1">
                    <var cmd="set StratagemPrep 1" />
                    <if Advanced="$StratagemConserveMP=1">
                        <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Dark Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemConserveMP 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Parsimony</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemFastCast=1">
                        <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Dark Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemFastCast 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Alacrity</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemAreaEffect=1" Spell="Absorb*|Aspir|Bind|Bio*|Blind|Dispel|Drain|Gravity|Klimaform|Poison|Sleep*|Stun|Break">
                        <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Dark Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemAreaEffect 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Manifestation</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemPotency=1" Spell="Aero*|Aspir|Bio*|Blizzard*|Drain|Fire*|Stone*|Thunder*|Water*|*helix">
                        <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell</command>
                            <command>Dark Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemPotency 0" />
                        <command>wait 1.5;%Spell</command>
                        <command>Ebullience</command>
                        <cancelspell />
                        <return />
                    </if>
					<if Advanced="$StratagemChain=1" Spell="Aero*|Blizzard*|Fire*|Stone*|Thunder*|Water*|*helix">
                        <if NotBuffActive="Dark Arts|Addendum: Black" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Dark Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemChain 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Immanence</command>
                        <cancelspell />
                        <return />
                    </if>
                    <var cmd="set StratagemPrep 0" />
                </if>
            </if>
            <if Type="WhiteMagic">
                <!--Uses to Light Arts if casting a White Magic spell-->
                <if NotBuffActive="Light Arts|Addendum: White" Advanced="$AutomaticArts=1 AND $ChangeArt=0">
                    <if BuffActive="Enlightenment" >
						<var cmd="set ChangeArt 0" />
					</if>
					<else>
						<if spell="*storm|Haste">
							<var cmd="set ChangeArt 0" />
						</if>
						<else>
							<var cmd="set ChangeArt 1" />
							<command>wait 1.5;%Spell %SpellTargetRaw;</command>
							<command>Light Arts</command>
							<cancelspell />
							<return />
						</else>
					</else>
                </if>
                <!--Uses Addendum: White if required to cast spell-->
                <if Spell="Erase|Raise II|Reraise*|*na" NotBuffActive="Addendum: White|Enlightenment" Advanced='$AutomaticAddendum=1 AND $ChangeAddendum=0
                    AND ("%Spell"="Raise II" OR "%Spell"="Reraise II" OR "%Spell"="Stona" OR ("%SubJob"!="WHM" OR ("%SubJob"="WHM"
                    AND (("%Spell"="Blindna" AND %SubJobLVL<14)
                    OR ("%Spell"="Cursna" AND %SubJobLVL<29)
                    OR ("%Spell"="Erase" AND %SubJobLVL<32)
                    OR ("%Spell"="Paralyna" AND %SubJobLVL<9)
                    OR ("%Spell"="Poisona" AND %SubJobLVL<6)
                    OR ("%Spell"="Reraise" AND %SubJobLVL<33)
                    OR ("%Spell"="Silena" AND %SubJobLVL<19)
                    OR ("%Spell"="Viruna" AND %SubJobLVL<34)))))'>
                    <if NotBuffActive="Light Arts" Advanced="$ChangeArt=0">
                        <var cmd="set ChangeArt 1" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Light Arts</command>
                        <cancelspell />
                        <return />
                    </if>
                    <var cmd="set ChangeAddendum 1" />
                    <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                    <command>Addendum: White</command>
                    <cancelspell />
                    <return />
                </if>
                <!--Uses Stratagems if they have been added to the queue-->
                <if Advanced="$QueueStratagems=1">
                    <var cmd="set StratagemPrep 1" />
                    <if Advanced="$StratagemConserveMP=1">
                        <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Light Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemConserveMP 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Penury</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemFastCast=1">
                        <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Light Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemFastCast 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Celerity</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemAreaEffect=1" Spell="Aquaveil|Bar*|Blink|Cure*|Deodorize|Sneak|Invisible|En*|Erase|Phalanx|Refresh|Protect*|Regen*|Shell*|Adloquium|Embrava|Stoneskin|*na|*storm" NotSpell="*ra">
                        <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Light Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemAreaEffect 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Accession</command>
                        <cancelspell />
                        <return />
                    </if>
                    <if Advanced="$StratagemPotency=1" Spell="Banish*|Cure*|Dia*">
                        <if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
                            <var cmd="set ChangeArt 1" />
                            <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                            <command>Light Arts</command>
                            <cancelspell />
                            <return />
                        </if>
                        <var cmd="set StratagemPotency 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Rapture</command>
                        <cancelspell />
                        <return />
                    </if>
					<if Advanced="$StratagemDuration=1" Spell="Aquaveil|Bar*|Blink|Deodorize|En*|Haste|Phalanx|Protect*|Regen*|Shell*|Adloquium|Embrava|Stoneskin|*storm">
						<if NotBuffActive="Light Arts|Addendum: White" Advanced="$ChangeArt=0">
							<var cmd="set ChangeArt 1" />
							<command>wait 1.5;%Spell %SpellTargetRaw;</command>
							<command>Light Arts</command>
							<cancelspell />
							<return />
                        </if>
                        <var cmd="set StratagemDuration 0" />
                        <command>wait 1.5;%Spell %SpellTargetRaw;</command>
                        <command>Perpetuance</command>
                        <cancelspell />
                        <return />
                    </if>
                    <var cmd="set StratagemPrep 0" />
                </if>
            </if>
            <var cmd="set ChangeArt 0" />
            <var cmd="set ChangeAddendum 0" />
        </if>
		<!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
        <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
            <changetarget target="<me>" />
        </if>
        <if SpellTargetType="NONE" ValidTarget="*Self*">
            <changetarget target="<me>" />
        </if>
        <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
		<equip when="Idle|Aftercast" set="Standard" />
        <!-- set of gear to equip when resting -->
        <equip when="Resting" set="Resting" />

            <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
            <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love">
                <if Advanced='"$%SpellElementGrip" == "1"'>
                    <equip when="midcast">
                        <sub lock="true">%SpellElement Grip</sub>
                    </equip>
                </if>
            </if>
            <!-- if were handling spells -->
            <if Skill="*Magic">
                <!-- if this is elemental magic (nukes/dot's, then do special handling -->
                <if Skill="ElementalMagic">
                    <if Spell="*helix">
                        <!-- equip elemental/INT gear for DoT's -->
                        <equip when="precast|midcast" Set="Helix" />
                    </if>
                    <else>
						<!-- Normal mob, go full damage gear. -->
						<if BuffActive="Klimaform" >
							<equip when="precast" Set="FastCast" />
							<equip when="midcast" Set="FullDamage" >
								<feet lock="true">Savant's Loafers +2</feet>
							</equip>
						</if>
						<else>
							<equip when="precast" Set="FastCast" />
							<equip when="midcast" Set="FullDamage" />
						</else>
						<!-- only equip medal/pendant in situations you would equip full damage gear -->
						<if Advanced="$ArtemisMedal==1">
							<if Advanced='%MoonPCT>80'>
								<equip when="midcast">
									<neck lock="yes">Artemis' Medal</neck>
								</equip>
							</if>
						</if>
						<else>
							<if Advanced='%MoonPCT<80'>
								<if MPPAfterCastLT="50" Advanced="$UggPendant==1">
									<equip when="midcast">
										<neck lock="yes">Uggalepih Pendant</neck>
									</equip>
								</if>
							</if>
						</else>
                    </else>
                </if>
                <!-- for any other type of spell, just equip matching set name. -->
                <else>
                    <if Skill ="EnfeeblingMagic|HealingMagic|EnhancingMagic|DivineMagic|DarkMagic" >
						<if BuffActive="Perpetuance">
							<if spell="Regen*">
								<equip when="precast|midcast" set="FastCast|%Skill">
									<head lock="true">Savant's Bonnet +1</head>
									<hands lock="true">Savant's Bracers +2</hands>
								</equip>
							</if>
							<else>
								<equip when="precast|midcast" set="FastCast|%Skill">
									<hands lock="true">Savant's Bracers +2</hands>
								</equip>
							</else>
						</if>
						<else>
							<if skill="HealingMagic">
								<equip when="precast|midcast" set="CureCastTime|%Skill" />
							</if>
							<else>
								<equip when="precast|midcast" set="FastCast|%Skill" />
							</else>
						</else>
                    </if>
                </else>
            </if>
            <else>
                <equip when="precast|midcast" Set="Standard" />
            </else>
            <!-- Handle Elemental Obi's -->
            <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
                <if     Element="Dark">
                    <equip when="midcast">
                        <waist lock="yes">Anrin Obi</waist>
                    </equip>
                </if>
                <elseif Element="Light">
                    <equip when="midcast">
                        <waist lock="yes">Korin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Thunder">
                    <equip when="midcast">
                        <waist lock="yes">Rairin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Ice">
                    <equip when="midcast">
                        <waist lock="yes">Hyorin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Fire">
                    <equip when="midcast">
                        <waist lock="yes">Karin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Wind">
                    <equip when="midcast">
                        <waist lock="yes">Furin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Water">
                    <equip when="midcast">
                        <waist lock="yes">Suirin Obi</waist>
                    </equip>
                </elseif>
                <elseif Element="Earth">
                    <equip when="midcast">
                        <waist lock="yes">Dorin Obi</waist>
                    </equip>
                </elseif>
            </if>
			<!-- Handle Twilight Cape -->
			<if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$TwilightCape" = "1") AND ("%skill"="ElementalMagic")'>
				<equip when="midcast">
					<back lock="yes">Twilight Cape</back>
				</equip>
			</if>
            <!-- Timers for when sleep is wearing off. -->
            <if advanced='"$SleepTimers"="1"'>
                <if Spell="Sleep II|Sleepga 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>
            <if buffactive="Sublimation: Activated" >
<equip when="aftercast|idle" set="Sublimation" />
</if>
            <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
            <!--if Spell="Sneak" SpellTargetType="Self">
                <equip when="midcast" set="SneakInvis" />
                <if BuffActive="Sneak">
                    <midcastdelay delay="1.0" />
                    <command when="midcast">cancel 71</command>
                </if>
            </if-->
			
            <if Type="Ninjutsu" NotBuffActive="Silence|Sleep|Stun|Terror">
				<if Mode="AND" Status="Engaged" Spell="Utsusemi*" >
					<equip When="PreCast" Set="FastCast" />
					<if Spell="Utsusemi: Ichi" BuffActive="Copy Image" >
						<midcastdelay Delay="3.0" />
						<command When="MidCast">cancel 66</command>
					</if>
				</if>
				<elseif Spell="Utsusemi*" >
					<equip When="PreCast" Set="FastCast" />
					<if Spell="Utsusemi: Ichi" BuffActive="Copy Image" >
						<midcastdelay Delay="3.0" />
						<command When="MidCast">cancel 66</command>
					</if>
				</elseif>
				<elseif Spell="Monomi*" BuffActive="Sneak" SpellTargetType="Self">
					<midcastdelay Delay="2.0" />
					<command When="MidCast">cancel 71</command>
				</elseif>
			</if>
            <elseif Spell="Stoneskin" BuffActive="Stoneskin">
                <command when="midcast">cancel 37</command>
                <midcastdelay delay="4.0" />
            </elseif>
            <elseif Spell="Blink" BuffActive="Blink">
                <command when="midcast">cancel 36</command>
                <midcastdelay delay="4.0" />
            </elseif>
            <!-- finally, equip our staff! -->
            <equip when="midcast">
                <main>$%SpellElementStaff</main>
            </equip>
    </rules>
</spellcast>
 Asura.Ivykyori
Offline
サーバ: Asura
Game: FFXI
user: ivykyori
Posts: 422
By Asura.Ivykyori 2013-04-28 20:18:11  
Okay, dunno what the hell was wrong, but now it's working.

Onwards with gear collecting! Thanks! <3
 Siren.Thoraeon
Offline
サーバ: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2013-04-28 23:00:49  
Not quite related to your problem, but figured that it might be useful to you:

Sublimation base is 8/tic.
Mp now is better than mp later. For idle, 1 Refresh > 1 Sublimation, so the only piece worth using is the earring. (In my opinion and explained below.)

For a Hume with 15/15 hp merits and 5/5 Sublimation:
1405 hp base => 351 Sublimation + 50 from merits = 401 sublimation

For a 9/tic sublimation, it takes 45 tics to charge, or 135 seconds.
Sublimation has a 30 sec recast.

Now to calculate the average:
(9*135+0*30) = 7.364 mp/sec on average
(135+30)

Using the same math as before: (401 sublimation without considering hp gear)

1 Owleyes + 3 Refresh Head/Body + 1 Serpentes + 1 Nares legs = 6 Refresh
8 Base + 1 Earring = 9 Sublimation
401/9 => 45 tics = 135 secs

(9*135+0*30) = 7.364 + 6 = 13.364 per tic using refresh gear
(135+30)


1 Serpentes + 1 Nares legs = 2 Refresh
8 Base + 1 Earring + 1 Siriti + 3 Head/Body Combo = 13 Sublimation
401/13 => 31 tics = 93 secs

(13*93+4*30) = 10.804 + 2 = 12.804 per tic with sub gear
(93+30)

Basically, it is more efficient not to use Sublimation gear if you can equal it in refresh for maximizing mp over time.
 Asura.Ivykyori
Offline
サーバ: Asura
Game: FFXI
user: ivykyori
Posts: 422
By Asura.Ivykyori 2013-04-29 13:19:29  
I'm still in the process of collecting gear and swapping and the like (took a few months off from the game, so I need to catch up).

What earring is this, btw?

Oh and dunno if it means anything, but since you mentioned hume, I'd like to point out that I'm of the smaller race persuasion (aka Taru).
 Siren.Thoraeon
Offline
サーバ: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2013-04-29 13:26:49  
Asura.Ivykyori said: »
I'm still in the process of collecting gear and swapping and the like (took a few months off from the game, so I need to catch up).

What earring is this, btw?

Oh and dunno if it means anything, but since you mentioned hume, I'd like to point out that I'm of the smaller race persuasion (aka Taru).
savant's earring

Just used hume as an example. Changing HP changes the difference slightly, but it never makes 1 sublimation better than 1 refresh.
 Siren.Ihm
VIP
Offline
サーバ: Siren
Game: FFXI
user: Ihm
Posts: 688
By Siren.Ihm 2013-04-29 13:32:00  
Siren.Thoraeon said: »
Asura.Ivykyori said: »
I'm still in the process of collecting gear and swapping and the like (took a few months off from the game, so I need to catch up).

What earring is this, btw?

Oh and dunno if it means anything, but since you mentioned hume, I'd like to point out that I'm of the smaller race persuasion (aka Taru).
savant's earring

Just used hume as an example. Changing HP changes the difference slightly, but it never makes 1 sublimation better than 1 refresh.

Unless you're charging sublimation before you start whatever you're doing, which you should in most circumstances, then you should use full gear.
 Siren.Thoraeon
Offline
サーバ: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2013-04-29 13:37:03  
If "full gear" means "full refresh gear", then yes.

As I showed earlier, you get more mp over time charging sublimation in refresh gear instead of sublimation gear assuming both are equal.

If you have more sublimation gear than refresh gear, then you should be working on a better refresh set.
Log in to post.