Fast Cast For Teal Set

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » FFXI » Jobs » Black Mage » Fast Cast for Teal Set
Fast Cast for Teal Set
 Leviathan.Yokhai
Offline
Server: Leviathan
Game: FFXI
user: Yokhai
Posts: 839
By Leviathan.Yokhai 2010-08-09 16:40:52
Link | Quote | Reply
 
Would it work to (spellcast) macro in the full Teal set "precast", then "midcast" switch to whatever spell specific gear I want to get the 10% fast cast? I'm not too sure how that works.

So it be all

if action = spell
equip when = precast set = Teal set
equip when = midcast set = nuke/enfeeb/drain set
equip whem = aftercast set = run/idle set

Something like that
 Lakshmi.Prinnysmash
Offline
Server: Lakshmi
Game: FFXI
Posts: 117
By Lakshmi.Prinnysmash 2010-08-09 16:42:07
Link | Quote | Reply
 
That is exactly how precast works. Do it up so you can be awesome.
[+]
 Leviathan.Yokhai
Offline
Server: Leviathan
Game: FFXI
user: Yokhai
Posts: 839
By Leviathan.Yokhai 2010-08-09 16:48:12
Link | Quote | Reply
 
I was more asking how fast cast + gear works. My first intro to cause I'm not cool enough to have R pump or Loq Earring.
 Valefor.Argettio
Offline
Server: Valefor
Game: FFXI
user: Argettio
Posts: 559
By Valefor.Argettio 2010-08-09 16:49:08
Link | Quote | Reply
 
Fast cast gear reduces the casting time when equipped before the spells, but only reduces the recast timer if still equipped when you finish casting the spell.

Its worth putting a rule about only equiping fast cast gear when the casting time is over 1.5-2 second (see: CastTimeGT).

For fast casting spells (Dia for example) you may not switch into your midcast gear in time.
 Ramuh.Dasva
Offline
Server: Ramuh
Game: FFXI
user: dasva
Posts: 40469
By Ramuh.Dasva 2010-08-09 16:49:54
Link | Quote | Reply
 
Casting speed is determined at start of cast hence putting in fast cast at the start.

REcast is determined at end... so generally only put stuff like haste and fast cast at the end if there is no potency in that slot.

Also fast spells aren't worth it. Wont always swap in time and the whole making sure it goes in before cast introduces a slight delay
 Quetzalcoatl.Giazz
Offline
Server: Quetzalcoatl
Game: FFXI
user: Gias
Posts: 1308
By Quetzalcoatl.Giazz 2010-08-09 16:50:47
Link | Quote | Reply
 
Yeah, I think you got the idea OP. That's hows it works.

If you want more exact code for it, can look at this one for reference:

<!-- Magic Section. -->
<if skill="EnfeeblingMagic">
<if spell="Sleep*|Bind|Poison*">
<castdelay delay="0.1" />
<equip when="precast" set="FastCast" />
<midcastdelay delay="0.5" />
<equip when="midcast" set="Enfeebling_Skill" />
<if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
<equip when="midcast">
<waist lock="true">$%SpellElementObi</waist>
</equip>
</if>
<aftercastdelay delay="1.9" />
<equip when="aftercast" set="Standard-Idle" />
</if>
[+]
 Leviathan.Yokhai
Offline
Server: Leviathan
Game: FFXI
user: Yokhai
Posts: 839
By Leviathan.Yokhai 2010-08-09 17:14:36
Link | Quote | Reply
 
Fair enough, I was mostly talking about trying to get tier5's and AM2's off before the mob could cover 21.5' under gravity. Stupid Aura Statues and their ability to hit me from 5+' away.
 Fenrir.Krazyrs
Offline
Server: Fenrir
Game: FFXI
user: krazyrs
Posts: 716
By Fenrir.Krazyrs 2010-08-09 19:46:44
Link | Quote | Reply
 
i <3 this set for sleepgaIIs in dyna
12% fc from gear (teal set + loq) + /rdm's 15%

but u got the idea

start in the teal set for nukes and swap to elemental set for midcast, will get the 10% fastcast bonus but not the recast

i couldnt find a way to get this set into my elemental, i have HP down set for precast for those stupid ppl that insist on curing u, even after telling them 4-5x in /party, then in /tell about s.ring latent >.>

 Valefor.Argettio
Offline
Server: Valefor
Game: FFXI
user: Argettio
Posts: 559
By Valefor.Argettio 2010-08-10 04:44:08
Link | Quote | Reply
 
Fenrir.Krazyrs said:


i couldnt find a way to get this set into my elemental, i have HP down set for precast for those stupid ppl that insist on curing u, even after telling them 4-5x in /party, then in /tell about s.ring latent >.>


It is possible using pre/midcast delays.

Check out some of the BLM examples on windower.net.
 Fenrir.Krazyrs
Offline
Server: Fenrir
Game: FFXI
user: krazyrs
Posts: 716
By Fenrir.Krazyrs 2010-08-10 05:56:12
Link | Quote | Reply
 
right now its set as

precast: HP DOWN
midcast: Nuke Gear (different sets depending on mob being casted on [light|medium|heavy resists])
aftercast: Idle (-PDT%)
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2010-08-10 06:10:09
Link | Quote | Reply
 
Valefor.Argettio said:
Fenrir.Krazyrs said:


i couldnt find a way to get this set into my elemental, i have HP down set for precast for those stupid ppl that insist on curing u, even after telling them 4-5x in /party, then in /tell about s.ring latent >.>


It is possible using pre/midcast delays.

Check out some of the BLM examples on windower.net.

Depends, adding Teal + HPDown sets as Precast would be impossible if the pair weren't tied together. I had a similar (though not the same) issue a while ago when I was trying to force 2 Latents and switch to nuking gear easily. I was trying to force latent on my U Pendant so I could 1-shot pets every time, works fairly well.

This is how I did it:

<!-- Check for specific mob(s) -->
<if spelltargetname="Demon's Elemental">
<!-- Check whether to force U Pendant latent or not -->
<if advanced="$ForcePendant == 1">
<equip when="precast" set="ForcePendant" />
</if>
</if>


<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" when="midcast" />
<command when="midcast">wait 2; exec blm/nuke.txt</command>
<midcastdelay delay="3.0" />
</if>
</if>


<else>
<!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
<equip set="MinusHP" when ="midcast" />
<command when="midcast">wait 2; exec blm/nuke.txt</command>
<midcastdelay delay="3.0" />
</else>


In my blm/nuke.txt file, I have:

alias equip input /equip

equip Head "Teal Chapeau"
equip Ear1 "Moldavite Earring"
equip Ear2 "Boroka Earring"

equip Body "Teal Saio"
equip Hands "Zenith Mitts"
equip Ring1 "Tamas Ring"
equip Ring2 "Sorcerer's Ring"

equip Back "Ixion Cape"
equip Feet "Cobra Unit Crackows"


My Neck, Waist and Legs are all handled by Spellcast so they can switch more freely. There's likely to be a better way around doing it, but this works quite nicely for forcing multiple latents and still using full nuking gear, though it can be a little close on Tier3 nukes (normally barely swapping into nuking gear in time).
[+]
 Fenrir.Krazyrs
Offline
Server: Fenrir
Game: FFXI
user: krazyrs
Posts: 716
By Fenrir.Krazyrs 2010-08-10 06:23:49
Link | Quote | Reply
 
so i found this, ill try it next time i log in

<if skill="ElementalMagic" notspell="Shock|Choke|Burn|Frost|Rasp|Drown">
<action type="equip" when="precast" Set="Teal" />
<action type="command" when="precast">wait 1; sc set Hpdown</action>
<action type="midcastdelay" delay="2.1" />
<action type="equip" when=midcast" Set="Nuking">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
[+]
 Valefor.Argettio
Offline
Server: Valefor
Game: FFXI
user: Argettio
Posts: 559
By Valefor.Argettio 2010-08-10 06:25:21
Link | Quote | Reply
 
I will dig out my old blm.xml when I get home but I am sure I was able to have fastcast on precast, HP down on midcast and nuking gear on delayed midcast.

Also it checked ugg pendant which equipped on a even later delayed midcast.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2010-08-10 06:27:57
Link | Quote | Reply
 
Valefor.Argettio said:
I will dig out my old blm.xml when I get home but I am sure I was able to have fastcast on precast, HP down on midcast and nuking gear on delayed midcast.

Also it checked ugg pendant which equipped on a even later delayed midcast.

That'd be pretty awesome to see, I was working on this pretty late one night so I may have missed something obvious, but I could never get my midcasts to work properly (either one would skip, or both sets would get mashed together so nothing was right).
 Leviathan.Yokhai
Offline
Server: Leviathan
Game: FFXI
user: Yokhai
Posts: 839
By Leviathan.Yokhai 2010-08-10 12:48:28
Link | Quote | Reply
 
<if skill="ElementalMagic" notspell="Shock|Choke|Burn|Frost|Rasp|Drown">
<action type="equip" when="precast" Set="Teal" />
<action type="castdelay" delay="0.1" />
<action type="equip" when="precast" Set="Hpdown" />
<action type="midcastdelay" delay="0.5" />
<action type="equip" when=midcast" Set="Nuking"/>
<main>$%SpellElementStaff</main>

if you are using advanced for your staffs, you might as well add in your grips and do
<action type="equip" whebn = "midcast" Set=%SpellElementStaff />

that way you get both.

I got it all to work out just fine. 7.5 second stoneV's and Freeze2's kickass.
[+]
 Leviathan.Yokhai
Offline
Server: Leviathan
Game: FFXI
user: Yokhai
Posts: 839
By Leviathan.Yokhai 2010-08-10 12:49:30
Link | Quote | Reply
 
Sylph.Hitetsu said:
Valefor.Argettio said:
I will dig out my old blm.xml when I get home but I am sure I was able to have fastcast on precast, HP down on midcast and nuking gear on delayed midcast.

Also it checked ugg pendant which equipped on a even later delayed midcast.

That'd be pretty awesome to see, I was working on this pretty late one night so I may have missed something obvious, but I could never get my midcasts to work properly (either one would skip, or both sets would get mashed together so nothing was right).


yeah look into using more castdelay for precast and midcastdelay for midcast, seperate them out in incriments of 0.1 and you should be fine.
 Quetzalcoatl.Giazz
Offline
Server: Quetzalcoatl
Game: FFXI
user: Gias
Posts: 1308
By Quetzalcoatl.Giazz 2010-08-10 13:18:01
Link | Quote | Reply
 
Yeah definitely need to play around with the "castdelays" for different spells, if you have multiple sets switching during the cast time of a spell etc.

"castdelays" may also be helpful for accounting for possible lag for certain areas too.

I usually just a have castdelay of 0.1 for precast sets, but castdelays for midcast may vary more depending on the spell cast time and what you want to macro in etc. I think my drk mostly uses 0.5 midcast delays for spells though (just enough to make sure they switch in properly), but DRK spells are usually mostly 1-3sec cast times.
 
Offline
Posts:
By 2010-08-10 13:26:26
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Valefor.Argettio
Offline
Server: Valefor
Game: FFXI
user: Argettio
Posts: 559
By Valefor.Argettio 2010-08-10 13:28:01
Link | Quote | Reply
 
My BLM xml as promised.
Quote:

