Spellcast XML Command

Language: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Dragoon » Spellcast XML Command
Spellcast XML Command
 Quetzalcoatl.Prophett
Offline
Server: Quetzalcoatl
Game: FFXI
Posts: 51
By Quetzalcoatl.Prophett 2013-10-21 13:52:03
Link | Quote | Reply
 
I have an Issue wherein this line causes windower to crash during zone change after being warped or using a waypoint to certain areas:



<command when="engaged|idle|resting|aftercast">Update</command>



Now it works great until you get warped or use a waypoint?



I cannot figure out why this happens. Its not my xml its a friends that I use for a few of my jobs. The XML also includes the following :



<!-- Clean Transportation -->
<if Spell="Teleport*|Warp*|Retrace|Escape|Recall*">
<return />
</if>



So it would appear that this would stop any further checks when you get warped or zone and there for not crash from above issue.



I have Win4 Hook 4.0.0.35 Launcher 4.0.4985.17832



Im Curious iof this is a Spellcast issue or if it gets confused with any of the plugins/addons?
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2013-10-21 14:31:25
Link | Quote | Reply
 
I'm not sure what the specific technical reason is but this crash certainly existed in Windower 3.4 as well (before addons existed). Vaguely put, I think it's just due to spellcast trying to change you're gear while you're zoning (ie, aftercast gear swaps).

Just keep a clean transport rule in your XMLs and you should be fine.
 Quetzalcoatl.Prophett
Offline
Server: Quetzalcoatl
Game: FFXI
Posts: 51
By Quetzalcoatl.Prophett 2013-10-21 14:49:00
Link | Quote | Reply
 
still crashes with that rule, thats what I can't figure out -.-
 Phoenix.Suji
Offline
Server: Phoenix
Game: FFXI
user: suji
Posts: 962
By Phoenix.Suji 2013-10-21 15:24:06
Link | Quote | Reply
 
sorry, I didn't read your question carefully enough at first but the clean transport rules wouldn't help you in the cases of when you're the target of Warp II or use a Waypoint.

I suggest posting your XML. Do you use autoexec? Does it happen 100% reliably or only sometimes?
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2013-10-21 17:06:50
Link | Quote | Reply
 
Code tags make it easier to read.

Quetzalcoatl.Prophett said: »
Code
<?xml version="1.0" ?>
<!------Toggles: Macro = /ja Trigger#
		Trigger0 = Toggles Locks Twilight Set On/Off 
		Trigger1 = WS/JA distance
		Trigger2 = TP Toggle (DD,MidAcc,HighACC)
		Trigger3 = WS Toggle (Drakesbane STR/ACC) 
		Trigger4 = WS Toggle (Stardiver STR/ACC)
		Trigger5 = Idle Movement On/Off
		Trigger6 = N/A
		Trigger7 = Hybrid TP set On/Off
		Trigger8 = Toggles Idle/Idle Town
		Trigger9 = N/A
	PDT Macro = /ja PhysicalDefense
	MDT Macro = /ja MagicalDefense	------>

<spellcast>
	<config
		RequireVersion="2.51"
		ShowGearSwaps="False"
		Debug="False"
		ShowSpellInfo="False"
	/>
	
	<sets>
		<group name="DRG" default="true">
			<set name="None|Off|Bypass" />
			<set name="Movement">
				<legs>Blood Cuisses</legs>
			</set>
			<set name="Twilight">
                <head>Twilight Helm</head>
               	<body>Twilight Mail</body>
       		</set>
			<set name="IdleTown">
				<main>Upukirex</main>
				<sub>Pole Grip</sub>
				<ammo>Angon</ammo>
				<head>Lancer's Mezail +2</head>
				<neck>Wiglen Gorget</neck>
				<lear>Merman's Earring</lear>
				<rear>Merman's Earring</rear>
				<body>Lncr. Plackart +2</body>
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>Sheltered Ring</lring>
				<rring>Paguroidea Ring</rring>
				<back>Repulse Mantle</back>
				<waist>Flume Belt</waist>
				<legs>Lncr. Cuissots +2</legs>
				<feet>Lncr. Schynbld. +2</feet>
			</set>
			<set name="Idle" baseset="IdleTown">				
				<sub>Pole Grip</sub>
				<ammo>Brigantia Pebble</ammo>
				<head>Twilight Helm</head>
				<neck>Wiglen Gorget</neck>
				<lear>Merman's Earring</lear>
				<rear>Merman's Earring</rear>
				<body>Cizin Mail</body>
				<hands>Cizin Mufflers</hands>
				<lring>Sheltered Ring</lring>
				<rring>Paguroidea Ring</rring>
				<back>Shadow Mantle</back>
				<waist>Flume Belt</waist>
				<legs>Cizin Breeches</legs>
				<feet>Cizin Greaves</feet>				
			</set>
			<set name="IdleRefresh" baseset="IdleTown">				
				<head>Wivre Hairpin</head>				
				<rear>Moonshade earring</rear>
				<body>Twilight Mail</body>
			</set>
			<set name="Resting" baseset="$IdleType">
				<slot>example</slot>
			</set>
			<set name="PDT">
				<ammo>Brigantia Pebble</ammo>
				<head>Cizin Helm</head>
				<neck>Twilight Torque</neck>				
				<lear>Merman's Earring</lear>
				<rear>Merman's Earring</rear>
				<body>Cizin Mail</body>
				<hands>Cizin Mufflers</hands>
				<rring>Dark Ring</rring>
				<lring>Dark Ring</lring>
				<back>Repulse Mantle</back>
				<waist>Flume Belt</waist>
				<legs>Cizin Breeches</legs>
				<feet>Cizin Greaves</feet>
			</set>
			<set name="MDT">
				<slot>example</slot>
			</set>						
			<set name="FastCast">
				<slot>example</slot>
			</set>
			<set name="HasteCast">
				<slot>example</slot>
			</set>
			<set name="Jump">                
				<ammo>Potestas Bomblet</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Asperity Necklace</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Phorcys Korazin</body>				
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>K'ayres Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Atheling mantle</back>
				<waist>Windbuffet Belt</waist>
				<legs>Cizin greaves</legs>
				<feet>Whirlpool Greaves</feet>
            </set>
            <set name="High Jump">
            	<neck>Ganesha's Mala</neck>                
				<waist>Windbuffet Belt</waist>
            </set>
				<set name="Spirit Jump">
				<neck>Ganesha's Mala</neck>
                <legs>Lncr. Cuissots +2</legs>
				<waist>Windbuffet Belt</waist>
                <feet>Lncr. Schynbld. +2</feet>
            </set>
            	<set name="Soul Jump">
				<neck>Ganesha's Mala</neck>
            	<legs>Lncr. Cuissots +2</legs>
				<waist>Windbuffet Belt</waist>				
            </set>
            	<set name="Call Wyvern">
            	 <body>Wyrm Mail +2</body>
            </set>
            	<set name="WyvernHP">
            	<body>Wyvern Mail</body>                
            	<back>Updraft Mantle</back>
            	<neck>Lancer's Torque</neck>
            	<lear>Lancer's Earring</lear>
				<legs>Drn. Brais +1</legs>
				<feet>Wym. Greaves +2</feet>
            </set>
            	<set name="Ancient Circle">
            	<legs>Drn. Brais +1</legs>
            </set>
            	<set name="Spirit Link">                
				<hands>Lncr. Vmbrc. +2</hands>
            </set>
			<set name="HealingBreathTrigger">
				<ammo>Brigantia Pebble</ammo>
				<head>Drachen Armet</head>
				<neck>Lancer's Torque</neck>
				<rear>Soil Pearl</rear>
                <rear>Ethereal Earring</rear>
                <body>Cizin Mail</body>
				<hands>Cizin Mufflers</hands>
				<lring>Terrasoul Ring</lring>
				<rring>Terrasoul Ring</rring>
				<back>Repulse Mantle</back>
				<waist>Glassblower's Belt</waist>
				<legs>Cizin Breeches</legs>
                <feet>Enif gambieras</feet>                
            </set>
            	<set name="Restoring Breath" baseset="WyvernHP">
            	<head>Wyrm Armet +2</head>
				<neck>Lancer's Torque</neck>
				<lear>Lancer's Earring</lear>
				<rear>Soil Pearl</rear>
				<body>Cizin Mail</body>
				<hands>Cizin Mufflers</hands>
				<lring>Terrasoul Ring</lring>
				<rring>Terrasoul Pearl</rring>
				<back>Updraft Mantle</back>
            	<waist>Glassblower's belt</waist>
				<legs>Cizin Breeches</legs>
				<feet>Wym. Greaves +2</feet>
            </set>
            	<set name="Smiting Breath">
            	<head>Wyrm Armet +2</head>
                <neck>Lancer's Torque</neck>
				<waist>Glassblower's Belt</waist>
            </set>
            	<set name="Steady Wing" baseset="WyvernHP">
                <back>Updraft Mantle</back>
                <neck>Lancer's Torque</neck>
                <lear>Lancer's Earring</lear>
				<feet>Wym. Greaves +2</feet>
            </set>
            	<set name="Angon">
                <ammo>Angon</ammo>
				<hands>wym. fng. gnt. +2</hands>
            </set>
			<set name="Mekira">
                <head>Yaoyotl Helm</head>
            </set>
		
			<!-- Damage Dealing TP Set Below-->
			<set name="TP-Off-DD-No">
				<ammo>Hagneia Stone</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Ganesha's Mala</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Lancer's Plackart +2</body>
				<hands>Mikinaak Gauntlets</hands>
				<rring>K'ayres Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Atheling mantle</back>
				<waist>Windbuffet Belt</waist>
				<legs>Cizin Breeches</legs>
				<feet>Mikinaak Greaves</feet>
			</set>
			
			<!-- Mid Accuracy TP Set Below-->
			<set name="TP-Off-MidACC-No" Baseset="TP-Off-DD-No">
				<ammo>Hagneia Stone</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Ganesha's Mala</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Enif corazza</body>
				<hands>Buremte Gloves</hands>
				<rring>K'ayres Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Rancorous Mantle</back>
				<waist>Zoran's Belt</waist>
				<legs>Cizin greaves</legs>
				<feet>Mikinaak Greaves</feet>				
			</set>
			
			<!-- High Accuracy TP Set -- Tojil,Delve NM's ect.-->
			<set name="TP-Off-HighACC-No" Baseset="TP-Off-DD-No">
				<ammo>Hagneia Stone</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Ziel Charm</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Gorney Haubert</body>
				<hands>Buremte Gloves</hands>
				<rring>Mars's Ring</rring>
				<lring>Rajas Ring</lring>
				<back>Rancorous Mantle</back>
				<waist>Angiunus Belt</waist>
				<legs>Miki. Cuisses</legs>
				<feet>Phorcys Schuhs</feet>				
			</set>
			
			<!-- Haste/Acc/PDT Hybird Set Below-->
			<set name="TP-TPDefensive-*" Baseset="TP-Off-DD-No">
				<slot>example</slot>
			</set>
			<set name="Drakesbane-STR-*">				
				<ammo>Potestas Bomblet</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Justiciar's Torque</neck>
				<lear>Steelflash Earring</lear>
				<rear>Bladeborn Earring</rear>
				<body>Phorcys Korazin</body>				
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Pyrosoul Ring</rring>
				<back>Atheling mantle</back>
				<waist>Flame Belt</waist>
				<legs>Miki. Cuisses</legs>
				<feet>Mikinaak Greaves</feet>
			</set>
			<set name="Drakesbane-ACC-*">			
				<ammo>Potestas Bomblet</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Asperity Necklace</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Phorcys Korazin</body>				
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Pyrosoul Ring</rring>
				<back>Atheling Mantle</back>
				<waist>Flame Belt</waist>
				<legs>Miki. Cuisses</legs>
				<feet>Miki. Greaves</feet>
			</set>

			<set name="Stardiver-STR-*">				
				<ammo>Potestas Bomblet</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Justiciar's Torque</neck>
				<lear>Steelflash</lear>
				<rear>Bladeborn Earring</rear>
				<body>Phorcys Korazin</body>				
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>Pyrosoul Ring</lring>
				<rring>Rajas Ring</rring>
				<back>Atheling mantle</back>
				<waist>Flame Belt</waist>
				<legs>Mikinaak Cuisses</legs>
				<feet>Mikinaak Greaves</feet>				
			</set>
			<set name="Stardiver-ACC-*">
				<ammo>Potestas Bomblet</ammo>
				<head>Yaoyotl Helm</head>
				<neck>Justiciar's Torque</neck>
				<lear>Steelflash earring</lear>
				<rear>Bladeborn earring</rear>
				<body>Gorney Haubert</body>				
				<hands>Lncr. Vmbrc. +2</hands>
				<lring>Rajas Ring</lring>
				<rring>Pyrosoul Ring</rring>
				<back>Rancorous Mantle</back>
				<waist>Flame Belt</waist>
				<legs>Miki. Cuisses</legs>
				<feet>Miki. Greaves</feet>
			</set>
			
			<!--Common Default WS Set below -->
			<set name="%Spell*-*">
				<slot>example</slot>				
			</set>
		</group>
	</sets>
	
	<variables clear="true">
		<var name="Armor">None</var>
		<var name="Twilight">None</var>
		<var name="IdleMovement">Off</var>
		<var name="EngagedMovement">None</var>
		<var name="RestingMovement">None</var>
		<var name="IdleType">Idle</var>
		<var name="EngagedType">TP-$TPDefensive-$Zhit-$Zimp</var>
		<var name="RestingType">Resting</var>
		<var name="HealingBreathDelay">0</var>
		<var name="TPDefensive">Off</var>
		<var name="Zhit">DD</var>		
		<var name="Zimp">No</var>
		<var name="WSDrakes">STR</var>
		<var name="WSStar">STR</var>
		<var name="Distance">22</var>		
		<var name="Active">No</var>		
		<var name="%Spell">None</var>			
	</variables>
	
	
	<rules>
		<!-- Clean Transportation -->
		<if Spell="Teleport*|Warp*|Retrace|Escape|Recall*">
			<return />
		</if>
		
		<!-- Cancel rule for various forms of sneak. (Cancel Plugin Required -->
		<if spell="Spectral Jig">
			<action type="command" when="precast">cancel 71</action>
		</if>
		<elseif spell="Monomi: Ichi">
			<action type="midcastdelay" delay="1.0"/>
			<action type="command" when="midcast">cancel 71</action>
		</elseif>
		<elseif skill="EnhancingMagic">				
			<if spell="Sneak" BuffActive="Sneak" TargetType="SELF">
				<action type="midcastdelay" delay="2.5"/>
				<action type="command" when="midcast">cancel 71</action>
			</if>
		</elseif>		
			
		<if status="event|zoning|dead">
			<return />
		</if>
		<!-- Locking specfic gear-->
		<if EquipLear="Reraise Earring|Federation Earring|Kingdom Earring|Republic Earring|Duchy Earring|Empire Earring|
		Kazham Earring|Mhaura Earring|Nashmau Earring|Norg Earring|Rabao Earring|Safehold Earring|Selbina Earring">
			<addtochat color="167">Reraise/Teleport Left Earring: Locked</addtochat>
			<equip when="all">
				<lear lock="true" />
			</equip>
		</if>
		<if EquipRear="Reraise Earring|Federation Earring|Kingdom Earring|Republic Earring|Duchy Earring|Empire Earring|
		Kazham Earring|Mhaura Earring|Nashmau Earring|Norg Earring|Rabao Earring|Safehold Earring|Selbina Earring">
			<addtochat color="167">Reraise/Teleport Right Earring: Locked</addtochat>
			<equip when="all">
				<rear lock="true" />
			</equip>
		</if>
		<if equiplring="Tavnazian Ring|Olduum Ring">
			<addtochat color="167">Teleport Left Ring: Locked</addtochat>
			<equip when="all">
				<lring lock="true" />				
			</equip>
		</if>
		<if equiprring="Tavnazian Ring|Olduum Ring">
			<addtochat color="167">Teleport Right Ring: Locked</addtochat>
			<equip when="all">
				<rring lock="true" />
			</equip>
		</if>
		<if equiphead="Chocobo Masque +1|Maat's Cap">
			<addtochat color="167">Teleport Head: Locked</addtochat>
			<equip when="all">
				<head lock="true" />
			</equip>
		</if>
		<if equipmain="Treat Staff II">
			<addtochat color="167">Warp Staff: Locked</addtochat>
			<equip when="all">
				<main lock="true" />
			</equip>
		</if>
		<if EquipFeet="Powder Boots">
			<addtochat color="167">Powder Boots: Locked</addtochat>
			<equip when="all">
				<feet lock="true" />
			</equip>
		</if>		
		<if equipback="Nexus Cape">
			<addtochat color="167">Nexus Cape: Locked</addtochat>
			<equip when="all">
				<back lock="true" />
			</equip>
		</if>

		<!-- Oneiros Ring rule -->
		<if status="Engaged">
		<if MPLT="100">
            <var cmd="set rring K'ayres Ring" />
        </if>
        <else>			
			<var cmd="set rring Oneiros Ring" />						
		</else>
		</if>
		
		
		<!-- Clean Transportation -->
		<if Spell="Teleport*|Warp*|Retrace|Escape|Recall*">
			<return />
		</if>
		
		<!-- Updates gear after every cast -->
		<command when="engaged|idle|resting|aftercast">Update</command>
		
		<!-- Equip armor -->
		<if Spell="Update" advanced='"$Active"="No"'>
			<equip when="precast" set="$%StatusType|$Armor|$%StatusMovement|$Twilight" />
			<cancelspell />
			<return />
		</if>
		<elseif spell="PhysicalDefense|MagicalDefense|Trigger0">
			<if spell="PhysicalDefense">
				<if advanced='"$Armor"="PDT"'>
					<var cmd="set Armor None" />
					<addtochat>PDT Set Off</addtochat>
				</if>
				<else>
					<var cmd="set Armor PDT" />
					<addtochat>PDT Set Active</addtochat>
				</else>
			</if>
			<elseif spell="MagicalDefense">
				<if advanced='"$Armor"="MDT"'>
					<var cmd="set Armor None" />
					<addtochat>MDT Set Off</addtochat>
				</if>
				<else>
					<var cmd="set Armor MDT" />
					<addtochat>MDT Set Active</addtochat>
				</else>
			</elseif>						
			<else>
                <if advanced='"$Twilight"="None"'>
                    <var cmd="set Twilight Twilight"/>
					<addtochat color="28">--Twilight Set LOCKED--</addtochat>                    
                </if>
                <else>
                    <var cmd="set Twilight None"/>
					<addtochat color="56">--Twilight Set UNLOCKED--</addtochat>                    
                </else>
            </else>

		
		<!--------TP Macro Variables----------------->
		<elseif spell="trigger*">
			<if spell="Trigger1">
				<var cmd="set Distance %TargetDistance" />
				<addtochat>Distance Variable: $Distance</addtochat>
			</if>
			<elseif spell="Trigger2">
				<if advanced='"$Zhit"="DD"'>
					<var cmd="set Zhit MidACC"/>
					<addtochat>Mid ACC TP Set: Active</addtochat>
				</if>
				<elseif advanced='"$Zhit"="MidACC"'>
					<var cmd="set Zhit HighACC"/>
					<addtochat>High ACC TP Set: Active</addtochat>
				</elseif>
				<else>
					<var cmd="set Zhit DD"/>
					<addtochat>DD TP Set: Active</addtochat>
				</else>
			</elseif>
			<!--------Drakesbane Macro Variable----------------->
			<elseif spell="Trigger3">
				<if advanced='"$WSDrakes"="STR"'>
					<var cmd="set WSDrakes ACC"/>
					<addtochat>Drakesbane ACC: Active</addtochat>
				</if>
				<else>
					<var cmd="set WSDrakes STR"/>
					<addtochat>Drakesbane STR: Active</addtochat>
				</else>
			</elseif>
			<!--------Stardiver Macro Variable----------------->
			<elseif spell="Trigger4">
				<if advanced='"$WSStar"="STR"'>
					<var cmd="set WSStar ACC"/>
					<addtochat>Stardiver ACC: Active</addtochat>
				</if>
				<else>
					<var cmd="set WSStar STR"/>
					<addtochat>Stardiver STR: Active</addtochat>
				</else>
			</elseif>
			<!--------Movement Macro Variable----------------->
			<elseif spell="Trigger5">
				<if advanced='"$IdleMovement"="Off"'>
					<var cmd="set IdleMovement Movement"/>
					<addtochat>Idle Gear: Movement Speed Active</addtochat>
				</if>
				<else>
					<var cmd="set IdleMovement Off"/>
					<addtochat>Idle Gear: Movement Speed Off</addtochat>
				</else>
			</elseif>
			<!--------TP Defensive/Hybird Variable----------------->
			<elseif spell="Trigger7">
				<if advanced='"$TPDefensive"="Off"'>
					<var cmd="set TPDefensive TPDefensive"/>
					<addtochat>Defensive Set: Defensive TP</addtochat>
				</if>
				<else>
					<var cmd="set TPDefensive Off"/>
					<addtochat>Defensive Set: $EngagedType</addtochat>
				</else>
			</elseif>
			<!--------Idle Regen/Town Macro Variable----------------->
			<elseif spell="Trigger8">
				<if advanced='"$IdleType"="IdleRefresh"'>
					<var cmd="set IdleType IdleTown"/>
					<addtochat>Idle Town Set: Active</addtochat>
				</if>
				<elseif advanced='"$IdleType"="IdleTown"'>
					<var cmd="set IdleType Idle"/>
					<addtochat>Idle Regen Set: Active</addtochat>
				</elseif>
				<else>
					<var cmd="set IdleType IdleRefresh"/>
					<addtochat>Idle Refresh Set: Active</addtochat>
				</else>
			</elseif>
			<cancelspell />
			<command>Update</command>
			<return />
		</elseif>
		
		<!-- Healing Breath Rules -->
		<elseif type="WhiteMagic|BlackMagic">
            <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="0.3" />
                <equip when="precast" set="HealingBreathTrigger" />
                <var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
                <midcastdelay delay="$HealingBreathDelay" />
                <equip when="midcast" set="Restoring Breath" />
                <aftercastdelay delay="4.1" />
            </if>
        </if>
			<elseif subjob="PLD|DRK|BRD|NIN" PetISValid="TRUE" type="*Magic|*Song|Ninjutsu" CastTimeLT="2" HPPLT="34">
				<castdelay delay="0.3" />
				<equip when="precast" set="HealingBreathTrigger" />
				<var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
				<midcastdelay delay="$HealingBreathDelay" />
				<equip when="midcast" set="Restoring Breath" />
				<aftercastdelay delay="4.1" />
			</elseif>
        </elseif>
		
		<!-- Magic rules -->
		<if type="Ninjutsu">
			<if Spell="Utsusemi: Ichi|Utsusemi: Ni">
				<equip when="Precast" set="FastCast" />
				<equip when="Midcast" set="HasteCast" />
			</if>			
		</if>				
		
		<!-- Prevents JA attempts if you're unable to properly execute them. -->
		<if advanced='"%SpellTargetType"!="SELF"'>
			<if advanced='%SpellTargetDistance > $Distance'>
				<cancelspell />
				<return />
			</if>
		</if>

		<!-- Job Ability rules -->		
		<if type="JobAbility">
			<if spell="Call Wyvern|Ancient Circle|Jump|High Jump|Soul Jump">
				<equip when="Precast" set="%Spell|$Twilight" />				
			</if>			
			<elseif spell="Spirit Jump">
				<castdelay delay="0.3" />
				<if PetISValid="TRUE">
                    <equip when="precast" set="%Spell|$Twilight" />
                </if>
                <else>
                    <changespell spell="Jump" />
                    <equip when="precast" set="Jump|$Twilight" />
                </else>				
			</elseif>
			<elseif spell="Angon">
                <castdelay delay="1" />
                <equip when="precast" set="%Spell" />
				<command>input /p ========== Angon ON!!! ===========</command> 
				<command>wait 90; input /p --------  Angon OFF!!!  --------</command>
				<command>wait 180; input /echo ********  Angon Ready!!!  ********</command>				
            </elseif>
			<elseif spell="Spirit Link">
                <castdelay delay="0.3" />
                <if advanced='%pethpp > 76'>
                    <equip set="%Spell|$Twilight" />
                </if>
                <else>
                    <equip set="WyvernHP|%Spell|$Twilight" />
                </else>
            </elseif>						
		</if>
		
		<if type="PetCommand">
            <!--- Restoring and Smiting Breath Rules --->
            <if spell="Restoring Breath|Smiting Breath">
				<castdelay delay="1.0" />
                <equip when="precast" set="%Spell|$Twilight" />
                <aftercastdelay delay="5.5" />
            </if>
            <!--- Cancel Dismiss if Pet has less than 100% HP --->
            <elseif spell="Dismiss">
                <if advanced="%PetHPP=100">
                    <addtochat color="57">Dismiss Canceled! Junker's HP: %pethpp%</addtochat>
                    <cancelspell />
                    <return />
                </if>
            </elseif>
            <elseif spell="Steady Wing">
                <castdelay delay="0.3" />
                <equip when="precast" set="%Spell|$Twilight" />
            </elseif>
        </if>
			
			<!-- Weaponskill rules --> 			
			<if type="WeaponSkill">
				<castdelay delay="0.3" />
				<if spell="Drakesbane">				
					<equip set="%Spell-$WSDrakes-$ZHit|$Twilight" />
					<if advanced='"%DayElement" = "Light" OR "%DayElement" = "Fire"'>
					<equip set="%Spell-$WSDrakes-$ZHit|Mekira|$Twilight" />
				</if>
				</if>
				<elseif spell="Stardiver">
					<equip set="%Spell-$WSStar-$ZHit|$Twilight" />
					<if advanced='"%DayElement" = "Light" OR "%DayElement" = "Dark" OR "%DayElement" = "Earth"'> <!--Earth-->					
					<equip set="%Spell-$WSStar-$ZHit|Mekira|$Twilight" />					
				</if>
				</elseif>
            <else>
                <equip set="%Spell-$ZHit|$Twilight" />                        
            </else>                        
			</if>			
	</rules>
</spellcast>
 Quetzalcoatl.Prophett
Offline
Server: Quetzalcoatl
Game: FFXI
Posts: 51
By Quetzalcoatl.Prophett 2013-10-21 17:29:47
Link | Quote | Reply
 
my bad I knew forgot to put something in there ill delete it.
Log in to post.