Cor XML

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Corsair » Cor XML
Cor XML
 Fenrir.Bricent
Offline
サーバ: Fenrir
Game: FFXI
Posts: 64
By Fenrir.Bricent 2012-08-21 19:12:17  
Hey all I am fairly new to spellcast and was wandering if anyone had an xml for cor that I could use as a reference. Also any advice would be good thank you.
 Quetzalcoatl.Killza
Offline
サーバ: Quetzalcoatl
Game: FFXI
Posts: 87
By Quetzalcoatl.Killza 2012-08-21 20:25:30  
I wrote this for a friend maybe it will help ya.
Code
<?xml version="1.0" ?>
<spellcast>
	
	<sets>
		<group name="COR" default="yes">

			<!--Snapshot-->
			<set name="snapshot">
					<ammo>Steel Bullet</ammo>
					<head>Navarch's Tricorne +2</head>
					<body>Skopos Jerkin</body>
					<back>Navarch's Mantle</back>
					<waist>Impulse Betl</waist>
					<legs>Navarch's Culottes +2</legs>
					<hands>Commodore Gants</hands>
			</set>
			<!--Ranged TP-->
			<set name="Ranged">
					<ammo>Steel Bullet</ammo>
					<head>Navarch's Tricorne +2</head>
					<neck>Arctier's Torque</neck>
					<lear>Volley Earring</lear>
					<rear>Clearview Earring</rear>
					<body>Navarch's Frac +2</body>
					<hands>Navarch's Gants +2</hands>
					<lring>Arewe Ring +1</lring>
					<rring>Rajas Ring</rring>
					<back>Libeccio Mantle</back>
					<waist>Aquiline Belt</waist>
					<legs>Navarch's Culottes +2</legs>
					<feet>Navarch's Bottes +2</feet>
			</set>
 

			<!--Quick Draw-->
			<set name="QD">
					<rring>Stormsoul Ring</rring>
					<ammo>Orichalcum Bullet</ammo>
					<head>Pandinus Beret</head>
					<neck>Stoicheion medal</neck>
					<lear>Hecate's Earring</lear>
					<rear>Novio Earring</rear>
					<body>Mirke Wardecors</body>
					<hands>Schutzen Mittens</hands>
					<lring>Stormsoul Ring</lring>
					<back>Forban Cape</back>
					<waist>Aquiline Belt</waist>
					<legs>Denali Kecks</legs>
					<feet>Navarch's Bottes +2</feet>
			</set>

			<!--Wild Fire-->
			<set name="WildFire">
					<rring>Stormsoul Ring</rring>
					<ammo>Orichalcum Bullet</ammo>
					<head>Pandinus Beret</head>
					<neck>Stoicheion Medal</neck>
					<lear>Hecate's Earring</lear>
					<rear>Novio Earring</rear>
					<body>Loki's Kaftan</body>
					<hands>Schutzen Mittens</hands>
					<lring>Stormsoul Ring</lring>
					<back>Forban Cape</back>
					<waist>Aquiline Belt</waist>
					<legs>Ambusher's Hose</legs>
					<feet>Navarch's Bottes +2</feet>
			</set>
		</group>
	</sets>

	<rules>
			<if spell="Chaos*|Ninja*|Hunter*|Magus*|Healer's Roll|Puppet Roll|Choral Roll|Monk's Roll|Beast Roll|Samurai Roll|Evoker's Roll|Rogue's Roll|Warlock's Roll|Fighter's Roll|Drachen Roll|Gallant's Roll|Wizard's Roll|Dancer's Roll|Scholar's Roll">
				<equip when="precast">
					<head>Comm. Tricorne</head>
					<hands>Navarch's Gants +2</hands>
				</equip>
			</if>
			<if spell="Tactician*">
				<equip when="precast">
					<body>Navarch's Frac +2</body>
					<hands>Navarch's Gants +2</hands>
				</equip>
				<addtochat> - Lucky 5 Unlucky 8 -</addtochat>
			</if>
			<if spell="Blitzer*">
				<equip when="precast">
					<head>Navarch's Tricorne +2</head>
					<hands>Navarch's Gants +2</hands>
				</equip>
				<addtochat> - Lucky 4 Unlucky 9 -</addtochat>
			</if>
			<if spell="Allies*">
				<equip when="precast">
					<hands>Navarch's Gants +2</hands>
				</equip>
				<addtochat> - Lucky 3 Unlucky 10 -</addtochat>
			</if>
			<if spell="Courser*">
				<equip when="precast">
					<hands>Navarch's Gants +2</hands>
					<feet>Navarch's Bottes +2</feet>
				</equip>
				<addtochat> - Lucky 3 Unlucky 9 -</addtochat>
			</if>
			<if spell="Caster*">
				<equip when="precast">
					<legs>Navarch's Culottes +2</legs>
				</equip>
			</if>
			<if spell="Chaos*|Ninja*|Puppet*|Hunter*|Beast*|Warlock*|Avenger*">
				<addtochat> - Lucky 4 Unlucky 8 -</addtochat>
			</if>
			<if spell="Corsair's*|Rogue*|Evoker*|Fighter*|Wizard*">
				<addtochat> - Lucky 5 Unlucky 9 -</addtochat>
			</if>
			<if spell="Magus*|Choral*|Samurai*|Scholar*">
				<addtochat> - Lucky 2 Unlucky 6 -</addtochat>
			</if>
			<if spell="Healer*|Monk*|Drachen*|Gallant*|Dancer*">
				<addtochat> - Lucky 3 Unlucky 7 -</addtochat>
			</if>
			<if spell="Companion*">
				<addtochat> - Lucky 2 Unlucky 10 -</addtochat>
			</if>
			<if spell="Miser*">
				<addtochat> - Lucky 5 Unlucky 7 -</addtochat>
			</if>
			<if spell="Bolter*">
				<addtochat> - Lucky 3 Unlucky 9 -</addtochat>
			</if>
			<if spell="Caster*">
				<addtochat> - Lucky 2 Unlucky 7 -</addtochat>
			</if>
			<if spell="Wild*">
				<equip when="precast" set="WildFire" />
			</if>
			<if spell="Fire Shot|Water Shot|Wind Shot|Ice Shot|Earth Shot|Thunder Shot|Light Shot|Dark Shot">
				<equip when="precast" set="QD" />
			</if>
			<if spell="ranged">
				<midcastdelay delay="2" />
				<equip when="precast" set="snapshot" />
				<equip when="midcast" set="Ranged" />
			</if>
			<if spell="*Roll">
				<equip when="precast">
					<rring>Luzaf's Ring</rring>
				</equip>
			</if>
			<if spell="Random Deal">
				<equip when="precast">
					<body>Commodore Frac</body>
				</equip>
			</if>
			<if spell="Triple*">
				<equip when="precast">
					<body>Navarch's Frac +2</body>
				</equip>
			</if>	
	</rules>
	
