Restraint Problems

Eorzea Time
 
 
 
Language: JP EN FR DE
users online
Forum » Windower » Spellcast Scripting » Warrior » Restraint Problems
Restraint Problems
 Cerberus.Toknherb
Offline
Server: Cerberus
Game: FFXI
user: Toknherb
Posts: 104
By Cerberus.Toknherb 2013-01-12 11:24:26
Link | Quote | Reply
 
I am having some problem with my spellcast trying to use restraint. I am not very good with any type of coding at all and i'm not sure what to do to make this work. The problem i'm having is that if there are any other buffs active BEFORE restraint on my ingame buff bar, it does not work... If restraint is the first buff on my ingame buff bar it works correctly? Can anyone help me out?

Code
<if BuffActive="Restraint">
			
			<action Type="Equip" When="Precast">
              <hands lock="yes">Rvg. Mufflers +2</hands>
            </action>
			
			<addtochat type="command">input /echo ::: RESTRAINT ACTIVE ::: Rvg. Mufflers +2 EQUIPED :::</addtochat>
			</if>
			<else>
			<addtochat type="command">input /echo ::: RESTRAINT NOT ACTIVE ::: Phorycs Mitts EQUIPED :::</addtochat>
			</else>
 Cerberus.Frotaut
Offline
Server: Cerberus
Game: FFXI
user: Frotaut2
Posts: 90
By Cerberus.Frotaut 2013-01-12 11:51:25
Link | Quote | Reply
 
i usea variable setup idk works for me
i have this up top
Code
     <var name="Restraint">N</var>

have this in my normal sets

Quote:
<set name="Restraint">
<hands>ravager's mufflers +2</hands>
</set>
then this is under my rules
Code
<!-- Automatically change variables when buffs wear off -->
		<if notBuffactive="Berserk" advanced='"$Berserk"!="N"'>
			<var cmd="set Berserk N" />
		</if>
		<if notBuffactive="Restraint" advanced='"$Restraint"!="N"'>
			<var cmd="set Restraint N" />
		</if>
		<if notBuffactive="Blood Rage" advanced='"$BloodRage"!="N"'>
			<var cmd="set BloodRage N" />
		</if>
		<if notBuffactive="Warcry" advanced='"$Warcry"!="N"'>
			<var cmd="set BloodRage N" />
		</if>


