Spellcast Troubleshoot Help-

Langues: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Scholar » Spellcast Troubleshoot Help-
Spellcast Troubleshoot Help-
Offline
Posts: 1
By aurelis 2013-05-21 14:25:03
Link | Citer | R
 
Hello,

I recently got a spellcast for my SCH (I didn't write it--I found an existing one and made some modifications to it) but I'm having a few problems. I'm new to XML and don't really have the faculties to trouble shoot this myself, not to mention I don't understand how SCH spellcast works at all...

Anyways, the two problems I'm having is this:

1) I can't seem to get Perpetuance to stack with Haste.
2) When my Spellcast is loaded, my Cure3/4 macro (written in the game as /ma 'cure iv' <stal>) will only cure myself.

I've posted my spellcast below. I appreciate any help people can give me.
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">0</var>
        <var name="ThunderGrip">0</var>
        <var name="IceGrip">0</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">Vourukasha I</var>
        <var name="DarkStaff">Chatoyant staff</var>
        <var name="ThunderStaff">Apamajas I</var>
        <var name="WindStaff">Chatoyant Staff</var>
        <var name="FireStaff">Chatoyant Staff</var>
        <var name="EarthStaff">Chatoyant Staff</var>
        <var name="LightStaff">Chatoyant Staff</var>
        <var name="WaterStaff">Chatoyant 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>Terra's staff</main>
                <sub>Vivid Strap</sub>
                <ammo>Witchstone</ammo>
                <head>Savant's bonnet +1</head>
                <neck>Twilight torque</neck>
                <lear>Hecate's Earring</lear>
                <rear>Loquacious Earring</rear>
                <body>Anhur robe</body>
                <hands>Serpentes cuffs</hands>
                <lring>Strendu Ring</lring>
                <rring>Aquasoul Ring</rring>
                <back>Shadow mantle</back>
                <waist>Oneiros Sash</waist>
                <legs>Savant's Pants +2</legs>
                <feet>Serpentes sabots</feet>
            </set>
            <set name="Resting" BaseSet="Standard">
                <main>Chatoyant Staff</main>
                <body>Chelona blazer</body>
                <feet>Chelona boots</feet>
            </set>
            <set name="FullDamage" >
                <main>%$SpellElementStaff</main>
				<sub>Wise strap</sub>
                <ammo>Witchstone</ammo>
                <head>Savant's Bonnet +1</head>
                <neck>Stoicheion Medal</neck>
                <lear>Hecate's Earring</lear>
                <rear>Moldavite earring</rear>
                <body>Anhur robe</body>
                <hands>Savant's Bracers +1</hands>
				<lring>Strendu Ring</lring>
				<rring>Icesoul ring</rring>
                <back>Searing cape</back>
                <waist>Oneiros sash</waist>
                <legs>Savant's Pants +2</legs>
                <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="FullDamage">
				<back>Merciful cape</back>
			</set>	
            <set name="EnfeeblingMagic" >
				<main>$%SpellElementStaff</main>
				<sub>Vivid Strap</sub>
                <ammo>Savant's Treatise</ammo>
                <head>Hyksos khat</head>
                <neck>Stoicheion medal</neck>
				<lear>Hecate's earring</lear>
				<rear>Loquacious earring</rear>
                <body>Anhur Robe</body>
                <hands>Savant's Bracers +1</hands>
				<lring>Strendu ring</lring>
				<rring>Aquasoul ring</rring>
				<back>Twilight cape</back>
				<waist>Cascade belt</waist>
                <legs>Savant's Pants +2</legs>
                <feet>Savant's loafers +1</feet>
            </set>
            <set name="HealingMagic" >
				<main>Tefnut wand</main>
				<sub>Genbu's shield</sub>
                <ammo>Incantor stone</ammo>
                <head>Hyksos khat</head>
                <neck>Phalaina locket</neck>
				<lear>Hecate's earring</lear>
				<rear>Loquacious earring</rear>
                <body>Chelona blazer</body>
                <hands>Serpentes cuffs</hands>
				<lring>Sirona's ring</lring>
				<rring>Ephedra ring</rring>
				<back>Tempered cape</back>
				<waist>Witful belt</waist>
                <legs>Savant's Pants +2</legs>
                <feet>Serpentes sabots</feet>
            </set>
			<set name="FastCast">
				<main>$%SpellElementStaff</main>
				<sub>Vivid Strap</sub>
                <ammo>Incantor stone</ammo>
                <head>Savant's bonnet +1</head>
                <neck>Stoicheion medal</neck>
				<lear>Hecate's earring</lear>
				<rear>Loquacious earring</rear>
                <body>Anhur Robe</body>
                <hands>Savant's Bracers +1</hands>
				<lring>Strendu ring</lring>
				<rring>Aquasoul ring</rring>
				<back>Twilight cape</back>
				<waist>Witful belt</waist>
                <legs>Savant's Pants +2</legs>
                <feet>Chelona boots</feet>
			</set>	
            <set name="CureCastTime" BaseSet="FastCast" />
            <set name="DivineMagic" />
            <set name="EnhancingMagic" >
				<main>Chatoyant staff</main>
				<sub>Fulcio grip</sub>
                <ammo>Savant's Treatise</ammo>
                <head>Savant's Bonnet +1</head>
				<neck>Colossus's Torque</neck>
                <body>Anhur Robe</body>
                <hands>Augur's Gloves</hands>
				<lring>Icesoul ring</lring>
				<rring>Aquasoul ring</rring>
				<back>Merciful cape</back>
				<waist>Cascade belt</waist>
                <legs>Scholar's pants</legs>
                <feet>Literae sabots</feet>
            </set>
            <set name="Sublimation" />
		</group>		
    </sets>
    <rules>
        <if Spell="Sneak" >
            <if BuffActive="Sneak" >
                <if SpellTarget="Aurelis">
                    <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>
            <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>
necroskull Necro Bump Detected! [48 days between previous and next post]
 Ragnarok.Achira
Offline
Serveur: Ragnarok
Game: FFXI
user: Achira
Posts: 16
By Ragnarok.Achira 2013-07-08 04:04:44
Link | Citer | R
 
Did you ever get an answer for this?

1. Looking through this code, I don't see any place where you've told it to stack.
2. There is code that tells your rules to change the target of the spell to you if you don't have a current valid target when you try to cast. That's why you're casting on yourself.
Log in to post.