<?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"
NormalSet="Aftercast-$Aftercast"
/>
<variables>
<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<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>
<!-- Adjusts the gear equiped aftercasting -->
<var name="Aftercast">0</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">703</var>
<var name="WHMRingHP">685</var>
<var name="NINRingHP">703</var>
<!-- Elemental Grips, set to 1 for each you have -->
<var name="LightGrip">0</var>
<var name="DarkGrip">1</var>
<var name="ThunderGrip">0</var>
<var name="IceGrip">1</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="FireStaff">Fire Staff</var>
<var name="IceStaff">Aquilo's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="WaterStaff">Water Staff</var>
<var name="LightStaff">Light Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<!-- Elemental Obi's, set to 1 for the ones you have. -->

<!--- Obi vars -->
<!--
<var Name="EarthObi">Dorin Obi</var>
<var Name="WaterObi">Suirin Obi</var>
<var Name="FireObi">Karin Obi</var>
<var Name="WindObi">Furin Obi</var>
<var Name="LightObi">Korin Obi</var>
<var Name="DarkObi">Anrin Obi</var>
-->
<var Name="IceObi">Hyorin Obi</var>
<var Name="ThunderObi">Rairin Obi</var>


</variables>
<sets>
<group name="Main" default="yes">
<set name="Town">
<main>$ThunderStaff</main>
<sub>Bugard Strap +1</sub>
<ammo>Phantom Tathlum</ammo>
<head>Sorcerer's Petasos</head>
<neck>Elemental Torque</neck>
<lear>Abyssal Earring</lear>
<rear>Moldavite Earring</rear>
<body>Sorcerer's Coat</body>
<hands>Morrigan's Cuffs</hands>
<lring>Snow Ring</lring>
<rring>Sorcerer's Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Yigit Crackows</feet>
</set>

<set name="Standard">
<main>$ThunderStaff</main>
<sub>Bugard Strap +1</sub>
<ammo>Phantom Tathlum</ammo>
<head>Sorcerer's Petasos</head>
<neck>Elemental Torque</neck>
<lear>Abyssal Earring</lear>
<rear>Moldavite Earring</rear>
<body>Sorcerer's Coat</body>
<hands>Zenith Mitts</hands>
<lring>Snow Ring</lring>
<rring>Sorcerer's Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Yigit Crackows</feet>
</set>
<set name="Aftercast-0">
<main>$EarthStaff</main>
<body>Sorcerer's Coat</body>
<back>Cheviot Cape</back>
<legs>Goliard Trews</legs>
</set>
<set name="Aftercast-1">
<main>$EarthStaff</main>
<ammo></ammo>
<body>Sorcerer's Coat</body>
<rring>Jelly Ring</rring>
<lring>Patronus Ring</lring>
<back>Cheviot Cape</back>
<legs>Goliard Trews</legs>
<feet>Goliard clogs</feet>
</set>
<set name="FastCast">
<head>Walahra Turban</head>
<body>Royal Redingote</body>
<rear>Loquacious Earring</rear>
<waist>Headlong Belt</waist>
</set>
<set name="Resting" BaseSet="Standard">
<main>$DarkStaff</main>
<sub>Ariesian grip</sub>
<head>Walahra Turban</head>
<neck>Beak Necklace +1</neck>
<rear>Antivenom Earring</rear>
<body>Sorcerer's Coat</body>
<hands>Oracle's Gloves</hands>
<back>Invigorating Cape</back>
<waist>Qiqirn Sash +1</waist>
<legs>Yigit Seraweels</legs>
<feet>Goliard clogs</feet>
</set>
<set name="HMP2">
<body>Wizard's Coat +1</body>
</set>

<set name="MinusHP"> <!-- 30 25 50 50 30 20 20 25 -->
<sub>Dark Grip</sub>
<head>Zenith Crown</head>
<neck>Elemental Torque</neck>
<lear>Abyssal Earring</lear>
<rear>Moldavite Earring</rear>
<body>Sorcerer's Coat</body>
<hands>Zenith Mitts</hands>
<lring>Serket Ring</lring>
<rring>Ether Ring</rring>
<back>Solitaire Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="FullDamage">
<ammo>Phantom Tathlum</ammo>
<head>Demon Helm +1</head>
<neck>Elemental Torque</neck>wd
<lear>Abyssal Earring</lear>
<rear>Moldavite Earring</rear>
<body>Igqira Weskit</body>
<hands>Zenith Mitts</hands>
<lring>Snow Ring</lring>
<rring>Sorcerer's Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Yigit Crackows</feet>
</set>
<set name="HighResist" BaseSet="FullDamage">
<head>Sorcerer's Petasos</head>
<hands>Wizard's Gloves +1</hands>
<rring>Balrahn's Ring</rring>
<feet>Goliard clogs</feet>
</set>
<set name="MidResist" BaseSet="FullDamage">
<head>Sorcerer's Petasos</head>
<feet>Goliard clogs</feet>
</set>
<set name="LightResist" BaseSet="FullDamage">
<feet>Goliard clogs</feet>
</set>
<set name="SuperINT" BaseSet="FullDamage">
<body>Errant Houppelande</body>
<hands>Yigit Gages</hands>
<feet>Goliard clogs</feet>
</set>
<set name="DarkMagic">
<head>Walahra Turban</head>
<neck>Dark Torque</neck>
<lear>Abyssal Earring</lear>
<rear>Dark Earring</rear>
<body>Royal Redingote</body>
<hands>Sorcerer's Gloves</hands>
<rring>Balrahn's Ring</rring>
<legs>Wizard's Tonban</legs>
<feet>Goliard clogs</feet>
</set>
<set name="Enfeebling-BlackMagic">
<head>Igqira Tiara</head>
<neck>Enfeebling Torque</neck>
<lear>Abyssal Earring</lear>
<rear>Enfeebling Earring</rear>
<body>Wizard's Coat +1</body>
<hands>Oracle's Gloves</hands>
<lring>Snow Ring</lring>
<rring>Balrahn's Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Igqira lappas</legs>
<feet>Goliard clogs</feet>
</set>
<set name="Enfeebling-WhiteMagic">
<head>Igqira Tiara</head>
<neck>Enfeebling Torque</neck>
<lear>Geist Earring</lear>
<rear>Enfeebling Earring</rear>
<body>Wizard's Coat +1</body>
<hands>Yigit Gages</hands>
<lring>Snow Ring</lring>
<rring>Balrahn's Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Igqira lappas</legs>
<feet>Goliard clogs</feet>
</set>
<set name="Enfeebling-Potent"> <!-- enfeebling + high mnd -->
<sub>Bugard Strap +1</sub>
<ammo>Phantom Tathlum</ammo>
<head>Zenith Crown</head>
<neck>Promise Badge</neck>
<lear>Geist Earring</lear>
<rear>Enfeebling Earring</rear>
<body>Errant Hpl.</body>
<hands>Yigit gages</hands>
<lring>Aqua Ring</lring>
<rring>Sapphire ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="HealingMagic" />
<set name="DivineMagic" />
<set name="Stoneskin">
<main lock="yes">$WaterStaff</main>
<head>Zenith Crown</head>
<neck>Promise badge</neck>
<rear>Loquacious Earring</rear>
<body>Errant Hpl.</body>
<hands>Yigit Gages</hands>
<lring>Serket Ring</lring>
<rring>Aqua Ring</rring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Morrigan's Slops</legs>
<feet>Mahatma Pigaches</feet>
</set>
</group>
</sets>
<rules>

<!-- set of gear to equip when finished casting a spell, equip regen items when you dont use the ring-->
<action type="aftercastdelay" delay="2" />
<action type="equip" when="aftercast" set="Aftercast-$Aftercast" />
<if advanced='"$Ring" == "0" OR %HP<= "600"'>
<action type="equip" when="aftercast">
<neck>Orochi Nodowa</neck>
</action>
</if>