And heres a full version of my xml if it helps
Code
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude"> 
	<config />
	<variables clear="True">
		<!-- Standard Variables 1 -->
		<var name="TriggerSetOne">Shackled*|Grim*|Dancing Chains|Vulcan*|Barbed*|*Schism|Carnal*</var>
		<var name="TriggerSetTwo">Poison V|Poisonga V|Scop's*|*Pastoral|*Fantasia|Raptor*</var>
		<var name="TriggerSetThree">Netherspikes|Foxfire|Diaga V|Banishga V|Goblin Gavotte</var>
		<var name="Resist">R</var>
		<var name="Area">Outside</var>
		<var name="Distance">8.5</var>
		<var name="Delay-JA">0.3</var>
		<var name="LockMain">1</var>
		<var name="R-Weapon">Trollbane</var>
		<var name="Armor-Idle">BlankSet</var>
		<var name="Armor-Engaged">BlankSet</var>
		<!-- Standard Variables 2 -->
		<var name="VAR-TP">HASTE</var>
		<var name="VAR-WS">STR</var>
		<var name="VAR-Utsusemi">$PDT</var>
		<var name="Movement-Idle">Movement</var>
		<var name="Movement-Engaged">BlankSet</var>
		<!-- Multi-Class Variables  -->
		<var name="STYLE">2Handed</var>
		<var name="PDT">PDT</var>
		<var name="MDT">MDT</var>
		<var name="Berserk">N</var>
                <var name="Restraint">N</var>
		<var name="BloodRage">N</var>
		<var name="MightyStrikes">BlankSet</var>
		<var name="TwilightSet">BlankSet</var>
		<var name="DDNeck">rancor collar</var>
		<var name="TPRanged">Ravager's Orb</var>
		<!-- include Variables -->
		<xi:include href="include2.xml" xpointer="//include[@name='TrialStaffFastCast']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='TrialStaffDMG']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='TrialStaffACC']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='ElementalObiConstants']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='VarEnSpells']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='EleStaffConst']/*" />
	</variables>
	<sets>
		<group name="Abyssea-R">
			<set name="Idle" baseset="PDT">
			<head>laeradr helm</head>
                       <body>Mekira Meikogai</body>
				<feet>Hermes' Sandals</feet>
			</set>
			<set name="Movement">
				<feet>Hermes' Sandals</feet>
			</set>
			<set name="Resting" />
			<set name="PDT">
				<ammo>Ravager's Orb</ammo>
				<head>laeradr helm</head>
				<body>Mekira Meikogai</body>
				<hands>Magma Gauntlets</hands>
				<legs>ogier's breeches</legs>
				<feet>phorcys schuhs</feet>
				<neck>Twilight Torque</neck>
				<waist>Nierenschutz</waist>
				<lear>Brutal Earring</lear>
				<rear>colossus's Earring</rear>
				<lring>Dark Ring</lring>
				<rring>Dark Ring</rring>
				<back>shadow mantle</back>
			</set>
			<set name="AM-PDT">
				<head>ogier's helm</head>
				<neck>Wiglen Gorget</neck>
				<body>Mekira Meikogai</body>
				<lring>Dark Ring</lring>
				<rring>Dark Ring</rring>
				<back>Shadow Mantle</back>
			</set>
			<set name="MDT">
				<ammo>Ravager's Orb</ammo>
				<head>Ogier's Helm</head>
				<body>Mekira Meikogai</body>
				<hands>Magma Gauntlets</hands>
				<legs>Inmicus Cuisses</legs>
				<feet>Ogier's Leggings</feet>
				<neck>Twilight Torque</neck>
				<waist>Nierenschutz</waist>
				<lear>Brutal Earring</lear>
				<rear>Ravager's Earring</rear>
				<lring>Dark Ring</lring>
				<rring>Dark Ring</rring>
				<back>Metallon Mantle</back>
			</set>
			<set name="AM-MDT">
				<neck>Twilight Torque</neck>
				<rring>Shadow Ring</rring>
			</set>
			<set name="FullEvasion" baseset="PDT"/>
			<set name="TP-2Handed-HASTE">
				<ammo>$TPRanged</ammo>
				<ammo>Ravager's Orb</ammo>
				<head>phorcys salade</head>
				<body>valkyrie's breastplate</body>
				<hands>phorcys mitts</hands>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>$DDNeck</neck>
				<waist>phos belt</waist>
				<lear>Brutal Earring</lear>
				<rear>Ravager's Earring</rear>
				<rring>tyrant's Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Atheling Mantle</back>
			</set>
			<set name="TP-2Handed-ATT" baseset="TP-2Handed-HASTE">
	<ammo>$TPRanged</ammo>
				<ammo>Ravager's Orb</ammo>
				<head>phorcys salade</head>
				<body>valkyrie's breastplate</body>
				<hands>phorcys mitts</hands>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>$DDNeck</neck>
				<waist>phos belt</waist>
				<lear>Brutal Earring</lear>
				<rear>Ravager's Earring</rear>
				<rring>tyrant's Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Atheling Mantle</back>			
			</set>
			<set name="TP-2Handed-ACC" baseset="TP-2Handed-HASTE">
					<ammo>$TPRanged</ammo>
				<ammo>Ravager's Orb</ammo>
				<head>phorcys salade</head>
				<body>adaman hauberk</body>
				<hands>phorcys mitts</hands>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>$DDNeck</neck>
				<waist>phos belt</waist>
				<lear>Brutal Earring</lear>
				<rear>Ravager's Earring</rear>
				<rring>mars's Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Atheling Mantle</back>
			</set>
			<set name="TP-DualWield-HASTE">
				<ammo>$TPRanged</ammo>
				<head>Zelus Tiara</head>
				<neck>$DDNeck</neck>
				<lear>Brutal Earring</lear>
				<rear>Suppanomimi</rear>
				<body>Armada Hauberk</body>
				<hands>$TPHands</hands>
				<lring>Rajas Ring</lring>
				<rring>$TPRing</rring>
				<back>Atheling Mantle</back>
				<waist>Goading Belt</waist>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
			</set>
			<set name="TP-DualWield-ATT" baseset="TP-DualWield-HASTE">
				<ammo>$TPRanged</ammo>
				<neck>Agasaya's Collar</neck>
				<rear>Merman's Earring</rear>
			</set>
			<set name="TP-DualWield-ACC" baseset="TP-DualWield-HASTE">
				<ammo>$TPRanged</ammo>
				<neck>Agasaya's Collar</neck>
			</set>
			<set name="BlankSet" />
			<set name="Utsusemi-Precast">
				<lear>Loquac. Earring</lear>
				<neck>Magoraga Beads</neck>
			</set>
			<set name="Haste">
				<head>Zelus Tiara</head>
				<rring>Blitz Ring</rring>
				<waist>Goading Belt</waist>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
			</set>
			<set name="Reraise">
				<head>Twilight Helm</head>
				<body>Twilight Mail</body>
			</set>
			<set name="Blood Rage">
				<body>Rvg. Lorica +2</body>
			</set>
			<set name="MightyStrikes">
				<hands>phorcys mitts</hands>
				<legs>avant cuisses +1</legs>
				<feet>Rvg. Calligae +2</feet>
			</set>
                      			<set name="Restraint">
				<hands>ravager's mufflers +2</hands>
			</set>
		
			<set name="Warcry">
				<head>warrior's mask</head>
			</set>
			<set name="Enmity">
				<body>ogier's surcoat</body>
				<waist>Goading Belt</waist>
			</set>
			<set name="Spell-Interruption" />
			<!-- WS Base is for any Weapon Skill not listed below -->
			<set Name="WS Base">
	<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>phorcys korazin</body>
				<hands>hecatomb mittens +1</hands>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>rancor collar</neck>
				<waist>windbuffet Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				
			
			</set>
			<!-- Crit Weapon Skills -->
			<set name="Ukko's Fury-STR-N">
				<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>phorcys korazin</body>
				<hands>phorcys mitts</hands>
				<legs>Rvg. Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>thunder gorget</neck>
				<waist>windbuffet Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				<back>rancorous mantle</back>
			</set>
			<set name="Ukko's Fury-STR-Berserk" baseset="Ukko's Fury-STR-N">
				<ammo>Ravager's Orb</ammo>
				<hands>hecatomb mittens +1</hands>
				<body>phorcys korazin</body>
				<head>Ravager's Mask +2</head>
				<legs>avant Cuisses +1</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>thunder gorget</neck>
				<waist>windbuffet Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				<back>rancorous mantle</back>
			</set>
			<set name="Ukko's Fury-DEX-N">
				<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>phorcys korazin</body>
				<hands>hecatomb mittens +1</hands>
				<legs>ogier's breeches</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>thunder gorget</neck>
				<waist>thunder belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
			<back>rancorous mantle</back>
			</set>
			<set name="Ukko's Fury-DEX-Berserk" baseset="Ukko's Fury-DEX-N">
				<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>phorcys korazin</body>
				<hands>hecatomb mittens +1</hands>
				<legs>ogier's breeches</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>thunder gorget</neck>
				<waist>thunder Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				<back>rancorous mantle</back>
			</set>
			<set name="Ukko's Fury-ATT-N" />
			<set name="Ukko's Fury-ATT-Berserk" baseset="Ukko's Fury-ATT-N" />
			<set name="Ukko's Fury-ACC-N" />
			<set name="Ukko's Fury-ACC-Berserk" baseset="Ukko's Fury-ACC-N" />
			<set name="Resolution-STR-N">
	<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>grim cuirass +1</body>
				<hands>phorcys mitts</hands>
				<legs>ravager's Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>Rancor Collar</neck>
				<waist>windbuffet Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				<back>Atheling Mantle</back>
			</set>
			<set name="Raging Rush-STR-Berserk" baseset="Raging Rush-STR-N">
	<ammo>Ravager's Orb</ammo>
				<head>Ravager's Mask +2</head>
				<body>grim cuirass +1</body>
				<hands>phorcys mitts</hands>
				<legs>ravager's Cuisses +2</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>Rancor Collar</neck>
				<waist>windbuffet Belt</waist>
				<lear>Brutal Earring</lear>
				<rear>flame pearl</rear>
				<lring>Rajas Ring</lring>
				<rring>Strigoi Ring</rring>
				<back>Atheling Mantle</back>
			</set>
			<set name="Resolution-DEX-N" />
			<set name="Resolution-DEX-Berserk" baseset="Raging Rush-DEX-N-N" />
			<set name="Resolution-ATT-N" />
			<set name="Resolution-ATT-Berserk" baseset="Raging Rush-ATT-N-N" />
			<set name="Resolution-ACC-N" />
			<set name="Resolution-ACC-Berserk" baseset="Raging Rush-ACC-N-N" />
	
					<!-- Non-crit Weapon Skills -->
			<set name="Metatron Torment-N">
				<ammo>Ravager's Orb</ammo>
				<head>Mekira-oto +1</head>
				<neck>Ravager's Gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>Vulcan's Pearl</rear>
			<body>phorcys korazin</body>
				<hands>Heafoc Mitts</hands>
				<lring>Rajas Ring</lring>
				<rring>strigoi Ring</rring>
				<back>Atheling Mantle</back>
				<waist>Windbuffet Belt</waist>
				<legs>Avant Cuisses +1</legs>
				<feet>Dilaram's Sollerets</feet>
			</set>
			<set name="Metatron Torment-Berserk" baseset="Metatron Torment-N" />
			<set name="King's Justice-N" />
			<set name="King's Justice-Berserk" baseset="King's Justice-STR-N" />
			<set name="Fell Cleave">
				<ammo>Ravager's Orb</ammo>
				<head>Twilight Helm</head>
				<neck>ravager's gorget</neck>
				<lear>Brutal Earring</lear>
				<rear>flame Pearl</rear>
				<body>phorcy's korazin</body>
				<hands>phorcys mitts</hands>
				<lring>Rajas Ring</lring>
				<rring>strigoi Ring</rring>
				<back>Atheling Mantle</back>
				<waist>thunder Belt</waist>
				<legs>Rvg. Cuisses +2</legs>
				<feet>rvg. leggings +2</feet>
			</set>
<set name ="N" />

			<set name="Rampage">
				<ammo>Ravager's Orb</ammo>
				<head>Twilight Helm</head>
				<neck>Rancor Collar</neck>
				<lear>Brutal Earring</lear>
				<rear>Vulcan's Pearl</rear>
				<body>Twilight Mail</body>
				<hands>Rvg. Mufflers +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Pyrosoul Ring</rring>
				<back>Atheling Mantle</back>
				<waist>Pipilaka Belt</waist>
				<legs>Byakko's Haidate</legs>
				<feet>Rvg. Calligae +2</feet>
			</set>
		
			<set name="Cataclysm">
				<sub>Claymore Grip</sub>
				<ammo>Ravager's Orb</ammo>
				<head>Twilight Helm</head>
				<body>phorcy's korazin</body>
				<hands>phorcys mitts</hands>
				<legs>Avant Cuisses +1</legs>
				<feet>Rvg. Calligae +2</feet>
				<neck>Stoicheion Medal</neck>
				<waist>Windbuffet Belt</waist>
				<lear>Hecate's Earring</lear>
				<rear>Novio Earring</rear>
				<lring>Strigoi Ring</lring>
				<rring>Diamond Ring</rring>
				<back>Atheling Mantle</back>
			</set>
		</group>
		<group name="Abyssea-NM" inherit="Abyssea-R" />
		<group name="Outside-R" inherit="Abyssea-R" default="true"/>
		<group name="Outside-NM" inherit="Outside-R" />
	</sets>
	<rules>
		<!-- Core include Rules -->
		<xi:include href="include2.xml" xpointer="//include[@name='LVrestriction']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='ReturnRules']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='CleanTransportation']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='AreaRule']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='LockWeaponRule']/*" />
		<xi:include href="include2.xml" xpointer="//include[@name='SpellCancel']/*" />
		<!-- Optional include Rules -->
		<xi:include href="include2.xml" xpointer="//include[@name='PowderBootsRule']/*" />
		<!-- Rerraise Gear Rules -->
		<if EquipHead = "Reraise Hairpin">
			<equip when="all">
				<head lock="true" />
			</equip>
		</if>
		<if EquipLear = "Reraise Earring">
			<equip when="all">
				<lear lock="true" />
			</equip>
		</if>
		<if EquipRear = "Reraise Earring">
			<equip when="all">
				<rear lock="true" />
			</equip>
		</if>
	
	<!-- Automatically change variables when buffs wear off -->
		<if notBuffactive="Berserk" advanced='"$Berserk"!="N"'>
			<var cmd="set Berserk N" />
		</if>
		<if notBuffactive="Restraint" advanced='"$Restraint"!="N"'>
			<var cmd="set Restraint N" />
		</if>
		<if notBuffactive="Blood Rage" advanced='"$BloodRage"!="N"'>
			<var cmd="set BloodRage N" />
		</if>
		<if notBuffactive="Warcry" advanced='"$Warcry"!="N"'>
			<var cmd="set BloodRage N" />
		</if>
		<!-- Automatically Equip Gear Rules -->
		<command when="engaged|idle|aftercast|resting">Dancing Chains</command>
		<!-- Automatically change group -->
		<if notgroup="$Area-$Resist">
			<command>sc group $Area-$Resist</command>
</if>
		<!-- Trigger Spells -->
		<if spell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
			<if spell="$TriggerSetOne">
				<!-- Auto Update Gear -->
				<if spell="Dancing Chains">
					<cancelspell />
					<if status="idle">
						<equip set="%Status|$Armor-%Status|$Movement-%Status|$TwilightSet" />
					</if>
					<elseif status="engaged">
						<if advanced='"$VAR-TP"="TP-2Handed-HASTE"'>
							<equip set="TP-$STYLE-$VAR-TP|$Armor-%Status|$Movement-%Status|$Restraint|$TwilightSet" />
						</if>
						<else>
							<equip set="TP-$STYLE-$VAR-TP|$Armor-%Status|$Movement-%Status|$Restraint|$TwilightSet" />
						</else>
					</elseif>
					<elseif status="resting">
						<equip set="%Status" />
					</elseif>
				</if>
				<!-- Equip PDT (Barbed Crescent) -->
				<elseif Spell="Barbed Crescent">
					<cancelspell />
					<var cmd="set Armor-%Status $PDT" />
					<addtochat>PDT Set Equipped</addtochat>
					<command>Dancing Chains</command>
				</elseif>
				<!-- Equip MDT (Aegis Schism) -->
				<elseif Spell="Aegis Schism">
					<cancelspell />
					<var cmd="set Armor-%Status $MDT" />
					<addtochat>MDT Set Equipped</addtochat>
					<command>Dancing Chains</command>
				</elseif>
				<!-- Change the distance at which to cancel WS -->
				<xi:include href="include2.xml" xpointer="//include[@name='SetDistanceVariable']/*" />
				<!-- Change the resistance variable: Regular mobs or NMs -->
				<xi:include href="include2.xml" xpointer="//include[@name='ResistRule']/*" />
				<!-- Change the Armor variable: Blank, MDT, PDT, or Full Evasion -->
				<xi:include href="include2.xml" xpointer="//include[@name='Variable-Blank']/*" />
				<xi:include href="include2.xml" xpointer="//include[@name='Variable-FullEvasion']/*" />
			</if>
			<elseif spell="$TriggerSetTwo">
				<!-- Change TP set type -->
				<if spell="Poison V">
					<cancelspell />
					<if advanced='"$VAR-TP"="HASTE"'>
						<var cmd="set VAR-TP ATT" />
						<var cmd="set TPRanged Ravager's Orb" />
					</if>
					<elseif advanced='"$VAR-TP"="ATT"'>
						<var cmd="set VAR-TP ACC" />
						<var cmd="set TPRanged Fire Bomblet" />
					</elseif>
					<elseif advanced='"$VAR-TP"="ACC"'>
						<var cmd="set VAR-TP HASTE" />
						<var cmd="set TPRanged Ravager's Orb" />
					</elseif>
					<addtochat color="135">TP Variable: $VAR-TP</addtochat>
					<if status="engaged">
						<command>Dancing Chains</command>
					</if>
				</if>
				<!-- Change WS set type -->
				<elseif spell="Poisonga V">
					<cancelspell />
					<if advanced='"$VAR-WS"="STR"'>
						<var cmd="set VAR-WS DEX" />
					</if>
					<elseif advanced='"$VAR-WS"="DEX"'>
						<var cmd="set VAR-WS ATT" />
					</elseif>
					<elseif advanced='"$VAR-WS"="ATT"'>
						<var cmd="set VAR-WS ACC" />
					</elseif>
					<elseif advanced='"$VAR-WS"="ACC"'>
						<var cmd="set VAR-WS STR" />
					</elseif>
					<addtochat color="135">WS Variable: $VAR-WS</addtochat>
				</elseif>
				<!-- Change Midcast for Utsusemi -->
				<elseif spell="Scop's Operetta">
					<cancelspell />
					<if advanced='"$VAR-Utsusemi"="$PDT"'>
						<var cmd="set VAR-Utsusemi Spell-Interruption" />
					</if>
					<elseif advanced='"$VAR-Utsusemi"="Spell-Interruption"'>
						<var cmd="set VAR-Utsusemi $PDT" />
					</elseif>
					<addtochat color="135">Utsusemi Midcast: $Var-Utsusemi</addtochat>
				</elseif>
			  <!-- Rancor Collar Toggle -->
                <elseif spell="Shining Fantasia">
                    <cancelspell />
                    <if advanced='"$DDNeck"="Rancor Collar"'>
                        <var cmd="set DDNeck Ravager's Gorget" />
                    </if>
                    <elseif advanced='"$DDNeck"="Ravager&apos;s Gorget"'>
                        <var cmd="set DDNeck Rancor Collar" />
                    </elseif>
					<addtochat color="135">DD Neck: $DDNeck</addtochat>
                    <command>Dancing Chains</command>
                </elseif>
				<!-- Add or Remove Movement Gear -->
				<elseif spell="Raptor Mazurka">
					<cancelspell />
					<if advanced='"$Movement-%Status"="BlankSet"'>
						<var cmd="set Movement-%Status Movement" />
						<addtochat color="135">Movement Speed: ON</addtochat>
					</if>
					<else>
						<var cmd="set Movement-%Status BlankSet" />
						<addtochat color="135">Movement Speed: OFF</addtochat>
					</else>
					<command>Dancing Chains</command>
				</elseif>
			</elseif>
			<else>
				<!-- Reraise Gear Lock -->
				<if spell="Foxfire">
					<cancelspell />
					<if advanced='"$TwilightSet"="BlankSet"'>
						<var cmd="set TwilightSet Reraise" />
						<addtochat color="135">Reraise Gear Locked: ON</addtochat>
					</if>
					<elseif advanced='"$TwilightSet"="Reraise"'>
						<var cmd="set TwilightSet BlankSet" />
						<addtochat color="135">Reraise Gear Locked: OFF</addtochat>
					</elseif>
					<command>Dancing Chains</command>
				</if>
				<!-- Bravura Aftermath -->
				<elseif spell="Netherspikes">
					<cancelspell />
					<if EquipMain="Bravura">
						<if BuffActive="Aftermath">
							<if advanced='"$PDT"="PDT"'>
								<var cmd="set PDT AM-PDT" />
								<var cmd="set MDT AM-MDT" />
							</if>
						</if>
						<elseif advanced='"$PDT"="AM-PDT"'>
							<var cmd="set PDT PDT" />
							<var cmd="set MDT MDT" />
						</elseif>
					</if>
				</elseif>
				<!-- TP Style Variable (2-Handed vs Dual Wield) -->
				<elseif spell="Diaga V">
					<cancelspell />
					<if advanced='"$STYLE"="2Handed"'>
						<var cmd="set STYLE DualWield" />
						<addtochat color="135">TP STYLE: DualWield</addtochat>
					</if>
					<elseif advanced='"$STYLE"="DualWield"'>
						<var cmd="set STYLE 2Handed" />
						<addtochat color="135">TP STYLE: 2Handed</addtochat>
					</elseif>
					<command>Dancing Chains</command>
				</elseif>
				<!-- Mighty Strikes Variable -->
				<elseif spell="Goblin Gavotte">
					<cancelspell />
					<if advanced='"$MightyStrikes"="BlankSet"'>
						<var cmd="set MightyStrikes MightyStrikes" />
					</if>
					<elseif advanced='"$MightyStrikes"="MightyStrikes"'>
						<var cmd="set MightyStrikes BlankSet" />
					</elseif>
					<command>Dancing Chains</command>
				</elseif>
				<elseif spell="Herb Pastoral">
					<cancelspell />
					<if hpplt="35">
						<equip when="all" set="Reraise" />
					</if>
				</elseif>
				<!-- Trigger Spells Not Used -->
				<elseif spell="Banishga V">
					<cancelspell />
				</elseif>
			</else>
		</if>
		<elseif type="Ninjutsu">
			<!-- Ninjutsu: Utsusemi -->
			<if spell="Utsusemi: Ichi">
				<equip when="precast" set="Utsusemi-Precast" />
				<command when="precast">wait 0.5; sc set "Utsusemi-Midcast-$VAR-Utsusemi"</command>
				<midcastdelay delay="2" />
				<equip when="midcast" set="Haste" />
			</if>
			<elseif spell="Utsusemi: Ni">
				<equip when="precast|midcast" set="Haste" />
			</elseif>
		</elseif>
		<elseif CommandPrefix="/range" notEquipRange="$R-Weapon">
			<castdelay delay="$Delay-JA" />
			<equip when="precast">
				<ammo lock="true">$R-Weapon</ammo>
			</equip>
		</elseif>
<elseif type="WeaponSkill">
			<castdelay delay="$Delay-JA" />
	
			<if spell="Ukko's Fury|Resolution">
				<equip when="precast" set="%Spell-$VAR-WS-$Berserk|$MightyStrikes|$TwilightSet" />
				<addtochat color="135">%Spell-$VAR-WS-$Berserk</addtochat>
			</if>
			<elseif spell="Metatron Torment|King's Justice">
				<equip when="precast" set="%Spell-$Berserk|$MightyStrikes|$TwilightSet" />
			</elseif>
			<elseif Spell="Fell Cleave|Rampage">
				<equip set="%Spell|$MightyStrikes|$TwilightSet" />
			</elseif>
			<elseif Spell="Cataclysm">
				<equip set="%Spell|$TwilightSet" />
			</elseif>
			<elseif spell="Warrior's Charge">
				<equip when="Precast">
					<legs>Warrior's Cuisses +2</legs>
				</equip>
			</elseif>
			<if mode ="and" spell="Ukko's Fury">
				<if buffactive="Warrior's Charge">
					<equip when="Precast">
						<legs lock="yes">Warrior's Cuisses +2</legs>
					</equip>
				</if>
<if advanced='"%DayElement" = "Light" OR "%DayElement" = "Thunder" OR "%DayElement" = "Wind"'>
                        <equip when="precast">
                        <head lock="yes">Mekira-oto +1</head>
                        </equip>
                        </if>
			</if>
			<else>
				<equip set="WS Base" />
			</else>
		</elseif>
		<elseif type="JobAbility">
			<!-- Precast-only JAs -->
			<if spell="Provoke|Warcry">
				<castdelay delay="$Delay-JA" />
				<equip when="precast" set="Warcry|$TwilightSet" />
			</if>
			<elseif Spell="Tomahawk">
				<castdelay delay="1.5" />
				<equip when="precast|midcast">
					<ammo>Throwing Tomahawk</ammo>
				</equip>
				<aftercastdelay delay="4" />
				<equip when="aftercast">
					<ammo>$TPRanged</ammo>
				</equip>
			</elseif>
			<!-- Variable Changing and Precast gear JAs -->
			<elseif Spell="Berserk">
				<var cmd="set Berserk Berserk" />
			</elseif>
			<elseif Spell="Restraint">
                          <var cmd="set Restraint Restraint" />
				<castdelay delay="$Delay-JA" />
				<equip when="precast" set="%Spell|$TwilightSet" />
			</elseif>
			<elseif Spell="Blood Rage">
				<var cmd="set BloodRage BloodRage" />
				<castdelay delay="$Delay-JA" />
				<equip when="precast" set="%Spell|$TwilightSet" />
			</elseif>
		</elseif>
	</rules>
</spellcast>
 Cerberus.Toknherb
Offline
Server: Cerberus
Game: FFXI
user: Toknherb
Posts: 104
By Cerberus.Toknherb 2013-01-12 13:13:06
Link | Quote | Reply
 
Thank you so much! :D
 Cerberus.Frotaut
Offline
Server: Cerberus
Game: FFXI
user: Frotaut2
Posts: 90
By Cerberus.Frotaut 2013-01-12 13:16:23
Link | Quote | Reply
 
np you might want the include for that xml as well. Save as include2.xml
put this in the same folder as your xmls
Code
<?xml version="1.0" encoding="utf-8"?>
<includes>
    <!--- ***************** Variables ***************** --->
    <!-- Fast Cast Magian Staffs -->
    <include name="TrialStaffFastCast">
        <var name="Staff-FastCast-Fire">Agni's Staff +2</var>
        <var name="Staff-FastCast-Ice">Vourukasha I</var>
        <var name="Staff-FastCast-Wind">Vayu's Staff +2</var>
        <var name="Staff-FastCast-Earth">Terra's Staff</var>
        <var name="Staff-FastCast-Thunder">apamajas I</var>
        <var name="Staff-FastCast-Water">Soma's Staff +2</var>
        <var name="Staff-FastCast-Light">Chatoyant Staff</var>
        <var name="Staff-FastCast-Dark">Yama's Staff +2</var>
    </include>
    <!-- Trial of the Magian Staffs for damage -->
    <include name="TrialStaffDMG">
        <var name="Staff-DMG-Fire">Agni's Staff +2</var>
        <var name="Staff-DMG-Ice">Varuna's Staff +2</var>
        <var name="Staff-DMG-Wind">Vayu's Staff +2</var>
        <var name="Staff-DMG-Earth">Terra's Staff</var>
        <var name="Staff-DMG-Thunder">Indra's Staff +2</var>
        <var name="Staff-DMG-Water">Soma's Staff +2</var>
        <var name="Staff-DMG-Light">Light Staff</var>
        <var name="Staff-DMG-Dark">Yama's Staff +2</var>
    </include>
    <!-- Trial of the Magian Staffs for Magic Accuracy -->
    <include name="TrialStaffACC">
        <var name="Staff-ACC-Fire">Chatoyant Staff</var>
        <var name="Staff-ACC-Ice">Chatoyant Staff</var>
        <var name="Staff-ACC-Wind">Chatoyant Staff</var>
        <var name="Staff-ACC-Earth">Chatoyant Staff</var>
        <var name="Staff-ACC-Thunder">Chatoyant Staff</var>
        <var name="Staff-ACC-Water">Chatoyant Staff</var>
        <var name="Staff-ACC-Light">Chatoyant Staff</var>
        <var name="Staff-ACC-Dark">Yama's Staff +2</var>
    </include>
    <!-- Elemental Stave Constants -->
    <include name="EleStaffConst">
        <var name="Staff-Fire">Chatoyant Staff</var>
        <var name="Staff-Ice">Chatoyant Staff</var>
        <var name="Staff-Wind">Chatoyant Staff</var>
        <var name="Staff-Earth">Chatoyant Staff</var>
        <var name="Staff-Thunder">Chatoyant Staff</var>
        <var name="Staff-Water">Chatoyant Staff</var>
        <var name="Staff-Light">Chatoyant Staff</var>
        <var name="Staff-Dark">Chatoyant Staff</var>
    </include>
    <!-- Elemental Obi Constants -->
    <include name="ElementalObiConstants">
        <var name="Obi-Fire">0</var>
        <var name="Obi-Ice">Hyorin Obi</var>
        <var name="Obi-Wind">Furin Obi</var>
        <var name="Obi-Earth">0</var>
        <var name="Obi-Thunder">Rairin Obi</var>
        <var name="Obi-Water">0</var>
        <var name="Obi-Light">Korin Obi</var>
        <var name="Obi-Dark">Anrin Obi</var>
    </include>
    <!-- Enspells Vars -->
    <include name="VarEnSpells">
        <var name="Enspell-Fire">Enfire</var>
        <var name="Enspell-Earth">Enstone</var>
        <var name="Enspell-Water">Enwater</var>
        <var name="Enspell-Wind">Enaero</var>
        <var name="Enspell-Ice">Enblizzard</var>
        <var name="Enspell-Thunder">Enthunder</var>
    </include>
    <!--- ***************** Rules ***************** --->
    <!-- Return Rules -->
    <!-- These stop any gear changes if I'm unable to take particular actions.  The reason for this is because
        if I'm impatient and spamming a macro while petrified or something I don't want a WHM to be unable to target
        me for Stona, for instance. -->
    <include name="ReturnRules">
        <if notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
            <if BuffActive="Sleep|Petrification|Stun|Terror|Charm|Illusion|Egg">
                <return />
            </if>
            <elseif spell="Ranged">
                <if advanced='"%SpellTargetDistance" > "24.9"'>
                    <return />
                </if>
            </elseif>
            <elseif Type="PetCommand|*BloodPact*" notPetISValid="TRUE">
                <return />
            </elseif>
            <elseif Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence|Mute|Omerta">
                <return />
            </elseif>
            <elseif Type="Weaponskill|JobAbility|PetCommand|CorsairRoll|CorsairShot|Scholar" BuffActive="Amnesia|Impairment">
                <return />
            </elseif>
            <elseif type="Weaponskill">
                <if mode="OR" TPLT="100" advanced='%SpellTargetDistance > $Distance' notstatus="engaged">
                    <cancelspell />
                    <return />
                </if>
            </elseif>
        </if>
    </include>
    <!--- Do not use rules if less than LV50 --->
    <include name="LVrestriction">
        <if notMLvlGT="50">
            <return />
        </if>
    </include>
    <!--- Do not change gear if spell is a transport spell -->
    <include name="CleanTransportation">
        <if Spell="Warp*|Teleport*|Recall*|Retrace">
            <return />
        </if>
    </include>
    <!-- Variable Trigger: Set Distance Rules -->
    <include name="SetDistanceVariable">
        <elseif Spell="Shackled Fists">
            <cancelspell />
            <var cmd="set Distance %TargetDistance" />
            <addtochat color="135">Distance Variable: $Distance</addtochat>
        </elseif>
    </include>
    <!--- Variable Trigger: Change between Regular Mobs and NMs --->
    <include name="ResistRule">
        <elseif spell="Grim Halo">
            <cancelspell />
            <if notMainJob="RDM|BLM|SCH">
                <if advanced='"$Resist"=="R"'>
                    <var cmd="set Resist NM" />
                </if>
                <else>
                    <var cmd="set Resist R" />
                </else>
            </if>
            <else>
                <if advanced='"$Resist"=="R"'>
                    <var cmd="set Resist RNM" />
                    <var cmd="set QuickResist RNM" />
                </if>
                <elseif advanced='"$Resist"=="RNM"'>
                    <var cmd="set Resist NM" />
                    <var cmd="set QuickResist NM" />
                </elseif>
                <else>
                    <var cmd="set Resist R" />
                    <var cmd="set QuickResist R" />
                </else>
            </else>
        </elseif>
    </include>
    <!--- Equip DD or Idle Set --->
    <include name="Variable-Blank">
        <elseif Spell="Vulcan Shot">
            <cancelspell />
            <var cmd="set Armor-%Status BlankSet" />
            <command>Dancing Chains</command>
        </elseif>
    </include>
    <!--- Equip MDT (Aegis Schism) --->
    <include name="Variable-MDT">
        <elseif Spell="Aegis Schism">
            <cancelspell />
            <var cmd="set Armor-%Status MDT" />
            <command>Dancing Chains</command>
        </elseif>
    </include>
    <!--- Equip PDT (Barbed Crescent) --->
    <include name="Variable-PDT">
        <elseif Spell="Barbed Crescent">
            <cancelspell />
            <var cmd="set Armor-%Status PDT" />
            <command>Dancing Chains</command>
        </elseif>
    </include>
    <!--- Equip Full Evasion (Carnal Nightmare) --->
    <include name="Variable-FullEvasion">
        <elseif Spell="Carnal Nightmare">
            <cancelspell />
            <var cmd="set Armor-%Status FullEvasion" />
            <command>Dancing Chains</command>
        </elseif>
    </include>
    <!--- Area variable rule --->
    <include name="AreaRule">
        <if area="Abyssea*" advanced='"$Area"!="Abyssea"'>
            <var cmd="set Area Abyssea" />
        </if>
        <elseif notarea="Abyssea*" advanced='"$Area"!="Outside"'>
            <var cmd="set Area Outside" />
        </elseif>
    </include>
    <!--- Lock Weapon Rules --->
    <include name="LockWeaponRule">
        <if mode="OR" advanced='$LockMain==1' EquipMain="simian fists">
            <equip when="all">
                <main lock="true" />
                <sub lock="true" />
            </equip>
        </if>
    </include>
    <!--- Change to TP when engaged, Idle when idle, and Resting when resting --->
    <include name="AutoChangeGear">
        <if status="idle" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
            <equip when="idle|aftercast" set="$Idle" />
        </if>
        <elseif status="engaged" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
            <equip when="engaged|aftercast" set="$TP" />
        </elseif>
        <elseif status="resting" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
            <equip when="all" set="Resting" />
        </elseif>
        <command when="idle">wait 1;Dancing Chains</command>
    </include>
    <!--- Variable Trigger: Update current gear set --->
    <include name="UpdateSetRule">
        <if spell="Dancing Chains">
            <cancelspell />
            <if status="idle">
                <equip set="$Idle" />
            </if>
            <elseif status="engaged">
                <equip set="$TP" />
            </elseif>
        </if>
    </include>
    <!-- Spell Cancel Rules -->
    <include name="SpellCancel">
        <if Spell="Sneak" BuffActive="Sneak" TargetType="SELF">
            <midcastdelay delay="1" />
            <command when="midcast">cancel 71</command>
        </if>
        <elseif spell="Spectral Jig" BuffActive="Sneak">
            <command when="precast">cancel 71</command>
        </elseif>
        <elseif Spell="Monomi*" BuffActive="Sneak">
            <midcastdelay delay="2.5" />
            <command when="midcast">cancel 71</command>
        </elseif>
        <elseif spell="Utsusemi: Ichi" buffactive="Copy Image*" notbuffactive="Silence|Mute|Omerta|Obliviscence">
            <if notbuffactive="Copy Image (3)|Copy Image (4)">
                <midcastdelay delay="2.5" />
                <cmd when="midcast">cancel 66</cmd>
                <cmd when="midcast">cancel 446</cmd>
            </if>
            <else>
                <cancelspell />
                <return />
            </else>
        </elseif>
        <elseif Spell="Stoneskin" BuffActive="Stoneskin">
            <midcastdelay delay="2.8" />
            <command when="midcast">cancel 37</command>
        </elseif>
        <elseif Spell="Blink" BuffActive="Blink">
            <midcastdelay delay="5.2" />
            <command when="midcast">cancel 36</command>
        </elseif>
    </include>
    <!--- Misc: Lock Powder Boots --->
    <include name="PowderBootsRule">
        <if Equiplegs="warrior's cuisses +2">
            <equip when="all">
                <legs lock="true" />
            </equip>
        </if>
    </include>
    <!--- Misc: Alert when insufficient MP --->
    <include name="MPCostRule">
        <if notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree" MPCostGT="%MP">
            <addtochat color="135">You need more MP! %Spell: %MP/%MPCost!</addtochat>
        </if>
    </include>
    <!--- Subs: Change to Conv gear and lock cure gear changes until first cast -->
    <include name="ConvRules">
        <if status="engaged" Spell="Convert">
            <castdelay delay="0.02" />
            <equip when="precast" set="%Spell" />
            <var cmd="set TP Convert" />
        </if>
        <if status="idle" Spell="Convert">
            <castdelay delay="0.02" />
            <equip when="precast" set="%Spell" />
            <var cmd="set Idle Convert" />
        </if>
    </include>
    <!-- Elemental Obi Rule -->
    <include name="ElementalObiRule">
        <if SpellTargetType="MONSTER" advanced='("%SpellElement"="%WeatherElement" OR "%SpellElement"="%DayElement") AND "$Obi-%SpellElement"!="0"'>
            <equip when="midcast">
                <waist lock="yes">$Obi-%SpellElement</waist>
                <back lock="yes">Twilight Cape</back>
            </equip>
        </if>
    </include>
<!-- Auto equip twilight via hp -->

<if HPPLT="300">
<var cmd="set Twilight(Lock) Twilight" />
</if> 
	<!--- Healing Breath Rules --->
	<include name="HealingBreathRules">
        <if subjob="WHM|RDM|BLM|BLU|SCH" PetISValid="TRUE" type="*Magic">
            <if mode="OR" spell="Phalanx" advanced='(%HPP < 51 AND %Casttime < 2.5) OR (%PartyCount > 1 AND %Casttime < 2.5)'>
                <castdelay delay="$Delay-Spell" />
                <equip when="precast" set="HealingBreathTrigger" />
                <var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
                <midcastdelay delay="$HealingBreathDelay" />
                <equip when="midcast" set="Restoring Breath" />
                <aftercastdelay delay="2.1" />
            </if>
        </if>
        <elseif subjob="PLD|DRK|BRD|NIN" PetISValid="TRUE" type="*Magic|*Song|Ninjutsu" CastTimeLT="2" HPPLT="34">
            <castdelay delay="$Delay-Spell" />
            <equip when="precast" set="HealingBreathTrigger" />
            <var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
            <midcastdelay delay="$HealingBreathDelay" />
            <equip when="midcast" set="Restoring Breath" />
            <aftercastdelay delay="2.1" />
        </elseif>
	</include>
    <!-- Enspells Rule -->
    <include name="EnspellsRule">
        <if spell="Enfire" Day="Earth|Water|Wind|Ice|Thunder">
            <changespell spell="$Enspell-%DayElement" />
        </if>
    </include>
</includes>