</spellcast>
 Sylph.Binckry
Offline
サーバ: Sylph
Game: FFXI
user: Binckly
Posts: 529
By Sylph.Binckry 2012-08-21 20:53:17  
This is what I use for my COR, it's a little incompleteish, I have it set so it'll cancel any command if i have orichalcum bullet on, had omphalos but disposed of it when i had spellcast off once. >:, so whenever you have omphalos, just change ori into omph in that first rule.
 Fenrir.Bricent
Offline
サーバ: Fenrir
Game: FFXI
Posts: 64
By Fenrir.Bricent 2012-08-22 17:19:45  
thank you all for the help and advice
 Ragnarok.Evihime
Offline
サーバ: Ragnarok
Game: FFXI
user: Evihime
Posts: 273
By Ragnarok.Evihime 2012-08-31 22:23:48  
Why is this not working? Says Line 169, which is </rules> "error reading end tag"
Code
<?xml version="1.0" ?>
<spellcast>
     
    <sets>
        <group name="COR" default="yes">
 
            <!--Snapshot-->
            <set name="snapshot">
                    <ammo>Bullet</ammo>
                    <head>Navarch's Tricorne +2</head>
                    <body>Navarch's Frac +2</body>
                    <back>Navarch's Mantle</back>
                    <waist>Impulse Belt</waist>
                    <legs>Navarch's Culottes +2</legs>
            </set>
            <!--Ranged TP-->
            <set name="Ranged">
                    <ammo>Bullet</ammo>
                    <head>Navarch's Tricorne +2</head>
                    <neck>Navarch's Choker</neck>
                    <lear>Volley Earring</lear>
                    <rear>Clearview Earring</rear>
                    <body>Navarch's Frac +2</body>
                    <hands>Navarch's Gants +2</hands>
                    <lring>Jalzahn's ring</lring>
                    <rring>Rajas Ring</rring>
                    <back>Libeccio Mantle</back>
                    <waist>Buccaneer's belt</waist>
                    <legs>Navarch's Culottes +2</legs>
                    <feet>Navarch's Bottes +2</feet>
            </set>
  
 
            <!--Quick Draw-->
            <set name="QD">
                    <rring>Stormsoul Ring</rring>
                    <ammo>Orichalcum Bullet</ammo>
                    <head>Thaumas Hat</head>
                    <neck>Stoicheion medal</neck>
                    <lear>hecate's Earring</lear>
                    <rear>Novio Earring</rear>
                    <body>Mirke Wardecors</body>
                    <hands>Navarch's Gants +2</hands>
                    <lring>Stormsoul Ring</lring>
                    <back>Forban Cape</back>
                    <waist>Aquiline Belt</waist>
                    <legs>Navarch's Culottes +2</legs>
                    <feet>Navarch's Bottes +2</feet>
            </set>
 
            <!--Wild Fire-->
            <set name="WildFire">
                    <rring>Stormsoul Ring</rring>
                    <ammo>Orichalcum Bullet</ammo>
                    <head>Thaumas hat</head>
                    <neck>Stoicheion Medal</neck>
                    <lear>Hecate's Earring</lear>
                    <rear>Novio Earring</rear>
                    <body>Athos's Tabard</body>
                    <hands>Ocelot gloves</hands>
                    <lring>Stormsoul Ring</lring>
                    <back>Forban Cape</back>
                    <waist>Aquiline Belt</waist>
                    <legs>Thaumas kecks</legs>
                    <feet>Thaumas nails</feet>
            </set>
        </group>
    </sets>
 
    <rules>
            <if spell="Chaos*|Ninja*|Hunter*|Magus*|Healer's Roll|Puppet Roll|Choral Roll|Monk's Roll|Beast Roll|Samurai Roll|Evoker's Roll|Rogue's Roll|Warlock's Roll|Fighter's Roll|Drachen Roll|Gallant's Roll|Wizard's Roll|Dancer's Roll|Scholar's Roll">
                <equip when="precast">
                    <head>Comm. Tricorne</head>
                    <hands>Navarch's Gants +2</hands>
                </equip>
            </if>
            <if spell="Tactician*">
                <equip when="precast">
                    <body>Navarch's Frac +2</body>
                    <hands>Navarch's Gants +2</hands>
                </equip>
                <addtochat> - Lucky 5 Unlucky 8 -</addtochat>
            </if>
            <if spell="Blitzer*">
                <equip when="precast">
                    <head>Navarch's Tricorne +2</head>
                    <hands>Navarch's Gants +2</hands>
                </equip>
                <addtochat> - Lucky 4 Unlucky 9 -</addtochat>
            </if>
            <if spell="Allies*">
                <equip when="precast">
                    <hands>Navarch's Gants +2</hands>
                </equip>
                <addtochat> - Lucky 3 Unlucky 10 -</addtochat>
            </if>
            <if spell="Courser*">
                <equip when="precast">
                    <hands>Navarch's Gants +2</hands>
                    <feet>Navarch's Bottes +2</feet>
                </equip>
                <addtochat> - Lucky 3 Unlucky 9 -</addtochat>
            </if>
            <if spell="Caster*">
                <equip when="precast">
                    <legs>Navarch's Culottes +2</legs>
                </equip>
            </if>
            <if spell="Chaos*|Ninja*|Puppet*|Hunter*|Beast*|Warlock*|Avenger*">
                <addtochat> - Lucky 4 Unlucky 8 -</addtochat>
            </if>
            <if spell="Corsair's*|Rogue*|Evoker*|Fighter*|Wizard*">
                <addtochat> - Lucky 5 Unlucky 9 -</addtochat>
            </if>
            <if spell="Magus*|Choral*|Samurai*|Scholar*">
                <addtochat> - Lucky 2 Unlucky 6 -</addtochat>
            </if>
            <if spell="Healer*|Monk*|Drachen*|Gallant*|Dancer*">
                <addtochat> - Lucky 3 Unlucky 7 -</addtochat>
            </if>
            <if spell="Companion*">
                <addtochat> - Lucky 2 Unlucky 10 -</addtochat>
            </if>
            <if spell="Miser*">
                <addtochat> - Lucky 5 Unlucky 7 -</addtochat>
            </if>
            <if spell="Bolter*">
                <addtochat> - Lucky 3 Unlucky 9 -</addtochat>
            </if>
            <if spell="Caster*">
                <addtochat> - Lucky 2 Unlucky 7 -</addtochat>
		    <if spell="Wildfire">
            <equip when="precast" set="Wildfire" />
            </if>
            <if Advanced='"%DayElement" = "%SpellElement" OR "%WeatherElement" = "%SpellElement"'> 
                <if Element="Fire">
                <equip when="precast">
                    <waist lock="yes">Karin Obi</waist>
                </equip>
            </if>
            <if spell="Fire Shot|Water Shot|Wind Shot|Ice Shot|Earth Shot|Thunder Shot|Light Shot|Dark Shot">
                <equip when="precast" set="QD" />
            </if>
            <if spell="ranged">
                <midcastdelay delay="2" />
                <equip when="precast" set="snapshot" />
                <equip when="midcast" set="Ranged" />
            </if>
            <if spell="*Roll">
                <equip when="precast">
                    <rring>Luzaf's Ring</rring>
                </equip>
            </if>
            <if spell="Random Deal">
                <equip when="precast">
                    <body>Commodore Frac</body>
                </equip>
            </if>
            <if spell="Triple*">
                <equip when="precast">
                    <body>Navarch's Frac +2</body>
                </equip>
            </if> 
			<if BuffActive="Firestorm">
                    <equip when="precast">
                        <waist lock="yes">Karin Obi</waist>
                    </equip>
                </if>	
    </rules>
	
</spellcast>
 Quetzalcoatl.Langly
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Langly
Posts: 684
By Quetzalcoatl.Langly 2012-09-05 09:07:50  
You're missing an </if>.

The rules section is heavy handed and really messy. I would recommend rebuilding it and cleaning it up.

You have so many same level rules you're (pardon the cor pun) shooting yourself in the foot.

Create some structure. Divide up your actions. 1 Action you perform shouldn't have to parse all those rules for gear set changes.
 Valefor.Clairefox
Offline
サーバ: Valefor
Game: FFXI
user: Clairefox
Posts: 87
By Valefor.Clairefox 2012-09-14 10:19:13  
I spent a lot of time putting this together and tweaking it. Wish they didn't take away the old Windower site where they had all the User Submitted XML's :/
Code
<?xml version="1.0" ?>
	
<spellcast>
	<config	AutoLoadXML="true" RequiredVersion="2.20" HideErrors="false" ShowGearSwaps="false" Debug="false" ShowSpellInfo="false"/>

	<variables clear="True">

<!--Mark the Obi's you use to 1-->
		<var name="LightObi">1</var>
		<var name="DarkObi">0</var>
		<var name="FireObi">0</var>
		<var name="EarthObi">1</var>
		<var name="WaterObi">0</var>
		<var name="WindObi">0</var>
		<var name="IceObi">1</var>
		<var name="ThunderObi">1</var>
		<var name="TwilightCape">1</var>

<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<!-- All teh Sleep timers in this xml file are set to /echo -->
		<var name="SleepTimers">1</var>

<!--The current Phantom Roll: Set Melee/Mage/Pet vars to 1 if you want those types of rolls to use Luzaf Ring -->
		<var name="currentroll">null</var>
		<var name="QDBullet">Oberon's Bullet</var>
		<var name="RABullet">Steel Bullet</var>
		<var name="WildfireBullet">Bronze Bullet</var>
		<var name="corsair">1</var><!-- For Corsair and Bolter's Rolls :: Always leave on 1 Unless you don't have the ring :/ -->
		<var name="melee">0</var> 
		<var name="mage">0</var>
		<var name="pet">0</var>

<!--TP Lock-->
		<var name="TPLock">10</var>
<!-- Utsu Rule -->
		<var name="Utsusemi">Ichi</var>

	</variables>
 
	<sets>
		<group name="COR" default="yes">
			<set name="Normal" default="yes">
				<range>Armageddon</range>
				<ammo>$RABullet</ammo>
				<head>Aias bonnet</head>
				<neck>Agasaya's collar</neck>
				<lear>Brutal Earring</lear>
				<rear>Aesir Ear Pendant</rear>
				<body>Nvrch. Frac +2</body>
				<hands>Nvrch. Gants +1</hands>
				<lring>Epona's Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Atheling mantle</back>
				<waist>Twilight Belt</waist>
				<legs>Nvrch. Culottes +2</legs>
				<feet>Navarch's bottes +2</feet>
			</set>
			<set name="Idle" Baseset="Normal">
				<ammo>$RABullet</ammo>
				<head>Comm. Tricorne</head>
				<legs>Crimson Cuisses</legs>
			</set>
			<set name="PhantomRoll">
				<head>Comm. Tricorne</head>
				<hands>Nvrch. Gants +1</hands>
			</set>
			<set name="RandomDeal">
				<body>Commodore Frac</body>
			</set>
			<set name="Luzaf">
				<rring>Luzaf's Ring</rring>
			</set>
			<set name="RAnorm" Baseset="Normal">
				<main>Vulcan's Staff</main>
				<sub>Uther's Grip</sub>
				<range>Armageddon</range>
				<ammo>$RABullet</ammo>
				<head>Nvrch. Tricorne +1</head>
				<neck>Peacock Amulet</neck>
				<lear>Clearview Earring</lear>
				<rear>Aesir Ear Pendant</rear>
				<body>Nvrch. Frac +2</body>
				<hands>Blood Fng. Gnt.</hands>
				<lring>Behemoth Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Libeccio mantle</back>
				<waist>Buccaneer's Belt</waist>
				<legs>Nvrch. Culottes +2</legs>
				<feet>Nvrch. Bottes +2</feet>
			</set>
			<set name="RAagi" Baseset="RAnorm">
				<ammo>$RABullet</ammo>
				<head>Nvrch. Tricorne +1</head>
				<neck>Corvus Torque</neck>
			</set>
			<set name="QDmab" Baseset="RAnorm">
				<ammo>$QDBullet</ammo>
				<head>Cor. Tricorne +1</head>
				<neck>Uggalepih Pendant</neck>
				<lear>Hecate's Earring</lear>
				<rear>Moldavite Earring</rear>
				<body>Nvrch. Frac +2</body>
				<hands>Blood Fng. Gnt.</hands>
				<lring>Demon's Ring</lring>
				<rring>Balrahn's Ring</rring>
				<waist>Aquiline belt</waist>
				<legs>Denali Kecks</legs>
				<feet>Nvrch. Bottes +2</feet>
			</set>
			<set name="Wildfire" Baseset="QDmab">
				<ammo>$WildfireBullet</ammo>
			</set>
			<set name="MeleeWS" Baseset="Normal">
				<head>Aias bonnet</head>
				<neck>Agasaya's collar</neck>
				<lear>Brutal Earring</lear>
				<rear>Aesir Ear Pendant</rear>
				<body>Loki's Kaftan</body>
				<hands>Ocelot gloves</hands>
				<lring>Heed Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Atheling mantle</back>
				<waist>Warwolf Belt</waist>
				<legs>Tumbler trunks</legs>
				<feet>Nvrch. Bottes +2</feet>
			</set>
		</group>
	</sets>
	<rules>
		<if Status="engaged">
			<action type="equip" when="engaged|aftercast|idle" set="Normal" />
		</if>
		<if NotStatus="engaged">
			<action type="equip" when="aftercast|idle" set="Idle" />
		</if>
		<if TPGT="$TPLock">
			<action type="equip" when="precast|midcast|aftercast|engaged|idle"> 
				<main  lock="t" />
				<sub   lock="t" />
				<range lock="t" />
			</action>
		</if>