<!-- Keeping Reraise items equiped if reraise is down -->
<if EquipLEar ="Reraise*" NotbuffActive="Reraise" >
<action type="equip" when="precast|midcast|aftercast|resting|idle|engaged">
<lear lock="yes">Reraise Earring</lear>
</action>
</if>

<if EquipREar ="Reraise*" NotbuffActive="Reraise" >
<action type="equip" when="precast|midcast|aftercast|resting|idle|engaged">
<rear lock="yes">Reraise Earring</rear>
</action>
</if>

<if Area="*Leujaoam Sanctum*|*Mamool Ja Training Grounds*|*Lebros Cavern*|*Periqia*|*Ilrusi Atoll*|*Nyzul Isle*">
<action type="equip" when="aftercast|resting|idle|engaged">
<rring lock="yes">Balrahn's Ring</rring>
</action>
</if>

<if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor"> <action type="return" /> </if>

<!-- set of gear to equip when resting -->
<if spell="autoset">
<action type="equip" when="resting" set="Resting" />
<action type="command" when="resting">wait 17;exec spellcast/BLM_HMP.txt</action>
</if>

<if spell="Meteor">
<if status="resting">
<action type="equip" set="HMP2" />
<if SubJob="WHM">
<action type="command">input /echo ===Rest to 940MP===</action>
</if>
<if SubJob="RDM">
<action type="command">input /echo ===Rest to 920MP===</action>
</if>
<if SubJob="NIN">
<action type="command">input /echo ===Rest to 860MP===</action>
</if>
</if>
<action type="CancelSpell" />
<action type="Return" />
</if>

