Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <!--
- ===================================================
- ||
- || Aikar's BLM SpellCast Template
- ||
- || This file is designed to be easily used by others.
- || Simply editing in your own gear and modifying the variables up top
- || should be all that is needed to make use of this file.
- ||
- || Please be sure to configure the variables prior to use.
- ||
- || If you have any questions - Please post on the forums.
- ===================================================
- -->
- <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
- <config
- RequireVersion="2.30"
- Debug="True"
- ShowGearSwaps="True"
- quickcommands="True"
- showspellinfo="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">0</var>
- <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
- <var name="UggPendant">1</var>
- <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
- <var name="RDMRingHP">597</var>
- <var name="WHMRingHP">583</var>
- <var name="NINRingHP">597</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">1</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="Staff-Ice">Varuna's Staff</var>
- <var name="Staff-Dark">Chatoyant Staff</var>
- <var name="Staff-Thunder">Chatoyant Staff</var>
- <var name="Staff-Light">Chatoyant Staff</var>
- <var name="Staff-Wind">Chatoyant Staff</var>
- <var name="Staff-Fire">Chatoyant Staff</var>
- <var name="Staff-Earth">Chatoyant Staff</var>
- <var name="Staff-Water">Chatoyant Staff</var>
- <!-- Obis, name them if you have, otherwise leave at 0 -->
- <var name="Obi-Ice">Hyorin Obi</var>
- <var name="Obi-Dark">Anrin Obi</var>
- <var name="Obi-Thunder">Rairin Obi</var>
- <var name="Obi-Light">Korin Obi</var>
- <var name="Obi-Wind">Furin Obi</var>
- <var name="Obi-Fire">Karin Obi</var>
- <var name="Obi-Earth">Dorin Obi</var>
- <var name="Obi-Water">Suirin Obi</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">1</var>
- <var name="WaterObi">0</var>
- <var name="EarthObi">0</var>
- <!--DD and Owleyes -->
- <var name="IdleMain">Owleyes</var>
- <var name="IdleSub">Genbu's Shield</var>
- <var name="DDStaff">Chthonic Staff</var>
- </variables>
- <sets>
- <group name="Main" default="yes">
- <set name="Standard">
- <main>$IdleMain</main>
- <sub>$idleSub</sub>
- <ammo>Snow Sachet</ammo>
- <head>Goetia Petasos +2</head>
- <neck>Orochi Nodowa</neck>
- <lear>Gifted Earring</lear>
- <rear>Moonshade Earring</rear>
- <body>Goetia Coat +2</body>
- <hands>Serpentes Cuffs</hands>
- <lring>Sheltered Ring</lring>
- <rring>Dark Ring</rring>
- <back>Twilight Cape</back>
- <waist>Austerity Belt</waist>
- <legs>Tatsumaki Sitagoromo</legs>
- <feet>Serpentes Sabots</feet>
- </set>
- <set name="FastCast">
- <feet>Rostrum Pumps</feet>
- <waist>Moblin Cest</waist>
- </set>
- <set name="Resting" BaseSet="Standard">
- <body>Errant Hpl.</body>
- <main>Chatoyant Staff</main>
- <head>Wizard's Petasos +1</head>
- <waist>Austerity Belt</waist>
- <hands>Serpentes Cuffs</hands>
- <neck>Eidolon Pendant</neck>
- <rear>Magnetic Earring</rear>
- <lear>Moonshade Earring</lear>
- <legs>Sorcerer's tonban</legs>
- <feet>Oracle's Pigaches</feet>
- <back>Merciful Cape</back>
- </set>
- <set name="MinusHP" />
- <set name="FullDamage" BaseSet="Standard">
- <sub>Bugard Strap +1</sub>
- <ammo>Witchstone</ammo>
- <neck>Elemental Torque</neck>
- <lear>Moldavite Earring</lear>
- <rear>Hecate's Earring</rear>
- <head>Goetia Petasos +2</head>
- <body>Goetia Coat +2</body>
- <hands>Goetia Gloves +2</hands>
- <lring>Diamond Ring</lring>
- <rring>Strendu Ring</rring>
- <back>Goetia Mantle</back>
- <waist>Sorcerer's Belt</waist>
- <legs>Goetia Chausses +2</legs>
- <feet>Goetia Sabots +2</feet>
- </set>
- <set name="Int" BaseSet="Standard">
- <sub>Bugard Strap +1</sub>
- <ammo>Snow Sachet</ammo>
- <neck>Uggalepih Pendant</neck>
- <lear>Abyssal Earring</lear>
- <rear>Hecate's Earring</rear>
- <head>Goetia Petasos +2</head>
- <body>Goetia Coat +2</body>
- <hands>Goetia Gloves +2</hands>
- <lring>Diamond Ring</lring>
- <rring>Strendu Ring</rring>
- <back>Goetia Mantle</back>
- <waist>Sorcerer's Belt</waist>
- <legs>Sorcerer's Tonban</legs>
- <feet>Goetia Sabots +2</feet>
- </set>
- <set name="DarkMagic">
- <legs>Wizard's Tonban</legs>
- <lear>Abyssal Earring</lear>
- <rear>Magnetic Earring</rear>
- <head>Walahra Turban</head>
- <hands>Goetia Gloves +2</hands>
- <waist>Swift Belt</waist>
- <body>Goetia Coat +2</body>
- <feet>Goetia Sabots +2</feet>
- <back>Goetia Mantle</back>
- <ammo>Clarus Stone</ammo>
- </set>
- <set name="EnfeeblingMagic">
- <body>Wizard's Coat</body>
- <sub>Bugard Strap +1</sub>
- <head>Igqira Tiara</head>
- <hands>Goetia Gloves +2</hands>
- <legs>Igqira Lappa</legs>
- <feet>Goetia Sabots +2</feet>
- <waist>Moblin Cest</waist>
- <rring>Strendu Ring</rring>
- <lear>Gifted Earring</lear>
- <ammo>Clarus Stone</ammo>
- </set>
- <set name="HealingMagic">
- <sub>Bugard Strap +1</sub>
- <hands>Serpentes Cuffs</hands>
- <feet>Serpentes Sabots</feet>
- <lear>Gifted Earring</lear>
- <rear>Magnetic Earring</rear>
- <waist>Austerity Belt</waist>
- <ammo>Clarus Stone</ammo>
- </set>
- <set name="DivineMagic" />
- <set name="EnhancingMagic">
- <sub>Fulcio Grip</sub>
- <body>Errant Hpl.</body>
- <head>Zenith Crown</head>
- <legs>Errant Slops</legs>
- <feet>Rostrum Pumps</feet>
- <waist>Siegel Sash</waist>
- <ammo>Clarus Stone</ammo>
- </set>
- <!--Vidohunir Set, MAB and int-->
- <set name = "weaponskill">
- <neck>Uggalepih Pendant</neck>
- <lear>Moldavite Earring</lear>
- <rear>Hecate's Earring</rear>
- <head>Goetia Petasos +2</head>
- <body>Goetia Coat +2</body>
- <hands>Goetia Gloves +2</hands>
- <lring>Blizzard Ring</lring>
- <rring>Strendu Ring</rring>
- <back>Goetia Mantle</back>
- <legs>Goetia Chausses +2</legs>
- <feet>Goetia Sabots +2</feet>
- </set>
- <set name = "tp">
- <head>Hakke Hachimaki</head>
- <waist>Swift Belt</waist>
- <lear>Brutal Earring</lear>
- </set>
- </group>
- </sets>
- <rules>
- <!--Idle condition for owleyes-->
- <if MPPLT="85">
- <var cmd="set IdleMain Owleyes" />
- <var cmd="set IdleSub Genbu's Shield" />
- </if>
- <else>
- <var cmd="set IdleMain Chthonic Staff" />
- <var cmd="set IdleSub Bugard Strap +1" />
- </else>
- <equip when="engaged" set="tp" />
- <if status="engaged">
- <main lock="true"></main>
- <sub lock="tru"></sub>
- </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 SpellTargetType="NONE" ValidTarget="*Self*">
- <changetarget target="<me>" />
- </if>
- <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
- <return />
- </if>
- <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
- <equip when="Idle|aftercast" set="Standard" />
- <!-- set of gear to equip when resting -->
- <equip when="Resting" set="Resting" />
- <if Spell="Stun">
- <!-- equip gear that helps stun, and nothing else -->
- <equip set="DarkMagic|FastCast">
- <main>Chatoyant Staff</main>
- <waist>Swift Belt</waist>
- <head>Walahra Turban</head>
- <feet>Goetia Sabots +2</feet>
- </equip>
- <!-- these codes just print Stun in auto translate into chat. -->
- <command>input /p Stun >> <%SpellTarget></command>
- </if>
- <else>
- <!-- equip fast cast gear -->
- <equip Set="FastCast" />
- <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
- <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love|Kindred*">
- <if Advanced='"$%SpellElementGrip" == "1"'>
- <equip when="midcast">
- <sub lock="true">%SpellElement Grip</sub>
- </equip>
- </if>
- </if>
- <!-- Keeping Goetia Sabots locked while under Mana Wall -->
- <if mode="OR" spell="Mana Wall" buffactive="Mana Wall">
- <equip when="precast|midcast|aftercast|idle|resting">
- <feet lock="true">Goetia Sabots +2</feet>
- </equip>
- </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|*helix">
- <!-- equip elemental/INT gear for DoT's -->
- <equip when="precast|midcast" Set="Int" />
- </if>
- <else>
- <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
- <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
- <equip when="precast|midcast" Set="Int" />
- </if>
- <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>
- </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 Element="%DayElement|%WeatherElement" advanced='"$Obi-%spellelement"!="0"' notspell="*helix">
- <equip when="midcast">
- <waist>$Obi-%Spellelement</waist>
- <back>Twilight Cape</back>
- </equip>
- </if>
- <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
- <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
- <equip when="midcast">
- <legs lock="yes">Sorcerer's Tonban</legs>
- </equip>
- </if>
- <!-- Handle Zenith Ring -->
- <!-- Timers for when sleep is wearing off. -->
- <if advanced='"$SleepTimers"="1"'>
- <if Spell="Sleep II|Sleepga II">
- <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
- <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
- <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
- </if>
- <elseif Spell="Sleep|Sleepga">
- <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
- <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
- </elseif>
- </if>
- <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
- <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
- <command when="midcast">cancel 71</command>
- <midcastdelay delay="1.8" />
- </if>
- <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
- <midcastdelay delay="3.0" />
- <command when="midcast">cancel 66</command>
- </if>
- <elseif Spell="Stoneskin" BuffActive="Stoneskin">
- <command when="midcast">cancel 37</command>
- <midcastdelay delay="4.8" />
- </elseif>
- <elseif Spell="Blink" BuffActive="Blink">
- <command when="midcast">cancel 36</command>
- <midcastdelay delay="4.5" />
- </elseif>
- <!-- finally, equip our staff! -->
- <equip when="precast|midcast">
- <main>$Staff-%SpellElement</main>
- </equip>
- </else>
- <if Spell = "Vidohunir|Cataclysm">
- <equip when = "precast" set = "weaponskill" />
- </if>
- </rules>
- </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment