Spellcast Switching Staves Sometimes?

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » FFXI » Jobs » Black Mage » Spellcast Switching staves sometimes?
Spellcast Switching staves sometimes?
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-06-30 18:40:18
Link | Quote | Reply
 
So I've been working on my own Spellcast for BLM. I've got my gear sets working and the Variables\Rules are working a well. When I hit a Fire spell it puts on Fire Staff, when I hit a Ice spell it puts on Ice Staff...sometimes.

It works for some spells, it doesn't work for others. And the only thing different is the name of the spell.

If I hit Blizzard 2, which is

/sc set MaxDamage
/ma "Blizzard II" <t>

It doesn't work. But for this one...

/sc set MaxDamage
/ma "Blizzard V" <t>

It works and changes my staff to Ice Staff. Same thing for Fire, it'll switch it for Fire V but no Five II. Any ideas or suggestions? I tried trouble shooting all my other problems so I can learn how to do this on my own, but this part is completely stumping me. :(
Offline
Posts: 151
By Ashandarei 2012-06-30 19:04:42
Link | Quote | Reply
 
Can't help much unless you post the actual xml.
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-06-30 19:32:06
Link | Quote | Reply
 
<?xml version="1.0" ?>
<spellcast>
<sets>
<group name="BLM" Default="true">
<set name = "Resting" >
<main>Dark staff</main>
<sub>Bugard leather strap +1</sub>
<ammo>Phantom tathlum</ammo>
<head>Yigit turban</head>
<neck>Beak necklace</neck>
<lear>Antivenom earring</lear>
<rear>Goetia Earring</rear>
<body>Errant houppelande</body>
<hands>Zenith mitts</hands>
<lring>Omega ring</lring>
<rring>Ether ring</rring>
<back>Rainbow cape</back>
<waist>Mohbwa sash +1</waist>
<legs>Sagacity Lappas</legs>
<feet>Goliard clogs</feet>
</set>
<set name = "FastCast" >
<sub>Bugard leather strap +1</sub>
<ammo>Phantom tathlum</ammo>
<head>Yigit turban</head>
<neck>Beak necklace</neck>
<lear>Antivenom earring</lear>
<rear>Goetia Earring</rear>
<body>Errant houppelande</body>
<hands>Zenith mitts</hands>
<lring>Omega ring</lring>
<rring>Ether ring</rring>
<back>Rainbow cape</back>
<waist>Mohbwa sash +1</waist>
<legs>Sagacity Lappas</legs>
<feet>Goliard clogs</feet>
</set>
<set name = "MaxDamage" >
<main>$SetStaff</main>
<sub>Bugard leather strap +1</sub>
<ammo>Phantom tathlum</ammo>
<head>Goetia petasos +2</head>
<neck>Uggalepih pendant</neck>
<lear>Moldavite earring</lear>
<rear>Goetia Earring</rear>
<body>Igqira weskit</body>
<hands>Goetia Gloves +1</hands>
<lring>Omega ring</lring>
<rring>Strendu Ring</rring>
<back>Rainbow cape</back>
<waist>Forest stone</waist>
<legs>Goetia chausses +2</legs>
<feet>Cobra unit crackows</feet>
</set>
<set name = "HighResist" >
<main>$SetStaff</main>
<sub>Bugard leather strap +1</sub>
<ammo>Phantom tathlum</ammo>
<head>Goetia petasos +2</head>
<neck>Uggalepih pendant</neck>
<lear>Moldavite earring</lear>
<rear>Goetia Earring</rear>
<body>Igqira weskit</body>
<hands>Goetia Gloves +1</hands>
<lring>Omega ring</lring>
<rring>Strendu Ring</rring>
<back>Rainbow cape</back>
<waist>Forest stone</waist>
<legs>Goetia chausses +2</legs>
<feet>Cobra unit crackows</feet>
</set>
<set name = "EnfeebleSkill" >
<main>$SetStaff</main>
<sub>Macero Grip</sub>
<ammo>Phantom tathlum</ammo>
<head>Sorcerer's petasos</head>
<neck>Philomath stole</neck>
<lear>Phantom earring</lear>
<rear>Goetia earring</rear>
<body>Wizard's coat</body>
<hands>Goetia Gloves +1</hands>
<lring>Omega ring</lring>
<rring>Strendu Ring</rring>
<back>Rainbow cape</back>
<waist>Forest stone</waist>
<legs>Goetia chausses +2</legs>
<feet>Sapientia Sabots</feet>
</set>
<set name = "DarkSkill" >
<main>$SetStaff</main>
<sub>Caecus grip</sub>
<ammo>Phantom tathlum</ammo>
<head>Appetence crown</head>
<neck>Philomath stole</neck>
<lear>Phantom earring</lear>
<rear>Goetia earring</rear>
<body>Errant houppelande</body>
<hands>Sorcerer's gloves</hands>
<lring>Omega ring</lring>
<rring>Strendu Ring</rring>
<back>Rainbow cape</back>
<waist>Forest stone</waist>
<legs>Wizard's tonban</legs>
<feet>Sapientia Sabots</feet>
</set>
<set name = "Stunset" >
<main>Jupiter's staff</main>
<sub>Caecus grip</sub>
<ammo>Phantom tathlum</ammo>
<head>Appetence crown</head>
<neck>Philomath stole</neck>
<lear>Phantom earring</lear>
<rear>Goetia earring</rear>
<body>Errant houppelande</body>
<hands>Sorcerer's gloves</hands>
<lring>Omega ring</lring>
<rring>Strendu Ring</rring>
<back>Rainbow cape</back>
<waist>Forest stone</waist>
<legs>Wizard's tonban</legs>
<feet>Sapientia Sabots</feet>
</set>
</group>
</sets>
<variables>
<var name="Dark">"Dark Staff"</var>
<var name="Earth">"Earth Staff"</var>
<var name="Water">"Water Staff"</var>
<var name="Wind">"Wind Staff"</var>
<var name="Fire">"Fire Staff"</var>
<var name="Ice">"Aquilo's Staff"</var>
<var name="Thunder">"Jupiter's Staff"</var>
</variables>
<rules>
<if skill="ElementalMagic">
<var cmd="set SetStaff $%SpellElement" />
</if>
</rules>
</spellcast>
 Valefor.Monkeynutz