<!-- Ranged Attack -->
		<if Spell="Ranged">
			<equip when="Precast" set="RAnorm" />
			<aftercastdelay delay="5" />
		</if>
<!-- Weapon Skills -->
		<if Spell="Detonator|*Shot|Slug*|Wildfire" NotSpell="Light*|Dark*|Ice*|Wind*|Earth*|Thunder*|Water*|Fire*">
			<if advanced='"%EquipAmmo"="$QDBullet"'>
				<action type="CancelSpell" />
				<action type="addtochat">Stop! QD Bullet is equipped!!</action>
			</if>
			<action type="equip" when="precast|midcast" set="RAagi">
				<ammo>$RABullet</ammo>
				<neck>Light Gorget</neck>
			</action>
		</if>
		<elseif Spell="Leaden Salute">
			<if advanced='"%EquipAmmo"="$QDBullet"'>
				<action type="CancelSpell" />
				<action type="addtochat">Stop! QD Bullet is equipped!!</action>
			</if>
			<action type="equip" when="precast|midcast" set="QDmab">
				<ammo>$RABullet</ammo>
				<neck>Light Gorget</neck>
			</action>
		</elseif>
		<elseif Spell="Wildfire">
			<if advanced='"%EquipAmmo"="$QDBullet"'>
				<action type="CancelSpell" />
				<action type="addtochat">Stop! QD Bullet is equipped!!</action>
			</if>
			<action type="equip" when="precast|midcast" set="Wildfire">
				<ammo>$RABullet</ammo>
			</action>
		</elseif>
		<elseif Spell="*Blade">
			 <action type="equip" when="precast|midcast" set="MeleeWS" />
		</elseif>
		
<!-- Status -->
 		<if BuffActive="Silence" CommandPrefix="/ma|/magic|/ninjutsu">
			<action Type="CancelSpell" />
			<action Type="Command">input /p Silenced...</action>
		</if>
 		<if BuffActive="Sleep">
			<action Type="CancelSpell" />
			<action Type="Command">input /p Z_z...</action>
			<action type="command" when="midcast">cancel 37</action>
		</if>

<!-- Cancel and Buffs -->
		<if Spell="Stoneskin">
			<action type="midcastdelay" delay="2" />
			<action type="command" when="midcast">cancel 37</action>
		</if>
		<elseif Spell="Blink">
			<action type="midcastdelay" delay="2" />
			<action type="command" when="midcast">cancel 36</action>
		</elseif>
 
		<elseif Spell="Sneak|Invisible|Deodorize">
			<action type="midcastdelay" delay="1.5" />
			<if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
				<action type="command" when="midcast">cancel 71</action>
			</if>
		</elseif>
 		<if Spell="Spectral Jig">
			<action Type="Command" When="PreCast">cancel 71</action>
		</if>
		<elseif Spell="Reraise*">
			<action type="midcastdelay" delay="2" />
			<action type="command" when="midcast">cancel 113</action>
		</elseif>

<!-- Sleep/Repose/Lullaby -->
		<if Spell="Light Shot|Sleep*|Repose">
			<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
				<if Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></if>
			</if>
			<if Spell="Light Shot">
				<if advanced='"$SleepTimers"="1"'>
					<command when="aftercast">Spellcast var inc sleepid;wait 15;input /echo [$sleepid:%Spell] <%target> Wearing off in 15s</command>
					<command when="aftercast">wait 25;input /echo [$sleepid:%Spell] <%target> Wearing off in 5s; Spellcast var dec sleepid;</command>
				</if>
			</if>
		</if>

