I'm relatively new to Spellcast and working with XML. There are a few things I'm trying to accomplish for now before moving into advanced areas. I wanted to see if anyone has experience with this and can point me in the right direction. Any help would be greatly appreciated.
1. In situations where I swap from Club/Shield to Staff/Grip, I intermittently get the error "You must have a two-handed weapon equipped in the main weapon slot in order to equip a grip". I cannot consistently reproduce this issue, so it seems to come up at random times. At this point, if I open my equip menu, the staff will be equipped but NOT the grip, which is what I would expect given the error.
2. I'm not trying to setup fast cast sets just yet, but I would like to take advantage of some of the gear I do have. Take the AF3+2 legs for instance. I would like to make sure it's equipped before the cure begins casting. What I did to try and achieve this was add a <castdelay delay=".1"/> before each spell. There may be more elegant ways of accomplishing this, but this is what I came up with my research.
Sidenote: I have seen some examples of setting up base sets as apposed to the way I'm doing it (coming from simple windower scripts), but I don't see what advantage it offers other than reducing lines in the file.
WHM XML updated 11/16/13
Code
<?xml version="1.0" ?> <spellcast> <guildwork character="Divinite" server="Carbuncle" job="WHM" /> <config Debug="false" ShowGearSwaps="false"/> <sets> <group name="WHM" default="yes"> <set name="IDLE"> <main>Owleyes</main> <head>Wivre Hairpin</head> <neck>Twilight Torque</neck> <lear>Moonshade Earring</lear> <rear>Ethereal Earring</rear> <body>Cleric's Briault +2</body> <hands>Serpentes Cuffs</hands> <lring>Defending Ring</lring> <rring>Dark Ring</rring> <back>Umbra Cape</back> <waist>Witful Belt</waist> <legs>Rubeus Spats</legs> <feet>Serpentes Sabots</feet> <sub>Genbu's Shield</sub> <ammo>Incantor Stone</ammo> </set> <set name="HASTE"> <main>Celeritas Pole</main> <head>Xux Hat</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Cleric's Briault +2</body> <hands>Bokwus Gloves</hands> <lring>Defending Ring</lring> <rring>Dark Ring</rring> <back>Swith Cape</back> <waist>Witful Belt</waist> <legs>Rubeus Spats</legs> <feet>Serpentes Sabots</feet> <ammo>Incantor Stone</ammo> </set> <set name="CURE"> <main>Arka IV</main> <head>Orison Cap +2</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Orison Bliaud +2</body> <hands>Bokwus Gloves</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Witful Belt</waist> <legs>Orison Pantaloons +2</legs> <feet>Cure Clogs</feet> <ammo>Incantor Stone</ammo> </set> <set name="BAR"> <main>Beneficus</main> <head>Orison Cap +2</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Orison Bliaud +2</body> <hands>Orison Mitts +2</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Witful Belt</waist> <legs>Cleric's Pantaloons +2</legs> <feet>Orison Duckbills +2</feet> <sub>Genbu's Shield</sub> <ammo>Incantor Stone</ammo> </set> <set name="ENHANCE"> <main>Beneficus</main> <head>Xux Hat</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Cleric's Briault +2</body> <hands>Bokwus Gloves</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Siegel Sash</waist> <legs>Cleric's Pantaloons +2</legs> <feet>Orison Duckbills +2</feet> <sub>Genbu's Shield</sub> <ammo>Incantor Stone</ammo> </set> <set name="HEALING"> <main>Celeritas Pole</main> <head>Orison Cap +2</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Orison Bliaud +2</body> <hands>Orison Mitts +2</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Witful Belt</waist> <legs>Orison Pantaloons +2</legs> <feet>Orison Duckbills +2</feet> <ammo>Incantor Stone</ammo> </set> <set name="NUKE"> <main>Iridal Staff</main> <head>Xux Hat</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Cleric's Briault +2</body> <hands>Bokwus Gloves</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Witful Belt</waist> <legs>Rubeus Spats</legs> <feet>Serpentes Sabots</feet> <ammo>Incantor Stone</ammo> </set> <set name="REGEN"> <main>Beneficus</main> <head>Xux Hat</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Cleric's Briault +2</body> <hands>Orison Mitts +2</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Siegel Sash</waist> <legs>Rubeus Spats</legs> <feet>Orison Duckbills +2</feet> <sub>Genbu's Shield</sub> <ammo>Incantor Stone</ammo> </set> <set name="STONE"> <main>Earth Staff</main> <head>Xux Hat</head> <neck>Orison Locket</neck> <lear>Orison Earring</lear> <rear>Loquacious Earring</rear> <body>Cleric's Briault +2</body> <hands>Bokwus Gloves</hands> <lring>Sirona's Ring</lring> <rring>Ephedra Ring</rring> <back>Swith Cape</back> <waist>Siegel Sash</waist> <legs>Cleric's Pantaloons +2</legs> <feet>Orison Duckbills +2</feet> <ammo>Incantor Stone</ammo> </set> <set name="RESTING"> <main>Iridal Staff</main> <head>Wivre Hairpin</head> <neck>Twilight Torque</neck> <lear>Moonshade Earring</lear> <rear>Ethereal Earring</rear> <body>Cleric's Briault +2</body> <hands>Serpentes Cuffs</hands> <lring>Paguroidea Ring</lring> <rring>Sheltered Ring</rring> <back>Umbra Cape</back> <waist>Witful Belt</waist> <legs>Rubeus Spats</legs> <feet>Serpentes Sabots</feet> <ammo>Incantor Stone</ammo> </set> </group> </sets> <rules> <equip when="idle|aftercast" set="IDLE"/> <equip when="resting" set="RESTING"/> <if spell="Cure*|Cura*"> <castdelay delay="0.2"/> <equip when="precast" set="CURE"/> </if> <elseif spell="Poisona|Paralyna|Blindna|Silena|Stona|Viruna|Cursna|Erase|Sacrifice|Esuna|Raise*|Reraise*"> <castdelay delay="0.2"/> <equip when="precast" set="HEALING"/> </elseif> <elseif spell="Haste|Stun"> <castdelay delay="0.2"/> <equip when="precast" set="HASTE"/> </elseif> <elseif spell="Slow|Paralyze|Silence|Dia*|Flash|Addle|Repose|Holy*|Banish*"> <castdelay delay="0.2"/> <equip when="precast" set="NUKE"/> </elseif> <elseif spell="Protect*|Shell*|Blink|Aquaveil|Auspice|Invisible|Sneak|Deodorize|Boost*"> <castdelay delay="0.2"/> <equip when="precast" set="ENHANCE"/> </elseif> <elseif spell="Stoneskin"> <castdelay delay="0.2"/> <equip when="precast" set="STONE"/> </elseif> <elseif spell="Regen*"> <castdelay delay="0.2"/> <equip when="precast" set="REGEN"/> </elseif> <elseif spell="Bar*"> <castdelay delay="0.2"/> <equip when="precast" set="BAR"/> </elseif> </rules> </spellcast>