Code:<action type="command">alias Bliz4 input /ma "Blizzard 4" <t>;</action>
Code:<action type="command">alias Bliz4 input /ma "Blizzard 4" <t>;</action>
I'm working on a very basic Ranger xml, but I'm having a problem that I can't figure out. If I load up the xml in a browser it tells me that my </rules> tag doesn't match the starting <if> tag. I've looked it over but I can't see any open <if> tags and I'm hoping that someone here can see something I'm missing. xml in the spoiler.
Spoiler: show
Just fix this and you should be set. It's on line 131.
Code:<if spell="Barrage"> <if subjobs="NIN"> <action type="equip" when="precast" set="NINBarrage" /> </if> </if>
Thanks a ton, I knew it was something simple I was missing, but I'd been staring at it too long to see it.
If you aren't using it already... I'd suggest trying notepad++ with xml tools loaded. it's a lot more convenient and you can spot these errors faster.
My stoneskin puts all my MND gear on, but puts on Terra's Staff instead of Kirin's Pole on. Why?
My XML:
Code:<spellcast xmlns:xi="http://www.w3.org/2001/XInclude"> <config RequireVersion="2.3" /> <variables> <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. --> <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust --> <var name="SleepTimers">0</var> <!-- use BLM AF2 pants or not? Set to 0 if you do not have it --> <var name="BLMAF2Pants">0</var> <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location --> <var name="Ring">0</var> <!-- use Ugg Pendant or not? set to 0 if you do not have it. --> <var name="UggPendant">1</var> <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob --> <var name="RDMRingHP">758</var> <var name="WHMRingHP">735</var> <var name="NINRingHP">758</var> <!-- Elemental Grips, set to 1 for each you have --> <var name="LightGrip">0</var> <var name="DarkGrip">0</var> <var name="ThunderGrip">0</var> <var name="IceGrip">0</var> <var name="FireGrip">0</var> <var name="WindGrip">0</var> <var name="WaterGrip">0</var> <var name="EarthGrip">0</var> <!-- Elemental Staffs, input what staff to use for each element here --> <var name="IceStaff">Aquilo's Staff</var> <var name="DarkStaff">Pluto's Staff</var> <var name="ThunderStaff">Jupiter's Staff</var> <var name="WindStaff">Auster's Staff</var> <var name="FireStaff">Fire Staff</var> <var name="EarthStaff">Terra's Staff</var> <var name="LightStaff">Apollo's Staff</var> <var name="WaterStaff">Water Staff</var> <!-- Elemental Obi's, set to 1 for the ones you have. --> <var name="DarkObi">0</var> <var name="LightObi">0</var> <var name="ThunderObi">1</var> <var name="IceObi">1</var> <var name="FireObi">0</var> <var name="WindObi">0</var> <var name="WaterObi">0</var> <var name="EarthObi">0</var> </variables> <sets> <group name="Main" default="yes"> <set name="Idle"> <main>$EarthStaff</main> <sub>Bugard Strap +1</sub> <ammo>Phtm. Tathlum</ammo> <head>Wizard's Petasos</head> <neck>Uggalepih Pendant</neck> <lear>Moldavite Earring</lear> <rear>Sorcerer's Earring</rear> <body>Sorcerer's Coat</body> <hands>Zenith Mitts</hands> <lring>Jelly Ring</lring> <rring>Omniscient Ring</rring> <back>Cheviot Cape</back> <waist>Penitent's Rope</waist> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="FastCast"> </set> <set name="Resting" BaseSet="Idle"> <main>$DarkStaff</main> <head>Cobra Hat</head> <neck>Beak Necklace +1</neck> <lear>Relaxing Earring</lear> <rear>Magnetic Earring</rear> <body>Errant Hpl.</body> <hands>Oracle's Gloves</hands> <back>Invigorating Cape</back> <waist>Qiqirn Sash +1</waist> <legs>Baron's Slops</legs> <feet>Avocat Pigaches</feet> </set> <set name="MinusHP"> </set> <set name="FullDamage"> <sub>Bugard Strap +1</sub> <ammo>Phantom Tathlum</ammo> <neck>Elemental Torque</neck> <lear>Moldavite Earring</lear> <rear>Magnetic Earring</rear> <head>Demon Helm +1</head> <body>Igqira Weskit</body> <hands>Zenith Mitts</hands> <lring>Diamond Ring</lring> <rring>Omniscient Ring</rring> <back>Prism Cape</back> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="INT" BaseSet="FullDamage"> <main lock="yes">Kirin's Pole</main> <hands>Errant Cuffs</hands> </set> <set name="HighResist" BaseSet="FullDamage"> <hands>Wizard's Gloves</hands> <neck>Elemental Torque</neck> </set> <set name="MidResist" BaseSet="FullDamage"> </set> <set name="LightResist" BaseSet="FullDamage"> </set> <set name="DarkMagic"> <head>Walahra Turban</head> <neck>Dark Torque</neck> <body>Sorcerer's Coat</body> <hands>Sorcerer's Gloves</hands> <waist>Headlong Belt</waist> <legs>Wizard's Tonban</legs> </set> <set name="EnfeeblingMagic"> <head>Igqira Tiara</head> <neck>Spider Torque</neck> <body>Wizard's Coat</body> <hands>Oracle's Gloves</hands> <legs>Igqira Lappa</legs> <feet>Avocat Pigaches</feet> </set> <set name="HealingMagic"> <head>Walahra Turban</head> <waist>Headlong Belt</waist> </set> <set name="DivineMagic" /> <set name="EnhancingMagic" BaseSet="Idle"> <main lock="yes">$EarthStaff</main> </set> <set name="Stoneskin"> <main lock="yes">Kirin's Pole</main> <head>Walahra Turban</head> <neck>Promise Badge</neck> <body>Errant Hpl.</body> <hands>Dvt. Mitts +1</hands> <waist>Penitent's Rope</waist> <feet>Mahatma Pigaches</feet> <back>Prism Cape</back> </set> <set name="Shadow"> <main lock="yes">$EarthStaff</main> <head>Walahra Turban</head> <waist>Headlong Belt</waist> </set> <set name="Blink"> <main lock="yes">$EarthStaff</main> <head>Walahra Turban</head> <waist>Headlong Belt</waist> </set> </group> </sets> <rules> <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*"> <action type="return" /> </if> <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) --> <equip when="Idle|aftercast|zoning" set="Idle" /> <if Area="*Remnants|Ilrusi Atoll|Lebros Cavern|Leujaoam Sanctum|Mamool Ja Training Grounds|Nyzul Isle|Periqia"> <equip when="idle|aftercast"><rring>Balrahn's Ring</rring></equip> </if> <!-- set of gear to equip when resting --> <action type="command" when="resting">sc set resting</action> <if Spell="Stun"> <!-- equip gear that helps stun, and nothing else --> <equip set="DarkMagic|FastCast"> <main>$ThunderStaff</main> </equip> </if> <else> <!-- equip fast cast gear --> <equip Set="FastCast" /> <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? --> <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love"> <if Advanced='"$%SpellElementGrip" == "1"'> <equip when="midcast"> <sub lock="true">%SpellElement Grip</sub> </equip> </if> </if> <!-- if were handling spells --> <if Skill="*Magic"> <!-- if this is elemental magic (nukes/dot's, then do special handling --> <if Skill="ElementalMagic"> <precastdelay delay="0.5"/> <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke"> <!-- equip elemental/INT gear for DoT's --> <equip when="precast|midcast" Set="INT" /> </if> <else> <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) --> <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya|Ouryu" NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="HighResist" /> </if> <else> <!-- if mob is not high resist, is it a mid resist mob? --> <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin" NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="MidResist" /> </if> <else> <!-- Normal mob, go full damage gear. --> <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket"> <if NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="LightResist" /> </if> <else> <equip when="precast|midcast" Set="FullDamage" /> </else> </if> <else> <equip when="precast|midcast" Set="FullDamage" /> </else> <!-- only equip pendant in situations you would equip full damage gear --> <if MPPAfterCastLT="50" Advanced="$UggPendant==1"> <equip when="midcast"> <neck lock="yes">Uggalepih Pendant</neck> </equip> </if> </else> <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. --> <if advanced='$Ring == 1'> <!-- make sure we have an HP variable set for current subjob --> <!--if Advanced='"$%SubJobRingHP" !="\$%SubJobRingHP"'--> <if Advanced='%HP > $%SubJobRingHP'> <!-- if you have too much HP at the time of casting, equip minus hp --> <equip set="MinusHP" /> </if> <!--/if--> <!--else> <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast --> <!--equip set="MinusHP" /> <!--/else--> <equip when="midcast"> <lring>Sorcerer's Ring</lring> </equip> </if> </else> </else> </if> <else> <!-- for any other type of spell, just equip matching set name. --> <equip when="precast|midcast" Set="Idle|%Skill" /> </else> </if> <else> <equip when="precast|midcast" Set="Idle" /> </else> <!-- Handle Elemental Obi's --> <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'> <if Element="Dark"> <equip when="midcast"> <waist lock="yes">Anrin Obi</waist> </equip> </if> <elseif Element="Light"> <equip when="midcast"> <waist lock="yes">Korin Obi</waist> </equip> </elseif> <elseif Element="Thunder"> <equip when="midcast"> <waist lock="yes">Rairin Obi</waist> </equip> </elseif> <elseif Element="Ice"> <equip when="midcast"> <waist lock="yes">Hyorin Obi</waist> </equip> </elseif> <elseif Element="Fire"> <equip when="midcast"> <waist lock="yes">Karin Obi</waist> </equip> </elseif> <elseif Element="Wind"> <equip when="midcast"> <waist lock="yes">Furin Obi</waist> </equip> </elseif> <elseif Element="Water"> <equip when="midcast"> <waist lock="yes">Suirin Obi</waist> </equip> </elseif> <elseif Element="Earth"> <equip when="midcast"> <waist lock="yes">Dorin Obi</waist> </equip> </elseif> </if> <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. --> <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'> <equip when="midcast"> <legs lock="yes">Sorcerer's Tonban</legs> </equip> </if> <!-- Timers for when sleep is wearing off. --> <if advanced='"$SleepTimers"="1"'> <if Spell="Sleep II|Sleepga II"> <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command> <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command> <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command> </if> <elseif Spell="Sleep|Sleepga"> <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command> <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command> </elseif> </if> <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin --> <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self"> <command when="midcast">cancel 71</command> <midcastdelay delay="1.8" /> </if> <if spell="Utsusemi*"> <equip when="precast|midcast" lock="yes" set="Shadow"/> </if> <if spell="Stoneskin"> <equip when="precast|midcast" lock="yes" set="Stoneskin"/> </if> <if spell="Blink"> <equip when="precast|midcast" lock="yes" set="Blink"/> </if> <if Spell="Sneak|Invisible" SpellTargetName="Virtuosus"> <equip when="precast|midcast"> <back lock="yes">Skulker's Cape</back> </equip> <midcastdelay delay="1.0" /> </if> <if spell="Utsusemi: Ichi" BuffActive="Copy Image"> <midcastdelay delay="3.0" /> <command when="midcast">cancel 66</command> </if> <elseif Spell="Stoneskin" BuffActive="Stoneskin"> <command when="midcast">cancel 37</command> <midcastdelay delay="4.8" /> </elseif> <!-- finally, equip our staff! --> <equip when="midcast"> <main>$%SpellElementStaff</main> </equip> </else> </rules> </spellcast>
Because in your Enhancing magic set, you have the line
Take out the lock and it should workCode:<main lock="yes">$EarthStaff</main>
i've been crashing a ton lately, mostly on war. sense my other char doesn't crash ever and the only differance is that one uses spellcast and the other doesn't, so i assume the crashing is due to spellcast. is there something wrong with this xlm?
<?xml version="1.0" ?>
<!--The above line tells applications reading the file that it is in XML format.-->
<!--Text within tags like this is a comment in XML-->
<spellcast>
<!--The above line specifies the SpellCast section of the XML file so SpellCast knows where to look when it opens the file-->
<config>
<!--Attributes associated with the config section control basic SpellCast settings-->
<!--This tag is usually closed on the same tag it is opened using a / before the closing greater than symbol-->
</config>
<sets>
<group name="Warrior" default="Yes">
<set name="Engaged">
<head>Walahra Turban</head>
<neck>Fortitude Torque</neck>
<lear>Assault Earring</lear>
<rear>Brutal Earring</rear>
<body>Adaman Hauberk</body>
<hands>Dusk Gloves</hands>
<lring>Rajas Ring</lring>
<rring>Iota Ring</rring>
<back>Cerberus Mantle</back>
<waist>Swift Belt</waist>
<legs>Byakko's Haidate</legs>
<feet>Aurum Sabatons</feet>
<ammo>$Ammo</ammo>
</set>
<set name="Askar" baseset="Engaged">
<hands>Hecatomb Mittens</hands>
<feet>Hermes' Sandals</feet>
<head>Askar Zucchetto</head>
</set>
<set name="Polearm" baseset="Askar">
<neck>Chivalrous Chain</neck>
</set>
<set name="RagingRush" baseset="Engaged">
<head>Champion's Galea</head>
<ammo>Fire Bomblet</ammo>
<neck>Aqua Gorget</neck>
<hands>Hecatomb Mittens</hands>
<legs>Ares's Flanchard</legs>
<feet>Hecatomb Leggings</feet>
<waist>Warwolf Belt</waist>
<body>Adaman Hauberk</body>
<rring>Ruby Ring</rring>
</set>
<set name="KingsJustice" baseset="Engaged">
<head>Champion's Galea</head>
<neck>Soil Gorget</neck>
<hands>Hecatomb Mittens</hands>
<legs>Ares's Flanchard</legs>
<waist>Warrior's Stone</waist>
<rring>Ruby Ring</rring>
<feet>Hecatomb Leggings</feet>
<ammo>Fire bomblet</ammo>
</set>
<set name="SteelCyclone" baseset="Engaged">
<head>Genbu's Kabuto</head>
<ammo>Fire Bomblet</ammo>
<neck>Aqua Gorget</neck>
<hands>Hecatomb Mittens</hands>
<feet>Hecatomb Leggings</feet>
<waist>Warwolf Belt</waist>
<rring>Ruby Ring</rring>
<body>Kirin's Osode</body>
<legs>Aurum Cuisses</legs>
</set>
<set name="Pentathrust" baseset="RagingRush">
<neck>Chivalrous Chain</neck>
<body>Adaman Hauberk</body>
<waist>Warrior's Stone</waist>
</set>
<set name="Waltz">
<ammo>Bibiki Seashell</ammo>
<head>Genbu's Kabuto</head>
<body>Kirin's Osode</body>
<hands>Koenig Handschuhs</hands>
<waist>Warwolf Belt</waist>
<legs>Aurum Cuisses</legs>
<rring>Iota Ring</rring>
<lring>Omega Ring</lring>
<lear>Melody Earring +1</lear>
<rear>Delta Earring</rear>
</set>
<set name="Recast">
<lear>Loquacious Earring</lear>
<body>Nuevo Coselete</body>
<head>Walahra Turban</head>
<hands>Dusk Gloves</hands>
<waist>Swift Belt</waist>
<legs>Byakko's Haidate</legs>
<feet>Aurum Sabatons</feet>
</set>
</group>
<!--This is where you would define your SpellCast equipment sets and groups-->
</sets>
<variables>
<!--This is where you would define custom variables for SpellCast-->
<var name="Ammo">Fire Bomblet</var>
<var name="Engaged">Engaged</var>
<var name="Idle">Askar</var>
</variables>
<rules>
<!--This is where you would define rules that tell SpellCast what to do and when-->
<action type="Equip" when="Engaged" set="$Engaged"/>
<action type="Equip" when="Idle" set="$Idle"/>
<if Equipmain="Engetsuto">
<action type="var" cmd="Set Ammo Fire Bomblet" />
<action type="var" cmd="Set Engaged Polearm" />
<action type="var" cmd="Set Idle Polearm"/>
</if>
<if Equipmain="Perdu Voulge">
<action type="var" cmd="Set Ammo Fire Bomblet" />
<action type="var" cmd="Set Engaged Engaged" />
<action type="var" cmd="Set Idle Askar"/>
</if>
<if Equipmain="Rune Chopper">
<action type="var" cmd="Set Ammo Fire Bomblet" />
<action type="var" cmd="Set Engaged Askar" />
<action type="var" cmd="Set Idle Askar"/>
</if>
<if equipmain="Fortitude Axe">
<action type="var" cmd="Set Ammo Virtue Stone" />
<action type="var" cmd="Set Engaged Engaged" />
<action type="var" cmd="Set Idle Askar"/>
</if>
<if spell="Warcry">
<castdelay delay=".15" />
<action type="Equip" when="Precast">
<head>Warrior's Mask</head>
</action>
<action type="Equip" when="Midcast" set="Engaged" />
</if>
<if type="Weaponskill">
<if SpellTargetDistanceGT="6">
<action type="CancelSpell"/>
<action type="return" />
</if>
<action type="Equip" when="Aftercast" set="$Engaged" />
<if spell="Raging Rush">
<if buffactive="Mighty Strikes">
<action type="Changespell" spell="King's Justice" />
</if>
<if Equipmain="Engetsuto">
<action type="Changespell" spell="Penta Thrust" />
</if>
<castdelay delay=".1" />
<action type="Equip" when="Precast" set="RagingRush" />
</if>
<if spell="King's Justice">
<castdelay delay=".1" />
<action type="Equip" when="Precast" set="KingsJustice" />
<if buffactive="Mighty Strikes">
<if buffactive="Refresh" equipmain="Perdu Voulge">
<action type="Equip" when="Aftercast" set="Askar">
<main>Rune Chopper</main>
</action>
</if>
</if>
<if Equipmain="Engetsuto">
<action type="Changespell" spell="Penta Thrust" />
</if>
</if>
<if spell="Steel Cyclone">
<castdelay delay=".1" />
<action type="Equip" when="Precast" set="SteelCyclone" />
</if>
<if spell="Penta Thrust">
<castdelay delay=".1" />
<action type="Equip" when="precast" set="PentaThrust"/>
</if>
</if>
<if Subjob="DNC">
<if spell="Curing Waltz|Curing Waltz II"><action type="Equip" when="precast" set="Waltz" /><action type="equip" when="postcast" set="Engaged" />
<if equipmain="Fortitude Axe"><action type="equip" when="aftercast"><ammo>Virtue Stone</ammo></action></if>
<elseif equipmain="Perdu Voulge|Rune Chopper"><action type="equip" when="aftercast"><ammo>Fire Bomblet</ammo></action></elseif>
</if>
</if>
<if spell="Utsusemi*">
<action type="Equip" when="Precast" set="Recast"/>
<if status="Idle"><action type="Equip" when="Aftercast" set="$Idle"/></if>
<if status="Engaged"><action type="Equip" when="Aftercast" set="$Engaged"/></if>
<if spell="Utsusemi: Ichi">
<action type="midcastdelay" delay="2.5" />
<action type="Command" when="midcast">cancel 66</action>
</if>
</if>
</rules>
</spellcast>
I crashed on spellcast too, it could really be anything, but the most likely scenario is it's accessing memory to check the status of something that is no longer in the same location, perhaps removing the BuffActive line from utsusemi: Ichi and just always using cancel 66 regardless... Perhaps removing the cancel command altogether, speculation for now, but you can try and see if that helps you![]()
Having trouble with my spellcast equipping the wrong gear during nukes, specifically head/hand/legs. For whatever reason about 50% of the time one of them does not swap back after it goes to latent and then puts on the appropriate gear. Sometimes it's only one, sometimes it's a combination of the two or all three at the same time. Based of Aikar's BLM XML.
Any help is appreciated.Code:<?xml version="1.0" ?> <!-- =================================================== || || Aikar's BLM SpellCast Template || || This file is designed to be easily used by others. || Simply editing in your own gear and modifying the variables up top || should be all that is needed to make use of this file. || || Please be sure to configure the variables prior to use. || || If you have any questions - Please post on the forums. =================================================== --> <spellcast> <config RequireVersion="2.22" /> <variables> <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. --> <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust --> <var name="SleepTimers">1</var> <!-- use BLM AF2 pants or not? Set to 0 if you do not have it --> <var name="BLMAF2Pants">1</var> <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location --> <var name="Ring">1</var> <!-- use Ugg Pendant or not? set to 0 if you do not have it. --> <var name="UggPendant">1</var> <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob --> <var name="RDMRingHP">720</var> <var name="WHMRingHP">720</var> <var name="NINRingHP">720</var> <!-- Elemental Staffs, input what staff to use for each element here --> <var name="IceStaff">Aquilo's Staff</var> <var name="DarkStaff">Pluto's Staff</var> <var name="ThunderStaff">Jupiter's Staff</var> <var name="WindStaff">Auster's Staff</var> <var name="FireStaff">Fire Staff</var> <var name="EarthStaff">Terra's Staff</var> <var name="LightStaff">Light Staff</var> <var name="WaterStaff">Neptune's Staff</var> <!-- Elemental Obi's, set to 1 for the ones you have. --> <var name="DarkObi">1</var> <var name="LightObi">1</var> <var name="ThunderObi">1</var> <var name="IceObi">1</var> <var name="FireObi">0</var> <var name="WindObi">0</var> <var name="WaterObi">0</var> <var name="EarthObi">0</var> </variables> <sets> <group name="Main" default="yes"> <set name="Standard"> <main>$EarthStaff</main> <sub>Bugard Strap +1</sub> <ammo>Phantom Tathlum</ammo> <head>Sorcerer's Petasos +1</head> <neck>Orochi Nodowa</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <body>Morrigan's Robe</body> <hands>Morrigan's Cuffs</hands> <lring>Omniscient Ring</lring> <rring>Sorcerer's Ring</rring> <back>Hexerei cape</back> <waist>Sorcerer's Belt</waist> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="FastCast"> <feet>Rostrum Pumps</feet> <waist>Swift Belt</waist> <rear>Loquac. Earring</rear> </set> <set name="Resting" BaseSet="Standard"> <body>Wizard's Coat +1</body> <main>$DarkStaff</main> <sub>Bugard Strap +1</sub> <head>Oracle's Cap</head> <waist>Qiqirn Sash +1</waist> <feet>Avocat Pigaches</feet> <hands>Oracle's Gloves</hands> <neck>Grandiose Chain</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <legs>Oracle's Braconi</legs> <back>Invigorating cape</back> </set> <set name="MinusHP"> <head>Zenith Crown</head> <back>Aslan Cape</back> <hands>Zenith Mitts</hands> <neck>Morgana's Choker</neck> <feet>Rostrum Pumps</feet> <legs>Zenith slacks</legs> <lring>Ether Ring</lring> </set> <set name="FullINT" Baseset="FullDamage"> <head>Morrigan's Coronal</head> </set> <set name="FullDamage" BaseSet="Standard"> <sub>Bugard Strap +1</sub> <ammo>Phantom Tathlum</ammo> <neck>Prudence Torque</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <head>Wzd. Petasos +1</head> <body>Morrigan's Robe</body> <hands>Morrigan's Cuffs</hands> <lring>Omniscient Ring</lring> <rring>Sorcerer's Ring</rring> <back>Hecate's Cape</back> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="HighResist" BaseSet="FullDamage"> <hands>Wizard's Gloves</hands> <neck>Elemental Torque</neck> <back>Merciful Cape</back> <head>Sorcerer's Petasos +1</head> <lring>Omega Ring</lring> <feet>Nashira Crackows</feet> </set> <set name="MidResist" BaseSet="FullDamage"> <head>Sorcerer's Petasos +1</head> <legs>Mahatma Slops</legs> <hands>Morrigan's Cuffs</hands> </set> <set name="DarkMagic"> <legs>Wizard's Tonban</legs> <lear>Abyssal Earring</lear> <head>Walahra Turban</head> <neck>Dark Torque</neck> <hands>Sorcerer's Gloves</hands> <body>Morrigan's Robe</body> <back>Merciful Cape</back> <waist>Swift Belt</waist> </set> <set name="EnfeeblingMagic"> <body>Wizard's Coat +1</body> <head>Igqira Tiara</head> <neck>Enfeebling Torque</neck> <hands>Oracle's Gloves</hands> <legs>Igqira Lappa</legs> <rring>Omega Ring</rring> </set> <set name="HealingMagic" /> <set name="DivineMagic" /> <set name="EnhancingMagic"> <main lock="yes">Kirin's Pole</main> <sub>Reign Grip</sub> <body>Morrigan's Robe</body> <neck>Morgana's Choker</neck> <head>Morrigan's Coronal</head> <feet>Morrigan's Pigaches</feet> <back>Aslan Cape</back> </set> </group> </sets> <rules> <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). --> <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*"> <action type="changetarget" target="<me>" /> </if> <if SpellTargetType="NONE" ValidTarget="*Self*"> <action type="changetarget" target="<me>" /> </if> <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor"> <action type="return" /> </if> <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) --> <action type="equip" when="Idle|aftercast" set="Standard" /> <!-- set of gear to equip when resting --> <action type="equip" when="Resting" set="Resting" /> <if Spell="Stun"> <!-- equip gear that helps stun, and nothing else --> <action type="equip" set="DarkMagic|FastCast"> <main>$ThunderStaff</main> </action> <!-- these codes just print Stun in auto translate into chat. --> <action type="command">input /p \xFD\x07\x02\x12\xFC\xFD >> <%SpellTarget></action> </if> <else> <!-- equip fast cast gear --> <action type="equip" Set="FastCast" /> <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? --> <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love"> <if Advanced='"$%SpellElementGrip" == "1"'> <action type="equip" when="midcast"> <sub lock="true">%SpellElement Grip</sub> </action> </if> </if> <!-- if were handling spells --> <if Skill="*Magic"> <!-- if this is elemental magic (nukes/dot's, then do special handling --> <if Skill="ElementalMagic"> <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke"> <!-- equip elemental/INT gear for DoT's --> <action type="equip" when="precast|midcast" Set="FullINT" /> </if> <else> <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) --> <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal"> <action type="equip" when="precast|midcast" Set="HighResist" /> </if> <else> <!-- if mob is not high resist, is it a mid resist mob? --> <if SpellTargetName="Fafnir|Nidhogg|Armed Gears|Aspidochelone|King Behemoth|Tinnin|Kaiser Behemoth|Ouryu" NotBuffActive="Elemental Seal"> <action type="equip" when="precast|midcast" Set="MidResist" /> </if> <else> <!-- Normal mob, go full damage gear. --> <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket"> <if NotBuffActive="Elemental Seal"> <action type="equip" when="precast|midcast" Set="MidResist" /> </if> <else> <action type="equip" when="precast|midcast" Set="FullDamage" /> </else> </if> <else> <action type="equip" when="precast|midcast" Set="FullDamage" /> </else> <!-- only equip pendant in situations you would equip full damage gear --> <if MPPAfterCastLT="50" Advanced="$UggPendant==1"> <action type="equip" when="midcast"> <neck lock="yes">Uggalepih Pendant</neck> </action> </if> </else> <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. --> <if advanced='$Ring == 1'> <!-- make sure we have an HP variable set for current subjob --> <if Advanced='"$%SubJobRingHP" !="\$%SubJobRingHP"'> <if Advanced='%HP > $%SubJobRingHP'> <!-- if you have too much HP at the time of casting, equip minus hp --> <action type="equip" set="MinusHP" /> </if> </if> <else> <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast --> <action type="equip" set="MinusHP" /> </else> <action type="equip" when="midcast"> <lring>Sorcerer's Ring</lring> </action> </if> </else> </else> </if> <else> <!-- for any other type of spell, just equip matching set name. --> <action type="equip" when="precast|midcast" Set="Standard|%Skill" /> </else> </if> <else> <action type="equip" when="precast|midcast" Set="Standard" /> </else> <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. --> <if Spell="Drain" Advanced="$Ring==1"> <action type="equip" set="MinusHP" /> </if> <!-- Handle Elemental Obi's --> <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'> <if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if> <elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif> <elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif> <elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif> <elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif> <elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif> <elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif> <elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif> </if> <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. --> <if Advanced='(!((regex)%Weather=^.* x2$(/regex) AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'> <action type="equip" when="midcast"> <legs lock="yes">Sorcerer's Tonban</legs> </action> </if> <!-- Timers for when sleep is wearing off. --> <if advanced='"$SleepTimers"="1"'> <if Spell="Sleep II|Sleepga II"> <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</action> <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</action> <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</action> </if> <elseif Spell="Sleep|Sleepga"> <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</action> <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</action> </elseif> </if> <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin --> <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self"> <action type="command" when="midcast">cancel 71</action> <action type="midcastdelay" delay="1.8" /> </if> <if spell="Utsusemi: Ichi" BuffActive="Copy Image"> <action type="midcastdelay" delay="3.0" /> <action type="Command" when="midcast">cancel 66</action> </if> <elseif Spell="Stoneskin" BuffActive="Stoneskin"> <action type="command" when="midcast">cancel 37</action> <action type="midcastdelay" delay="4.8" /> </elseif> <elseif Spell="Blink" BuffActive="Blink"> <action type="command" when="midcast">cancel 36</action> <action type="midcastdelay" delay="4.5" /> </elseif> <!-- finally, equip our staff! --> <action type="equip" when="midcast"> <main>$%SpellElementStaff</main> </action> </else> </rules> </spellcast>
Try putting a line
It is probably just lag causing that issueCode:... <if Skill="ElementalMagic"> <precastdelay delay="0.5"/> ....
Added and I'll see if that helps. Thanks a lot.
Okay well thank you again for the help yesterday, that did help alleviate some of the problems, but now I've encountered a new problem. I realized today when copying a RDM XML for myself that I was using 2.2 instead of 2.3. Now after udpating, my BLM XML keeps giving me the error:
SpellCast:: (!(regex("wind","^.*x2$) and "wind"="unknown" and "$unkownobi"="1") or !("wind"="unkown")) and ("unkown"="water" and......
and that's where it trails off the screen
updated my XML with the link Aikar provided and here is how it updated
It appears that at least some of my sets are still swapping (rest, idle, stoneskin) but I keep getting that error message anytime it swaps.Code:<?xml version="1.0" ?> <!-- =================================================== || || Aikar's BLM SpellCast Template || || This file is designed to be easily used by others. || Simply editing in your own gear and modifying the variables up top || should be all that is needed to make use of this file. || || Please be sure to configure the variables prior to use. || || If you have any questions - Please post on the forums. =================================================== --> <spellcast xmlns:xi="http://www.w3.org/2001/XInclude"> <config RequireVersion="2.22" /> <variables> <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. --> <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust --> <var name="SleepTimers">1</var> <!-- use BLM AF2 pants or not? Set to 0 if you do not have it --> <var name="BLMAF2Pants">1</var> <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location --> <var name="Ring">1</var> <!-- use Ugg Pendant or not? set to 0 if you do not have it. --> <var name="UggPendant">1</var> <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob --> <var name="RDMRingHP">720</var> <var name="WHMRingHP">720</var> <var name="NINRingHP">720</var> <!-- Elemental Staffs, input what staff to use for each element here --> <var name="IceStaff">Aquilo's Staff</var> <var name="DarkStaff">Pluto's Staff</var> <var name="ThunderStaff">Jupiter's Staff</var> <var name="WindStaff">Auster's Staff</var> <var name="FireStaff">Fire Staff</var> <var name="EarthStaff">Terra's Staff</var> <var name="LightStaff">Light Staff</var> <var name="WaterStaff">Neptune's Staff</var> <!-- Elemental Obi's, set to 1 for the ones you have. --> <var name="DarkObi">1</var> <var name="LightObi">1</var> <var name="ThunderObi">1</var> <var name="IceObi">1</var> <var name="FireObi">0</var> <var name="WindObi">0</var> <var name="WaterObi">0</var> <var name="EarthObi">0</var> </variables> <sets> <group name="Main" default="yes"> <set name="Standard"> <main>$EarthStaff</main> <sub>Bugard Strap +1</sub> <ammo>Phantom Tathlum</ammo> <head>Sorcerer's Petasos +1</head> <neck>Orochi Nodowa</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <body>Morrigan's Robe</body> <hands>Morrigan's Cuffs</hands> <lring>Omniscient Ring</lring> <rring>Sorcerer's Ring</rring> <back>Hexerei cape</back> <waist>Sorcerer's Belt</waist> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="FastCast"> <feet>Rostrum Pumps</feet> <waist>Swift Belt</waist> <rear>Loquac. Earring</rear> </set> <set name="Resting" BaseSet="Standard"> <body>Wizard's Coat +1</body> <main>$DarkStaff</main> <sub>Bugard Strap +1</sub> <head>Oracle's Cap</head> <waist>Qiqirn Sash +1</waist> <feet>Avocat Pigaches</feet> <hands>Oracle's Gloves</hands> <neck>Grandiose Chain</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <legs>Oracle's Braconi</legs> <back>Invigorating cape</back> </set> <set name="MinusHP"> <head>Zenith Crown</head> <back>Aslan Cape</back> <hands>Zenith Mitts</hands> <neck>Morgana's Choker</neck> <feet>Rostrum Pumps</feet> <legs>Zenith slacks</legs> <lring>Ether Ring</lring> </set> <set name="FullINT" Baseset="FullDamage"> <head>Morrigan's Coronal</head> </set> <set name="FullDamage" BaseSet="Standard"> <sub>Bugard Strap +1</sub> <ammo>Phantom Tathlum</ammo> <neck>Prudence Torque</neck> <lear>Abyssal Earring</lear> <rear>Moldavite Earring</rear> <head>Wzd. Petasos +1</head> <body>Morrigan's Robe</body> <hands>Morrigan's Cuffs</hands> <lring>Omniscient Ring</lring> <rring>Sorcerer's Ring</rring> <back>Hecate's Cape</back> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> </set> <set name="HighResist" BaseSet="FullDamage"> <hands>Wizard's Gloves</hands> <neck>Elemental Torque</neck> <back>Merciful Cape</back> <head>Sorcerer's Petasos +1</head> <lring>Omega Ring</lring> <feet>Nashira Crackows</feet> </set> <set name="MidResist" BaseSet="FullDamage"> <head>Sorcerer's Petasos +1</head> <legs>Mahatma Slops</legs> <hands>Morrigan's Cuffs</hands> </set> <set name="DarkMagic"> <legs>Wizard's Tonban</legs> <lear>Abyssal Earring</lear> <head>Walahra Turban</head> <neck>Dark Torque</neck> <hands>Sorcerer's Gloves</hands> <body>Morrigan's Robe</body> <back>Merciful Cape</back> <waist>Swift Belt</waist> </set> <set name="EnfeeblingMagic"> <body>Wizard's Coat +1</body> <head>Igqira Tiara</head> <neck>Enfeebling Torque</neck> <hands>Oracle's Gloves</hands> <legs>Igqira Lappa</legs> <rring>Omega Ring</rring> </set> <set name="HealingMagic" /> <set name="DivineMagic" /> <set name="EnhancingMagic"> <main lock="yes">Kirin's Pole</main> <sub>Reign Grip</sub> <body>Morrigan's Robe</body> <neck>Morgana's Choker</neck> <head>Morrigan's Coronal</head> <feet>Morrigan's Pigaches</feet> <back>Aslan Cape</back> </set> </group> </sets> <rules> <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). --> <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*"> <changetarget target="<me>" /> </if> <if SpellTargetType="NONE" ValidTarget="*Self*"> <changetarget target="<me>" /> </if> <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor"> <return /> </if> <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) --> <equip when="Idle|aftercast" set="Standard" /> <!-- set of gear to equip when resting --> <equip when="Resting" set="Resting" /> <if Spell="Stun"> <!-- equip gear that helps stun, and nothing else --> <equip set="DarkMagic|FastCast"> <main>$ThunderStaff</main> </equip> <!-- these codes just print Stun in auto translate into chat. --> <command>input /p xFDx07x02x12xFCxFD >> <%SpellTarget></command> </if> <else> <!-- equip fast cast gear --> <equip Set="FastCast" /> <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? --> <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love"> <if Advanced='"$%SpellElementGrip" == "1"'> <equip when="midcast"> <sub lock="true">%SpellElement Grip</sub> </equip> </if> </if> <!-- if were handling spells --> <if Skill="*Magic"> <!-- if this is elemental magic (nukes/dot's, then do special handling --> <if Skill="ElementalMagic"> <precastdelay delay="0.5"/> <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke"> <!-- equip elemental/INT gear for DoT's --> <equip when="precast|midcast" Set="FullINT" /> </if> <else> <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) --> <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="HighResist" /> </if> <else> <!-- if mob is not high resist, is it a mid resist mob? --> <if SpellTargetName="Fafnir|Nidhogg|Armed Gears|Aspidochelone|King Behemoth|Tinnin|Kaiser Behemoth|Ouryu" NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="MidResist" /> </if> <else> <!-- Normal mob, go full damage gear. --> <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket"> <if NotBuffActive="Elemental Seal"> <equip when="precast|midcast" Set="MidResist" /> </if> <else> <equip when="precast|midcast" Set="FullDamage" /> </else> </if> <else> <equip when="precast|midcast" Set="FullDamage" /> </else> <!-- only equip pendant in situations you would equip full damage gear --> <if MPPAfterCastLT="50" Advanced="$UggPendant==1"> <equip when="midcast"> <neck lock="yes">Uggalepih Pendant</neck> </equip> </if> </else> <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. --> <if advanced='$Ring == 1'> <!-- make sure we have an HP variable set for current subjob --> <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'> <if Advanced='%HP > $%SubJobRingHP'> <!-- if you have too much HP at the time of casting, equip minus hp --> <equip set="MinusHP" /> </if> </if> <else> <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast --> <equip set="MinusHP" /> </else> <equip when="midcast"> <lring>Sorcerer's Ring</lring> </equip> </if> </else> </else> </if> <else> <!-- for any other type of spell, just equip matching set name. --> <equip when="precast|midcast" Set="Standard|%Skill" /> </else> </if> <else> <equip when="precast|midcast" Set="Standard" /> </else> <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. --> <if Spell="Drain" Advanced="$Ring==1"> <equip set="MinusHP" /> </if> <!-- Handle Elemental Obi's --> <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'> <if Element="Dark"> <equip when="midcast"> <waist lock="yes">Anrin Obi</waist> </equip> </if> <elseif Element="Light"> <equip when="midcast"> <waist lock="yes">Korin Obi</waist> </equip> </elseif> <elseif Element="Thunder"> <equip when="midcast"> <waist lock="yes">Rairin Obi</waist> </equip> </elseif> <elseif Element="Ice"> <equip when="midcast"> <waist lock="yes">Hyorin Obi</waist> </equip> </elseif> <elseif Element="Fire"> <equip when="midcast"> <waist lock="yes">Karin Obi</waist> </equip> </elseif> <elseif Element="Wind"> <equip when="midcast"> <waist lock="yes">Furin Obi</waist> </equip> </elseif> <elseif Element="Water"> <equip when="midcast"> <waist lock="yes">Suirin Obi</waist> </equip> </elseif> <elseif Element="Earth"> <equip when="midcast"> <waist lock="yes">Dorin Obi</waist> </equip> </elseif> </if> <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. --> <if Advanced='(!(regex("%Weather","^.* x2$") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'> <equip when="midcast"> <legs lock="yes">Sorcerer's Tonban</legs> </equip> </if> <!-- Timers for when sleep is wearing off. --> <if advanced='"$SleepTimers"="1"'> <if Spell="Sleep II|Sleepga II"> <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command> <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command> <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command> </if> <elseif Spell="Sleep|Sleepga"> <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command> <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command> </elseif> </if> <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin --> <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self"> <command when="midcast">cancel 71</command> <midcastdelay delay="1.8" /> </if> <if spell="Utsusemi: Ichi" BuffActive="Copy Image"> <midcastdelay delay="3.0" /> <command when="midcast">cancel 66</command> </if> <elseif Spell="Stoneskin" BuffActive="Stoneskin"> <command when="midcast">cancel 37</command> <midcastdelay delay="4.8" /> </elseif> <elseif Spell="Blink" BuffActive="Blink"> <command when="midcast">cancel 36</command> <midcastdelay delay="4.5" /> </elseif> <!-- finally, equip our staff! --> <equip when="midcast"> <main>$%SpellElementStaff</main> </equip> </else> </rules> </spellcast>![]()
Yeah that's a Sorc Tonban problem. This should fix it.
Code:<if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'> <equip when="midcast"> <legs lock="yes">Sorcerer's Tonban</legs> </equip>
Fixed my problem, thanks a lot!
Create a file in your scripts folder, not your spellcast folder, named "aliases.txt".
The syntax for your aliases are:
In the file you should put something like (only if you use spellcast):Code:alias (alias name) (command)
Note: If you don't have spellcast, you need to replace "blizzard4" and it's respective consecutive commands with it's corresponding windower spell like"input /ma "Blizzard IV" <t>" (without quotes).Code:alias b4 blizzard4 alias t4 thunder4 etc..
Next, you'll want to add to a new line in "init.txt" the command to execute the aliases every time you start FFXI:
Code:exec aliases.txt
Gah it seems like swapping to 2.3 has caused me more problems than it's worth. BRD and WAR XMLs are failing to load because of an Error reading attributes. The lines it is telling me that are breaking it are above each SpellCast. I tried fixing it on my own, and each have been put into the XML fixer Aikar provided.
WAR- Line 183 is breaking it.
Spoiler: show
BRD - Line 115 is breaking it
Spoiler: show
Thanks again :/
That should fix your BRD one, you have it as <equipwhen="aftercast" set="default">, needs a space between equip and when.Code:<if subjob="NIN"> <if status="idle"> <equip when="aftercast" set="default"> <body>Kirin's Osode</body> </equip> </if> </if>
That should fix your WAR one, the line w/ the action was left open, just added a /> to the end of it.Code:<if spell="Utsusemi: Ichi"> <action type="equip" when="precast" set="FC" /> <midcastdelay delay="2.5" /> <command when="midcast">cancel 66</command> </if>
Haven't got a username registered on the windower forums but I'll mention it here in case it's confusing anyone else.
The new BST pet job abilities that coincide with BLU spells (ie Wild Carrot, Sheep Song) are being blocked out by spellcast and giving command errors occurring. Hate to reference Alla but the BST forums generally have a brain...
http://ffxi.allakhazam.com/forum.htm...8112529&page=1
May sort some people out who are head scratching wondering what's going on.