<!-- Healing Magic -->
		<if Skill="HealingMagic">
			<if Spell="Cur*|Curaga*">
				<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
					<if Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></if>
				</if>
				<action type="DefaultTarget" target="<stpc>" />
				<if Spell="Cure IV">
					<if NotBuffActive="*Arts|Penury">
						<if MPLT="88"><action type="ChangeSpell" Spell="Cure III" /></if>
						<if MPLT="46"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Dark Arts">
						<if MPLT="106"><action type="ChangeSpell" Spell="Cure III" /></if>
						<if MPLT="56"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Light Arts" NotBuffActive="Penury">
						<if MPLT="80"><action type="ChangeSpell" Spell="Cure III" /></if>
						<if MPLT="42"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Penury">
						<if MPLT="44"><action type="ChangeSpell" Spell="Cure III" /></if>
						<if MPLT="23"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
				</if>
				<if Spell="Cure III">
					<if NotBuffActive="*Arts|Penury">
						<if MPLT="46"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Dark Arts">
						<if MPLT="56"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Light Arts" NotBuffActive="Penury">
						<if MPLT="42"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Penury">
						<if MPLT="23"><action type="ChangeSpell" Spell="Cure II" /></if>
						<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
				</if>
				<if Spell="Cure II">
					<if NotBuffActive="*Arts|Penury">
						<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Dark Arts">
						<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Light Arts" NotBuffActive="Penury">
						<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Penury">
						<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
						<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
				</if>
				<if Spell="Cure">
					<if NotBuffActive="*Arts|Penury">
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Dark Arts">
						<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Light Arts" NotBuffActive="Penury">
						<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
					<if BuffActive="Penury">
						<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
					</if>
				</if>
			</if>
		</if>

<!-- Phantom Roll -->
		<if type="CorsairRoll" NotBuffActive="Amnesia">
			<action type="equip" when="precast" set="PhantomRoll" />
			<!-- Store the current roll in a variable -->
			<action type="command" when="aftercast">sc var set currentroll %Spell</action>
			<if advanced = '(bool)buffactive("%Spell")'>
				<changeSpell Spell = "Double-Up"/>
				<action type="equip" when="precast" set="PhantomRoll" />
				<ChangeTarget Target = "<me>"/>
				<if NotBuffactive="Double-Up Chance">
					<action type="CancelSpell" />
					<addtochat>[NOTE] Already wearing that buff~ Double-Up Chance is gone..</addtochat>
				</if>
			</if>
			<if advanced='$corsair="1"'>
				<if Spell="Corsair&#39;s Roll">
					<action type="equip" when="precast" set="Luzaf" />
					<addtochat>[%Spell] <EXP Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
				</if>
				<if Spell="Bolter&#39;s Roll">
					<action type="equip" when="precast" set="Luzaf" />
					<addtochat>[%Spell] <Movement Plus> Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
				</if>
			</if>
			<if advanced='$corsair="0"'>
				<if Spell="Corsair&#39;s Roll">
					<addtochat>[%Spell] <EXP Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
				</if>
				<if Spell="Bolter&#39;s Roll">
					<addtochat>[%Spell] <Movement Plus> Lucky: 3 ~ Unlucky: 9</addtochat>
				</if>
			</if>
			<if advanced='$melee="1"'>
				<if Spell="Samurai Roll">
					<addtochat>[%Spell] <Store TP> Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif Spell="Healer&#39;s Roll">
					<addtochat>[%Spell] <Enhances "Cure" Potency Received> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Monk&#39;s Roll">
					<addtochat>[%Spell] <Subtle Blow> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Gallant&#39;s Roll">
					<addtochat>[%Spell] <Reduces Damage Taken> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Dancer&#39;s Roll">
					<addtochat>[%Spell] <Regen> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Ninja Roll">
					<addtochat>[%Spell] <Evasion Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Hunter&#39;s Roll">
					<addtochat>[%Spell] <Accuracy Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Chaos Roll">
					<addtochat>[%Spell] <Attack Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Fighter&#39;s Roll">
					<addtochat>[%Spell] <Double Attack Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Rogue&#39;s Roll">
					<addtochat>[%Spell] <Crit Hit Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Courser&#39;s Roll">
					<addtochat>[%Spell] <Snap Shot Bonus> Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Blitzer&#39;s Roll">
					<addtochat>[%Spell] <Melee Attk Speed Bonus> Lucky: 4 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Tactician&#39;s Roll">
					<addtochat>[%Spell] <Regain Bonus> Lucky: 5 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Allies&#39; Roll">
					<addtochat>[%Spell] <Skillchain Acc/Damage Bonus> Lucky: 3 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Miser&#39;s Roll">
					<addtochat>[%Spell] <Save TP Bonus> Lucky: 5 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Avenger&#39;s Roll">
					<addtochat>[%Spell] <Counter Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$melee="0"'>
				<if Spell="Samurai Roll">
					<addtochat>[%Spell] <Store TP> Lucky: 2 ~ Unlucky: 6</addtochat>
				</if>
				<elseif Spell="Healer&#39;s Roll">
					<addtochat>[%Spell] <Enhances "Cure" Potency Received> Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif Spell="Monk&#39;s Roll">
					<addtochat>[%Spell] <Subtle Blow> Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif Spell="Gallant&#39;s Roll">
					<addtochat>[%Spell] <Reduces Damage Taken> Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif Spell="Dancer&#39;s Roll">
					<addtochat>[%Spell] <Regen> Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif Spell="Ninja Roll">
					<addtochat>[%Spell] <Evasion Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Hunter&#39;s Roll">
					<addtochat>[%Spell] <Accuracy Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Chaos Roll">
					<addtochat>[%Spell] <Attack Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Fighter&#39;s Roll">
					<addtochat>[%Spell] <Double Attack Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Rogue&#39;s Roll">
					<addtochat>[%Spell] <Crit Hit Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Courser&#39;s Roll">
					<addtochat>[%Spell] <Snap Shot Bonus> Lucky: 3 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Blitzer&#39;s Roll">
					<addtochat>[%Spell] <Melee Attk Speed Bonus> Lucky: 4 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Tactician&#39;s Roll">
					<addtochat>[%Spell] <Regain Bonus> Lucky: 5 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Allies&#39; Roll">
					<addtochat>[%Spell] <Skillchain Acc/Damage Bonus> Lucky: 3 ~ Unlucky: 10</addtochat>
				</elseif>
				<elseif Spell="Miser&#39;s Roll">
					<addtochat>[%Spell] <Save TP Bonus> Lucky: 5 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif Spell="Avenger&#39;s Roll">
					<addtochat>[%Spell] <Counter Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
			</if>
			<if advanced='$mage="1"'>
				<if Spell="Choral Roll">
					<addtochat>[%Spell] <Spell Interupt Down> Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif Spell="Magus&#39;s Roll">
					<addtochat>[%Spell] <Magic Defense Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Scholar&#39;s Roll">
					<addtochat>[%Spell] <Conserve MP Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Warlock&#39;s Roll">
					<addtochat>[%Spell] <MAcc Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Wizard&#39;s Roll">
					<addtochat>[%Spell] <MaB> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Evoker&#39;s Roll">
					<addtochat>[%Spell] <Refresh> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Caster&#39;s Roll">
					<addtochat>[%Spell] <FastCast Bonus> Lucky: 2 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$mage="0"'>
				<if Spell="Choral Roll">
					<addtochat>[%Spell] <Spell Interupt Down> Lucky: 2 ~ Unlucky: 6</addtochat>
				</if>
				<elseif Spell="Magus&#39;s Roll">
					<addtochat>[%Spell] <Magic Defense Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Scholar&#39;s Roll">
					<addtochat>[%Spell] <Conserve MP Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Warlock&#39;s Roll">
					<addtochat>[%Spell] <MAcc Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Wizard&#39;s Roll">
					<addtochat>[%Spell] <MaB> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Evoker&#39;s Roll">
					<addtochat>[%Spell] <Refresh> Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif Spell="Caster&#39;s Roll">
					<addtochat>[%Spell] <FastCast Bonus> Lucky: 2 ~ Unlucky: 7</addtochat>
				</elseif>
			</if>
			<if advanced='$pet="1"'>
				<if Spell="Drachen Roll">
					<addtochat>[%Spell] <Pet Acc> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif Spell="Puppet Roll">
					<addtochat>[%Spell] <Pet Macc/Mab> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Beast Roll">
					<addtochat>[%Spell] <Pet Attack> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif Spell="Companion&#39;s Roll">
					<addtochat>[%Spell] <Pet Regain/Regen> Lucky: 2 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$pet="0"'>
				<if Spell="Drachen Roll">
					<addtochat>[%Spell] <Pet Acc> Lucky: 3 ~ Unlucky: 7</addtochat>
				</if>
				<elseif Spell="Puppet Roll">
					<addtochat>[%Spell] <Pet Macc/Mab> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Beast Roll">
					<addtochat>[%Spell] <Pet Attack> Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif Spell="Companion&#39;s Roll">
					<addtochat>[%Spell] <Pet Regain/Regen> Lucky: 2 ~ Unlucky: 10</addtochat>
				</elseif>
			</if>
		</if>
		<if Spell="Double*" NotBuffActive="Amnesia">
			<if advanced='$corsair="1"'>
				<if advanced='"$currentroll"="Corsair&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<if advanced='"$currentroll"="Bolter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
			</if>
			<if advanced='$corsair="0"'>
				<if advanced='"$currentroll"="Corsair&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
				</if>
				<if advanced='"$currentroll"="Bolter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9</addtochat>
				</if>
			</if>
			<if advanced='$melee="1"'>
				<if advanced='"$currentroll"="Samurai Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif advanced='"$currentroll"="Healer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Monk&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Gallant&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Dancer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Ninja Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Hunter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Chaos Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Fighter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Rogue&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Blitzer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Tactician&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Allies&#39; Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Miser&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Avenger&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$melee="0"'>
				<if advanced='"$currentroll"="Samurai Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
				</if>
				<elseif advanced='"$currentroll"="Healer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Monk&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Gallant&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Dancer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Ninja Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Hunter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Chaos Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Fighter&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Rogue&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Courser&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Blitzer&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Tactician&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Allies&#39; Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 10</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Miser&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 7</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Avenger&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
			</if>
			<if advanced='$mage="1"'>
				<if advanced='"$currentroll"="Choral Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif advanced='"$currentroll"="Magus&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Scholar&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Warlock&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Wizard&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Evoker&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Caster&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 2 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$mage="0"'>
				<if advanced='"$currentroll"="Choral Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 6</addtochat>
				</if>
				<elseif advanced='"$currentroll"="Magus&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Scholar&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Warlock&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Wizard&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Evoker&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 5 ~ Unlucky: 9</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Caster&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 2 ~ Unlucky: 7</addtochat>
				</elseif>
			</if>
			<if advanced='$pet="1"'>
				<if advanced='"$currentroll"="Drachen Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</if>
				<elseif advanced='"$currentroll"="Puppet Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Beast Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
				<elseif advanced='"$currentroll"="Companion&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 2 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
					<equip when="precast|midcast" set="Luzaf" />
				</elseif>
			</if>
			<if advanced='$pet="0"'>
				<if advanced='"$currentroll"="Drachen Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 3 ~ Unlucky: 7</addtochat>
				</if>
				<elseif advanced='"$currentroll"="Puppet Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Beast Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 4 ~ Unlucky: 8</addtochat>
				</elseif>
				<elseif advanced='"$currentroll"="Companion&#39;s Roll"' BuffActive="Double-Up Chance">
					<addtochat>[$currentroll] ~ [%Spell]  Lucky: 2 ~ Unlucky: 10</addtochat>
				</elseif>
			</if>
		</if>


<!-- Quick Draw -->
		<if type="CorsairShot" notbuffactive="Amnesia">
		<!-- Damage formula: [2 * (Gun base DMG + bullet base DMG + Corsair's Tricorne bonus)] * (1 + (MAB / 100))] * (Elemental Staff bonus) * (Day/Weather Bonus) -->
		<!-- Light and Dark shots do not deal damage -->
		<!-- Accuracy is based on Agility  2AGI=1Macc -->
			<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
				<if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
				<elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
				<elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
				<elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
				<elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
				<elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
				<elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
				<elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
			</if>
			<if Spell="Light*|Dark*">
				<equip when="PreCast" set="RAagi" />
				<if Spell="Light Shot">
				<!-- Dia Defense Down +5%, Dot+ -->
					<equip when="PreCast"></equip>
				</if>
				<elseif Spell="Dark Shot">
				<!-- Bio Attack Down +5%, Dot+ -->
					<equip when="PreCast"></equip>
				</elseif>
			</if>
			<elseif Spell="Ice*|Wind*|Earth*|Thunder*|Water*|Fire*">
				<if Spell="Fire Shot">
					<equip when="PreCast" set="QDmab"></equip>
				</if>
				<elseif Spell="Ice Shot">
				<!-- Paralyze +10%, Bind +? -->
					<equip when="PreCast" set="QDmab"></equip>
				</elseif>
				<elseif Spell="Wind Shot">
				<!-- Acid Bolt Def Down +5%, Gravity +? -->
					<equip when="PreCast" set="QDmab"></equip>
				</elseif>
				<elseif Spell="Earth Shot">
				<!-- Slow +10% -->
					<equip when="PreCast" set="QDmab"></equip>
				</elseif>
				<elseif Spell="Thunder Shot">
				<!-- Stun +? -->
					<equip when="PreCast" set="QDmab"></equip>
				</elseif>
				<elseif Spell="Water Shot">
				<!-- Poison Dot + -->
					<equip when="PreCast" set="QDmab"></equip>
				</elseif>
			</elseif>
		</if>
<!-- Random Deal -->
		<if Spell="Random Deal" NotBuffActive="Amnesia">
			<action type="equip" when="precast" set="RandomDeal" />
		</if>
<!-- Snake Eye :: Auto Double-up -->
		<if Spell="Snake Eye">
			<action type="command" when="aftercast">input /ja "Double-Up" <me></action>
		</if>

<!-- Sub Jobs -->
		<if SubJob="SCH" >
			<if Spell="Sleep|Dispel|Stone*|Water*|Aero|Fire|Blizzard|Thunder|Drain|Aspir" NotSpell="Stoneskin" NotMainJob="BLM|RDM" notBuffActive="Addendum: Black">
				<action type="addtochat" when="precast">[INFO] You need Addendum: Black for this.</action>
			</if>
			<if Spell="*na|Erase|Reraise*|Raise*" NotMainJob="WHM" notBuffActive="Addendum: White">
				<action type="addtochat" when="precast">[INFO] You need Addendum: White for this.</action>
			</if>
		</if>
		<if SubJob="NIN">
			<if Spell="Utsusemi:*">
				<action type="equip" when="precast" set="Haste" />
  				<if Spell="*NI">
					<action type="var" cmd="set Utsusemi Ni" />
				</if>
				<elseif Spell="*Ichi">
					<if advanced='"$Utsusemi"=="Ni"'>
						<midcastdelay delay="3.0" />  
						<action type="command" when="midcast">cancel 66</action>
					</if>
					<action type="var" cmd="set Utsusemi Ichi" />
				</elseif>
			</if>
			<if Spell="Monomi*|Tonko*">
				<if Spell="Monomi*" BuffActive="Sneak">
					<action type="midcastdelay" delay="2.5" />
					<action type="Command" when="midcast">cancel 71</action>
				</if>
			</if>			
		</if>
	</rules>
</spellcast>
[+]
Log in to post.