Spellcast

Language: JP EN DE FR
2010-09-08
New Items
users online
Spellcast
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 13:01:34
Link | Quote | Reply
 
Okay. So for some reason I am having a couple problems>< Using Spellcast 2.45 and resources.xml is the Aug.10th, 2011 version.

1) Ice/Thunder Obis aren't equipping

2) Searing cape isn't equipping
Code
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    <config
        RequireVersion="2.22"
        />
    <variables>
        <var name="sleepid" nooverwrite="true">0</var>
        <var name="BLMAF2Pants">1</var>
		<var name="TwilightCape">1</var>
        <var name="Ring">1</var>
        <var name="UggPendant">1</var>
        <var name="RDMRingHP">790</var>
        <var name="WHMRingHP">780</var>
        <var name="BRDRingHP">790</var>
        <var name="IceStaff">Varuna's Staff +2</var>
        <var name="WindStaff">Auster's Staff</var>
        <var name="EarthStaff">Terra's Staff</var>
        <var name="ThunderStaff">Indra's Staff +2</var>
        <var name="WaterStaff">Water Staff</var>
        <var name="FireStaff">Vulcan's Staff</var>
        <var name="DarkStaff">Pluto's Staff</var>
        <var name="LightStaff">Apollo's Staff</var>
        <var name="CureStaff">Surya's Staff</var>
        <var name="IceObi">1</var>
        <var name="WindObi">0</var> 
        <var name="EarthObi">0</var>
        <var name="ThunderObi">1</var>
        <var name="WaterObi">0</var>
        <var name="FireObi">0</var>
        <var name="DarkObi">0</var>
        <var name="LightObi">0</var>
    </variables>
    <sets>
        <group name="BLM" default="yes">
            <set name="Standard">
                <main>$EarthStaff</main>
                <sub>Wise Strap</sub>
                <ammo>Snow satchet</ammo>
                <head>Goetia petasos +1</head>
                <neck>Twilight torque</neck>
                <rear>Moldavite earring</rear>
                <lear>Hecate's earring</lear>
                <body>Sorcerer's coat</body>
                <hands>Serpentes cuffs</hands>
                <lring>Dark ring</lring>
                <rring>Dark ring</rring>
                <back>Cheviot cape</back>
                <waist>Sorcerer's belt</waist>
                <legs>Tatsumaki sitagoromo</legs>
                <feet>Serpentes sabots</feet>
            </set>
            <set name="FastCast">
                <lear>Loquacious Earring</lear>
            </set>
            <set name="Resting" BaseSet="Standard">
                <main>$DarkStaff</main>
                <sub>Wise Strap</sub>
                <ammo>Snow satchet</ammo>
                <head>Goetia petasos +1</head>
                <neck>Jeweled collar</neck>
                <lear>Antivenom earring</lear>
                <rear>Hecate's earring</rear>
                <body>Wizard's Coat +1</body>
                <hands>Serpentes cuffs</hands>
                <lring>Dark ring</lring>
                <rring>Dark ring</rring>
                <back>Felicitas cape</back>
                <waist>Austerity belt</waist>
                <feet>Goliard clogs</feet>
            </set>
            <set name="MinusHP">
                <sub>Wind grip</sub>
                <head>Zenith crown</head>
                <neck>Morgana's choker</neck>
                <lear>Astral earring</lear>
                <body>Black cotehardie</body>
				<hands>Zenith mitts</hands>
                <lring>Bifrost ring</lring>
				<rring>Serket ring</rring>
				<back>Aslan cape</back>
				<legs>Zenith slacks</legs>
            </set>
            <set name="FullDamage" BaseSet="Standard">
                <sub>Wise Strap</sub>
                <ammo>Witchstone</ammo>
                <head>Literae hat</head>
                <neck>Artemis' medal</neck>
                <rear>Moldavite earring</rear>
                <lear>Hecate's earring</lear>
                <body>Literae coat</body>
                <hands>Goetia gloves +1</hands>
                <lring>Sorcerer's ring</lring>
                <rring>Diamond ring</rring>
                <back>Searing Cape</back>
                <waist>Sorcerer's belt</waist>
                <legs>Teal slops</legs>
                <feet>Goetia sabots +1</feet>
            </set>
            <set name="HighResist" BaseSet="FullDamage">
				<ammo>Snow satchet</ammo>
                <head>Goetia petasos +1</head>
				<body>Augur's jaseran</body>
                <hands>Wizard's Gloves</hands>
				<lring>Spiral ring</lring>
                <neck lock="true">Artemis' Medal</neck>
            </set>
            <set name="DarkMagic">
                <main lock="true">Kirin's Pole</main>
                <ammo>Snow satchet</ammo>
                <head>Teal chapeau</head>
                <neck>Jeweled collar</neck>
                <rear>Loquacious earring</rear>
                <lear>Phantom earring</lear>
                <body>Augur's jaseran</body>
                <hands>Sorcerer's gloves</hands>
                <lring>Spiral ring</lring>
                <rring>Diamond ring</rring>
                <back>Potentia cape</back>
                <waist>Sorcerer's belt</waist>
                <legs>Wizard's tonban</legs>
                <feet>Goetia sabots +1</feet>
            </set>
            <set name="EnfeeblingMagic">
                <sub>Staff Strap</sub>
                <ammo>Snow satchet</ammo>
                <head>Igqira tiara</head>
                <neck>Spider torque</neck>
                <rear>Loquacious earring</rear>
                <lear>Phantom earring</lear>
                <body>Wizard's Coat +1</body>
                <hands>Goliard cuffs</hands>
                <lring>Spiral ring</lring>
                <rring>Diamond ring</rring>
                <back>Potentia cape</back>
                <waist>Sorcerer's belt</waist>
                <legs>Igqira lappas</legs>
                <feet>Goetia sabots +1</feet>
            </set>
            <set name="HealingMagic">
                <main>$CureStaff</main>
                <head>Teal chapeau</head>
                <neck>Morgana's choker</neck>
                <lear>Loquacious Earring</lear>
                <body>Augur's jaseran</body>
                <hands>Serpentes cuffs</hands>
				<lring>Sirona's Ring</lring>
                <back>Aslan Cape</back>
                <waist>Austerity belt</waist>
                <feet>Serpentes sabots</feet>
            </set>
            <set name="EnhancingMagic">
				<body>Sorcerer's coat</body>
				<lear>Loquacious Earring</lear>
            </set>
            <set name="DivineMagic" />
            <set name="Intelligence">
                <main lock="true">Kirin's Pole</main>
                <ammo>Snow satchet</ammo>
                <head>Teal chapeau</head>
                <neck>Jeweled collar</neck>
                <rear>Loquacious earring</rear>
                <lear>Phantom earring</lear>
                <body>Augur's jaseran</body>
                <hands>Tide gages</hands>
                <lring>Spiral ring</lring>
                <rring>Diamond ring</rring>
                <back>Potentia cape</back>
                <waist>Sorcerer's belt</waist>
                <legs>Teal slops</legs>
                <feet>Goetia sabots +1</feet>
            </set>
            <set name="Stoneskin">
                <main lock="yes">Kirin's Pole</main>
                <sub>Reign grip</sub>
				<head>Teal chapeau</head>
				<neck>Morgana's choker</neck>
				<lear>Hecate's earring</lear>
				<rear>Loquacious earring</rear>
				<body>Augur's jaseran</body>
				<hands>Tide gages</hands>
				<lring>Dark ring</lring>
				<rring>Omega ring</rring>
				<back>Aslan cape</back>
				<waist>Austerity belt</waist>
				<legs>Haven hose</legs>
				<feet>Goliard clogs</feet>
            </set>
        </group>
    </sets>
    <rules>
        <equip when="Idle|aftercast" set="Standard" />
        <equip when="Resting" set="Resting" />
        <if Spell="Stun">
            <equip set="DarkMagic|FastCast">
                <main>$ThunderStaff</main>
            </equip>
        </if>
        <if Spell="Stoneskin">
            <equip when="midcast" set="Stoneskin" />
        </if>
        <else>
            <equip Set="FastCast" />
            <if Skill="*Magic">
                <if Skill="ElementalMagic">
                    <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
                        <equip when="precast|midcast" Set="Intelligence" />
                    </if>
                    <else>
                        <if Target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Long-Bowed Chariot|Long-Armed Chariot|Battleclad Chariot|Armored Chariot|Nuhn|Experimental Lamia|Gotoh Zha the Redolent">
                            <equip when="precast|midcast" Set="HighResist" />
                        </if>
                        <else>
                            <equip when="precast|midcast" Set="FullDamage">
                                <main lock="yes">$%SpellElementStaff</main>
                            </equip>
                            <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
                                <equip when="midcast">
                                    <neck lock="yes">Uggalepih Pendant</neck>
                                </equip>
                            </if>
 			    <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
					<if Element="Thunder">
						<equip when="precast">
							<waist lock="yes">Rairin Obi</waist>
						</equip>
					</if>
					<elseif Element="Ice">
						<equip when="precast">
							<waist lock="yes">Hyorin Obi</waist>
						</equip>
					</elseif>
				</if>
			   <if Advanced='("%SpellElement" = "%DayElement") AND "$BLMAF2Pants" = "1" AND "$TwilightCape" = "1"'>
				 <equip when="midcast">
                                    <legs lock="yes">Sorcerer's Tonban</legs>
									<back lock="yes">Twilight Cape</back>
				 </equip>
                            </if>
                        </else>
                        <if advanced='$Ring == 1'>
                            <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
                                <if Advanced='%HP > $%SubJobRingHP'>
                                    <equip set="MinusHP" />
                                </if>
                            </if>
                            <else>
                                <equip set="MinusHP" />
                            </else>
                            <equip when="midcast">
                                <lring>Sorcerer's Ring</lring>
                            </equip>
                        </if>
                    </else>
                </if>
                <else>
                    <equip when="precast|midcast" Set="%Skill" />
                </else>
            </if>
            <if Spell="Sleep II|Sleepga II">
                <command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @90s</command>
                <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> @15s</command>
                <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
            </if>
            <elseif Spell="Sleep|Sleepga">
                <command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @60s</command>
                <command when="aftercast">wait 45;input /echo [$sleepid:%spell] <%target> @15s</command>
                <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
            </elseif>
            <equip when="midcast">
                <main>$%SpellElementStaff</main>
            </equip>
        </else>
    </rules>
</spellcast>
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 15:34:06
Link | Quote | Reply
 
Anyone? :/
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2011-08-16 15:37:11
Link | Quote | Reply
 
The best way to figure out your problem is to enable debug in your spellcast to pinpoint the problem. Just follow the logical steps and you'll find where it doesn't work.
 Cerberus.Kelhor
Administrator
Offline
Server: Cerberus
Game: FFXI
user: Rooks
Posts: 136
By Cerberus.Kelhor 2011-08-16 15:39:52
Link | Quote | Reply
 
For one thing, <if Element="Thunder"> isn't doing what you think. There isn't an "Element" var anywhere (%SpellElement is what you want).

Haven't looked at searing cape, will in a bit
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 16:04:54
Link | Quote | Reply
 
So if I changed code to this
Code
<if advanced='("%SpellElement"=="%DayElement" OR %SpellElement"=="%WeatherElement")'>
    <action type="equip" when="precast">
        <waist lock="yes">$%SpellElementObi</waist>
    </action>
</if>


...then changed the variables to this
Code
<var name="IceObi">Hyorin Obi</var>
<var name="ThunderObi">Rairin Obi</var>


would that work?
 Cerberus.Kelhor
Administrator
Offline
Server: Cerberus
Game: FFXI
user: Rooks
Posts: 136
By Cerberus.Kelhor 2011-08-16 16:10:29
Link | Quote | Reply
 
Yes, with one caveat: because of the way spellcast builds the list of things to equip, if you are, say, casting a fire spell on firesday, you will end up with whatever you were wearing before on your waist, instead of your Sorc. belt.

/The answer there is just to get all your obis ;)
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 16:14:23
Link | Quote | Reply
 
Cerberus.Kelhor said: »
Yes, with one caveat: because of the way spellcast builds the list of things to equip, if you are, say, casting a fire spell on firesday, you will end up with whatever you were wearing before on your waist, instead of your Sorc. belt.

/The answer there is just to get all your obis ;)
Ooor! I could just add the other elemental obis variables and put Sorcerer's belt! :D
 Cerberus.Kelhor
Administrator
Offline
Server: Cerberus
Game: FFXI
user: Rooks
Posts: 136
By Cerberus.Kelhor 2011-08-16 16:17:57
Link | Quote | Reply
 
Guh, kids these days

YES THAT WOULD WORK, if you don't mind being a savage

As for searing cape, my guess is that it's somewhere in the target detection bits - do what Kalilla suggested and turn on debug, see what path it's following.

/for the record, I always hated that stuff, and just had separate groups for high-skill vs max damage
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 16:20:59
Link | Quote | Reply
 
Lol. I am running out of inventory! If I had infinite space I would complete the obis and +2 totm staves :x

How would I go about turning the debug on?
 Cerberus.Kelhor
Administrator
Offline
Server: Cerberus
Game: FFXI
user: Rooks
Posts: 136
By Cerberus.Kelhor 2011-08-16 16:22:16
Link | Quote | Reply
 
IN the <config> block, set Debug = true

And get rid of that RequiredVersion bit, I'm pretty sure we're all past 2.22

My config block on PLD when I want to really debug something:

<config
Debug="true"
HideErrors="false"
ShowGearSwaps="true"
ShowSpellInfo="true"
/>

You probably don't need ShowSpellInfo
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 16:39:39
Link | Quote | Reply
 
There we go...it's working now and I didn't do anything! I got an error but I fixed it, forgot to add some starting quotation marks in that new Elemental Obi code.

Thanks a bunch.
 Fenrir.Arianna
Offline
Server: Fenrir
Game: FFXI
user: arianna
Posts: 21
By Fenrir.Arianna 2011-08-16 16:45:13
Link | Quote | Reply
 
Code
		<if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
			<if advanced='"$TwilightCape"=="Yes"'>
				<equip when="midcast">
					<back>Twilight Cape</back>
				</equip>
			</if>

			<if advanced='"$%SpellElement_Obi"=="Yes"'>
				<equip when="midcast">
					<waist>$%SpellElementObi</waist>
				</equip>
			</if>
		</if>


I have 2 sets of variables - one set that is used to pick the correct obi's name, the other to be whether or not my character has the obi. This will prevent the waist slot from being whatever you had on last before casting in the aforementioned situation.
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2011-08-16 16:46:31
Link | Quote | Reply
 
Hades.Triet said: »
Lol. I am running out of inventory! If I had infinite space I would complete the obis and +2 totm staves :x

How would I go about turning the debug on?

I only keep the current day and next day obi's on me.

I also have a rule that inserts a note when the obi rule procs so I remember to take it out if I hadn't already.
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 17:05:09
Link | Quote | Reply
 
@Arianna; Did you set the variables for the Elemental_Obis up like this
Code
<var name="InsertElementHere_Obi">Yes</var>

or did you use 1s and 0s? Asking because if the code I don't have works then I will more than likely resort to trying yours out.

@Sekunds; But! That would mean I would be -10 inventory for the Staves/Obis I am missing (surely worth it) but running around with 10 jobs geared (somewhat decently) is a bit of a hefty toll on my inventory atm. Maybe when I can somehow manage to free up some space I will have them :D With just my BLM gear, echo drops, and a couple things I have in my bazaar I think my inventory is @ around 71/80
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2011-08-16 17:06:14
Link | Quote | Reply
 
You can fit 10 jobs on you?

I can only fit 2 at a time...
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-08-16 17:10:36
Link | Quote | Reply
 
Ragnarok.Sekundes said: »
You can fit 10 jobs on you?

I can only fit 2 at a time...
Some of the gear kinda overlaps. So it's not as bad. But This is what I have

Inventory: BLU and MNK gear
Safe: THF and PLD gear + seals
Storage: junk I can't really do anything with.
Locker: WAR and SAM gear + seals/+2 items
Satchel: BLM and SCH
Sack: BRD and WHM gear + shihei/warp items

lol...
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2011-08-16 17:41:30
Link | Quote | Reply
 
I'm more focused in my individual jobs so the jobs I use a lot are very heavily geared while many things overlap quite a bit doesn't. Inventory problems are my way of life... but I require the best gear I can get for any situation so... I deal with it.
 Fenrir.Arianna
Offline
Server: Fenrir
Game: FFXI
user: arianna
Posts: 21
By Fenrir.Arianna 2011-08-17 06:01:11
Link | Quote | Reply
 
I used "Yes" / "No", but the "Yes" is all that really matters; it doesn't check for "No" anywhere.
necroskull Necro Bump Detected! [36 days between previous and next post]
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-09-22 14:26:24
Link | Quote | Reply
 
Okay...this is getting ridiculous. My spellcast doesn't like elemental obis or something, because it's not equipping them for s***. I've tried about 10 different ways to equip it and nothing. Just keeps nuking in sorcerer's belt.

Edit: Nevermind, I just created a separate statement for each element. and NOW it works.../sigh
 Siren.Kalilla
VIP
Offline
Server: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2011-09-22 14:33:10
Link | Quote | Reply
 
Hades.Triet said: »
Okay...this is getting ridiculous. My spellcast doesn't like elemental obis or something, because it's not equipping them for s***. I've tried about 10 different ways to equip it and nothing. Just keeps nuking in sorcerer's belt.
Post your spellcast xml in code tags

【code=xml】example【/code】

Code xml
example


This way we can see what your problem is

Edit: nvm as well
 Hades.Triet
Offline
Server: Hades
Game: FFXI
user: Sirseiko
Posts: 1615
By Hades.Triet 2011-09-22 14:44:54
Link | Quote | Reply
 
Thanks. Kinda sucks that I have to literally do that for each element, but oh well at least it works now...Did all that work (pre-abyssea & level cap increase) for obi's and they weren't being used. ;_;
 Ragnarok.Rhegar
Offline
Server: Ragnarok
Game: FFXI
user: Rhegar
Posts: 12
By Ragnarok.Rhegar 2011-10-05 08:22:57
Link | Quote | Reply
 
anyone have a up to date BLM spellcast templet that i could use?
one that covers both the damage and Macc TotM staves,necks,sorc ring,weather/day gear and all the other goodies that BLM use, this would be a big help thank you
 Siren.Ares
Offline
Server: Siren
Game: FFXI
user: Ares
Posts: 17
By Siren.Ares 2011-10-06 04:13:22
Link | Quote | Reply
 
Code xml
       <if Advanced='"%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement"'>
            <if spell="Ston*|Aer*|Fir*|Wate*|Blizz*|Thund*|Aspir|Drain|Flare*|Flood*|Burst*|Tornado*|Freeze*|Quake*">
                <equip When="MidCast">
                    <waist Lock="Yes">$%SpellElementObi</waist>
                </equip>
            </if>
        </if>

Here's mine.
 Ragnarok.Rhegar
Offline
Server: Ragnarok
Game: FFXI
user: Rhegar
Posts: 12
By Ragnarok.Rhegar 2011-10-06 23:45:41
Link | Quote | Reply
 
Code
<?xml version="1.0" ?>

<spellcast>
	<config RequireVersion="2.40" />
	<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 Artemis' Medal? Set to 0 if you don't have it -->
		<var name="ArtMedal">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"></var>
		<var name="WHMRingHP"></var>
		<var name="NINRingHP"></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">Varuna's Staff +3</var>
		<var name="DarkStaff">Pluto's Staff</var>
		<var name="ThunderStaff">Indra's Staff +2</var>
		<var name="LightStaff">Surya's Staff +2</var>
		<var name="WindStaff">Vayu's Staff +3</var>
		<var name="FireStaff">Agni's Staff +2</var>
		<var name="EarthStaff">Terra's Staff</var>
		<var name="WaterStaff">Neptune's 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="Norm" default="yes">
			<set name="Standard">
				<main>$Earthstaff</main>
				<sub>Pax grip</sub>
				<ammo>Witchstone</ammo>
				<neck>Twilight Torque</neck>
				<lear>Static Earring</lear>
				<rear>Novia earring</rear>
				<body>Dalmatica</body>
				<head>Genie tiara</head>
				<hands>Serpentes cuffs</hands>
				<lring>Dark Ring</lring>
				<rring>Trooper's ring</rring>
				<back>Umbra Cape</back>
				<waist>Resolute belt</waist>
				<legs>Genie Lappas</legs>
				<feet>Herald's Gaiters</feet>
			</set>
			<set name="Resting" BaseSet="Standard">
				<head>Oracle's Cap</head>
                                <neck>Eidolon pendant</neck>
			        <body>Oracle's robe</body>
				<main>$DarkStaff</main>
				<ammo>Clarus stone</ammo>
				<feet>Goliard Clogs</feet>
				<hands>Oracle's Gloves</hands>
				<rear>Antivenom Earring</rear>
				<waist>Austerity belt</waist>
                                <lear>Relaxing Earring</lear>
				<legs>Sagacity lappas</legs>
				<back>felicitas cape</back>
			</set>
			<set name="MinusHP">
				<neck>Morgana's Choker</neck>
				<body>Dalmatica</body>
				<hands>Zenith Mitts</hands>
				<rring>Ether Ring</rring>
				<legs>Zenith slacks</legs>

			</set>
			<set name="FullDamage" BaseSet="Standard">
				<sub>Wise Strap</sub>
				<head>Goetia Petasos +2</head>
				<neck>Goetia Chain</neck>
				<body>Goetia Coat +2</body>
				<lear>Hecate's Earring</lear>
				<ammo>Witchstone</ammo>
				<rear>Novio earring</rear>
				<hands>Goetia Gloves +2</hands>
				<waist>Cognition belt</waist>
				<legs>Goetia Chausses +2</legs>
				<feet>Goetia Sabots +2</feet>
				<back>Searing Cape</back>
				<rring>Strendu ring</rring>
			</set>
			<set name="HighResist" BaseSet="FullDamage">
				<hands>Goetia Gloves +2</hands>
				<head>Goetia Petasos +2</head>
				<feet>Goetia Sabots +2</feet>
				
			</set>				
			<set name="DarkMagic" BaseSet="Standard">
				<sub>Caecus grip</sub>
				<legs>Wizard's Tonban</legs>
				<lear>Dark Earring</lear>
				<rear>Hirudinea Earring</rear>
				<neck>Aesir Torque</neck>
				<lring>Omega Ring</lring>
				<rring>Balrahn's Ring</rring>
				<head>Walahra Turban</head>
				<body>Augur's jaseran</body>
				<waist>Goading Belt</waist>
   				<ammo>Clarus stone</ammo>
				<feet>Goetia Sabots +2</feet>
				<back>Merciful Cape</back>
			</set>
			<set name="EnfeeblingMagic" BaseSet="Standard">
				<body>Wzd. Coat +1</body>
				<sub>Macero grip</sub>
				<head>Genie Tiara</head>
				<neck>Enfeebling Torque</neck>
				<rear>loquacious Earring</rear>
				<lear>Abyssal Earring</lear>
				<hands>Oracle's Gloves</hands>
				<lring>Omega Ring</lring>
				<rring>Balrahn's Ring</rring>
				<waist>Goading Belt</waist>
				<legs>Genie Lappas</legs>	
			        <feet>Goliard Clogs</feet>
				<ammo>Phantom Tathlum</ammo>
			</set>
			<set name="HealingMagic" BaseSet="Standard">
				<body>Augur's jaseran</body>
				<sub>Reign grip</sub>
				<head>Walahra Turban</head>
				<neck>Morgana's Choker</neck>
				<rear>loquacious Earring</rear>
				<lear>Static Earring</lear>
				<hands>Augur's Gloves</hands>
				<lring>Omega Ring</lring>
				<rring>Trooper's Ring</rring>
				<waist>Austerity belt</waist>
				<legs>Haven Hose</legs>	
			        <feet>Errant Pigaches</feet>
				<ammo>Clarus stone</ammo>
			</set>
			<set name="DivineMagic" />
			<set name="EnhancingMagic" BaseSet="Standard">
				<main lock="true">Kirin's Pole</main>
				<body>Augur's jaseran</body>
				<sub>Reign grip</sub>
				<head>Walahra Turban</head>
				<rear>Static earring</rear>
				<waist>Siegel sash</waist>
				<ammo>Clarus stone</ammo>
				<neck>Stone Gorget</neck>
				<rring>Ether Ring</rring>
				<lear>loquacious Earring</lear>
				<legs>Haven Hose</legs>
				<feet>Errant Pigaches</feet>
			        <hands>Augur's Gloves</hands>
			</set>
		</group>
	</sets>
	<rules>
		<!-- utility: if you have no target currently, and casting a spell that can be cast on self, then cast on self (buffs). -->
		<if ValidTargets="*Self*" TargetType="None" SpellTarget="<t>">
			<action type="ChangeTarget" target="<me>" />
		</if>
		<!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
		<if SpellTarget="<t>" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
			<action type="changetarget" target="<me>" />
		</if>	
		<!-- dont parse this file if under level 73... ie capped areas -->
		<if MLVLLT="73"> <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="Standard">
				<main>$ThunderStaff</main>
				<head>Walahra Turban</head>
				<lear>loquacious Earring</lear>
				<waist>Goading belt</waist>
			</action>
			<!-- these codes just print Stun in auto translate into chat. -->
			<action type="command">input /echo \xFD\x07\x02\x12\xFC\xFD >> <%SpellTarget></action>
		</if>
		<else>
			<!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
			<if mode="OR" NotSkill="ElementalMagic" target="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="FullDamage" />	
					</if>
					<else>
						<!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
						<if Target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Sarameya|Tyger|Jailer of Love" NotBuffActive="Elemental Seal">
							<action type="equip" when="midcast" Set="HighResist" />	
						</if>
						<else>
								<action type="equip" when="midcast" Set="FullDamage" />	
								</else>
								<!-- Changes Artemis' Medal/U Pendant/Goetia Chain based on Moon Phase/MP -->
			<if mode="and" skill="ElementalMagic" notspell="Burn*|Drown*|Choke*|Rasp*|Shock*|Frost*">
			<if MPPAfterCastLT="50" Advanced="$UggPendant==1">
			<addtochat color="121">Uggalepih Pendant Latent: Active</addtochat>
			<addtochat color="121">Moon Phase: %Moon (%MOONPCT%)</addtochat>
			<if advanced="$ArtMedal==1">
			<if advanced="%MOONPCT > 80">
			<equip when="precast|midcast">
			<neck lock="yes">Artemis' Medal</neck>
			<addtochat color="121">Artemis' Medal grants MORE Magic Attack Bonus, U Pendant inactive</addtochat>
			</equip>
			</if>
			</if>
			<else>
			<equip when="precast|midcast">
			<neck lock="yes">Uggalepih Pendant</neck>
			<addtochat color="121">Uggalepih Pendant active</addtochat>
			</equip>
			</else>
			</if>
			<elseif advanced="$ArtMedal==1">
			<if advanced="%MOONPCT > 30">
			<equip when="Precast|midcast">
			<neck>Artemis' Medal</neck>
			</equip>

			<addtochat color="121">Moon Phase: %Moon (%MOONPCT%)</addtochat>
			<addtochat color="121">Artemis' Medal: Active</addtochat>
			</if>
			</elseif>
			<elseif advanced='("%MOONPCT < 31" OR "$ArtMedal==0")'>
			<equip when="precast|midcast">
			<neck>Goetia Chain</neck>
			</equip>
			<addtochat color="121">Moon Phase: %Moon (%MOONPCT%)</addtochat>
			<addtochat color="121">Artemis' Medal: Inactive - Goetia Chain Equipped</addtochat>
							</elseif>

							</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" when="precast" 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>
				</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>
			<if Spell="Blink">
				<action type="equip" set="Standard"/>
			</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='(!((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>
			</equip>
			</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" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
				<action type="command" when="midcast">cancel 71</action>
			</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>
			<!-- finally, equip our staff! -->
			<action type="equip" when="midcast">
				<main>$%SpellElementStaff</main>
			</action>
		</else>
	</rules>
</spellcast>


got this from a friend but there's a few things id like to add and a few things that need to be fixed but don't really know how to. would like to add the stuff for enfeeble staves.
Maybe a set for when mp is is under 35% and hp is over 60% i use max refresh gear but when mp is over 35% and/or hp is under 60% i use standard idle set.
and maybe something that handles the cast/recast time difference between /whm /rdm /sch and /nin when i cast stoneskin in darkarts my gear changes b4 im done casting SS or when i nuke in darkarts my nuke gear takes forever to change back into idle set.
is there a way that this can work? any help
is much appreciated thanks again
Offline
Posts: 1
By Hikara 2011-10-13 21:39:54
Link | Quote | Reply
 
Please help! Brand new to .xml, but do have HTML and CSS coding experience.

All I'm trying to do (for now) is to get my elemental staves to swap in for their corresponding element. At first all of the staves minus three (which are HQ; apollo's and aquilo's and dark which is not HQ) were working. But when I tried to fix the HQ staves none of the swaps work now.

Please look at my code and see what is missing and/or wrong. I also can't figure out how to apply the dark staff to bio, sleep, drain, aspir.
Code
<group name="Black Mage|BLM" default="yes">

<set name="idle">
<main>Aquilo's Staff</main>
<sub>Wise Strap</sub>
<ammo>Phtm. Tathlum</ammo>
<head>Nashira Turban</head>
<neck>Spider Torque</neck>
<lear>Insomnia Earring</lear>
<rear>Loquac. Earring</rear>
<body>Teal Saio</body>
<hands>Eradico Mitts</hands>
<lring>Demon's Ring</lring>
<rring>Tamas Ring</rring>
<back>Prism Cape</back>
<waist>Al Zahbi Sash</waist>
<legs>Teal Slops</legs>
<feet>Wizard's Sabots</feet>
</set>

      <set name="mgatk" BaseSet="idle">