<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" /> -->
<!-- if were handling spells -->
<if mode="OR" Skill="*Magic">
<!-- if this is elemental magic (nukes/dot's, then do special handling -->
<if Skill="ElementalMagic">
<if Spell="Frost|Dsrown|Rasp|Burn|Shock|Choke">
<!-- equip elemental/INT gear for DoT's -->
<action type="equip" when="precast|midcast" Set="SuperINT" />
</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|Gere|Khimaira|Tyger|Jailer of Love|Sarameya|Orochi|Black Shuck|Xolotl" NotBuffActive="Elemental Seal">
<action type="equip" when="precast" Set="HighResist" />
</if>
<else>
<!-- if mob is not high resist, is it a mid resist mob? -->
<if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu|Stoorworm|Proto|Armed Gears*" NotBuffActive="Elemental Seal">
<action type="midcastdelay" delay="1.5" />
<action type="equip" when="midcast" Set="MidResist" />
</if>
<else>
<if mode="AND" Spell="*III|*II" NotSpell="Freeze*|Burst*|Tornado*|*ga*">
<action type="equip" when="midcast">
<hands lock="yes">Yigit Gages</hands>
</action>
</if>
<if Spell="Freeze II|Burst II|Tornado II">
<action type="equip" when="midcast">
<back lock="yes">Solitaire Cape</back>
</action>
</if>
<!-- Normal mob, go full damage gear. -->
<if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket|Chlevnik">
<if NotBuffActive="Elemental Seal">

<action type="equip" when="midcast" Set="LightResist" />
</if>
<else>
<action type="midcastdelay" delay="1.5" />
<action type="equip" when="midcast" Set="FullDamage" />
</else>
</if>
<else>
<action type="midcastdelay" delay="1.5" />
<action type="equip" when="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>
<action type="command">input /echo Uggalepih Pendant: ON</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="castdelay" delay="1" />
<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="castdelay" delay="1" />
<action type="equip" when="precast" set="MinusHP" />
</else>
</if>
</else>
</else>
<action type="midcastdelay" delay="0.5" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
</if>
<elseif mode="OR" Skill="EnfeeblingMagic|DarkMagic" Spell="Cure*|Cura*">
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>

<!-- for any other type of spells -->
<if Skill="EnfeeblingMagic">
<if spell="Slow*|Para*">
<action type="equip" when="midcast" set="Enfeebling-Potent" />
</if>
<else>
<action type="equip" when="midcast" set="Enfeebling-%Type" />
</else>
</if>
<elseif Skill="DarkMagic">
<action type="equip" when="midcast" set="DarkMagic" />
</elseif>
</elseif>
</if>
<else>
<action type="equip" when="precast|midcast" Set="Aftercast-$Aftercast" />
</else>

<!-- Handle Elemental Obi's -->
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" != "\$%SpellElementObi"'>
<action Type="Equip" When="MidCast">
<waist>$%SpellElementObi</waist>
</action>
</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" != "\$%SpellElementObi") 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">
<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>
<!-- To avoid rebinding my keybard (Default = RDM binds) I use spellcast to change the spells-->
<if Spell="Protect IV">
<action type="ChangeSpell" Spell="Protect II" />
</if>
<if Spell="Shell IV">
<action type="ChangeSpell" Spell="Shell II" />
</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*">
<action type="equip" when="precast" set="FastCast" />
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<action type="midcastdelay" delay="3.0" />
<action type="Command" when="midcast">cancel 66</action>
</if>
</if>
<elseif Spell="Stoneskin" >
<action type="command" when="midcast">cancel 37</action>
<action type="equip" when="midcast" set="Stoneskin" />
<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>
</else>
</rules>
</spellcast>

This is a hacked and edited version of Aikar's template.

Hope it helps.
[+]
 Quetzalcoatl.Giazz
Offline
Server: Quetzalcoatl
Game: FFXI
user: Gias
Posts: 1308
By Quetzalcoatl.Giazz 2010-08-10 13:37:10
Link | Quote | Reply
 
Fenrir.Krazyrs said:
so i found this, ill try it next time i log in

<if skill="ElementalMagic" notspell="Shock|Choke|Burn|Frost|Rasp|Drown">
<action type="equip" when="precast" Set="Teal" />
<action type="command" when="precast">wait 1; sc set Hpdown</action>
<action type="midcastdelay" delay="2.1" />
<action type="equip" when=midcast" Set="Nuking">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>

What version of Spellcast do you have?

Do keep in mind that that code that you found is meant to work on older versions of spellcast, on spellcast 2.22 to be more exact. It will not work on the newer spellcast 2.30+

Also, the BLM spellcast XML that Argettio posted is for the 2.22 version as well, not for the 2.30 version.
 Fenrir.Krazyrs
Offline
Server: Fenrir
Game: FFXI
user: krazyrs
Posts: 716
By Fenrir.Krazyrs 2010-08-10 20:00:26
Link | Quote | Reply
 
yea i found that out
im using 2.30 with aikars and they only thing that never works is HP check for s.ring latent

it ALWAYS equips minusHP set even if under latent already or weakened

and that code doesnt work, since meant for 2.22
 Quetzalcoatl.Giazz
Offline
Server: Quetzalcoatl
Game: FFXI
user: Gias
Posts: 1308
By Quetzalcoatl.Giazz 2010-08-10 20:59:42
Link | Quote | Reply
 
Yeah, though to be honest, I like the code for the 2.30 version of spellcast better... it's clearer, in my opinion anyway.

Also, people may find this helpful:

Spellcast 2.22 to 2.30 format/code upgrader

Just copy and paste code from a spellcast 2.22 XML file into that format upgrader, then click where it says "Update XML" on the top left corner, and then your code should be changed into 2.30 code format. You can then just copy and paste that into your XML file in your plugins/spellcast folder, and it should work with the newer version of spellcast(2.30 version).

That converter is also nice for aligning everything nicely too, even if you're already making 2.30 code.
Offline
By Antisense 2010-08-10 22:37:08
Link | Quote | Reply
 
There is no obvious way to check if $%SubJobRingHP is set (at least I can't think of one; the code itself doesn't make sense to me), so it seems simplest to specify a minimum HP, applicable to those subjobs you actually use, that if exceeded allows the HP down set to be used. That threshold can be based on subbing /WHM or whatever else you want.
Log in to post.