Summoner XML With Groups Instead Of Variables

Language: JP EN DE FR
users online
Forum » Windower » Spellcast Scripting » Summoner » Summoner XML with groups instead of variables
Summoner XML with groups instead of variables
 Odin.Acacia
Offline
Server: Odin
Game: FFXI
user: Acacia
Posts: 81
By Odin.Acacia 2013-03-27 13:54:10
Link | Quote | Reply
 
Bored waiting for the update to finish so I decided to put comments in my XML and share it. I used groups instead of a bunch of variables for conditional armor. This allows it to work nicely with GearCollector and it makes it much easier to update when I get new armor.
[+]
necroskull Necro Bump Detected! [48 days between previous and next post]
 Odin.Acacia
Offline
Server: Odin
Game: FFXI
user: Acacia
Posts: 81
By Odin.Acacia 2013-05-14 13:12:43
Link | Quote | Reply
 
Added separate set for Astral Flow BPs. Fixed so that it doesn't matter which group 2 BPs you have. Some other things that I forget.
Code
<?xml version="1.0" ?>
<spellcast>
    <sets>
        <group default="yes" name="Standard">
            <set name="perpetuation">
                <main>Chatoyant Staff</main>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Ruby Earring</lear>
                <rear>Moonshade Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Nashira Gages</hands>
                <rring>Evoker's Ring</rring>
                <legs>Nares Trews</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
            <set name="favor">
                <main>Chatoyant Staff</main>
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <rear>Moonshade Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Caller's Spats +2</legs>
                <feet>Mdk. Crackows +1</feet>
            </set>
            <set name="delay">
                <hands>Smn. Bracers +2</hands>
                <back>Tiresias' Cape</back>
                <legs>Smn. Spats +2</legs>
                <feet>Smn. Pigaches +2</feet>
            </set>
            <set name="rage_physical">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Sacrifice Torque</neck>
                <lear>Ruby Earring</lear>
                <rear>Gifted Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <waist>Mujin Obi</waist>
                <legs>Ngen Seraweels</legs>
                <feet>Mdk. Crackows +1</feet>
            </set>
            <set name="rage_magical">
                <main>Tuahjebat</main>
                <sub>Vox Grip</sub>
                <ammo>Esper Stone</ammo>
                <head>Nabu's Tiara</head>
                <neck>Eidolon Pendant</neck>
                <lear>Smn. Earring</lear>
                <rear>Gifted Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Nares Cuffs</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <back>Tiresias' Cape</back>
                <waist>Caller's Sash</waist>
                <legs>Caller's Spats +2</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
            <set name="rage_astral">
                <main>Tuahjebat</main>
                <sub>Vox Grip</sub>
                <ammo>Esper Stone</ammo>
                <head>Nabu's Tiara</head>
                <neck>Eidolon Pendant</neck>
                <lear>Smn. Earring</lear>
                <body>Call. Doublet +2</body>
                <hands>Nares Cuffs</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <back>Tiresias' Cape</back>
                <waist>Caller's Sash</waist>
                <legs>Ngen Seraweels</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
            <set name="ward_duration">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <rear>Gifted Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <waist>Diabolos's Rope</waist>
                <legs>Caller's Spats +2</legs>
            </set>
            <set name="ward_accuracy">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <rear>Gifted Earring</rear>
                <body>Call. Doublet +2</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <waist>Diabolos's Rope</waist>
                <legs>Ngen Seraweels</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
            <set name="ward_boon">
                <rear>Gifted Earring</rear>
                <waist>Diabolos's Rope</waist>
                <legs>Caller's Spats +2</legs>
            </set>
            <set name="siphon">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <body>Anhur Robe</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Tatsu. Sitagoromo</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
            <set name="cede">
                <hands>Call. Bracers +2</hands>
            </set>
            <set name="healing">
                <main>Chatoyant Staff</main>
                <ammo>Mana Ampulla</ammo>
                <neck>Colossus's Torque</neck>
                <lear>Magnetic Earring</lear>
                <rear>Beatific Earring</rear>
                <body>Chelona Blazer</body>
                <hands>Augur's Gloves</hands>
                <back>Vita Cape</back>
                <legs>Nares Trews</legs>
                <feet>Chelona Boots</feet>
            </set>
            <set name="stoneskin">
                <main>Chatoyant Staff</main>
                <ammo>Mana Ampulla</ammo>
                <neck>Stone Gorget</neck>
                <lear>Earthcry Earring</lear>
                <rear>Gifted Earring</rear>
                <body>Marduk's Jubbah</body>
                <hands>Augur's Gloves</hands>
                <back>Vita Cape</back>
                <waist>Siegel Sash</waist>
                <legs>Nares Trews</legs>
                <feet>Chelona Boots</feet>
            </set>
            <set name="resting">
                <main>Chatoyant Staff</main>
                <ammo>Mana Ampulla</ammo>
                <head>Caller's Horn +2</head>
                <neck>Eidolon Pendant</neck>
                <lear>Magnetic Earring</lear>
                <rear>Relaxing Earring</rear>
                <body>Chelona Blazer</body>
                <hands>Nares Cuffs</hands>
                <back>Vita Cape</back>
                <waist>Hierarch Belt</waist>
                <legs>Nares Trews</legs>
                <feet>Chelona Boots</feet>
            </set>
            <set name="idle">
                <head>Caller's Horn +2</head>
                <rear>Moonshade Earring</rear>
                <body>Marduk's Jubbah</body>
                <legs>Nares Trews</legs>
            </set>
        </group>
        <group name="Fenrir" inherit="Standard">
            <set name="rage_physical">
                <head>Fenrir's Crown</head>
            </set>
        </group>
        <group name="Carbuncle" inherit="Standard">
            <set name="perpetuation">
                <body>Marduk's Jubbah</body>
                <hands>Carbuncle Mitts</hands>
                <feet>Mdk. Crackows +1</feet>
            </set>
            <set name="favor">
                <body>Anhur Robe</body>
                <hands>Carbuncle Mitts</hands>
            </set>
        </group>
        <group name="Diabolos" inherit="Standard">
            <set name="perpetuation">
                <waist>Diabolos's Rope</waist>
            </set>
            <set name="rage_astral">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <body>Anhur Robe</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Ngen Seraweels</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
        </group>
        <group name="Leviathan" inherit="Standard">
            <set name="rage_physical">
                <hands>Evoker's Gages</hands>
            </set>
        </group>
        <group name="Garuda" inherit="Standard">
            <set name="perpetuation">
                <main>Vayuvata III</main>
                <hands>Smn. Bracers +2</hands>
            </set>
            <set name="favor">
                <main>Vayuvata III</main>
            </set>
            <set name="rage_physical">
                <head>Karura Hachigane</head>
            </set>
        </group>
        <group name="Ramuh" inherit="Standard">
            <set name="perpetuation">
                <main>Apamajas III</main>
                <hands>Smn. Bracers +2</hands>
            </set>
            <set name="favor">
                <main>Apamajas III</main>
            </set>
        </group>
        <group name="Alexander" inherit="Standard">
            <set name="perpetuation|rage_astral">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <body>Anhur Robe</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Ngen Seraweels</legs>
                <feet>Mdk. Crackows +1</feet>
            </set>
        </group>
        <group name="Odin" inherit="Standard">
            <set name="perpetuation|rage_astral">
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <body>Anhur Robe</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Ngen Seraweels</legs>
                <feet>Caller's Pgch. +2</feet>
            </set>
        </group>
        <group name="Spirit" inherit="Standard">
            <set name="perpetuation|favor">
                <main>Chatoyant Staff</main>
                <sub>Vox Grip</sub>
                <head>Caller's Horn +2</head>
                <neck>Caller's Pendant</neck>
                <lear>Smn. Earring</lear>
                <rear>Moonshade Earring</rear>
                <body>Anhur Robe</body>
                <hands>Smn. Bracers +2</hands>
                <lring>Fervor Ring</lring>
                <rring>Evoker's Ring</rring>
                <legs>Smn. Spats +2</legs>
                <feet>Mdk. Crackows +1</feet>
            </set>
        </group>
    </sets>
    <variables>
        <var name="AvatarGroup">Standard</var>
    </variables>
    <rules>
        <if type="JobAbility|PetCommand|BloodPactRage|BloodPactWard">
            <if type="BloodPactRage|BloodPactWard">
                <if NotPetName="Garuda|Ramuh">
                    <addtochat when="PreCast" color="8">[Blood Pact Delay]</addtochat>
                    <equip when="PreCast" set="delay" />
                    <castdelay delay="0.5" />
                </if>
                <midcastdelay delay="1" />
                <aftercastdelay delay="4" />
                <if type="BloodPactRage">
                    <if spell="Punch|Rock Throw|Barracuda Dive|Claw|Axe Kick|Shock Strike|Camisado|Poison Nails|Moonlit Charge|Crescent Fang|Rock Buster|Burning Strike|Tail Whip|Double Punch|Megalith Throw|Double Slap|Eclipse Bite|Flaming Crush|Mountain Buster|Spinning Dive|Predator Claws|Rush|Chaotic Strike">
                        <addtochat when="MidCast" color="8">[Blood Pact: Rage (Physical Damage)]</addtochat>
                        <equip when="MidCast" set="rage_physical" SetGroup="$AvatarGroup" />
                    </if>
                    <elseif spell="Searing Light|Ruinous Omen|Howling Moon|Aerial Blast|Inferno|Tidal Wave|Judgment Bolt|Diamond Dust|Earthen Fury|Perfect Defense|Zantetsuken">
                        <addtochat when="MidCast" color="8">[Blood Pact: Rage (Astral Flow)]</addtochat>
                        <equip when="MidCast" set="rage_astral" SetGroup="$AvatarGroup" />
                    </elseif>
                    <else>
                        <addtochat when="MidCast" color="8">[Blood Pact: Rage (Magic Damage)]</addtochat>
                        <equip when="MidCast" set="rage_magical" />
                    </else>
                </if>
                <elseif type="BloodPactWard">
                    <if spell="Somnolence">
                        <addtochat when="MidCast" color="8">[Blood Pact: Ward (Magic Damage)]</addtochat>
                        <equip when="MidCast" set="rage_magical" />
                    </if>
                    <elseif spell="Healing Ruby|Aerial Armor|Whispering Wind|Earthen Ward|Spring Water|Healing Ruby II|Glittering Ruby">
                        <addtochat when="MidCast" color="8">[Blood Pact: Ward (Blood Boon)]</addtochat>
                        <equip when="MidCast" set="ward_boon" />
                    </elseif>
                    <elseif spell="Lunar Cry|Nightmare|Lunar Roar|Slowga|Ultimate Terror|Sleepga|Tidal Roar|Diamond Storm|Shock Squall|Pavor Nocturnus">
                        <addtochat when="MidCast" color="8">[Blood Pact: Ward (Magic Accuracy)]</addtochat>
                        <equip when="MidCast" set="ward_accuracy" />
                    </elseif>
                    <else>
                        <addtochat when="MidCast" color="8">[Blood Pact: Ward (Effect Duration)]</addtochat>
                        <equip when="MidCast" set="ward_duration" />
                    </else>
                </elseif>
            </if>
            <elseif spell="Elemental Siphon">
                <addtochat when="PreCast" color="8">[Elemental Siphon]</addtochat>
                <equip when="PreCast" set="siphon" />
                <castdelay delay="0.5" />
            </elseif>
            <elseif spell="Mana Cede">
                <addtochat when="PreCast" color="8">[Mana Cede]</addtochat>
                <equip when="PreCast" set="cede" />
                <castdelay delay="0.5" />
            </elseif>
            <elseif spell="Avatar's Favor">
                <addtochat when="PreCast" color="8">[Avatar Perpetuation (Favor)]</addtochat>
                <equip when="PreCast" set="favor" SetGroup="$AvatarGroup" />
                <return />
            </elseif>
            <else>
                <return />
            </else>
            <if BuffActive="Avatar's Favor">
                <addtochat when="AfterCast" color="8">[Avatar Perpetuation (Favor)]</addtochat>
                <equip when="AfterCast" set="favor" SetGroup="$AvatarGroup" />
            </if>
            <else>
                <addtochat when="AfterCast" color="8">[Avatar Perpetuation]</addtochat>
                <equip when="AfterCast" set="perpetuation" SetGroup="$AvatarGroup" />
            </else>
        </if>
        <elseif type="SummonerPact">
            <if spell="*Spirit">
                <if spell="Dark Spirit">
                    <if mode="OR" WeatherElement="Wind" DayElement="Wind">
                        <changespell spell="Air Spirit" />
                    </if>
                    <elseif WeatherElement="None">
                        <changespell spell="%DayElement Spirit" />
                    </elseif>
                    <else>
                        <changespell spell="%WeatherElement Spirit" />
                    </else>
                </if>
                <var cmd="set AvatarGroup Spirit" />
            </if>
            <elseif spell="Fenrir|Carbuncle|Diabolos|Garuda|Leviathan|Ramuh|Alexander|Odin">
                <var cmd="set AvatarGroup %Spell" />
            </elseif>
            <else>
                <var cmd="set AvatarGroup Standard" />
            </else>
            <if BuffActive="Avatar's Favor">
                <addtochat when="PreCast" color="8">[Avatar Perpetuation (Favor)]</addtochat>
                <equip when="PreCast" set="favor" SetGroup="$AvatarGroup" />
            </if>
            <else>
                <addtochat when="PreCast" color="8">[Avatar Perpetuation]</addtochat>
                <equip when="PreCast" set="perpetuation" SetGroup="$AvatarGroup" />
            </else>
        </elseif>
        <elseif spell="Cure*|Cura*|Stoneskin">
            <if spell="Stoneskin">
                <if BuffActive="Stoneskin">
                    <command when="PreCast">cancel 37</command>
                </if>
                <addtochat when="PreCast" color="8">[Stoneskin]</addtochat>
                <equip when="PreCast" set="stoneskin" />
            </if>
            <else>
                <addtochat when="PreCast" color="8">[Healing]</addtochat>
                <equip when="PreCast" set="healing" />
            </else>
            <if PetIsValid="TRUE">
                <if BuffActive="Avatar's Favor">
                    <addtochat when="AfterCast" color="8">[Avatar Perpetuation (Favor)]</addtochat>
                    <equip when="AfterCast" set="favor" SetGroup="$AvatarGroup" />
                </if>
                <else>
                    <addtochat when="AfterCast" color="8">[Avatar Perpetuation]</addtochat>
                    <equip when="AfterCast" set="perpetuation" SetGroup="$AvatarGroup" />
                </else>
            </if>
        </elseif>
        <elseif spell="Sneak" BuffActive="Sneak" advanced='"%target"="<me>"'>
            <command when="PreCast">cancel 71</command>
        </elseif>
        <if PetIsValid="FALSE">
            <equip when="resting" set="resting" />
            <equip when="idle" set="idle" />
        </if>
    </rules>
</spellcast>
Log in to post.