<main>$SetStaff</main>
</set>

      <set name="rest" BaseSet="idle">
<main>Dark Staff</main>
<ammo>Clarus Stone</ammo>
<neck>Beak Necklace +1</neck>
<lear>Antivenom Earring</lear>
<rear>Relaxing Earring</rear>
<body>Errant Hpl.</body>
<back>Vita Cape</back>
<waist>Hierarch Belt</waist>
<legs>Nisse Slacks</legs>
</set>
</group>
</sets> 



<variables>
    <var name="SetStaff">Aquilo's Staff</var>
    <var name="Light">"Apollo's Staff"</var>
    <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">"Aquillo's Staff"</var>
    <var name="Thunder">"Thunder staff"</var>
</variables>




<rules>
<if Skill="ElementalMagic">
<equip when="precast" set="mgatk" />
<main>$%SpellElementStaff</main>
</if>
 
<if Skill="EnfeeblingMagic|DarkMagic">
<equip when="precast">
<main>$%SpellElementStaff</main>
</equip>
</if>
<action when="PreCast" type="equip" set="mgatk" />
<action when="Idle"    type="equip" set="idle"/>
<action when="Resting" type="equip" set="rest"/>
</rules>
</spellcast>


Thanks!
 Fenrir.Nightfyre
Offline
Server: Fenrir
Game: FFXI
user: Nightfyre
Posts: 11680
By Fenrir.Nightfyre 2011-10-13 21:55:46
Link | Quote | Reply
 
None of your staff variables are named properly. Spellcast is processing %SpellElement and then looking for $(%SpellElement)Staff, but you've named all yours Fire, Ice, etc so it doesn't process properly because there is no FireStaff etc.
 Quetzalcoatl.Mitosis
Offline
Server: Quetzalcoatl
Game: FFXI
user: xMitosisx
Posts: 317
By Quetzalcoatl.Mitosis 2011-10-13 22:00:18
Link | Quote | Reply
 
I don't have time to sit here and go through them, as I have to leave for work soon. I will post what I use, feel free to use it if you wish.

Spellcast

Include File


You would just need to replace the gear in my sets to reflect your gear.
necroskull Necro Bump Detected! [466 days between previous and next post]
 Phoenix.Rizzspeed
Offline
Server: Phoenix
Game: FFXI
user: Rizzspeed
Posts: 105
By Phoenix.Rizzspeed 2013-01-21 09:53:05
Link | Quote | Reply
 
Fenrir.Arianna said: »
Code
		<if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
			<if advanced='"$TwilightCape"=="Yes"'>
				<equip when="midcast">
					<back>Twilight Cape</back>
				</equip>
			</if>

			<if advanced='"$%SpellElement_Obi"=="Yes"'>
				<equip when="midcast">
					<waist>$%SpellElementObi</waist>
				</equip>
			</if>
		</if>


I have 2 sets of variables - one set that is used to pick the correct obi's name, the other to be whether or not my character has the obi. This will prevent the waist slot from being whatever you had on last before casting in the aforementioned situation.

Tried using the twilight cape swap portion here and can't seem to get it to work. Is it still written correctly for the current version of spellcast? I keep getting an "Error reading end tag" error.
 Ragnarok.Sekundes
Offline
Server: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4189
By Ragnarok.Sekundes 2013-01-21 10:28:52
Link | Quote | Reply
 
Phoenix.Rizzspeed said: »
Tried using the twilight cape swap portion here and can't seem to get it to work. Is it still written correctly for the current version of spellcast? I keep getting an "Error reading end tag" error.

Post your xml in a pastebin and I or whoever gets to it first can look at it for ya: http://pastebin.com

You're missing a tag somewhere. If you want to fix it on your own, open it in notepad++ and click on an start or end tag and it will highlight it and it's pair. Be sure any tag has a matching pair.
Log in to post.