GenesisX's Init.txt & Default.xml (7/22/09)

I'm posting this to provide functional examples of using triggers and switches with spellcast. Also to provide other examples as well.

Init.txt

//
// Allow TPA
keyboard_allowmmf 1

//
//Console Setup
console_position 15 50
console_color 255 255 255 0
console_displayactivity 1
console_fadedelay 500
console_chatopen 1
console_screendir screenshots

//
//Game Setup
game_forceambientlight 0
game_ambientlight 255 120 120 120
game_gamma 70
game_allowsetcursorpos 0
game_exittype 1
game_exitprompt 1
game_allowresize 0

//
//showfps 0
//fps_position 5 5

//
// Bind Screenshot and Paste
bind sysrq screenshot jpg
bind ^v paste

//
//Sets ConsoleBG Background Position
//consolebg position 15 50

//
// Load Plugins
pause 1;echo Trying to update resources;updateresources;pause 2;
echo Loading Plugins:
load silence
load distance
load tparty
load cancel
load spellcast;pause 1
load blinkmenot
load autoexec
load run

//
// Load alias.txt
echo Init.txt Loaded
exec alias.txt;

Alias.txt

//
// Spellcast auto binder for Numpad.
bind %numpad. cyc.pro; 
alias cyc.pro cyc2;
alias cyc1 exec alias.txt;alias cyc.pro cyc2;
alias cyc2 input /magic "Stonega V";alias cyc.pro cyc3;
alias cyc3 load spellcast;alias cyc.pro cyc4;
alias cyc4 input /magic "Stonega V";

//
// Custom Alias
alias reset clearaliases;clearbinds;console_clear;pause 2;exec init.txt;
aloas radar run "Apradar/ApRadar.exe" /IRULE 

//
// Campaign Map Key
bind %pagedown input /ma "Aeroga V";
alias region.toggle region.toggle.1;
alias region.toggle.1 region.set;alias region.toggle region.toggle.2;
alias region.toggle.2 setkey escape down;wait .1;setkey escape up;alias region.toggle region.toggle.1;

alias region.set null;
alias region.set.1 input /regionmap;
alias region.set.2 input /besiegemap;
alias region.set.3 input /campaignmap;
alias region.setup.1 alias region.set region.set.1;
alias region.setup.2 alias region.set region.set.2;
alias region.setup.3 alias region.set region.set.3;

//
// Cut Scene Skipper [STARTSPAM]

// -setup processes
alias enterkey setkey enter down;wait .3;setkey enter up;wait .3;
alias enterspam enterkey;enterkey;enterkey;enterkey;
alias enterspam1 enterspam;enterspam;enterspam;enterspam;startover;
alias startover input /tell <me> ..x
alias endthis ae unregister 57747;
alias startthis alias startover input /tell <me> ..x

// -setup trigger
alias startspam startspam.0;
alias startspam.0 startspam.1;pause 1;startthis;alias startspam startspam.2;input /tell <me> ..x
alias startspam.1 ae register 57747 chat_tell_*_* enterspam1;
alias startspam.2 endthis;alias startspam startspam.0;

alias openmap1 input /campaignmap; alias maptoggle1 closemap1;pause 1;input /tell <me> ..x;
alias closemap1 setkey escape down;wait .1;setkey escape up; alias maptoggle1 openmap1;
alias maptoggle1 openmap1;

// Area Map Key
bind %delete maptoggle2
alias openmap2 input /map; alias maptoggle2 closemap2;
alias closemap2 setkey escape down;wait .1;setkey escape up; alias maptoggle2 openmap2;
alias maptoggle2 openmap2;

// Helpful Buttons Assignments
bind %home input /targetnpc;
bind %end input /assist <t>;
alias assist sc var set assist;
alias tells sc var set tells ;
alias tell input /chatmode tell $tells;
alias set sc var set;


//.SC EnSpell 1 / 2 Variable Switch
alias enspell enset;
alias enset enset.1;
alias enset.1 sc var set enset 1;input /echo Using EnSpell II's;alias enset enset.2;
alias enset.2 sc var set enset 0;input /echo Using EnSpell I's;alias enset enset.3;
alias enset.3 sc var set enset 9;input /echo Using EnSpell Off;alias enset enset.1;

// Spellcast auto binder
bind %numpad. cyc.pro; 
alias cyc.pro cyc4;
alias cyc1 exec alias.txt;alias cyc.pro cyc2;
alias cyc2 input /magic "Stonega V";alias cyc.pro cyc3;
alias cyc3 load spellcast;alias cyc.pro cyc4;
alias cyc4 input /magic "Stonega V";

// These will make it so you do not move when typing numbers into chat with the numpad.
bind $numpad1 type 1
bind $numpad2 type 2
bind $numpad3 type 3
bind $numpad4 type 4
bind $numpad5 type 5
bind $numpad6 type 6
bind $numpad7 type 7
bind $numpad8 type 8
bind $numpad9 type 9

// Echo Ready
alias tellmp input /t sandman My Mp is MP=<mp> <mpp>
alias press.escape setkey escape down;pause 0.1;setkey escape up;

blinkmenot alwaysself on;
//drawdistance set 20
echo Ready!;

Default.xml

<?xml version="1.0" ?>
<spellcast>
	<config RequireVersion="2.22" Debug="True" HideErrors="false" ShowGearSwaps="False" />
 
	 <sets>
		<group name="RDM" Default="true">
			<set name="RWStandard">
				<main>Ice Staff</main>
				<sub>Bugard Strap +1</sub>
				<ammo>Fortune Egg</ammo>
				<neck>Grandiose Chain</neck>
				<lear>Moldavite Earring</lear>
				<rear>Antivenom Earring</rear>
				<body>Vermillion Cloak</body>
				<hands>Cobra Gloves</hands>
				<lring>Demon's Ring</lring>
				<rring>Demon's Ring</rring>
				<back>Red Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Vendor's Slops</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="RWEngaged" BaseSet="RWStandard">
				<sub>Sword Strap</sub>
				</set>
			<set name="RWResting" BaseSet="RWStandard">
				<main>Dark Staff</main>
				<sub>Sword Strap</sub>
				<head>Warlock's Chapeau</head>
				<neck>Grandiose Chain</neck>
				<lear>Stoic Earring</lear>
				<rear>Antivenom Earring</rear>
				<body>Errant Hpl.</body>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Errant Slops</legs>
				</set>
 
			<set name="RNStandard">
				<ammo>Fortune Egg</ammo>
				<head>Warlock's Chapeau</head>
				<neck>Spike Necklace</neck>
				<lear>Harvest Earring</lear>
				<rear>Moldavite Earring</rear>
				<body>Goliard Saio</body>
				<hands>Cobra Gloves</hands>
				<lring>Astral Ring</lring>
				<rring>Astral Ring</rring>
				<back>Smilodon Mantle</back>
				<waist>Warwolf Belt</waist>
				<legs>Vendor's Slops</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="RNResting">
				<ammo>Fortune Egg</ammo>
				<head>Warlock's Chapeau</head>
				<neck>Grandiose Chain</neck>
				<lear>Stoic Earring</lear>
				<rear>Antivenom Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Errant Cuffs</hands>
				<lring>Astral Ring</lring>
				<rring>Astral Ring</rring>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Errant Slops</legs>
				<feet>Errant Pigaches</feet>
				</set>
			<set name="RNMagic">
				<neck>Philomath Stole</neck>
				<lear>Abyssal Earring</lear>
				<rear>Morion Earring</rear>
				<lring>Goshenite Ring</lring>
				<rring>Zircon Ring</rring>
				<back>Red Cape</back>
				<waist>Mantra Belt</waist>
				</set>
 
			<set name="SMNStandard">
				<main>Apollo's Staff</main>
				<sub>Bugard Strap +1</sub>
				<ammo>Fortune Egg</ammo>
				<neck>Fenrir's torque</neck>
				<lear>Antivenom Earring</lear>
				<rear>Insomnia Earring</rear>
				<body>Vermillion Cloak</body>
				<hands>Cobra Gloves</hands>
				<lring>Evoker's Ring</lring>
				<rring>Astral Ring</rring>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Errant Slops</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="SMNResting" BaseSet="SMNStandard">
				<main>Dark Staff</main>
				<sub>Staff Strap</sub>
				<head>Errant Hat</head>
				<neck>Grandiose Chain</neck>
				<lear>Stoic Earring</lear>
				<rear>Antivenom Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Errant Cuffs</hands>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Errant Slops</legs>
				<feet>Errant Pigaches</feet>
				</set>
			<set name="SMNEngauged" BaseSet="SMNStandard">
				<main>Apollo's Staff</main>
				<sub>Sword Strap</sub>
				<head>Opo-opo Crown</head>
				<neck>Fenrir's Torque</neck>
				<body>Goliard Saio</body>
				<hands>Cobra Gloves</hands>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Evoker's Spats</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="SMNbp" >
				<main>Apollo's Staff</main>
				<sub>Bugard Strap +1</sub>
				<neck>Fenrir's Torque</neck>
				<body>Goliard Saio</body>
				<hands>Cobra Gloves</hands>
				<rear>Moldavite Earring</rear>
				<lring>Evoker's Ring</lring>
				<back>Invigorating Cape</back>
				<legs>Evoker's Spats</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="SMNpet" >
				<main>Apollo's Staff</main>
				<sub>Staff Strap</sub>
				<neck>Fenrir's Torque</neck>
				<body>Vermillion Cloak</body>
				<hands>Carbuncle Mitts</hands>
				<lring>Evoker's Ring</lring>
				<back>Invigorating Cape</back>
				<legs>Evoker's Spats</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name="SMNheal" >
				<main>Apollo's Staff</main>
				<sub>Staff Strap</sub>
				<neck>Fenrir's Torque</neck>
				<body>Vermillion Cloak</body>
				<hands>Errant Cuffs</hands>
				<lring>Evoker's Ring</lring>
				<back>Invigorating Cape</back>
				<legs>Errant Slops</legs>
				<feet>Errant Pigaches</feet>
				</set>
 
			<set name = "BLMStandard" >
				<main>Ice Staff</main>
				<sub>Bugard Strap +1</sub>
				<ammo>Fortune Egg</ammo>
				<neck>Grandiose Chain</neck>
				<body>Black Cloak</body>
				<hands>Cobra Gloves</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Druid's Slops</legs>
				<feet>Cobra Crackows</feet>
				</set>
			<set name = "BLMInt" >
				<main>$%SpellElementff</main>
				<sub>$%SpellElementgp</sub>
				<ammo>Fortune Egg</ammo>
				<head>Errant Hat</head>
				<neck>Philomath Stole</neck>
				<lear>Morion Earring</lear>
				<rear>Abyssal Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Igqira Manillas</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Red Cape +1</back>
				<waist>Penitent's Rope</waist>
				<legs>Errant Slops</legs>
				<feet>Wizard's Sabots</feet>
				</set>
			<set name = "BLMResting" >
				<main>Dark Staff</main>
				<sub>Bugard Strap +1</sub>
				<ammo>Fortune Egg</ammo>
				<head>Errant Hat</head>
				<neck>Grandiose Chain</neck>
				<lear>Antivenom Earring</lear>
				<rear>Stoic Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Errant Cuffs</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Invigorating Cape</back>
				<waist>Hierarch Belt</waist>
				<legs>Errant Slops</legs>
				<feet>Errant Pigaches</feet>
				</set>
 
			<set name = "BLMDark" >
				<main>Ice Staff</main>
				<sub>Dark Grip</sub>
				<ammo>Fortune Egg</ammo>
				<head>Green Ribbon +1</head>
				<neck>Philomath Stole</neck>
				<lear>Morion Earring</lear>
				<rear>Abyssal Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Wizard's Gloves</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Red Cape +1</back>
				<waist>Penitent's Rope</waist>
				<legs>Wizard's Tonban</legs>
				<feet>Wizard's Sabots</feet>
				</set>
			<set name = "BlmHealing" >
				<main>Apollo's Staff</main>
				<sub>Bugard Strap +1</sub>
				<ammo>Fortune Egg</ammo>
				<head>Errant Hat</head>
				<neck>Philomath Stole</neck>
				<lear>Moldavite Earring</lear>
				<rear>Morion Earring</rear>
				<body>Errant Hpl.</body>
				<hands>Wizard's Gloves</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Red Cape +1</back>
				<waist>Penitent's Rope</waist>
				<legs>Errant Slops</legs>
				<feet>Wizard's Sabots</feet>
				</set>	
			<set name = "BLMEle1" >
				<main>Fourth Mace</main>
				<sub>Avalon Shield</sub>
				<ammo>Fortune Egg</ammo>
				<head>Green Ribbon +1</head>
				<neck>Elemental Torque</neck>
				<lear>Moldavite Earring</lear>
				<rear>Abyssal Earring</rear>
				<body>Igqira Weskit</body>
				<hands>Cobra Gloves</hands>
				<lring>Zircon Ring</lring>
				<rring>Wisdom Ring +1</rring>
				<back>Red Cape +1</back>
				<waist>Penitent's Rope</waist>
				<legs>Druid's Slops</legs>
				<feet>Cobra Crackows</feet>
				</set>				
		</group>
	</sets>	 
 
	<variables>
		<!--- Corrasponding Spirit per element--->
		<var Name="earthspirit">Earth Spirit</var>
		<var Name="thunderspirit">Light Spirit</var>
		<var Name="waterspirit">Water Spirit</var>
		<var Name="firespirit">Fire Spirit</var>	
		<var Name="icespirit">Ice Spirit</var> 
		<var Name="windspirit">Air Spirit</var>
		<var Name="lightspirit">Light Spirit</var>
		<var Name="darkspirit">Light Spirit</var>
 
		<!-- Corrasponding Grip per element -->
		<var name="Icegp">Ice Grip</var>
		<var name="Firegp">Fire Grip</var>
		<var name="Windgp">Bugard Strap +1</var>
		<var name="Earthgp">Earth Grip</var>
		<var name="Thundergp">Thunder Grip</var>
		<var name="Watergp">Water Grip</var>
		<var name="Lightgp">Bugard Strap +1</var>
		<var name="Darkgp">Dark Grip</var>
		<var name="Nonegp">Bugard Strap +1</var>
 
		<!-- Corrasponding Staff per element -->
		<var name="Iceff">Ice Staff</var>
		<var name="Fireff">Ice Staff</var>
		<var name="Windff">Wind Staff</var>
		<var name="Earthff">Earth Staff</var>
		<var name="Thunderff">Thunder Staff</var>
		<var name="Waterff">Water Staff</var>
		<var name="Lightff">Apollo's Staff</var>
		<var name="Darkff">Dark Staff</var>
		<var name="Noneff">Ice Staff</var>
 
		<!-- Corrasponding En-spell to day/weather -->
		<var name="Iceen">Enblizzard</var>
		<var name="Fireen">Enfire</var>
		<var name="Winden">Enaero</var>
		<var name="Earthen">Enstone</var>
		<var name="Thunderen">Enthunder</var>
		<var name="Wateren">Enwater</var>
		<var name="Lighten">Enthunder</var>
		<var name="Darken">Enthunder</var>
 
		<!-- Corrasponding Spikes to Day/Weather -->
		<var name="ThunderSpikes">Shock Spikes</var>
		<var name="IceSpikes">Ice Spikes</var>
		<var name="FireSpikes">Blaze Spikes</var>
		<var name="WSpikes">0</var>
 
		<!-- Misc Variables -->
		<var name="tricky">0</var>
		<var name="triggercast">1</var>
		<var name="enset">0</var>
		<var name="regionset">0</var>
 
		<var name="triggerfollow">0</var>
		<var name="triggerpl">0</var>
		<var name="triggermove">0</var>
		<var name="spellpattern">1</var>
		<var name="triggercure">80</var>
 
		<var name="HealingMagicSync">1</var>
		<var name="bdfmove">1</var>
	</variables>
 
	<rules>	
		<if skill="EnhancingMagic"> <!--- Stoneskin, Sneak fixer --->
			<if spell="Earthen Ward|Stoneskin">	<!--- Cancel Stoneskin on new cast --->
				<action type="Command" when="precast">cancel 37</action>
			</if>
			<elseif spell="Sneak" SpellTargetType="SELF">	<!--- Cancel Sneak on new cast --->
				<action type="equip" when="Precast">
				<back>Skulker's Cape</back>
				</action>
				<action type="Command" when="precast">cancel 71</action>
			</elseif>
			<elseif spell="Invisible">	<!--- Cancel Sneak on new cast --->
				<action type="equip" when="Precast">
				<back>Skulker's Cape</back>
				</action>
			</elseif>
		</if>
 
		<if skill="EnhancingMagic|HealingMagic" advanced='"$HealingMagicSync"=="1"'> <!--- Healing Magic Tier Sync --->
			<if mode="OR" mainjob="RDM" subjob="RDM"> <!--- Adjust Cure* by RDM LVL --->
				<if skill="HealingMagic">
					<if Spell="Cure*">
						<if mainjob="RDM">
							<if MLvlGT="47">
								<if Spell="Cure V">
									<action type="changespell" spell="Cure IV" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="25" MLvlLT="48">
								<if Spell="Cure V|Cure IV">
									<action type="changespell" spell="Cure III" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="13" MLvlLT="26">
								<if Spell="Cure V|Cure IV|Cure III">
									<action type="changespell" spell="Cure II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="2" MLvlLT="14">
								<if Spell="Cure V|Cure IV|Cure III|Cure II">
									<action type="changespell" spell="Cure" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="RDM" notmainjob="WHM">
							<if SLvlGT="47">
								<if Spell="Cure V">
									<action type="changespell" spell="Cure IV" />
								</if>
							</if>
							<elseif mode="AND" SLvlGT="25" SLvlLT="48">
								<if Spell="Cure V|Cure IV">
									<action type="changespell" spell="Cure III" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="13" SLvlLT="26">
								<if Spell="Cure V|Cure IV|Cure III">
									<action type="changespell" spell="Cure II" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="2" SLvlLT="14">
								<if Spell="Cure V|Cure IV|Cure III|Cure II">
									<action type="changespell" spell="Cure" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</if>
				</if>
				<elseif skill="EnhancingMagic">
					<if Spell="Protect*">
						<if mainjob="RDM">
							<if mode="AND" MLvlGT="46" MLvlLT="63">
								<if Spell="Protect IV">
									<action type="changespell" spell="Protect III" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="26" MLvlLT="47">
								<if Spell="Protect IV|Protect III">
									<action type="changespell" spell="Protect II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="6" MLvlLT="27">
								<if Spell="Protect IV|Protect III|Protect II">
									<action type="changespell" spell="Protect" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="RDM" NotMainJob="WHM">
							<if mode="AND" SLvlGT="26" SLvlLT="47">
								<if Spell="Protect IV|Protect III">
									<action type="changespell" spell="Protect II" />
								</if>
							</if>
							<elseif mode="AND" SLvlGT="6" SLvlLT="27">
								<if Spell="Protect IV|Protect III|Protect II">
									<action type="changespell" spell="Protect" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</if>
					<elseif Spell="Shell*">
						<if mainjob="RDM">
							<if mode="AND" MLvlGT="56" MLvlLT="68">
								<if Spell="Shell IV">
									<action type="changespell" spell="Shell III" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="36" MLvlLT="57">
								<if Spell="Shell IV|Shell III">
									<action type="changespell" spell="Shell II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="16" MLvlLT="37">
								<if Spell="Shell IV|Shell III|Shell II">
									<action type="changespell" spell="Shell" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="RDM" NotMainJob="WHM">
							<if mode="AND" SLvlGT="36">
								<if Spell="Shell IV|Shell III">
									<action type="changespell" spell="Shell II" />
								</if>
							</if>
							<elseif mode="AND" SLvlGT="16" SLvlLT="37">
								<if Spell="Shell IV|Shell III|Shell II">
									<action type="changespell" spell="Shell" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</elseif>
				</elseif>
			</if>
			<if mode="OR" mainjob="WHM" subjob="WHM"> <!--- Adjust spell by WHM LVL --->
				<if skill="HealingMagic">
					<if Spell="Cure*"> <!--- Adjust Cure* by WHM LVL --->
						<if mainjob="WHM">
							<if MLvlGT="40" MLvlLt="61">
								<if Spell="Cure V">
									<action type="changespell" spell="Cure IV" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="20" MLvlLT="41">
								<if Spell="Cure V|Cure IV">
									<action type="changespell" spell="Cure III" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="10" MLvlLT="21">
								<if Spell="Cure V|Cure IV|Cure III">
									<action type="changespell" spell="Cure II" />
								</if>
							</elseif>
							<elseif MLvlLT="11">
								<if Spell="Cure V|Cure IV|Cure III|Cure II">
									<action type="changespell" spell="Cure" />
								</if>
							</elseif>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<elseif SLvlGT="40" SLvlLt="61">
								<if Spell="Cure V">
									<action type="changespell" spell="Cure IV" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="20" SLvlLT="41">
								<if Spell="Cure V|Cure IV">
									<action type="changespell" spell="Cure III" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="10" SLvlLT="21">
								<if Spell="Cure V|Cure IV|Cure III">
									<action type="changespell" spell="Cure II" />
								</if>
							</elseif>
							<elseif SLvlLT="11">
								<if Spell="Cure V|Cure IV|Cure III|Cure II">
									<action type="changespell" spell="Cure" />
								</if>
							</elseif>
							<else>
								<action type="return" />
							</else>
						</elseif>
					</if>
					<elseif Spell="Cura*"> <!--- Adjust Curaga* by WHM LVL --->
						<if mainjob="WHM">
							<if MLvlGT="50" MLvlLt="71">
								<if Spell="Curaga IV">
									<action type="changespell" spell="Curaga III" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="30" MLvlLT="51">
								<if Spell="Curaga IV|Curaga III">
									<action type="changespell" spell="Curaga II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="15" MLvlLT="31">
								<if Spell="Curaga IV|Curaga III|Curaga II">
									<action type="changespell" spell="Curaga" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<elseif SLvlGT="50" SLvlLt="71">
								<if Spell="Curaga IV">
									<action type="changespell" spell="Curaga III" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="30" SLvlLT="51">
								<if Spell="Curaga IV|Curaga III">
									<action type="changespell" spell="Curaga II" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="15" SLvlLT="31">
								<if Spell="Curaga IV|Curaga III|Curaga II">
									<action type="changespell" spell="Curaga" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</elseif>
				</if>
				<elseif skill="EnhancingMagic">
					<if Spell="Protect*" notSpell="Protectra*">
						<if mainjob="WHM">
							<if mode="AND" MLvlGT="46" MLvlLT="63">
								<if Spell="Protect IV">
									<action type="changespell" spell="Protect III" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="26" MLvlLT="47">
								<if Spell="Protect IV|Protect III">
									<action type="changespell" spell="Protect II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="6" MLvlLT="27">
								<if Spell="Protect IV|Protect III|Protect II">
									<action type="changespell" spell="Protect" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<if mode="AND" SLvlGT="26">
								<if Spell="Protect IV|Protect III">
									<action type="changespell" spell="Protect II" />
								</if>
							</if>
							<elseif mode="AND" SLvlGT="6" SLvlLT="27">
								<if Spell="Protect IV|Protect III|Protect II">
									<action type="changespell" spell="Protect" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</if>
					<elseif Spell="Shell*" notSpell="Shellra*">
						<if mainjob="WHM">
							<if mode="AND" MLvlGT="56" MLvlLT="68">
								<if Spell="Shell IV">
									<action type="changespell" spell="Shell III" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="36" MLvlLT="57">
								<if Spell="Shell IV|Shell III">
									<action type="changespell" spell="Shell II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="16" MLvlLT="37">
								<if Spell="Shell IV|Shell III|Shell II">
									<action type="changespell" spell="Shell" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<if mode="AND" SLvlGT="36">
								<if Spell="Shell IV|Shell III">
									<action type="changespell" spell="Shell II" />
								</if>
							</if>
							<elseif mode="AND" SLvlGT="16" SLvlLT="37">
								<if Spell="Shell IV|Shell III|Shell II">
									<action type="changespell" spell="Shell" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</elseif>
					<elseif Spell="Protectra*">
						<if mainjob="WHM">
							<if mode="AND" MLvlGT="62" MLvlLT="75">
								<if Spell="Protectra V">
									<action type="changespell" spell="Protectra IV" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="46" MLvlLT="63">
								<if Spell="Protectra V|Protectra IV">
									<action type="changespell" spell="Protectra III" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="26" MLvlLT="47">
								<if Spell="Protectra V|Protectra IV|Protectra III">
									<action type="changespell" spell="Protectra II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="6" MLvlLT="27">
								<if Spell="Protectra V|Protectra IV|Protectra III|Protectra II">
									<action type="changespell" spell="Protectra" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<elseif mode="AND" SLvlGT="26">
								<if Spell="Protectra V|Protectra IV|Protectra III">
									<action type="changespell" spell="Protectra II" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="6" SLvlLT="27">
								<if Spell="Protectra V|Protectra IV|Protectra III|Protectra II">
									<action type="changespell" spell="Protectra" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</elseif>
					<elseif Spell="shellra*">
						<if mainjob="WHM">
							<if mode="AND" MLvlGT="62" MLvlLT="75">
								<if Spell="shellra V">
									<action type="changespell" spell="shellra IV" />
								</if>
							</if>
							<elseif mode="AND" MLvlGT="46" MLvlLT="63">
								<if Spell="shellra V|shellra IV">
									<action type="changespell" spell="shellra III" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="26" MLvlLT="47">
								<if Spell="shellra V|shellra IV|shellra III">
									<action type="changespell" spell="shellra II" />
								</if>
							</elseif>
							<elseif mode="AND" MLvlGT="6" MLvlLT="27">
								<if Spell="shellra V|shellra IV|shellra III|shellra II">
									<action type="changespell" spell="shellra" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</if>
						<elseif subjob="WHM" NotMainJob="RDM">
							<elseif mode="AND" SLvlGT="26">
								<if Spell="shellra V|shellra IV|shellra III">
									<action type="changespell" spell="shellra II" />
								</if>
							</elseif>
							<elseif mode="AND" SLvlGT="6" SLvlLT="27">
								<if Spell="shellra V|shellra IV|shellra III|shellra II">
									<action type="changespell" spell="shellra" />
								</if>
							</elseif>
							<else>
								<action type="addtochat">You do not meet the level requirements for this spell.</action>
							</else>
						</elseif>
					</elseif>
				</elseif>
			</if>
		</if>
 
		<elseif spell="Waterga IV"> <!--- trigger Power Level --->
			<if SpellTargetType="none|self" advanced='"$triggermove"=="1"'>
				<action type="var" cmd="set triggerfollow 0" />
				<action type="var" cmd="set triggermove 0" />
				<action type="command">setkey numpad8 up</action>
				<action type="cancelspell" />
				<action type="return" />
			</if>			
			<elseif SpellTargetType="PLAYER" advanced='"$triggerpl"=="1"'>
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>			
				<elseif notSpellTargetHPPGT="$triggercure" SpellTargetDistanceLT="20" Spelltargettype="PLAYER">
					<action type="changespell" spell="cure II" />
				</elseif>
				<elseif SpellTargetDistanceGT="10" SpellTargetDistanceLT="30">
						<if advanced='"$triggerfollow"=="0"'>
							<action type="var" cmd="set triggerfollow 1" />
							<action type="var" cmd="set triggermove 1" />
							<action type="command">input /lockon</action>
							<action type="command">setkey numpad8 down</action>
							<action type="cancelspell" />
							<action type="return" />
						</if>
						<else>
							<action type="cancelspell" />
							<action type="return" />
						</else>
				</elseif>
				<elseif mode="OR" SpellTargetDistanceLT="10" SpellTargetDistance="10">
						<if advanced='"$triggerfollow"=="1"'>
							<action type="var" cmd="set triggerfollow 0" />
							<action type="var" cmd="set triggermove 0" />
							<action type="command">input /lockon</action>
							<action type="command">setkey numpad8 up</action>
							<action type="cancelspell" />
							<action type="return" />
						</if>
						<else>
							<action type="cancelspell" />
							<action type="return" />
						</else>
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
			<elseif SpellTargetType="player" SpellTargetDistanceLT="6">
				<action type="var" cmd="set triggerfollow 0" />
				<action type="var" cmd="set triggermove 0" />
				<action type="command">setkey numpad8 up</action>
				<action type="cancelspell" />
				<action type="return" />
			</elseif>
			<else>
				<action type="cancelspell" />
				<action type="return" />
			</else>
		</elseif>
 
		<elseif spell="Aeroga V"> <!--- Region Key BROKEN --->
			<!--- Detect IF CampaignArea --->
			<if area = "*[S]*|Ruhotz*|Everbloom*|*Reverie" advanced='"$regionset"!="1"'>
				<action type="var" cmd="set regionset 1" />
				<action type="Command">region.setup.3;pause 0.2;region.toggle</action>
				<action type="cancelspell" />
				<action type="return" />
			</if>
			<!--- Detect IF BesigedArea --->
			<elseif area = "Nashmau|*Reef|*Mire|Hazhalm*|Ilrusi*|Leujaoam*|Nashmau|Periqia|Talacca*|Ashu*|Halvung|Lebros*|*Zhayolm|Navukgo*|Aydeewa*|Jade*|Mamook|Mamool*|Wajaom*|Alzadaal*|Nyzul*|Silver*|Arrapago*|Bhaflau*|Zhayolm*|*Whitegate|Al Zahbi|Bhaflau*|*Colosseum" advanced='"$regionset"!="2"'>
				<action type="var" cmd="set regionset 2" />
				<action type="Command">region.setup.2;pause 0.2;region.toggle</action>
				<action type="cancelspell" />
				<action type="return" />
			</elseif>
			<!--- Detect IF Other Misc Area --->
			<elseif area = "*Transference*|Promyvion*|Spire*|Apollyon|Temenos|Dynamis*|Chocobo Circuit|Diorama*|Mordion*|Walk of*|*Airship|Ship*|Open sea*|Silver Sea*|Manaclipper|Phanauet*" advanced='"$regionset"!="3"'>
				<action type="var" cmd="set regionset 3" />
				<action type="cancelspell" />
				<action type="return" />
			</elseif>
			<!--- If no above critera match, area must be RegionMap --->
			<else>
				<if advanced='"$regionset"!="4"'>
					<action type="var" cmd="set regionset 4" />
					<action type="Command">region.setup.1;pause 0.2;region.toggle</action>
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<else>
					<action type="Command">region.toggle</action>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</else>
		</elseif>
 
		<elseif spell="Stonega V" advanced='"$triggercast"=="1"'> <!--- One Button Multi Key --->
			<if mainjob="SMN">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif nottplt="100" status="engaged" TargetDistanceLT="4.0" >
						<action type="changespell" spell="Retribution" />
						<action type="command">wait 1;ae regonceq 23456 (regex)(tp_...)(/regex) input /ma "Stonega V"</action>
				</elseif>
				<elseif notbuffactive="reraise" buffactive="Allied Tags">
					<action type="changespell" spell="reraise" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="stoneskin">
					<action type="changespell" spell="stoneskin" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif nothppgt="80">
					<action type="changespell" spell="Cure III" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="Protect">
					<action type="changespell" spell="Protect II"/>
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="regen" nothppgt="90">
					<action type="changespell" spell="regen" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="reraise">
					<action type="changespell" spell="reraise" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</if>
 
			<elseif job="RDM/NIN|RDM/WHM|RDM/BLM">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif nottplt="100" status="engaged" TargetDistanceLT="4.0" notarea="Dynam*">
						<action type="changespell" spell="shadowstitch" />
						<action type="command">wait 1;ae regonceq 23456 (regex)(tp_...)(/regex) input /ma "Stonega V"</action>
				</elseif>
				<elseif nothppgt="60" advanced='"$tricky"=="1"'>
					<action type="changespell" spell="Cure IV" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="refresh">
					<action type="changespell" spell="Refresh"/>
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="Protect">
					<action type="changespell" spell="Protect IV"/>
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="en*" notarea="Dynam*" advanced='"$Enset"=="0"'>
						<action type = "ChangeSpell" Spell = "$%DayElementen"/>
							<if Weather ="water|fire|earth|wind|ice|thunder|*x2" NotWeather="None|Light*|Dark*">
								<action type = "ChangeSpell" Spell = "$%WeatherElementen"/>
							</if>
						<action type="Changetarget" target="&lt;me&gt;"/>		
				</elseif>
				<elseif notbuffactive="en*" notarea="Dynam*" advanced='"$Enset"=="1"'>
						<action type = "ChangeSpell" Spell = "$%DayElementen II"/>
							<if Weather ="water|fire|earth|wind|ice|thunder|*x2" NotWeather="None|Light*|Dark*">
								<action type = "ChangeSpell" Spell = "$%WeatherElementen II"/>
							</if>
						<action type="Changetarget" target="&lt;me&gt;"/>		
				</elseif>
				<elseif notbuffactive="stoneskin">
					<action type="changespell" spell="stoneskin" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="regen" nothppgt="90" advanced='"$tricky"=="1"' job="RDM/WHM" >
					<action type="changespell" spell="regen" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="composure">
					<action type="changespell" spell="composure"/>
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif notbuffactive="haste" notarea="Dynam*">
					<if buffactive="slow">
						<if job="RDM/WHM">
							<action type="changespell" spell="Erase" />
							<action type="Changetarget" target="&lt;me&gt;"/>
						</if>
					</if>
					<else>
						<action type="changespell" spell="haste" />
						<action type="Changetarget" target="&lt;me&gt;"/>
					</else>
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
 
			<elseif job="BLM/NIN">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif notbuffactive="Copy Image">
					<action type="changespell" spell="Utsusemi: Ichi" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="1"'> <!--- BLM MAGIC TIER 3 Casting --->
					<action type="var" cmd="set Spellpattern 2" />
					<action type="changespell" spell="Stone III" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="2"'>
					<action type="var" cmd="set Spellpattern 3" />
					<action type="changespell" spell="Water III" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="3"'>
					<action type="var" cmd="set Spellpattern 4" />
					<action type="changespell" spell="Aero III" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="4"'>
					<action type="var" cmd="set Spellpattern 5" />
					<action type="changespell" spell="Blizzard III" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="5"'>
					<action type="var" cmd="set Spellpattern 6" />
					<action type="changespell" spell="Thunder III" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="6"'>
					<action type="var" cmd="set Spellpattern 1" />
					<action type="changespell" spell="Fire III" />
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
 
			<elseif job="BLM/WHM|BLM/RDM">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif advanced='"$Spellpattern"=="1"' > <!--- BLM MAGIC TIER 3 Casting --->
					<action type="var" cmd="set Spellpattern 2" />
					<action type="changespell" spell="Stone" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="2"'>
					<action type="var" cmd="set Spellpattern 3" />
					<action type="changespell" spell="Water" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="3"'>
					<action type="var" cmd="set Spellpattern 4" />
					<action type="changespell" spell="Aero" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="4"'>
					<action type="var" cmd="set Spellpattern 5" />
					<action type="changespell" spell="Blizzard" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="5"'>
					<action type="var" cmd="set Spellpattern 6" />
					<action type="changespell" spell="Thunder" />
				</elseif>
				<elseif advanced='"$Spellpattern"=="6"'>
					<action type="var" cmd="set Spellpattern 1" />
					<action type="changespell" spell="Fire" />
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
 
			<elseif job="MNK/WAR|MNK/NIN">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif nottplt="100" status="engaged" TargetDistanceLT="4.0" notarea="Dynam*">
					<action type="changespell" spell="One Inch Punch" />
					<action type="Changetarget" target="&lt;t&gt;"/>
					<action type="command">wait 1;ae regonceq 23456 (regex)(tp_...)(/regex) input /ma "Stonega V"</action>
				</elseif>
				<elseif advanced='"$bdfmove"=="1"' notbuffactive="Copy Image">
					<action type="var" cmd="set bdfmove 2" />
					<action type="changespell" spell="Utsusemi: Ichi" />
				</elseif>
				<elseif advanced='"$bdfmove"=="2"'>
					<action type="var" cmd="set bdfmove 3" />
					<action type="changespell" spell="Boost" />
				</elseif>
				<elseif advanced='"$bdfmove"=="3"'>
					<action type="var" cmd="set bdfmove 4" />
					<action type="changespell" spell="Dodge" />
				</elseif>
				<elseif advanced='"$bdfmove"=="4"'>
					<action type="var" cmd="set bdfmove 1" />
					<action type="changespell" spell="Focus" />
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
 
			<elseif job="THF/WAR">
				<if status="resting">
					<action type="cancelspell" />
					<action type="return" />
				</if>
				<elseif notbuffactive="Sneak Attack" >
					<action type="changespell" spell="Sneak Attack" />
					<action type="Changetarget" target="&lt;me&gt;"/>
				</elseif>
				<elseif nottplt="99" status="engaged" TargetDistanceLT="4.0">
					<action type="changespell" spell="Burning Blade" />
					<action type="Changetarget" target="&lt;t&gt;"/>
				</elseif>
				<else>
					<action type="cancelspell" />
					<action type="return" />
				</else>
			</elseif>
		</elseif>
 
		<elseif mainjob="SMN">
			<if spell="triggerset">	<!--- Status Gear Swaps --->
				<action type="equip" when="resting"  set="SMNResting" />
				<action type="equip" when="engaged"  set="SMNEngauged" />
				<action type="equip" when="idle"  set="SMNStandard" />
			</if>
			<elseif type="BloodPactRage">
				<action type="postdelay" delay="7" />
				<action type="equip" when="postcast"  set="SMNpet" />
				<action type="equip" when="Precast"  set="SMNbp" />
			</elseif>
			<elseif skill="SummoningMagic">
				<action type="midcastdelay" delay="2" />
				<action type="equip" when="Precast"  set="SMNpet" />
				<if Spell="Light Spirit">	<!-- Change Light Spirit to the correct %DayElementSpirit Varaible --->
					<action type="ChangeSpell" Spell="$%DayElementspirit" />
				</if>
			</elseif>
			<elseif skill="HealingMagic">	<!--- Equipt HealingMagic Gear --->
				<action type="midcastdelay" delay="2" />
				<action type="equip" when="postcast"  set="SMNpet" />
				<action type="equip" when="Precast"  set="SMNheal" />
			</elseif>
		</elseif>
 
		<elseif job="RDM/NIN|RDM/WHM|RDM/BLM">
			<if spell="triggerset">	<!--- Status Gear Swaps --->
				<action type="equip" when="resting"  set="RNResting" />
				<action type="equip" when="idle|engaged"  set="RNStandard" />
			</if>
		</elseif>
 
		<elseif mainjob="BLM">
			<if spell="triggerset">	<!--- Status Gear Swaps --->
				<action type="equip" when="resting"  set="BLMResting" />
				<action type="equip" when="idle|postcast|engaged"  set="BLMStandard" />
			</if>
			<elseif skill="HealingMagic">	<!--- Equipt HealingMagic Gear --->
				<action type="midcastdelay" delay="1" />
				<action type="equip" when="precast"  set="BLMEle1" />
				<action type="equip" when="midcast"  set="BLMHealing" />
				<action type="equip" when="postcast"  set="BLMStandard" />
			</elseif>
			<elseif spell="Sleep*|Drain|Aspir|Bio*|Blind|Stun|Poison">
				<action type="equip" when="precast"  set="BLMDark" />
				<action type="equip" when="midcast"  set="BLMEle1" />
			</elseif>
			<elseif skill="ElementalMagic">
				<action type="equip" when="Precast"  set="BLMInt" />
				<action type="equip" when="midcast"  set="BLMEle1" />
				<action type="equip" when="postcast"  set="BLMStandard" />
			</elseif>
		</elseif>
	</rules>
</spellcast>
plugins/spellcast/userxml/multi/genesisxs_xml.txt · Last modified: 2011/05/07 18:33 by genesisx
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