Apollyon's General Mage XML (Obi/Staff/Tonban/more...)

This xml file contains rules to provide the following features:

  • Automatic Equipping of the appropriate Elemental Staff for Offensive/Cure Spells.
  • Automatic Equipping of the appropriate Elemental Obi and/or Sorcerer's Tonban.
  • Automatic Equipping of Uggalepih Pendant for Nukes (Including Helix spells).
  • Includes support for Scholar Storm Spells.
  • Automatic Equipping of Straps along with Elemental Staves.
    • Currently set for one strap per Job because that's how I gear myself for the time being.
  • Automatic Equipping of Skill Torques.
    • Ugg. Pendant will still have priority when appropriate.


<?xml version="1.0" ?>
<spellcast>
	<config	
		RequireVersion = "2.16"
		Debug="true" 
		ShowGearSwaps="false" />
	<sets>
		<group name="default">
		</group>
	</sets>
	<variables>
<!--Var: Elemental Staves-->
		<var name="IceStaff">Aquilo's Staff</var>
		<var name="WindStaff">Wind Staff</var>
		<var name="EarthStaff">Terra's Staff</var>
		<var name="ThunderStaff">Jupiter's Staff</var>
		<var name="WaterStaff">Water Staff</var>
		<var name="FireStaff">Vulcan's Staff</var>
		<var name="DarkStaff">Pluto's Staff</var>
		<var name="LightStaff">Light Staff</var>
		<var name="CureStaff">Light Staff</var>
<!--Var: Elemental Obis-->
		<var name="IceObi">Hyorin Obi</var>
		<var name="WindObi">Furin Obi</var>
		<var name="EarthObi">Dorin Obi</var>
		<var name="ThunderObi">Rairin Obi</var>
		<var name="WaterObi">Suirin Obi</var>
		<var name="FireObi">Karin Obi</var>
		<var name="DarkObi">Anrin Obi</var>
		<var name="LightObi">Korin Obi</var>
<!--Var: Strap of choice by job-->
		<var name="BLMStrap">Bugard Leather Strap +1</var>
		<var name="RDMStrap">Raptor Leather Strap +1</var>
		<var name="SCHStrap">Bugard Leather Strap +1</var>
		<var name="WHMStrap">Staff Strap</var>
		<var name="SMNStrap">Staff Strap</var>
	</variables>
	<rules>
<!--Rule: Correct Torque for Spells-->
		<if Skill="EnfeeblingMagic">
			<action type="equip">
				<neck>Enfeebling Torque</neck>
			</action>
		</if>
		<elseif Skill="EnhancingMagic">
			<action type="equip">
				<neck>Enhancing Torque</neck>
			</action>
		</elseif>		
		<elseif Skill="DarkMagic">
			<action type="equip">
				<neck>Dark Torque</neck>
			</action>
		</elseif>
		<elseif Skill="DivineMagic">
			<action type="equip">
				<neck>Divine Torque</neck>
			</action>
		</elseif>
		<elseif Skill="ElementalMagic">
			<action type="equip">
				<neck>Elemental Torque</neck>
			</action>
		</elseif>
<!--Rule: Dark Staff/Obi-->	
		<if NotStatus="Engaged" TPLT="20" spell="Bio*|Sleep*|Drain*|Aspir*">
			<action type="equip">
				<main>$%SpellElementStaff</main>
				<sub>$%MainJobStrap</sub>
			</action>
			<if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
				<action type="equip">
					<waist>$%SpellElementObi</waist>
				</action>
			</if>
		</if>
<!--Rule: Cure Staff/Obi-->	
		<elseif NotStatus="Engaged" TPLT="20" spell="Cure*|Cura*">
			<action type="equip">
				<main>$CureStaff</main>
				<sub>$%MainJobStrap</sub>
			</action>
			<if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
				<action type="equip">
					<waist>$%SpellElementObi</waist>
				</action>
			</if>			
		</elseif>
<!--Rule: Elemental Staff/Obi/Tonban-->	
		<elseif NotStatus="Engaged" TPLT="20" skill="ElementalMagic|EnfeeblingMagic">
			<action type="equip">
				<main>$%SpellElementStaff</main>
				<sub>$%MainJobStrap</sub>
			</action>
			<if spell="Bli*|Fre*|Aer*|Tor*|Sto*|Qua*|Thu*|Bur*|Wat*|Flo*|Fir*|Fla*|*helix">
				<if MPPAftercastLT="50">
					<action type="equip">
						<neck>Uggalepih Pendant</neck>
					</action>
				</if>
				<if advanced='("%SpellElement"=="%DayElement")'>
					<action type="equip">
						<waist>$%SpellElementObi</waist>
						<legs>Sorcerer's Tonban</legs>
					</action>
				</if>
				<elseif advanced='("%SpellElement"=="%WeatherElement")'>
					<action type="equip">
						<waist>$%SpellElementObi</waist>
					</action>
				</elseif>
			</if>
 
		</elseif>
	</rules>
</spellcast>


The Code below is another way of doing the same thing. It isn't as clean to look at, but it's much simpler to understand for someone who is new to SpellCast.

<?xml version="1.0" ?>
<spellcast>
	<config	Debug="true" />
	<sets>
		<group name="default">
		</group>
	</sets>
	<rules>
		<if NotStatus="Engaged" skill="ElementalMagic|EnfeeblingMagic">
			<if Element="Ice">
				<action type="equip">
					<main>Aquilo's Staff</main>
				</action>
				<if spell="Bliz*|Freeze*">
					<if mode="OR" weather="Ice" day="Iceday">
						<action type="equip">
							<waist>Hyorin Obi</waist>
						</action>
					</if>
				</if>
			</if>
			<elseif Element="Thunder">
				<action type="equip">
					<main>Jupiter's Staff</main>
				</action>
				<if spell="Thund*|Burst*">
					<if mode="OR" weather="Thunder" day="Lightningday">
						<action type="equip">
							<waist>Rairin Obi</waist>
						</action>
					</if>
				</if>
			</elseif>
			<elseif Element="Fire">
				<action type="equip">
					<main>Vulcan's Staff</main>
				</action>
				<if spell="Fir*|Flare*">
					<if mode="OR" weather="Fire" day="Firesday">
						<action type="equip">
							<waist>Karin Obi</waist>
						</action>
					</if>
 
				</if>
			</elseif>
			<elseif Element="Earth">
				<action type="equip">
					<main>Terra's Staff</main>
				</action>
				<if spell="Ston*|Quake*">
					<if mode="OR" weather="Earth" day="Earthsday">
						<action type="equip">
							<waist>Dorin Obi</waist>
						</action>
					</if>
				</if>
			</elseif>
			<elseif Element="Water">
				<action type="equip">
					<main>Water Staff</main>
				</action>
				<if spell="Water*|Flood*">
					<if mode="OR" weather="Water" day="Watersday">
						<action type="equip">
							<waist>Suirin Obi</waist>
						</action>
					</if>
				</if>
			</elseif>
			<elseif Element="Wind">
				<action type="equip">
					<main>Wind Staff</main>
				</action>
				<if spell="Aero*|Tornado*">
					<if mode="OR" weather="Wind" day="Windsday">
						<action type="equip">
							<waist>Furin Obi</waist>
						</action>
					</if>
				</if>
			</elseif>
		</if>
	</rules>
</spellcast>
plugins/spellcast/userxml/blm/apollyon_obi.txt · Last modified: 2008/06/24 16:26 by apollyon
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0