Offline
Server: Valefor
Game: FFXI
Posts: 173
By Valefor.Monkeynutz 2012-06-30 20:30:28
Link | Quote | Reply
 
I'm not sure how that could be the entire xml with just one rule. Disregarding that, however, I've had a similar problem in the past that had to do with midcast delays. I had my xml set to switch to fast cast gear precast, then damage gear midcast, however after they introduced elemental celerity the lower tier spells were casting far too quickly to get out of fast cast gear and into damage gear. For a while I just removed the fast cast gear (I didn't have a lot of it and ES gave a lot more speed than I had previously anyway), but eventually rewrote it to reduce the delays to .2 seconds (I read that that's the lowest it can be to still work correctly) and everything works pretty well now.

I can't say for sure that that's your problem, but I see you have a fast cast set there, but I don't see any rules for every using it so...
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-06-30 21:26:49
Link | Quote | Reply
 
Yea, there isn't any rules for it. This is the first XML I've tried to make that had anything besides just 'sets'. So, I'm trying to do just a little at a time and the first thing I wanted to tackle was getting the Elemental Staves to work. :\
Offline
Posts: 13
By Sephyx 2012-06-30 21:35:35
Link | Quote | Reply
 
Hey, try something like this in your <rule> section.
<If Spell="Thund*|Shock">
<action type="equip" when="midcast" set="standard">
<main>Jupiter's Staff</main>
</action>
<action type="equip" when="after" Set="BLMCoat" />
</If>
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2012-06-30 21:44:46
Link | Quote | Reply
 
I just use this, been that way since I first adapted my blm and rdm xml from Aikar's:
Code
            <equip when="midcast">
                <main>$%SpellElementStaff</main>
            </equip>


It'll require you to have variables like this:
Code
        <var name="IceStaff">Aquilo's Staff</var>
        <var name="DarkStaff">Pluto's Staff</var>
        <var name="ThunderStaff">Jupiter's Staff</var>
        <var name="LightStaff">Apollo's Staff</var>
        <var name="WindStaff">Auster's Staff</var>
        <var name="FireStaff">Vulcan's Staff</var>
        <var name="EarthStaff">Terra's Staff</var>
        <var name="WaterStaff">Neptune's Staff</var>

Simply fill in the staff you have be it NQ, HQ or trial staff.
 Lakshmi.Greggles
Offline
Server: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2012-06-30 21:45:12
Link | Quote | Reply
 
It's probably a better idea to take out the set staff rule as well as the <main></main> equips from the group and have the rules section deal with staves.

I found that when I was putting staves in sets, it kinda screwed with the staff it was equipping as well.
Code
<equip when="precast(or midcast, either works really.)">
     <main>$%SpellElementStaff</main>
</equip>
[+]
 Lakshmi.Greggles
Offline
Server: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2012-06-30 21:46:41
Link | Quote | Reply
 
I got beaten D:! Do what Sekundes said with the variables. I didn't see that you had them named the way you did.
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-07-01 00:51:00
Link | Quote | Reply
 
Ok thanks guys. I'll play around with it a bit now :)
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-07-01 14:17:59
Link | Quote | Reply
 
Ok, was about to start playing around with it and I figured out what is wrong, kind of.

I've figured out that it's not 'certain' spells that wont switch. Any time I cast a spell, it won't change the stave unless I cast another spell of that element. So...

Cast Fire, no change. Cast fire again, changes to fire staff. Cast Ice, no change. Cast Ice again, changes to ice staff.

Cast Aero, no change. Cast Ice, changes to Wind Staff x.X

Any thoughts? Going to trouble shoot the XML for a bit.
 Fenrir.Morestal
Offline
Server: Fenrir
Game: FFXI
user: Morestal
Posts: 22
By Fenrir.Morestal 2012-07-01 14:28:07
Link | Quote | Reply
 
Wooo! Got it to work. :) Thanks guys! Putting the

<equip when="midcast">
<main>$%SpellElementStaff</main>
</equip>

In and changing the name of the elements in my Variables to the actual STAFF names made it work :) Thanks so much!
[+]
 Bismarck.Chubakka
Offline
Server: Bismarck
Game: FFXI
user: Greezy
Posts: 66
By Bismarck.Chubakka 2012-07-12 00:15:35
Link | Quote | Reply
 
