xanthe, do you recommend having castdelay on jump and high jump and other drg JAs? I know that ws you shouldn't need cuz the readies, but for JA i am not sure.
xanthe, do you recommend having castdelay on jump and high jump and other drg JAs? I know that ws you shouldn't need cuz the readies, but for JA i am not sure.
I personally do have a delay (again .4) for JAs since I have noticed when I don't that Angon will not trigger. I also do it intentionally for Spirit Link to make sure any wHP from Homam Gamberias has been removed so I'm not needlessly losing HP when transferring buffs with Empathy (great for merits).
Anyone know why this rule;
casts cure4 in my idle gear after equipping my convert set? Everything else works fine, except it doesn't seem the lock is working properly.Code:<if spell="Convert"> <if advanced='"$ConvertRisk"="0"'> <if subjob="whm"> <action type="equip" when="precast|midcast|aftercast" lock="true" set="Convert" /> <action type="castdelay" delay="1.2" /> <action type="command" when="precast">input /raw /ja "Divine Seal" <me></action> <action type="aftercastdelay" delay="0" /> <action type="command" when="aftercast">input /raw /ma "Cure IV" <me>;wait 6;input /sc set standard</action> </if> <else> <action type="equip" when="precast|midcast|aftercast" lock="true" set="Convert" /> <action type="aftercastdelay" delay="0" /> <action type="command" when="aftercast">input /raw /ma "Cure IV" <me>;wait 6;input /sc set standard</action> </else> </if> <elseif advanced='"$ConvertRisk"="1"'> <action type="equip" when="precast|midcast|aftercast" set="Convert" /> <action type="aftercastdelay" delay="0" /> <action type="command" when="aftercast">input /raw /ma "Cure IV" <me>;wait 6;input /sc set standard</action> <action type="var" when ="aftercast" cmd="set ConvertRisk 0" /> <action type="addtochat" when="aftercast" color="121">[Convert Risk Reset To 0]</action> </elseif> </if>
I am seeking help to lock in virtue stones if my warrior's main weapon is Fortitude Axe. So far I have:
What I am not sure about though, is what would be the best way to lock the Virtue Stones in place. Should I use a variable and make my TP Gear use $Ammo, or would it be better to simply do something like:Code:<if advanced='"%equipmain"=="Fortitude*"'> </if>
Or is there some alternative way of getting desired results that I am just not thinking of?Code:<action type="equip"> <ammo lock="yes">Virtue Stone</ammo> </action>
Any help appreciated, thanks in advance
That will work fine, provided that rule is located in your XML file before any other rules that touch the ammo slot.
Personally, I would just manually equip the virtue stones and then type (in game): "/sc disable ammo". That stops spellcast from touching the ammo slot. Then when I'm done, type "/sc enable" to turn back on all the slots.
This is mostly because I don't like clogging up my XML files with a bunch of weird situational rules that slow things down and make the file harder to maintain, when I can easily get the same effect with one command. If you use a lock rule like you posted, every single time you do anything, spellcast will be checking to see if you have a Virtue Stone equipped, just so it can lock the slot when you do. Sure, it's not a big deal when there's only a few, but things tend to add up, especially with how inefficiently most people write their XML files. Not that that's anything to be ashamed of, I'd really only expect someone that's already a programmer to be able to do it well.
Disregard this..I fixed it.
I believe it's because you're using these line in your equipment sets:
This won't work as far as I know, as Spellcast only runs through the <rules> section each time you cast a spell. All the sets are static when you load the plugin (someone correct me if I'm wrong?) So you can use variables you create yourself, but not on-the-fly ones that begin with a %-sign.Code:<main>$Staff-%SpellElement</main>
Best thing to do would be to place a line at the very end (similar to standard BLM template)
and see if this works. For any spell where you don't want it to switch to the corresponding stave, just lock the main slot in a rule prior to this one.Code:<equip when="midcast"> <main>$Staff-%SpellElement</main> </equip>
ive been using spellcast for a little while now for my mage jobs and basicly copy/pasted aikar's xml's, but ive been having minor issues with them
blm-ive pretty much copy/pasted aikar's xml and just added couple things, everything works fine but im having a problem when switching from resting gear to idle gear. my max mp while resting is 902 and max while idle is 920 but when i stand up my mp drops to around 850-875 ive tried to move around the the gear in the sets putting any mp+ gear on top. just cant figure out why it does it.
whm xml i only copy/pasted aikar's and edited it to my gear but it doesnt swap staffs when casting enfeebles. it will swap staffs for cures/stoneskin/ect but not enfeebles his xml file is complicated so i have no clue why it would be doing that.
blm xml-Code:<?xml version="1.0" ?> <config RequireVersion="2.22" /> <variables> <var name="SleepTimers">1</var> <var name="BLMAF2Pants">1</var> <var name="Ring">1</var> <var name="UggPendant">1</var> <var name="RDMRingHP">650</var> <var name="WHMRingHP">650</var> <var name="NINRingHP">650</var> <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> <var name="IceStaff">Aquilo's Staff</var> <var name="DarkStaff">Pluto's Staff</var> <var name="ThunderStaff">Jupiter's Staff</var> <var name="WindStaff">Wind Staff</var> <var name="FireStaff">Fire Staff</var> <var name="EarthStaff">Earth Staff</var> <var name="LightStaff">Apollo's Staff</var> <var name="WaterStaff">Water Staff</var> <var name="Kirin">Kirin's Pole</var> <var name="DarkObi">1</var> <var name="LightObi">0</var> <var name="ThunderObi">1</var> <var name="IceObi">1</var> <var name="FireObi">1</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"> <rear>Loquac. Earring</rear> <back>Merciful Cape</back> <legs>Sorcerer's Tonban</legs> <hands>Zenith Mitts</hands> <neck>Morgana's Choker</neck> <main>$EarthStaff</main> <sub>Bugard Strap +1</sub> <feet>Rostrum Pumps</feet> <ammo>Phantom Tathlum</ammo> <lear>Moldavite Earring</lear> <waist>Witch Sash</waist> <lring>Jelly Ring</lring> <rring>Patronus Ring</rring> <body>Black Cloak</body> </set> <set name="FastCast"> <feet>Rostrum Pumps</feet> <rear>Loquac. Earring</rear> </set> <set name="Resting" BaseSet="Standard"> <body>Errant Hpl.</body> <main>$DarkStaff</main> <head>Wzd. Petasos +1</head> <waist>Qiqirn Sash +1</waist> <feet>Arborist Nails</feet> <hands>Oracle's Gloves</hands> <neck>Grandiose Chain</neck> <rear>Relaxing Earring</rear> <lear>Antivenom Earring</lear> <legs>Baron's Slops</legs> <back>Invigorating Cape</back> <lring>Ether Ring</lring> <rring>Astral Ring</rring> </set> <set name="MinusHP"> <head>Zenith Crown</head> <feet>Rostrum Pumps</feet> <legs>Zenith Slacks</legs> <lring>Ether Ring</lring> <rring>Astral Ring</rring> <neck>Morgana's Choker</neck> <lear>Astral Earring</lear> <back>Prism Cape</back> <body>Igqira Weskit</body> </set> <set name="FullDamage" BaseSet="Standard"> <neck>Elemental Torque</neck> <lear>Moldavite Earring</lear> <rear>Loquac. Earring</rear> <head>Demon Helm +1</head> <body>Igqira Weskit</body> <hands>Zenith Mitts</hands> <rring>Snow Ring</rring> <lring>Omega Ring</lring> <back>Prism Cape</back> <legs>Mahatma Slops</legs> <feet>Yigit Crackows</feet> <waist>Witch Sash</waist> </set> <set name="HighResist" BaseSet="FullDamage"> <hands>Wizard's Gloves</hands> <head>Sorcerer's Petas.</head> <feet>Yigit Crackows</feet> <body>Errant Hpl.</body> <back>Merciful Cape</back> </set> <set name="MidResist" BaseSet="FullDamage"> <head>Sorcerer's Petas.</head> <hands>Wizard's Gloves</hands> </set> <set name="LightResist" BaseSet="FullDamage" /> <set name="DarkMagic"> <legs>Wizard's Tonban</legs> <lear>Dark Earring</lear> <rear>Abyssal Earring</rear> <head>Nashira Turban</head> <neck>Dark Torque</neck> <body>Errant Hpl.</body> <back>Merciful Cape</back> <ammo>Sturm's Report</ammo> </set> <set name="EnfeeblingMagic"> <body>Wizard's Coat</body> <head>Genie Tiara</head> <neck>Enfeebling Torque</neck> <hands>Oracle's Gloves</hands> <lear>Enfeebling Earring</lear> <legs>Igqira Lappa</legs> <lring>Omega Ring</lring> <ammo>Sturm's Report</ammo> <back>Arrestor Mantle</back> </set> <set name="HealingMagic" /> <set name="DivineMagic" /> <set name="EnhancingMagic"> <neck>Morgana's Choker</neck> <head>Walahra Turban</head> <main lock="yes">$Kirin</main> <sub>Bugard Strap +1</sub> <body>Errant Hpl.</body> <feet>Rostrum Pumps</feet> <hands>Devotee's Mitts</hands> <rring>Sapphire Ring</rring> <lring>Omega Ring</lring> <legs>Mahatma Slops</legs> <waist>Swift Belt</waist> <back>Prism Cape</back> </set> </group> </sets> <rules> <!-- 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>$ThunderStaff</main> </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"> <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="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 SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Sarameya|Nosferatu" NotBuffActive="Elemental Seal"> <equip when="midcast" 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|Wyrm" NotBuffActive="Elemental Seal"> <equip when="midcast" Set="MidResist" /> </if> <else> <!-- Normal mob, go full damage gear. --> <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket"> <if NotBuffActive="Elemental Seal"> <equip when="midcast" Set="LightResist" /> </if> <else> <equip when="midcast" Set="FullDamage" /> </else> </if> <else> <equip when="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="midcast" Set="Standard" /> </else> <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. --> <if Spell="Drain" Advanced="$Ring==1"> <equip set="MinusHP" /> </if> <!-- Handle Elemental Obi's --> <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'> <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='(!((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> <!-- 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="midcast"> <main>$%SpellElementStaff</main> </equip> </else> </rules> </spellcast>
could'nt post both xml in same post so here's my whm xml
Code:<?xml version="1.0" ?> <spellcast> <config RequireVersion="2.18" ShowGearSwaps="false" Debug="true" ShowSpellInfo="false" /> <variables clear="false"> <var name="IceStaff">Aquilo's Staff</var> <var name="DarkStaff">Pluto's Staff</var> <var name="ThunderStaff">Jupiter's 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> <var name="DarkObi">1</var> <var name="LightObi">0</var> <var name="ThunderObi">1</var> <var name="IceObi">1</var> <var name="FireObi">1</var> <var name="WindObi">0</var> <var name="WaterObi">0</var> <var name="EarthObi">0</var> <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> <var name="Gaiters">0</var> <var name="Ring">0</var> <var name="CureBot">0</var> </variables> <sets> <group default="yes" name="WHM|Melee"> <set name="Standard"> <main>$EarthStaff</main> <sub>Bugard Strap +1</sub> <ammo>Sturm's Report</ammo> <head>Walahra Turban</head> <neck>Morgana's Choker</neck> <lear>Loquac. Earring</lear> <rear>Astral Earring</rear> <body>Noble's Tunic</body> <hands>Oracle's Gloves</hands> <rring>Jelly Ring</rring> <lring>Patronus Ring</lring> <back>Merciful Cape</back> <waist>Witch Sash</waist> <legs>Blessed Trousers</legs> <feet>Rostrum Pumps</feet> </set> <set name="MaxMP" BaseSet="Standard"> <main>Asklepios</main> <sub>Genbu's Shield</sub> <hands>Zenith Mitts</hands> <lring>Ether Ring</lring> <rring>Astral Ring</rring> <legs>Zenith Slacks</legs> <head>Zenith Crown</head> </set> <set name="Resting" BaseSet="Standard"> <body>Errant Hpl.</body> <neck>Grandiose Chain</neck> <main>$DarkStaff</main> <head>Zenith Crown</head> <waist>Qiqirn Sash +1</waist> <hands>Oracle's Gloves</hands> <back>Invigorating Cape</back> <feet>Arborist Nails</feet> <legs>Baron's Slops</legs> <lear>Relaxing Earring</lear> <rear>Antivenom Earring</rear> <lring>Ether Ring</lring> <rring>Astral Ring</rring> </set> <set name="Haste" BaseSet="Standard"> <head>Walahra Turban</head> <hands>Blessed Mitts</hands> <legs>Blessed Trousers</legs> <feet>Blessed Pumps</feet> <waist>Swift Belt</waist> </set> <set name="WeakenedMinusHP" BaseSet="Standard"> <neck>Morgana's Choker</neck> </set> <set name="MinusHP" BaseSet="Standard"> <head>Zenith Crown</head> <back>Ixion Cape</back> <hands>Zenith Mitts</hands> <lring>Ether Ring</lring> <neck>Morgana's Choker</neck> <rear>Loquac. Earing</rear> </set> <set name="Melee" BaseSet="Standard"> <main lock="true" /> <sub lock="true" /> <ammo lock="true" /> <head>Walahra Turban</head> <body>Reverend Mail</body> <feet>Blessed Pumps</feet> <waist>Potent Belt</waist> <lring>Aqua Ring</lring> <rring>Woodsman Ring</rring> <lear>Coral Earring</lear> <rear>Spike Earring</rear> <back>Bellicose Mantle</back> <neck>Chivalrous Chain</neck> </set> <set name="WS" BaseSet="Melee"> <body>Reverend Mail</body> <head>Hlr. Cap +1</head> <hands>Hlr. Mitts +1</hands> <feet>Creek M Clomps</feet> </set> <set name="Healing" BaseSet="Standard"> <main>$LightStaff</main> <head>Walahra Turban</head> <back>Prism Cape</back> <feet>Blessed Pumps</feet> <lring>Omega Ring</lring> <rring>Sapphire Ring</rring> <hands>Blessed Mitts</hands> </set> <set name="DarkMagic" BaseSet="Standard"> <head>Nashira Turban</head> <rear>Dark Earring</rear> <back>Merciful Cape</back> <neck>Dark Torque</neck> </set> <set name="Enhancing" BaseSet="Standard"> <head>Walahra Turban</head> <hands>Blessed Mitts</hands> <main>Kirin's Pole</main> </set> <set name="Banish" BaseSet="Divine"> <hands>Zenith Mitts</hands> <lear>Moldavite Earring</lear> </set> <set name="Divine" BaseSet="Standard"> <legs>Healer's Pantaln.</legs> <main>$LightStaff</main> <body>Errant Hpl.</body> <neck>Divine Torque</neck> <lring>Omega Ring</lring> <rring>Sapphire Ring</rring> <head>Elite Beret</head> <feet>Blessed Pumps</feet> <back>Prism Cape</back> </set> <set name="EnfeeblingBase" BaseSet="Standard"> <head>Elite Beret</head> <body>Healer's Briault</body> <neck>Enfeebling Torque</neck> <hands>Oracle's Gloves</hands> <back>Prism Cape</back> <rring>Omega Ring</rring> </set> <set name="Enfeebling-BlackMagic" BaseSet="EnfeeblingBase"> <lring>Snow Ring</lring> <legs>Mahatma Slops</legs> </set> <set name="Enfeebling-WhiteMagic" BaseSet="EnfeeblingBase"> <lring>Sapphire Ring</lring> </set> </group> </sets> <rules> <if advanced='"$CureBot"="1"' Spell="Cure"> <if TargetHPPLT="75" TargetType="Player" TargetHPPGT="0"> <if TargetHPPLT="50"> <action type="changespell" spell="Cure V" /> </if> <else> <action type="changespell" spell="Cure III" /> </else> <action type="command" when="aftercast">wait .3;cure</action> </if> <else> <action type="cancelspell" /> <action type="command">wait .3;cure</action> <action type="return" /> </else> </if> <action type="equip"><rear>Loquac. Earring</rear></action> <!--if SpellTarget="<t>" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*"> <action type="changetarget" target="<me>" /> </if> <if MLVLLT="73"> <action type="return" /> </if--> <!-- 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> <action type="equip" when="AfterCast" set="Standard" /> <action type="equip" when="Resting" set="Resting" /> <action type="equip" when="Engaged" set="Melee" /> <action type="equip" when="Idle" set="Standard" /> <if Mode="OR" Status="Engaged" Group="*Melee"> <action type="equip" when="aftercast|idle" set="Melee" /> <if equipsub="Prudence Rod" NotEquipAmmo="Virtue Stone"> <action type="addtochat">Equipping Virtue stones</action> <action type="equip" when="precast|midcast|aftercast"><ammo lock="true">Virtue Stone</ammo></action> </if> <action type="equip" when="precast|midcast|aftercast|autoset|idle|resting"> <main lock="t" /> <sub lock="t" /> <range lock="t" /> <ammo lock="t" /> </action> <if type="WeaponSkill"> <action type="equip" set="WS" /> <action type="precastdelay" delay=".4" /> <if BuffActive="Allied Tags" NotBuffActive="Haste"> <action type="command" when="aftercast">wait 2;haste me</action> </if> </if> <if MPPLT="65"> <action type="equip" when="aftercast|idle"> <body>Noble's Tunic</body> </action> </if> </if> <action type="equip" when="midcast"> <main>$%SpellElementStaff</main> </action> <if Skill="HealingMagic"> <if MPLT="60"> <!-- Show Spell Info for cures only when low on MP --> <action type="ShowSpellInfo" /> </if> <if Spell="Cure IV"> <!-- Evil Spell --> <action type="ChangeSpell" Spell="Cure V" /> </if> <if NotBuffActive="Light Arts"> <if Spell="Cure V" MPLT="135"> <action type="ChangeSpell" Spell="Cure III" /> </if> <if Spell="Cure III" MPLT="46"> <action type="ChangeSpell" Spell="Cure II" /> </if> <if Spell="Cure II" MPLT="24"> <action type="CancelSpell" /> <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action> </if> </if> <else> <!-- Light Arts is Active - -10% MP Cost --> <if NotBuffActive="Penury"> <if Spell="Cure V" MPLT="122"> <action type="ChangeSpell" Spell="Cure III" /> </if> <if Spell="Cure III" MPLT="42"> <action type="ChangeSpell" Spell="Cure II" /> </if> <if Spell="Cure II" MPLT="22"> <action type="CancelSpell" /> <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action> </if> </if> <else> <!-- Penury is Active - -50% MP Cost --> <if Spell="Cure V" MPLT="68"> <action type="ChangeSpell" Spell="Cure III" /> </if> <if Spell="Cure III" MPLT="23"> <action type="ChangeSpell" Spell="Cure II" /> </if> <if Spell="Cure II" MPLT="12"> <action type="CancelSpell" /> <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action> </if> </else> </else> <if NotSpell="*Raise*|*na"> <action type="MidCastDelay" delay=".8" /> <action type="Equip" when="Midcast" Set="Healing" /> <if NotGroup="Melee" NotStatus="Engaged" Advanced='$Ring==1'> <if advanced='((string)"%SubJob"=="BLM" AND (float)(%HP)/766 > 0.759) OR ((string)"%SubJob"=="SMN" AND (float)%HP/747 > 0.759) OR ((string)"%SubJob"=="SCH" AND (float)%HP/852 > 0.759) '> <if NotBuffActive="Weakness"> <action type="Equip" when="Precast" Set="MinusHP" /> <if SubJob="SCH"> <action type="equip"> <lring>Ether Ring</lring> </action> </if> </if> <else> <action type="Equip" when="Precast" Set="WeakenedMinusHP" /> </else> </if> </if> <elseif Advanced='$Ring != 1'> <action type="Equip" when="Midcast" Set="Healing" /> </elseif> </if> <else> <!-- *Raise*/*na --> <action type="equip" set="Standard" /> </else> </if> <!-- end healing magic--> <else> <if Skill="EnhancingMagic"> <action type="equip" when="midcast" set="Enhancing" /> <if Spell="Bar*"> <action type="MidCastDelay" delay="0" /> <action type="Equip" when="midcast"> <body>Blessed Briault</body> <legs>Cleric's Pantaln.</legs> </action> </if> <elseif Spell="Teleport*|Recall*"> <action type="command">input /p Teleporting to - %spell - </action> <action type="command" when="aftercast">input /p And were off to - %spell -! </action> </elseif> </if> <elseif Skill="Ninjutsu"> <action type="equip" when="midcast" set="Haste" /> <if spell="Utsusemi: Ichi" BuffActive="Copy Image"> <action type="midcastdelay" delay="3.0" /> <action type="Command" when="midcast">cancel 66</action> </if> </elseif> <elseif Skill="DarkMagic"> <action type="Equip" when="Midcast" Set="DarkMagic" /> </elseif> <elseif Skill="EnfeeblingMagic"> <action type="equip" when="midcast" set="Enfeebling-%Type" /> </elseif> <elseif Skill="DivineMagic"> <action type="Equip" when="Midcast" Set="Divine" /> <if spell="Banish*|Holy"> <action type="Equip" when="Midcast" Set="Banish" /> </if> </elseif> <if Advanced='"$%SpellElementGrip" == "1"'> <action type="equip" when="midcast"> <sub lock="true">%SpellElement Grip</sub> </action> </if> </else> <if Spell="Cure*|Cura*"> <action type="Equip" when="Precast"><feet lock="true">Cure Clogs</feet></action> </if> <elseif CastTimeGT="1.5"> <action type="Equip" when="Precast"><feet lock="true">Rostrum Pumps</feet></action> </elseif> <action type="equip" when="precast"><rear lock="t">Loquac. Earring</rear></action> <if Spell="Repose"> <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /p [$sleepid:%spell] <%Target> Wearing off in 45s</action> <action type="command" when="aftercast">wait 75;input /p [$sleepid:%spell] <%Target>Wearing off in 15s</action> <action type="command" when="aftercast">wait 85;input /p [$sleepid:%spell] <%Target>Wearing off in 5s;spellcast var dec sleepid;</action> </if> <elseif Spell="Sleep*"> <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /p [$sleepid:%spell] <%Target>Wearing off in 15s</action> <action type="command" when="aftercast">wait 55;input /p [$sleepid:%spell] <%Target>Wearing off in 5s;spellcast var dec sleepid;</action> </elseif> <if Spell="Tractor|Raise*"> <if Area="Dynamis*|Hazhalm*"> <action type="command">input /l Casting %spell on %spelltarget</action> </if> <else> <action type="command">input /p Casting %spell on %spelltarget</action> </else> </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*"> <action type="changetarget" target="<me>" /> </if> <if SpellTargetType="NONE" ValidTarget="*Self*"> <action type="changetarget" target="<me>" /> </if> <if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTargetName"="%PlayerName"'> <action type="command" when="midcast">cancel 71</action> <action type="midcastdelay" delay="2.3" /> </if> <elseif Spell="Stoneskin" BuffActive="Stoneskin"> <action type="command" when="midcast">cancel 37</action> <action type="midcastdelay" delay="5.9" /> </elseif> <elseif Spell="Blink" BuffActive="Blink"> <action type="command" when="midcast">cancel 36</action> <action type="midcastdelay" delay="5.2" /> </elseif> <if Advanced="$Gaiters=1"> <if NotStatus="Engaged"> <action type="equip" when="aftercast"> <feet>Herald's Gaiters</feet> </action> </if> <else> <action type="equip" when="Idle"> <feet>Herald's Gaiters</feet> </action> </else> </if> </rules> </spellcast>
So uhh. i woke up and my spellcast is working just dandy. I zone into my mog house though and after zoning out now all my macros I hit give me this error message,
Your XML is outdated: <rule> has been removed and you must use <if> now. canceling parse of results.
Now I have no clue what it is talking about since I didnt change anything and it was working fine a few mins ago. Help?
heres the link to my script http://paste.windower.net/d1f54b515
Line 259 and 276 contain <rule spell="Cur*"> and </rule> respectively.
Change them to <if spell="Cur*"> and </if>
Not sure why it started erroring now (I guess it updated resources).
Thats what I figured.... its working now. Weird that it started to just now do that I been using this template for months lol
Still looking for help with a grip-equipping problem if anyone can offer a fix, SC is trying to equip the grip before the staff occasionally and erroring out the grip so it leaves me with just the staff.
Tried to fix my after cast rule to this:
and that didn't do the trick, idk if something is off in there or what, or if I need a bigger delay than .2 possibly, but so far nothing I've tried has been able to fix this.Code:<if status="idle"> <if advanced='$Mdef = 1'> <equip when="aftercast|idle" set="MDef" /> </if> <elseif advanced='$Pdef = 1'> <equip when="aftercast|idle" set="PDef" /> </elseif> <else> <equip when="aftercast|idle" set="Normal" /> </else> <cmd when="aftercast|idle">wait .2;input /equip sub "Bugard Strap +1"</cmd> </if>
I have been using SC2.2 for while now and wanted to switch to 2.3. I seem to having a problem with it when I try to load it. This is the error I get: [Error spellcast - Failed to load plugin - (126 Module not found)]. I never get that error when using 2.2. Would love to get some help with this issue.
If you downloaded it from the normal spot that version is currently borked from the last POL update, try this one:
http://whitewing.gtxgaming.co.uk/Dow.../spellcast.dll
Thanks for the link. I just tried it and I still get the same message [Failed to load plugin - (126 Module not found).]
Only thing I can think of is possibly making sure you actually overwrote the spellcast.dll in your plugins folder and didn't save a 2nd copy, I had the same issue on my g/f's because I accidentally saved it as 'spellcast.dll (2)' instead of overwriting it. Aside from that if you were actually ingame while doing all of this, make sure you unload/reload spellcast obviously.
Looks like I made the same mistake and accidentally saved a 2nd copy. I deleted it and now it loads up just fine. Thanks for the help!!
Hit 75 RDM late last night and want to go fuck around on it a bit. My spellcast is very basic (as is my gear) but I'm trying to make a melee set (RDM TP) and a rule that will lock main/sub/ammo (think I have it covered in set but idk) that will still swap all other gear for all other spells and revert back to melee gear as long as I'm engaged.
My RDM spellcast:
Spoiler: show
Thanks
First of all, you might want to look into varibles for your staves and grips, second you can inherit sets so you can make a baseset then just change the different equipment instead of listing everything multiple times.
But for you right now
That'll change to your TP and idle sets as required, but you'll have to put it after each spell you intend to use (with the way you have your SC setup right now)Code:<if spell="Wate*"> <equip when="Precast" set="Water" /> <castdelay delay=".3" /> <if status = "engaged"> <equip when="Aftercast" set="RDM TP" /> </if> <else> <equip when="Aftercast" set="RDMidle" /> </else> </if>
As for locking slots (I got this from Whitewing's SMN XML)
<var name="LockTP">10</var> (you can set this number to when you don't care about loosing TP)
Put that part in your varibles section
Put that close to the top of your rules.Code:<if TPGT = "$LockTP"> <action Type = "Disable" Slot = "Main|Sub|Range"/> </if> <else> <action Type = "Enable" Slot = "Main|Sub|Range"/> </else>