Corsair XML Question

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Corsair » Corsair XML Question
Corsair XML Question
 Ragnarok.Allslove
Offline
サーバ: Ragnarok
Game: FFXI
user: Allslove
Posts: 67
By Ragnarok.Allslove 2013-04-25 18:06:36  
Hello!

I'm rather new to XML writing, so I'm trying to keep this as simple as possible.

Is there any way to include a bunch of stuff under one action so I don't have to write a hundred lines of code to do similar actions?

I want to equip my Quick Draw set (including an Omphalos Bullet). Is it okay to just do:
Fire Shot|Wind Shot|Earth Shot|...etc

Or, can I do something like
*Shot
But exclude Hot Shot, Split Shot, Sniper Shot, Slug Shot, and Numbing Shot so I don't end up shooting the Omphalos?

Also, in regards to Phantom Rolls - Obviously writing out each individual shot would take time and likely prone to errors. Is there a way to combine the Job Rolls but keep it apart from the Advanced Rolls (Courser's, etc)?

I've been looking around for hours and am going crosseyed looking at all these different and very advanced XMLs.

Any help would be appreciated!
 Quetzalcoatl.Dova
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: dova
Posts: 567
By Quetzalcoatl.Dova 2013-04-25 18:13:50  
Code
<if type="corsairroll">
	  <if spell="Choral*|Samurai*|Scholar*|Magus*|Healer*|Monk*|Drachen*|Gallant*|Dancer*|Ninja*|Hunter*|Chaos*|Puppet*|Beast*|Warlock*|Corsair's Roll|Wizard*|Evoker*|Fighter*|Rogue*">
		  <if spell="Choral*|Samurai*|Scholar*|Magus*">
			<addtochat color="121">------------------- %spell:  Lucky 2 - Unlucky 6</addtochat>
		  </if>             
		  <elseif spell="Healer*|Monk*|Drachen*|Gallant*|Dancer*">
			<addtochat color="121">------------------- %spell:  Lucky 3 - Unlucky 7</addtochat>
		  </elseif>
		  <elseif spell="Ninja*|Hunter*|Chaos*|Puppet*|Beast*|Warlock*|Avenge*">
			<addtochat color="121">------------------- %spell:  Lucky 4 - Unlucky 8</addtochat>
		  </elseif>                     
		  <elseif spell="Corsair's Roll|Wizard*|Evoker*|Fighter*|Rogue*">
			<addtochat color="121">------------------- %spell:  Lucky 5 - Unlucky 9</addtochat>
		  </elseif>
		  <equip when="precast" set="jobrolls" />
      </if>
      <else>	  
      <if spell="Bolte*|Cours*">
        <addtochat color="121">------------------- %spell:  Lucky 3 - Unlucky 9</addtochat>
		<equip when="precast">
		  <feet>Nvrch. Bottes +2</feet>
		  <hands>Nvrch. Gants +2</hands>
		  <rring>$goRing</rring>
		</equip>
      </if>             
      <elseif spell="Caster*">
        <addtochat color="121">------------------- %spell:  Lucky 2 - Unlucky 7</addtochat>
		<equip when="precast">
		  <legs>Nvrch. Culottes +2</legs>
		  <hands>Nvrch. Gants +2</hands>
		  <rring>$goRing</rring>
		</equip>
      </elseif>             
      <elseif spell="Blitze*">
        <addtochat color="121">------------------- %spell:  Lucky 4 - Unlucky 9</addtochat>
		<equip when="precast">
		  <head>Nvrch. Tricorne +1</head>
		  <hands>Nvrch. Gants +2</hands>
		  <rring>$goRing</rring>
		</equip>
      </elseif>             
      <elseif spell="Tactici*">
        <addtochat color="121">------------------- %spell:  Lucky 5 - Unlucky 8</addtochat>
		<equip when="precast">
		  <body>Nvrch. Frac +2</body>
		  <hands>Nvrch. Gants +2</hands>
		  <rring>$goRing</rring>
		</equip>
      </elseif>             
      <elseif spell="Allie*">
        <addtochat color="121">------------------- %spell:  Lucky 3 - Unlucky 10</addtochat>
		<equip when="precast">
		  <hands>Nvrch. Gants +2</hands>
		  <rring>$goRing</rring>
		</equip>
      </elseif>                   
      <elseif spell="Miser*">
        <addtochat color="121">------------------- %spell:  Lucky 5 - Unlucky 7</addtochat>
		<equip when="precast">
		  <rring>$goRing</rring>
		  <hands>Nvrch. Gants +2</hands>
		</equip>
      </elseif>                            
      <elseif spell="Compan*">
      <addtochat color="121">------------------- %spell:  Lucky 2 - Unlucky 10</addtochat>
	  <equip when="precast">
		  <rring>$goRing</rring>
		  <hands>Nvrch. Gants +2</hands>
		</equip>
      </elseif>
	  </else>
	</if>
	<!--                      QD                      -->
	<if type="corsairshot">
	  <if spell="light shot|dark shot">
	    <equip when="precast" set="qdagi" />
	  </if>
	  <else>
	    <equip when="precast" set="qdmab" />
	  </else>
	</if>


That's mine. Of course you'd have to edit stuff for yours but the rules work fine.
 Valefor.Clairefox
Offline
サーバ: Valefor
Game: FFXI
user: Clairefox
Posts: 87
By Valefor.Clairefox 2013-04-25 18:44:32  
This is probably one of my favorite xmls that I've made <3

Just change the gearsets and the variables for the type of bullets you use.
Rolls are setup in Mage, Melee, PetJob groups. You just turn those variables to 1 to use Luzaf's ring for those groups. I use in-game macros to do that (/console sc var set mage/melee/pet 1 or 0)
You don't need a double-up macro, just hit your roll macro again and it'll double up.
All the lucky/unlucky is put in /echo.
Snake Eye also is auto-double-up <3
Will stop you from firing your QD bullet if normal RA'ing.
Code
<?xml version="1.0" ?>
	
<spellcast>
	<config	AutoLoadXML="true" RequiredVersion="2.20" HideErrors="false" ShowGearSwaps="false" Debug="false" ShowSpellInfo="false"/>
	
	<variables clear="True">
<!-- 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 +2</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 +2</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>Stoicheion Medal</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>
			<set name="TownGear" Baseset="Normal">
				<head>Maat's Cap</head>
				<lring>Matrimony Band</lring>
			</set>
			<set name="Misc"><!-- Misc Gear not in sets - So GC collects it -->
			</set>
		</group>
	</sets>
	<rules>
<!-- Status -->
		<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 BuffActive="Silence" CommandPrefix="/ma|/magic|/ninjutsu">
			<action Type="CancelSpell" />
			<action Type="Command">input /echo Silenced...</action>
		</if>
 		<if BuffActive="Sleep">
			<action Type="CancelSpell" />
			<action Type="Command">input /echo Z_z...</action>
			<action type="command" when="midcast">cancel 37</action>
		</if>
		<if TPGT="$TPLock">
			<action type="equip" when="precast|midcast|aftercast|engaged|idle"> 
				<main  lock="t" />
				<sub   lock="t" />
				<range lock="t" />
			</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>
		
<!-- 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>
		
<!-- Healing Magic -->
		<if Skill="HealingMagic">
			<if Spell="Cur*|Curaga*">
				<if Advanced='("Light" = "%WeatherElement" OR "Light" = "%DayElement")'>
                    <action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action>
                    <action type="equip" when="midcast"><back lock="yes">Twilight Cape</back></action>
                </if>
				<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>
<!-- Snake Eye :: Auto Double-up -->
		<if Spell="Snake Eye">
			<action type="command" when="aftercast">input /ja "Double-Up" <me></action>
		</if>
<!-- Random Deal -->
		<if Spell="Random Deal" NotBuffActive="Amnesia">
			<action type="equip" when="precast" set="RandomDeal" />
		</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")'>
				<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>
				<action type="equip" when="midcast"><back lock="yes">Twilight Cape</back></action>
			</if>
			<if Spell="Light*|Dark*">
				<if Spell="Light Shot">
				<!-- Dia Defense Down +5%, Dot+ -->
					<equip when="PreCast" set="RAagi" />
					<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>
				<elseif Spell="Dark Shot">
				<!-- Bio Attack Down +5%, Dot+ -->
					<equip when="PreCast" set="RAagi" />
				</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>

<!-- Sub Jobs -->
		<elseif SubJob="NIN">
			<if spell="Utsusemi:*">
				<action type="equip" when="precast">
					<legs>Homam Cosciales</legs>
				</action>
				<action type="equip" when="aftercast">
					<legs>Mavi Tayt +1</legs>
				</action>
  				<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>
			<elseif spell="Monomi*|Tonko*">
				<if Spell="Monomi*" BuffActive="Sneak">
					<midcastdelay delay="2.5" />
					<action type="command" when="midcast">cancel 71</action>
				</if>
			</elseif>			
		</elseif>
		<elseif SubJob="DNC">
			<if Spell="Curing Waltz*">
				<action type="DefaultTarget" target="<stpc>"/>
				<if Spell="Curing Waltz III">
					<if TPLT="50"><action type="ChangeSpell" Spell="Curing Waltz II" /></if>
					<elseif TPLT="35"><action type="ChangeSpell" Spell="Curing Waltz" /></elseif>
					<elseif TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></elseif>
				</if>
				<elseif Spell="Curing Waltz II">
					<if TPLT="35"><action type="ChangeSpell" Spell="Curing Waltz" /></if>
					<elseif TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></elseif>
				</elseif>
				<elseif Spell="Curing Waltz">
					<if TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></if>
				</elseif>
			</if>
		</elseif>
		
<!-- Teh Random -->
		<if Area="*Windurst*|*San d'Oria*|*Bastok*|*Jeuno*|*Whitegate|Al Zahbi" NotArea="Dynamis*|*[S]|Abyssea*" NotBuffActive="Besieged">
			<action type="Equip" when="precast|midcast|aftercast|engaged|idle" set="TownGear" />
		</if>
	</rules>
</spellcast>
 Ragnarok.Allslove
Offline
サーバ: Ragnarok
Game: FFXI
user: Allslove
Posts: 67
By Ragnarok.Allslove 2013-04-27 07:23:53  
Thank you, both! It works like a charm.
 Sylph.Hitetsu
Offline
サーバ: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-05-05 19:04:15  
Working on making a "single roll" button, with a toggle to change the rolls I'm using.

Atm, I'm trying to use 4 standard rolls while I knock my XML together.

Fighter's, Chaos, Evoker's and Scholar's. The problem I'm having is, I use Prot5, get Roll1 and Roll2 - then it stops working. I just keep getting "A command error occured.." whenever I roll (most likely from Protect5'ing on COR >_>).
Code xml
    <variables>
        <var name="Roll1">Fighter's Roll</var> <!--Base Rolls -->
		<var name="Roll2">Chaos Roll</var>
		<var name="Roll3">Evoker's Roll</var>
		<var name="Roll4">Scholar's Roll</var>
    </variables>




<if spell="Protect V">
		<if notbuffactive="$Roll1">
			<changespell spell="$Roll1" />
			<addtochat color="121"> $Roll1 not active => Changing to $Roll1</addtochat>
		</if>
		<elseif buffactive="$Roll1">
			<if notbuffactive="$Roll2">
				<changespell spell="$Roll2" />
				<addtochat color="121"> $Roll1 active => Changing to $Roll2</addtochat>
			</if>
		</elseif>
		<elseif buffactive="$Roll1">
			<if buffactive="$Roll2" notbuffactive="$Roll3">
				<changespell spell="$Roll3" />
				<addtochat color="121"> $Roll2 active => Changing to $Roll3</addtochat>
			</if>
		</elseif>
		<elseif buffactive="$Roll2">
				<if buffactiv="$Roll3">
					<changespell spell="$Roll4" />
					<addtochat color="121"> $Roll3 active => Changing to $Roll4</addtochat>
				</if>
		</elseif>
		<else>
			<addtochat color="121">Roll Cycle Complete. Roll missing?</addtochat>
			<addtochat color="121">Melee/Front Line Rolls: $Roll1, $Roll2</addtochat>
			<addtochat color="121">Mage/Back Line Rolls: $Roll3, $Roll4</addtochat>
		</else>
	</if>


 Sylph.Hitetsu
Offline
サーバ: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-05-06 02:07:25  
Bump while it's busy! Won't somebody help save my rollception? :D
Log in to post.