Manafont does not automatically switch to sorc coat+2(aug): please take a look, thank you Spellcaster Gurus:
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.
    ||
    || Updated by Balakir on 25/12/2010 for 2.4 compatability
    || Rules updated and Sorc legs rule updated
    || New gear/abilities not added yet but will be.
    ===================================================
    -->
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    <config
        RequireVersion="2.3"
		ShowGearSwaps="False" 
        />
    <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">846</var>
        <var name="WHMRingHP">761</var>
        <var name="NINRingHP">761</var>
		<var name="BRDRingHP">834</var>

		<var name="NukeNeck">Goetia Chain</var>
		<!-- Elemental Staffs, input what staff to use for each element here -->
		<var name="IceStaff">Vourukasha I</var>
		<var name="DarkStaff">Xsaeta II</var>
		<var name="ThunderStaff">Apamajas I</var>
		<var name="WindStaff">Vayuvata I</var>
		<var name="FireStaff">Atar I</var>
		<var name="EarthStaff">Vishrava I</var>
		<var name="LightStaff">Surya's staff +2</var>
		<var name="WaterStaff">Haoma I</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">1</var>
		<var name="WindObi">1</var>
		<var name="WaterObi">1</var>
		<var name="EarthObi">1</var>
    </variables>
    <sets>
        <group name="Refresh" default="yes">
            <set name="Standard">
			    <main>Owleyes</main>
                <range>Aureole</range>
				<head>Wivre hairpin</head>
				<neck>Twilight torque</neck>
				<lear>Novio earring</lear>
				<rear>Hecate's earring</rear>
				<body>Goetia coat +2</body>
				<hands>Serpentes cuffs</hands>
				<lring>Jelly ring</lring>
				<rring>Dark ring</rring>
				<back>Umbra cape</back>
				<waist>Witch sash</waist>
				<legs>Stearc subligar</legs>
				<feet>Serpentes sabots</feet>
				<sub>Genbu's shield</sub>
            </set>
            <set name="FastCast">
			    <sub>Wise strap</sub>
				<neck>goetia chain</neck>
                <feet>Rostrum Pumps</feet>
                <lear>Loquac. Earring</lear>
				 <rear>Gifted earring</rear>
				 <waist>witful belt</waist>
				 <back>swith cape</back>
				 <rring>prolix ring</rring>
            </set>
			<set name="PDT">
                <main>Terra's Staff</main>
                <range>Aureole</range>
				<head>Goetia petasos +2</head>
				<neck>Twilight torque</neck>
				<lring>Jelly ring</lring>
				<rring>Dark ring</rring>
				<back>Umbra cape</back>
				<legs>Tatsumaki sitagoromo</legs>
				<feet>Goetia sabots +2</feet>
				<sub>Wise strap</sub>
            </set>
            <set name="Resting" BaseSet="Standard">
			    <main>Numen staff</main>
				<body>Goetia coat +2</body>
				<sub></sub>
				<head>Wivre hairpin</head>
				<waist></waist>
				<feet>Serpentes sabots</feet>
				<hands>Serpentes cuffs</hands>
				<neck>Eidolon pendant</neck>
				<rear>Relaxing earring</rear>
				<lear>Loquacious earring</lear>
				<lring>Serket ring</lring>
				<rring>Bifrost ring</rring>
				<legs>Stearc subligar</legs>
				<back></back>
				<ammo>Clarus stone</ammo>
				<sub>Ariesian grip</sub>
            </set>
			<set name="Artemis">
				<neck>Artemis' medal</neck>
            </set>
            <set name="MinusHP">
			    <main>$%SpellElementStaff</main>
				<head>zenith crown +1</head>
				<lear>Graiai earring</lear>
				<rear>Gifted earring</rear>
				<hands>Zenith Mitts</hands>
				<neck>twilight torque</neck>
				<lring>Serket ring</lring>
				<rring>Bifrost ring</rring>
				<legs>Zenith slacks</legs>
				<feet>Rostrum Pumps</feet>
				<waist>witful belt</waist>
				<ammo>Clarus stone</ammo>
				<back>swith cape</back>
		        <sub>Wise strap</sub>
            </set>
			<set name="Impact" BaseSet="Standard">
				<main>Pluto's staff</main>
				<sub>Wise strap</sub>
				<range>Aureole</range>
				<neck>Goetia chain</neck>
				<lear>Novio earring</lear>
				<rear>Hecate's earring</rear>
				<body>Twilight cloak</body>
				<hands>Goetia gloves +2</hands>
				<lring>Sorcerer's ring</lring>
				<rring>Strendu ring</rring>
				<waist>Witch sash</waist>
				<back>Searing cape</back>
				<legs>Goetia chausses +2</legs>
				<feet>Goetia sabots +2</feet>
				<sub>Wise strap</sub>
			</set>
            <set name="FullDamage" BaseSet="Standard">
				<main>$%SpellElementStaff</main>
				<sub>Wise strap</sub>
				<range>Aureole</range>
				<neck>Stoicheion medal</neck>
				<lear>Novio earring</lear>
				<rear>Hecate's earring</rear>
				<head>Goetia petasos +2</head>
				<body>Goetia coat +2</body>
				<hands>Goetia gloves +2</hands>
				<lring>Sorcerer's ring</lring>
				<rring>Strendu ring</rring>
				<waist>Witch sash</waist>
				<back>Searing cape</back>
				<legs>Goetia chausses +2</legs>
				<feet>Goetia sabots +2</feet>
            </set>
            <set name="DarkMagic">
				<legs>Goetia chausses +2</legs>
				<lear>Loquac. earring</lear>
				<rear>Goetia earring</rear>
				<lring>Icesoul ring</lring>
				<rring>Diamond Ring</rring>
				<head>Goetia petasos +2</head>
				<neck>Goetia chain</neck>
				<back>Searing cape</back>
				<body>Goetia coat +2</body>
				<range>Aureole</range>
				<hands>Goetia gloves +2</hands>
				<feet>Goetia sabots +2</feet>
				<sub>Wise strap</sub>
            </set>
			<set name="EnfeeblingMagic">
			    <main>$%SpellElementStaff</main>
			    <sub>Wise strap</sub>
				<range>Aureole</range>
				<body>Goetia coat +2</body>
				<head>Igqira Tiara</head>
				<neck>Goetia chain</neck>
				<hands>Goetia gloves +2</hands>
				<lear>Loquac. earring</lear>
				<rear>Goetia earring</rear>
				<legs>Goetia chausses +2</legs>
				<lring>Diamond ring</lring>
				<rring>Icesoul ring</rring>
				<waist>Witch sash</waist>
				<back>Swith cape</back>
				<feet>Goetia sabots +2</feet>
            </set>
			<set name="precastHealingMagic">
			    <head>zenith crown +1</head>
				<main>Owleyes</main>
				<lear>Neptune's pearl</lear>
				<rear>Roundel earring</rear>
				<hands>Augur's gloves</hands>
				<feet>rostrum pumps</feet>
				<waist>witful belt</waist>
				<legs>zenith slacks</legs>
				<sub>Genbu's shield</sub>
				<back>Swith cape</back>
				<rring>Prolix ring</rring>	
			</set>
			<set name="HealingMagic">
			    <head>zenith crown +1</head>
				<main>Surya's staff +2</main>
				<lear>Neptune's pearl</lear>
				<rear>Roundel earring</rear>
				<hands>Augur's gloves</hands>
				<feet>rostrum pumps</feet>
				<waist>witful belt</waist>
				<legs>zenith slacks</legs>
				<sub>Wise strap</sub>
				<back>Swith cape</back>
				<rring>Prolix ring</rring>				
			</set>
			<set name="EnhancingMagic">
			    <head>zenith crown +1</head>
				<main>Owleyes</main>
				<lear>Neptune's pearl</lear>
				<rear>Roundel earring</rear>
				<hands>Augur's gloves</hands>
				<feet>rostrum pumps</feet>
				<waist>Siegel sash</waist>
				<legs>zenith slacks</legs>
				<sub>Genbu's shield</sub>
				<back>Grapevine cape</back>
				<rring>Prolix ring</rring>	
            </set>
			<set name="Manafont">
			   <body>Sorcerer's coat +2</body> 
            </set>
			<set name="AMII">
			   <head>Sorcerer's petasos +2</head>
			   	<main>$%SpellElementStaff</main>
				<sub>Wise strap</sub>
				<range>Aureole</range>
				<neck>Stoicheion medal</neck>
				<lear>Novio earring</lear>
				<rear>Hecate's earring</rear>
				<body>Goetia coat +2</body>
				<hands>Goetia gloves +2</hands>
				<lring>Sorcerer's ring</lring>
				<rring>Strendu ring</rring>
				<waist>Witch sash</waist>
				<back>Searing cape</back>
				<legs>Goetia chausses +2</legs>
				<feet>Goetia sabots +2</feet>
            </set>
        </group>
    </sets>
    <rules>
	<if Spell="Cure*">
            <equip set="FastCast|Healingmagic">
                <main>Surya's staff +2</main>
				<lear>Roundel earring</lear>
            </equip>
        </if>
		<if spell="Manafont">
                    <equip when="precast">
                        <body>sorcerer's coat +2</body>
                    </equip>
        </if>
		<!-- 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 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="FastCast|DarkMagic">
                <main>Jupiter's staff</main>
            </equip>
            <!-- these codes just print Stun in auto translate into chat. -->
            <command>input /p  Numba 1 Stunna >> <%SpellTarget></command>
        </if>
		<if Spell="Impact">
			<equip set="FastCast|Impact">
			</equip>
		</if>
		<if Spell="Burst II|Freeze II">
            <!-- equip gear that helps stun, and nothing else -->
            <equip set="FastCast|Fulldamage">
			    <head lock="yes">Sorcerer's petasos +2</head>
            </equip>
        </if>
       	<if Spell="Bind">
            <!-- equip gear that helps stun, and nothing else -->
            <equip set="FastCast|EnfeeblingMagic">
			    <main lock="yes">Aquilo's staff</main>
				<rear>Goetia earring</rear>
            </equip>
        </if>
        <else>
            <!-- equip fast cast gear -->
            <equip Set="FastCast" />
            <!-- 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 -->
                        <equip when="precast|midcast" Set="HighResist" />
                    </if>
						<if Spell="Burst II|Freeze II">
										<equip set="FastCast|Fulldamage">
										<head lock="yes">Sorcerer's petasos +2</head>
										</equip>
						</if>
                    <else>
                        <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
                        <if SpellTargetName="" 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="" NotBuffActive="Elemental Seal">
                                <equip when="precast|midcast" Set="MidResist" />
                            </if>
                            <else>
                                <!-- Normal mob, go full damage gear. -->
                                <if mode="or" Area="" SpellTargetName="">
                                    <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="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>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Thunder">
                    <equip when="midcast">
                        <waist lock="yes">Rairin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Ice">
                    <equip when="midcast">
					    <main lock="yes">Vourukasha I</main>
                        <waist lock="yes">Hyorin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Fire">
                    <equip when="midcast">
                        <waist lock="yes">Karin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Wind">
                    <equip when="midcast">
                        <waist lock="yes">Furin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Water">
                    <equip when="midcast">
                        <waist lock="yes">Suirin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </equip>
                </elseif>
                <elseif Element="Earth">
                    <equip when="midcast">
                        <waist lock="yes">Dorin Obi</waist>
						<rring lock="yes">Zodiac ring</rring>
                    </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 +1</legs>
					<back lock="yes">Twilight Cape</back>
					<rring lock="yes">Zodiac ring</rring>
				</equip>
			</if>
			<if advanced="%MoonPCT >65">
				<equip when="midcast">
                        <neck lock="yes">Artemis' medal</neck>
				</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.5" />
            </elseif>
            <elseif Spell="Blink" BuffActive="Blink">
                <command when="midcast">cancel 26</command>
                <midcastdelay delay="4.0" />
            </elseif>
            <!-- finally, equip our staff! -->
            <equip when="midcast">
                <main>$%SpellElementStaff</main>
			</equip>
			<elseif Spell="Impact">
				<equip set="FastCast|Impact">
				</equip>
			</elseif>
        </else>
    </rules>
</spellcast>
 Quetzalcoatl.Crystalchan
Leonardo da Clippi
Offline
Server: Quetzalcoatl
Game: FFXI
Posts: 1184
By Quetzalcoatl.Crystalchan 2012-07-12 02:04:10
Link | Quote | Reply
 
The xml above gives me an error at line "341-reading attributes". I'm not sure how to fix it :\ does anyone have a BLM xml that I could use? It doesn't have to be too fancy or anything but it would definitely help, thanks!
Log in to post.