Advertisement
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>
- <config
- RequireVersion="2.18"
- HideErrors="true"
- ShowGearSwaps="false"
- Debug="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">0</var>
- <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
- <var name="Ring">0</var>
- <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
- <var name="UggPendant">0</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">726</var>
- <var name="WHMRingHP">712</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">0</var>
- <var name="WindGrip">0</var>
- <var name="WaterGrip">0</var>
- <var name="EarthGrip">0</var>
- <!-- Elemental Staffs, input what staff to use for each element here -->
- <var name="IceStaff">Aquilo's Staff</var>
- <var name="DarkStaff">Dark Staff</var>
- <var name="ThunderStaff">Thunder Staff</var>
- <var name="LightStaff">Light Staff</var>
- <var name="WindStaff">Wind Staff</var>
- <var name="FireStaff">Fire Staff</var>
- <var name="EarthStaff">Earth Staff</var>
- <var name="LightStaff">Light Staff</var>
- <var name="WaterStaff">water staff</var>
- <!-- Elemental Obi's, set to 1 for the ones you have. -->
- <var name="DarkObi">0</var>
- <var name="LightObi">0</var>
- <var name="ThunderObi">0</var>
- <var name="IceObi">0</var>
- <var name="FireObi">0</var>
- <var name="WindObi">0</var>
- <var name="WaterObi">0</var>
- <var name="EarthObi">0</var>
- </variables>
- <sets>
- <group name="Main" default="yes">
- <set name="Standard">
- <main>$EarthStaff</main>
- <sub>Bugard Strap +1</sub>
- <neck>Beak necklace</neck>
- <rear>Loquacious Earring</rear>
- <lear>Ethereal earring</lear>
- <body>Black Cloak</body>
- <hands>Nashira Gages</hands>
- <lring>Serket ring</lring>
- <rring>Jelly Ring</rring>
- <back>Rainbow Cape</back>
- <waist>Penitent's rope</waist>
- <legs>Errant Slops</legs>
- <feet>Nashira Crackows</feet>
- </set>
- <set name="FastCast">
- <head>Walahra Turban</head>
- <rear>Loquacious Earring</rear>
- <body>Igqira Wesket</body>
- <feet>Nashira Crackows</feet>
- <waist>Penitent's rope</waist>
- </set>
- <set name="Resting" BaseSet="Standard">
- <body>Errant Hpl.</body>
- <main>$darkStaff</main>
- <sub>Bugard Leather strap +1</sub>
- <head>Walahra Turban</head>
- <waist>Hierarch Belt</waist>
- <neck>Beak Necklace</neck>
- <feet>Custom F boots</feet>
- <lear>Phantom earring</lear>
- <lring>Serket Ring</lring>
- </set>
- <set name="MinusHP">
- <head>Zenith Crown</head>
- <back>Ixion Cape</back>
- <hands>Zenith Mitts</hands>
- <neck>Morgana's Choker</neck>
- <feet>Rostrum Pumps</feet>
- <legs>Zenith Slacks</legs>
- <ammo>Phantum Tathlum</ammo>
- <sub>Thunder Grip</sub>
- <lring>ether Ring</lring>
- <rring>Astral Ring</rring>
- </set>
- <set name="FullDamage" BaseSet="Standard">
- <sub>Bugard Strap +1</sub>
- <neck>Philomath Stole</neck>
- <lear>Diamond Earring</lear>
- <rear>Moldavite Earring</rear>
- <head>Wizard's Petasos</head>
- <body>Igqira Weskit</body>
- <hands>Wizard's Gloves</hands>
- <lring>Diamond ring</lring>
- <rring>Diamond ring</rring>
- <back>Rainbow Cape</back>
- <waist>Penitent's Rope</waist>
- <legs>Errant Slops</legs>
- <feet>Nashira Crackows</feet>
- </set>
- <set name="HighResist" BaseSet="FullDamage">
- <hands>Wizard's Gloves</hands>
- <head>Wizard's Petasos</head>
- <legs>Errant Slops</legs>
- <rring>Balrahn's Ring</rring>
- <!-- one day -->
- </set>
- <set name="MidResist" BaseSet="FullDamage">
- <head>Wizard's Petasos</head>
- <!-- one day -->
- </set>
- <set name="LightResist" BaseSet="FullDamage">
- <head>Wizard's Petasos</head>
- </set>
- <set name="DarkMagic">
- <legs>Wizard's Tonban</legs>
- <neck>Philomath Stole</neck>
- <hands>Nashira Gages</hands>
- <head>Walahra Turban</head>
- <feet>Nashira Crackows</feet>
- <rring>Balrahn's Ring</rring>
- </set>
- <set name="EnfeeblingMagic">
- <body>Wizard's Coat</body>
- <head>Igqira Tiara</head>
- <neck>Philomath Stole</neck>
- <hands>Nashira Gages</hands>
- <feet>Nashira Crackows</feet>
- <legs>Igqira Lappa</legs>
- <rring>Balrahn's Ring</rring>
- </set>
- <set name="HealingMagic" />
- <set name="DivineMagic" />
- <set name="EnhancingMagic" />
- </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>">
- <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*">
- <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) -->
- <equip when="Idle|aftercast" set="Standard" />
- <!-- set of gear to equip when resting -->
- <equip when="Resting" set="Resting" />
- <if Spell="Stun">
- <!-- equip gear that helps stun, and nothing else -->
- <equip set="DarkMagic|FastCast">
- <main>$ThunderStaff</main>
- </equip>
- <!-- these codes just print Stun in auto translate into chat. -Which of course I removed-
- <action type="command">input /echo \xFD\x07\x02\x12\xFC\xFD >> <%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" 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"'>
- <equip when="midcast">
- <sub lock="true">%SpellElement Grip</sub>
- </equip>
- </if>
- </if>
- <!-- if were handling spells -->
- <if Skill="*Magic">
- <!-- if this is elemental magic (nukes/dot's, then do special handling -->
- <if Skill="ElementalMagic">
- <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
- <!-- equip elemental/INT gear for DoT's -->
- <equip when="precast|midcast" Set="HighResist" />
- </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">
- <equip when="precast|midcast" Set="HighResist" />
- </if>
- <else>
- <!-- if mob is not high resist, is it a mid resist mob? -->
- <if target="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin" NotBuffActive="Elemental Seal">
- <equip when="precast|midcast" Set="MidResist" />
- </if>
- <else>
- <!-- Normal mob, go full damage gear. -->
- <if mode="or" Area="Dynamis *|Hazhalm*">
- <equip when="precast|midcast" Set="LightResist" />
- </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==0">
- <equip set="MinusHP" />
- </if>
- <!-- Handle Elemental Obi's -->
- <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
- <if Element="Dark"><equip when="midcast"><waist lock="yes">Anrin Obi</waist></equip></if>
- <elseif Element="Light"><equip when="midcast"><waist lock="yes">Korin Obi</waist></equip></elseif>
- <elseif Element="Thunder"><equip when="midcast"><waist lock="yes">Rairin Obi</waist></equip></elseif>
- <elseif Element="Ice"><equip when="midcast"><waist lock="yes">Hyorin Obi</waist></equip></elseif>
- <elseif Element="Fire"><equip when="midcast"><waist lock="yes">Karin Obi</waist></equip></elseif>
- <elseif Element="Wind"><equip when="midcast"><waist lock="yes">Furin Obi</waist></equip></elseif>
- <elseif Element="Water"><equip when="midcast"><waist lock="yes">Suirin Obi</waist></equip></elseif>
- <elseif Element="Earth"><equip when="midcast"><waist lock="yes">Dorin Obi</waist></equip></elseif>
- </if>
- <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
- <if Advanced='(!((regex)%Weather=^.* x2$(/regex) AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
- <equip when="midcast">
- <legs lock="yes">Sorcerer's Tonban</legs>
- </equip>
- </if>
- <!-- Timers for when sleep is wearing off. -->
- <if advanced='"$SleepTimers"="1"'>
- <if Spell="Sleep II|Sleepga II">
- <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
- <command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
- <command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
- </if>
- <elseif Spell="Sleep|Sleepga">
- <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
- <command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
- </elseif>
- </if>
- <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
- <if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
- <command when="midcast">cancel 71</command>
- <midcastdelay delay="2.1" />
- </if>
- <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
- <midcastdelay delay="2.5" />
- <command when="midcast">cancel 66</command>
- </if>
- <elseif Spell="Stoneskin" BuffActive="Stoneskin">
- <command when="midcast">cancel 37</command>
- <midcastdelay delay="4.8" />
- </elseif>
- <elseif Spell="Blink" BuffActive="Blink">
- <command when="midcast">cancel 36</command>
- <midcastdelay delay="4.5" />
- </elseif>
- <!-- finally, equip our staff! -->
- <equip when="midcast">
- <main>$%SpellElementStaff</main>
- </command>
- </else>
- </rules>
- </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement