Item Search
     
BG-Wiki Search
Page 150 of 328 FirstFirst ... 100 140 148 149 150 151 152 160 200 ... LastLast
Results 2981 to 3000 of 6548
  1. #2981
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    <aftercastdelay delay="XSeconds" />

  2. #2982
    HABS SUCK!!!!!
    Sepukku is my Hero
    Therrien's Cum Dumpster

    Join Date
    Mar 2005
    Posts
    37,884
    BG Level
    10
    FFXI Server
    Gilgamesh

    thanks :D

  3. #2983
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Question about limiting comparisons and bracketing:

    Is <if spell="Triggers1-10"> the same as

    <if spell="Trigger1">
    <elseif spell="trigger 2">
    <elseif spell="trigger 3">
    .
    .
    .
    <if spell="trigger 10">

    ?

    The way I see it, the first rule will produce more checks.

    Rule v1: Check triggers 1-10 for a match
    Rule v2: Check triggers until you find a match, so if it's the first trigger, it doesn't bother to check the rest

    This would ultimately mean that a <If spell="$Triggers"> is counterproductive. However, I would like confirmation on this.

  4. #2984
    BG's most likeable Québécois
    Pens win! Pens Win!!! PENS WIN!!!!!

    Join Date
    Sep 2007
    Posts
    37,887
    BG Level
    10

    K sorry so i just replace your part in my script?

    Quote Originally Posted by Yugl View Post
    Code:
    <?xml version="1.0" ?>
    <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
        <config
            RequireVersion="2.45"
            ShowGearSwaps="False"
            Debug="False"
            ShowSpellInfo="False"
            />
        <!-- Nightfyre's NIN XML
            Most recent update: July 18 2011
            Resolved an issue with Utsusemi rules.
            Autoexec for this file:
            <autoexec>
            <register event="hpp_100" silent="true" runonce="true">input /ma "Meteor" &lt;t&gt;</register>
            <register event="time_18.00" silent="true">input /ma "Meteor" &lt;t&gt;</register>
            <register event="time_6.00" silent="true">input /ma "Meteor" &lt;t&gt;</register>
            <register event="time_17.00" silent="true">input /ma "Meteor" &lt;t&gt;</register>
            <register event="time_7.00" silent="true">input /ma "Meteor" &lt;t&gt;</register>
            <register event="gainbuff_Copy*" silent="true">input /ma "Tornado" &lt;t&gt;</register>
            <register event="losebuff_Copy*" silent="true">input /ma "Tornado" &lt;t&gt;</register>
            </autoexec>
            -->
        <sets>
            <group Default="yes" Name="NIN">
                <set Name="Idle">
                    <head>Iga Zukin +2</head>
                    <neck>Iga Erimaki</neck>
                    <lear>Brutal Earring</lear>
                    <rear>Suppanomimi</rear>
                    <body>Ninja Chainmail +1</body>
                    <hands>Iga Tekko +2</hands>
                    <lring>Rajas Ring</lring>
                    <rring>Heed Ring</rring>
                    <back>Atheling Mantle</back>
                    <waist>Twilight Belt</waist>
                    <legs>Iga Hakama +1</legs>
                    <feet>$NINIdleFeet</feet>
                </set>
                <set Name="TP">
                    <ammo>$NINTPAmmo</ammo>
                    <head>Iga Zukin +2</head>
                    <neck>Iga Erimaki</neck>
                    <lear>Brutal Earring</lear>
                    <rear>Suppanomimi</rear>
                    <body>$NINTPbody</body>
                    <hands>$NINTPHands</hands>
                    <lring>Rajas Ring</lring>
                    <rring>Heed Ring</rring>
                    <back>Atheling Mantle</back>
                    <waist>Twilight Belt</waist>
                    <legs>Iga Hakama +1</legs>
                    <feet>Ballerines</feet>
                </set>
                <set Name="TPAcc" baseset="TP">
                    <body>Iga Ningi +2</body>
                    <hands>Iga Tekko +2</hands>
                    <back>Belenos' Mantle</back>
                    <feet>Iga Kyahan +1</feet>
                </set>
                <set Name="Procs" baseset="TP">
                    <!-- This set is designed for weakness procs, Store TP, not DDing -->
                    <body>Usukane Haramaki</body>
                </set>
                <set Name="Eva1" baseset="TP">
                    <neck>Torero Torque</neck>
                    <body>Usukane Haramaki</body>
                    <lring>Alert Ring</lring>
                    <hands>Iga Tekko +2</hands>
                    <back>Boxer's Mantle</back>
                    <feet>Ballerines</feet>
                </set>
                <set Name="Eva2" baseset="Eva1">
                    <head>Usukane Somen</head>
                    <body>Usukane Haramaki</body>
                    <lring>Alert Ring</lring>
                </set>
                <set Name="Eva3" baseset="Eva2">
                    <neck>Torero Torque</neck>
                </set>
                <!-- My Eva3 set used to sacrifice nearly all offensive stats for the sake of evasion, but I've found
                    such a set is not very useful in the current environment; a mix of high evasion and moderate haste
                    in combination with an AGI Sekka and rarely Ungur Boomerang has proved more than sufficient for
                    even the nastiest NMs that I would tank on NIN. As such, I've moved what was my old Eva2 set up to
                    Eva3 and created a new mid-level evasion set that again strikes a balance between Eva1 and Eva3.
                    I've included the gear as a reference below, should you feel that this type of set is useful to you.
                    <set Name="Eva4" baseset="Eva3">
                    <head>Nin. Hatsuburi +1</head>
                    <lear>Ethereal Earring</lear>
                    <rear>Iga Mimikazari</rear>
                    <rring>Stormsoul Ring</rring>
                    <waist>Sveltesse Gouriz</waist>
                    </set>
                    -->
                <set Name="UtsusemiPre">
                    <neck>Magoraga Beads</neck>
                    <lear>Ethereal Earring</lear>
                    <body>Usukane Haramaki</body>
                    <hands>Iga Tekko +2</hands>
                    <feet>Ballerines</feet>
                    <lring>Heed Ring</lring>
                    <rring>Alert Ring</rring>
                    <back>Boxer's Mantle</back>
                </set>
                <set Name="WSDMG">
                    <ammo>Qirmiz Tathlum</ammo>
                    <head>Anwig Salade</head>
                    <neck>Iga Erimaki</neck>
                    <lear>Brutal Earring</lear>
                    <rear>Ethereal Earring</rear>
                    <body>Usukane Haramaki</body>
                    <hands>$WSHands</hands>
                    <lring>Rajas Ring</lring>
                    <rring>Spiral Ring</rring>
                    <back>Atheling Mantle</back>
                    <waist>Anguinus Belt</waist>
                    <legs>Byakko's Haidate</legs>
                    <feet>Denali Gamashes</feet>
                </set>
                <set name="WSMid" baseset="WSDMG">
                    <neck>Rancor Collar</neck>
                    <body>Iga Ningi +2</body>
                    <legs>Byakko's Haidate</legs>
                </set>
                <set Name="WSDEX" baseset="WSMid">
                    <head>Aias Bonnet</head>
                    <hands>Iga Tekko +2</hands>
                    <rring>Rajas Ring</rring>
                    <waist>Cuchulain's Belt</waist>
                </set>
                <set Name="NINNuke">
                    <ammo>Snow Satchet</ammo>
                    <head>Koga Hatsuburi</head>
                    <neck>Uggalepih Pendant</neck>
                    <lear>Moldavite Earring</lear>
                    <rear>Loqacious Earring</rear>
                    <body>usukane Haramaki</body>
                    <hands>Iga Tekko +2</hands>
                    <lring>Demon's Ring</lring>
                    <rring>Spiral Ring</rring>
                    <legs>Sangoma Lappas</legs>
                    <feet>Nin. Kyahan</feet>
                </set>
                <set Name="NINEnfeeb">
                    <ammo>Snow Satchet</ammo>
                    <head>Nin. Hatsuburi +1</head>
                    <neck>Ninjutsu Torque</neck>
                    <lear>Ninjutsu Earring</lear>
                    <rear>Stealth Earring</rear>
                    <body>Usukane Haramaki</body>
                    <hands>Koga Tekko</hands>
                    <lring>Omega Ring</lring>
                    <rring>Balrahn's Ring</rring>
                    <back>Astute Cape</back>
                    <waist>Twilight Belt</waist>
                    <legs>Iga Hakama +1</legs>
                    <feet>Iga Kyahan +1</feet>
                </set>
                <set Name="Migawari" baseset="NINEnfeeb">
                    <head>Iga Zukin +2</head>
                    <hands>$NINTPHands</hands>
                    <lring>Heed Ring</lring>
                    <rring>Stormsoul Ring</rring>
                </set>
                <set Name="MABWS" baseset="NINNuke">
                    <head>Aias Bonnet</head>
                    <back>Iga Dochugappa</back>
                    <legs>Byakko's Haidate</legs>
                </set>
                <set Name="PDT">
                    <head>Arh. Jinpachi</head>
                    <neck>Torero Torque</neck>
                    <body>Arhat's Gi</body>
                    <hands>Denali Wristbands</hands>
                    <back>Metallon Mantle</back>
                </set>
                <set Name="MDT">
                    <neck>Twilight Torque</neck>
                    <hands>Denali Wristbands</hands>
                    <lring>Coral Ring</lring>
                    <rring>Coral Ring</rring>
                    <lear>Coral Earring</lear>
                    <rear>Merman's Earring</rear>
                    <legs>Lore Slops</legs>
                    <body>Usukane Haramaki</body>
                </set>
                <set Name="Enmity" baseset="TP">
                    <head>Arhat's Jinpachi</head>
                    <body>Arhat's Gi</body>
                </set>
            </group>
        </sets>
        <variables clear="true">
            <var name="MDT">0</var>
            <var name="PDT">0</var>
            <var name="NINIdleFeet">Danzo Sune-ate</var>
            <var name="NINTPAmmo">Bomb Core</var>
            <var name="NINTPNeck">Iga Erimaki</var>
            <var name="NINTPBody">Ninja Chainmail +1</var>
            <var name="NINTPHands">Dusk Gloves</var>
            <var name="NINDD">TP</var>
            <var name="NINEva">Eva1</var>
            <var name="MigaSkill">0</var>
            <var name="NingiLock">0</var>
            <var name="WSHands">Denali Wristbands</var>
            <var name="WSSet">WSDMG</var>
            <var name="Utsusemi">0</var>
            <var name="Melee">$NINDD</var>
            <var name="DDNeck">$NINTPNeck</var>
            <var name="Rancor">0</var>
            <var name="Procs">0</var>
            <var name="MobDist">4</var>
            <var name="NukeStaff">0</var>
            <var name="IceStaff">Aquilo's Staff</var>
            <var name="WindStaff">Auster's Staff</var>
            <var name="EarthStaff">Terra's Staff</var>
            <var name="ThunderStaff">Jupiter's Staff</var>
            <var name="WaterStaff">Neptune's Staff</var>
            <var name="FireStaff">Vulcan's Staff</var>
        </variables>
        <rules>
            <if Spell="Teleport*|Warp*|Retrace|Escape|Recall*">
                <return />
            </if>
            <if EquipLear = "Reraise Earring">
                <equip when="all">
                    <lear lock="true" />
                </equip>
            </if>
            <if EquipRear = "Reraise Earring">
                <equip when="all">
                    <rear lock="true" />
                </equip>
            </if>
            <if EquipFeet = "Powder Boots">
                <equip when="all">
                    <feet lock="true" />
                </equip>
            </if>
            <if EquipRange = "Mamoolbane">
                <equip when="all">
                    <range lock="true" />
                    <ammo lock="true" />
                </equip>
            </if>
            <if spell="Meteor">
                <if mode="OR" TimeLT="6.00" TimeGT="17.59">
                    <var cmd="set NINTPHands Koga Tekko" />
                </if>
                <else>
                    <var cmd="set NINTPHands Dusk Gloves" />
                </else>
                <if mode="OR" TimeLT="6.00" TimeGT="17.59">
                    <var cmd="set WSHands Koga Tekko" />
                </if>
                <else>
                    <var cmd="set WSHands Denali Wristbands" />
                </else>
                <if mode="OR" TimeLT="6.00" TimeGT="17.59">
                    <var cmd="set NINIdleFeet Nin. Kyahan" />
                </if>
                <else>
                    <var cmd="set NINIdleFeet Danzo Sune-ate" />
                </else>
                <if status="idle">
                    <equip when="precast" set="Idle" />
                </if>
                <elseif status="engaged">
                    <equip when="precast" set="$Melee" />
                </elseif>
                <cancelspell />
                <return />
            </if>
            <if spell="Sentinel">
                <if advanced='"$MDT" = "0"'>
                    <var cmd="set MDT 1" />
                    <addtochat color="57">Gear Toggle - MDT On</addtochat>
                </if>
                <else>
                    <var cmd="set MDT 0" />
                    <addtochat color="57">Gear Toggle - MDT Off</addtochat>
                    <cancelspell />
                    <return />
                </else>
            </if>
            <if spell="Rampart">
                <if advanced='"$PDT" = "0"'>
                    <var cmd="set PDT 1" />
                    <addtochat color="57">Gear Toggle - PDT On</addtochat>
                </if>
                <else>
                    <var cmd="set PDT 0" />
                    <addtochat color="57">Gear Toggle - PDT Off</addtochat>
                    <cancelspell />
                    <return />
                </else>
            </if>
            <!--Aftercast and Gear Swap Handling-->
            <if spell="Sentinel|Rampart">
                <var cmd="set Time precast" />
            </if>
            <elseif spell="autoset">
                <if status="resting">
                    <var cmd="set Time resting" />
                </if>
                <elseif status="idle">
                    <var cmd="set Time idle" />
                </elseif>
                <elseif status="engaged">
                    <var cmd="set Time engaged" />
                </elseif>
            </elseif>
            <else>
                <var cmd="set Time aftercast" />
            </else>
            <!--End-->
            <if status="engaged">
                <if Advanced='"$MDT" = "1"'>
                    <equip when="$Time" set="MDT" />
                </if>
                <elseif Advanced='"$PDT" = "1"'>
                    <equip when="$Time" set="PDT" />
                </elseif>
                <else>
                    <equip when="$Time" set="TP" />
                </else>
            </if>
            <!--End-->
            <if spell="Archer's Prelude">
                <if advanced='"$NINTPAmmo" = "Qirmiz Tathlum"'>
                    <var cmd="set NINTPAmmo Bomb Core" />
                    <addtochat>NIN TP Ammo - Bomb Core</addtochat>
                </if>
                <elseif advanced='"$NINTPAmmo" = "Bomb Core"'>
                    <var cmd="set NINTPAmmo Fire Bomblet" />
                    <addtochat>NIN TP Ammo - Fire Bomblet</addtochat>
                </elseif>
                <else>
                    <var cmd="set NINTPAmmo Qirmiz Tathlum" />
                    <addtochat>NIN TP Ammo - Qirmiz Tathlum</addtochat>
                </else>
            </if>
            <if spell="Absorb-ACC">
                <if advanced='"$NINTPNeck" = "Iga Erimaki"'>
                    <var cmd="set NINTPNeck Agasaya's Collar" />
                    <addtochat>NIN TP Neck - Agasaya's Collar</addtochat>
                </if>
                <else>
                    <var cmd="set NINTPNeck Iga Erimaki" />
                    <addtochat>NIN TP Neck - Iga Erimaki</addtochat>
                </else>
                <if advanced='"Rancor" = "0"'>
                    <var cmd="set DDNeck $NINTPNeck" />
                </if>
                <elseif advanced='"Rancor" = "1"' notbuffactive="Copy*">
                    <var cmd="set DDNeck $NINTPNeck" />
                </elseif>
            </if>
            <if spell="Evryone. Grudge">
                <if advanced='"$Rancor" = "0"'>
                    <var cmd="set Rancor 1" />
                    <if buffactive="Copy*">
                        <var cmd="set DDNeck Rancor Collar" />
                    </if>
                    <addtochat>Rancor Collar - Shadows Up Only</addtochat>
                </if>
                <elseif advanced='"$Rancor" = "1"'>
                    <var cmd="set Rancor 2" />
                    <var cmd="set DDNeck Rancor Collar" />
                    <addtochat>Rancor Collar - Always On</addtochat>
                </elseif>
                <else>
                    <var cmd="set Rancor 0" />
                    <var cmd="set DDNeck $NINTPNeck" />
                    <addtochat>Rancor Collar - Off</addtochat>
                </else>
            </if>
            <if spell="Tornado" advanced='"$Rancor" = "1"'>
                <if buffactive="Copy*">
                    <var cmd="set DDNeck Rancor Collar" />
                </if>
                <else>
                    <var cmd="set DDNeck $NINTPNeck" />
                </else>
            </if>
            <if spell="Valor Minuet V">
                <if advanced='"$NINTPBody" = "Iga Ningi +2"'>
                    <var cmd="set NINTPBody Nin. Chainmail +1" />
                    <addtochat>NIN TP Body - Ninja Chainmail +1</addtochat>
                </if>
                <else>
                    <var cmd="set NINTPBody Iga Ningi +2" />
                    <addtochat>NIN TP Body - Iga Ningi +2</addtochat>
                </else>
            </if>
            <if spell="Blade Madrigal">
                <if advanced='"$Melee" != "$NINDD"'>
                    <addtochat>NIN DD Gear On</addtochat>
                </if>
                <else>
                    <if advanced='"$NINDD" = "TP"'>
                        <var cmd="set NINDD TPCrit" />
                        <addtochat>NIN TP - Crit</addtochat>
                    </if>
                    <elseif advanced='"$NINDD" = "TPCrit"'>
                        <var cmd="set NINDD TPAcc" />
                        <addtochat>NIN TP - Acc</addtochat>
                    </elseif>
                    <else>
                        <var cmd="set NINDD TP" />
                        <addtochat>NIN TP - Default</addtochat>
                    </else>
                </else>
                <var cmd="set Melee $NINDD" />
            </if>
            <if spell="Dragonfoe Mambo">
                <if advanced='"$NINDD" = "TP"'>
                    <var cmd="set NINDD Eva1" />
                    <addtochat>NIN Evasion Gear On</addtochat>
                </if>
                <elseif advanced='"$NINDD" = "Eva1"'>
                    <var cmd="set NINDD TP" />
                    <addtochat>NIN Evasion Gear Off</addtochat>
                </elseif>
                <cancelspell />
                <return />
            </if>
            <if spell="Break">
                <var cmd="set Melee Procs" />
                <addtochat>NIN Store TP Set On</addtochat>
            </if>
            <if spell="Sentinel's Scherzo">
                <if advanced='"$MigaSkill" = "0"'>
                    <var cmd="set MigaSkill 1" />
                    <addtochat>Migawari: Ichi - Skill Build Enabled</addtochat>
                </if>
                <else>
                    <var cmd="set MigaSkill 0" />
                    <addtochat>Migawari: Ichi - Skill Build Disabled</addtochat>
                </else>
                <cancelspell />
                <return />
            </if>
            <if spell="Earthen Armor">
                <if advanced='"$NingiLock" = "0"'>
                    <var cmd="set NingiLock 1" />
                    <addtochat>Iga Ningi +2 Lock On</addtochat>
                </if>
                <else>
                    <var cmd="set NingiLock 0" />
                    <addtochat>Iga Ningi +2 Lock Off</addtochat>
                </else>
            </if>
            <if area="Abyssea*">
                <var cmd="set WSSet WSDMG" />
            </if>
            <elseif spell="Absorb-DEX">
                <if advanced='"$WSSet" = "WSDMG"'>
                    <var cmd="set WSSet WSMid" />
                    <addtochat>Weaponskill Gear - Mid Set</addtochat>
                </if>
                <elseif advanced='"$WSSet" = "WSMid"'>
                    <var cmd="set WSSet WSDEX" />
                    <addtochat>Weaponskill Gear - Crit Emphasis</addtochat>
                </elseif>
                <else>
                    <var cmd="set WSSet WSDMG" />
                    <addtochat>Weaponskill Gear - Full Damage</addtochat>
                </else>
            </elseif>
            <if spell="Blizzard V">
                <if advanced='"$NukeStaff" = "0"'>
                    <var cmd="set NukeStaff 1" />
                    <addtochat>Ninjutsu Staff Swap On</addtochat>
                </if>
                <else>
                    <var cmd="set NukeStaff 0" />
                    <addtochat>Ninjutsu Staff Swap Off</addtochat>
                </else>
                <cancelspell />
                <return />
            </if>
            <if spell="Archer's Prelude|Absorb-ACC|Valor Minuet V|Blade Madrigal|Dragonfoe Mambo|Earthen Armor|Absorb-DEX|Evryone. Grudge|Tornado|Break">
                <if status="engaged">
                    <equip when="precast" set="$Melee" />
                </if>
                <cancelspell />
                <return />
            </if>
            <if spell="Blade*|Tachi*|Cyclone|Energy Drain|Aeolian Edge|Red Lotus Blade|Seraph Blade|Seraph Strike">
                <if mode="OR" TargetDistanceGT="$MobDist" TPLT='100' buffactive="amnesia|terror|sleep|petrification|stun">
                    <cancelspell />
                    <return />
                </if>
                <elseif spell="Blade: Jin">
                    <equip when="precast" set="$WSSet" />
                </elseif>
                <elseif spell="Tachi: Koki|Tachi: Jinpu">
                    <if buffactive="Transcendency">
                        <equip when="precast" set="MABWS" />
                    </if>
                    <else>
                        <equip when="precast" set="TPAcc" />
                    </else>
                </elseif>
                <else>
                    <equip when="precast" set="MABWS" />
                </else>
            </if>
            <if CastTimeGT="3">
                <midcastdelay delay="2.8" />
            </if>
            <if skill="Ninjutsu" buffactive="silence|mute|terror|stun|sleep|petrification">
                <cancelspell />
                <return />
            </if>
            <if spell="Hojo*|Jubaku*|Kurayami*|Aisha*|Dokumori*|Yurin*">
                <if TargetDistanceGT="13+$MobDist">
                    <cancelspell />
                    <return />
                </if>
                <else>
                    <equip when="midcast" set="NINEnfeeb" />
                    <if Spell="Hojo: Ni">
                        <cmd when="aftercast">wait 145; input /echo [%Spell : %target : half resist in 5s]</cmd>
                        <cmd when="aftercast">wait 295; input /echo [%Spell : %target : wearing in 5s]</cmd>
                    </if>
                    <if Spell="Kurayami: Ni">
                        <cmd when="aftercast">wait 115; input /echo [%Spell : %target : half resist in 5s]</cmd>
                        <cmd when="aftercast">wait 235; input /echo [%Spell : %target : wearing in 5s]</cmd>
                    </if>
                    <if Spell="Yurin: Ichi">
                        <cmd when="aftercast">wait 85; input /echo [%Spell : %target : half resist in 5s]</cmd>
                        <cmd when="aftercast">wait 175; input /echo [%Spell : %target : wearing in 5s]</cmd>
                    </if>
                    <if Spell="Jubaku: Ichi">
                        <cmd when="aftercast">wait 40; input /echo [%Spell : %target : half resist in 5s]</cmd>
                        <cmd when="aftercast">wait 85; input /echo [%Spell : %target : wearing in 5s]</cmd>
                    </if>
                    <if Spell="Aisha: Ichi">
                        <cmd when="aftercast">wait 55; input /echo [%Spell : %target : half resist in 5s]</cmd>
                        <cmd when="aftercast">wait 115; input /echo [%Spell : %target : wearing in 5s]</cmd>
                    </if>
                </else>
            </if>
            <if spell="Katon*|Hyoton*|Huton*|Doton*|Raiton*|Suiton*">
                <if TargetDistanceGT="13+$MobDist">
                    <cancelspell />
                    <return />
                </if>
                <else>
                    <equip when="midcast" set="NINNuke" />
                    <if advanced='"$NukeStaff" = "1"'>
                        <equip when="midcast">
                            <main>$%SpellElementStaff</main>
                        </equip>
                    </if>
                </else>
            </if>
            <if spell="Myoshu: Ichi">
                <if BuffActive="Subtle Blow Plus">
                    <cancelspell />
                    <return />
                </if>
                <equip when="midcast">
                    <hands>Koga Tekko</hands>
                </equip>
                <cmd when="aftercast">wait 175; input /echo [%Spell : wearing in 5s]</cmd>
            </if>
            <if spell="Migawari: Ichi">
                <if advanced='"$Melee" != "$NINDD"'>
                    <equip when="precast" set="Eva1" />
                </if>
                <if advanced='"$MigaSkill" = "0"'>
                    <if advanced='"$Melee" != "$NINDD"'>
                        <equip when="midcast" set="Eva1" />
                    </if>
                    <else>
                        <equip when="midcast" set="TP" />
                    </else>
                </if>
                <else>
                    <equip when="midcast" set="Migawari" />
                </else>
                <if advanced='"$NingiLock" = "1"'>
                    <equip when="midcast">
                        <body>Iga Ningi +2</body>
                    </equip>
                    <cmd when="midcast">sc disable body</cmd>
                    <cmd when="aftercast">wait 59; sc enable body</cmd>
                </if>
            </if>
            <if spell="Utsusemi*">
                <if advanced='(int)$MDT == "1"' OR '(int)$PDT == "1"'>
                    <equip when="precast">
                        <waist>Twilight Belt</waist>
                        <feet>Iga Kyahan +2</feet>
                    </equip>
                </if>
                <elseif BuffActive="Copy Image (3)|Copy Image (4+)">
                    <cancelspell />
                    <return />
                </elseif>
                <else>
                    <equip when="precast" set="UtsusemiPre" />
                    <equip when="midcast">
                        <hands>Koga Tekko</hands>
                    </equip>
                </else>
                <if spell="Utsusemi: Ni">
                    <if advanced='(int)$Utsusemi == 0'>
                        <var cmd="set Utsusemi 1" />
                    </if>
                </if>
                <else>
                    <if advanced='(int)$Utsusemi == 1'>
                        <var cmd="set Utsusemi 0" />
                        <cmd when="midcast">cancel 66</cmd>
                        <cmd when="midcast">cancel 444</cmd>
                        <cmd when="midcast">cancel 445</cmd>
                        <cmd when="midcast">cancel 446</cmd>
                    </if>
                </else>
            </if>
            <if spell="Provoke|Warcry" notbuffactive="Innin">
                <equip when="precast" set="enmity" />
            </if>
            <if spell="*Waltz*">
                <equip when="precast">
                    <head>Anwig Salade</head>
                    <legs>Desultor Tassets</legs>
                </equip>
            </if>
            <if spell="*Step|*Flourish">
                <equip when="precast" set="TPAcc" />
            </if>
            <if status="idle">
                <equip when="idle|aftercast" set="Idle" />
            </if>
            <elseif status="engaged">
                <equip when="engaged|aftercast" set="$Melee" />
            </elseif>
        </rules>
    </spellcast>
    You were missing a bunch of </else> tags and one of your tags didn't make sense, so I used <elseif>. Your Utsusemi cancel only works if (int)$Utsusemi==1, so that could explain your issue.



    Code:
            <!--Aftercast Prep-->
            <if spell="Provoke|Reprisal|Hastega">
                <var cmd="set Time precast" />
            </if>
            <elseif spell="autoset">
                <if status="resting">
                    <var cmd="set Time resting" />
                </if>
                <elseif status="idle">
                    <var cmd="set Time idle" />
                </elseif>
                <elseif status="engaged">
                    <var cmd="set Time engaged" />
                </elseif>
            </elseif>
            <else>
                <var cmd="set Time aftercast" />
            </else>
    So if you do reprisal, time is set to precast. Since you based your aftercast stuff on $Time variable, you end up having precast for all that stuff.

  5. #2985
    BG's most likeable Québécois
    Pens win! Pens Win!!! PENS WIN!!!!!

    Join Date
    Sep 2007
    Posts
    37,887
    BG Level
    10

    Sorry btw still lets me to WS set after Hexa Strike

  6. #2986
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Yugl View Post
    Question about limiting comparisons and bracketing:

    Is <if spell="Triggers1-10"> the same as

    <if spell="Trigger1">
    <elseif spell="trigger 2">
    <elseif spell="trigger 3">
    .
    .
    .
    <if spell="trigger 10">

    ?

    The way I see it, the first rule will produce more checks.

    Rule v1: Check triggers 1-10 for a match
    Rule v2: Check triggers until you find a match, so if it's the first trigger, it doesn't bother to check the rest

    This would ultimately mean that a <If spell="$Triggers"> is counterproductive. However, I would like confirmation on this.
    I don't know what code Spellcast itself uses, but logically they should be identical at worst, or somewhat in favor of version 1.

    Version 1 should do a simple string or regex split on the | character, then compare with each of the generated results until it finds a match. That can all be handled directly within a single function.

    Version 2 has to walk the XML tree to find each new elseif, determine that it is in fact another elseif check and not another command entirely, and then do the string comparison for each one.

    Also, version 2 still has to walk through all of the other elseif nodes in the XML tree even if it matches on the first one because it can't know beforehand that they should be skipped. Once it finds a match it can skip past any other else/elseif nodes it finds without doing the comparison checks, but it still has to find them and distinguish them from the next bit of runnable code.

  7. #2987
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Sorry btw still lets me to WS set after Hexa Strike
    I was saying, without a thorough inspection, that it probably has to do with the way you're handling that $Time variable. Try having <cancelspell /> within the provoke/reprisal/hastega line and remove the

    <if advanced='"$Time" = "precast"'>
    <cancelspell />
    <return />
    </if>

    line instead of having the spell set the variable. Normally, that should work, but without looking at the XML more, it's the only possibility that stands out.

    Quote Originally Posted by Motenten View Post
    I don't know what code Spellcast itself uses, but logically they should be identical at worst, or somewhat in favor of version 1.

    Version 1 should do a simple string or regex split on the | character, then compare with each of the generated results until it finds a match. That can all be handled directly within a single function.

    Version 2 has to walk the XML tree to find each new elseif, determine that it is in fact another elseif check and not another command entirely, and then do the string comparison for each one.

    Also, version 2 still has to walk through all of the other elseif nodes in the XML tree even if it matches on the first one because it can't know beforehand that they should be skipped. Once it finds a match it can skip past any other else/elseif nodes it finds without doing the comparison checks, but it still has to find them and distinguish them from the next bit of runnable code.
    Ok, I was under the assumption that it would check the pipes like it would a <if><elseif> string. Maybe yekkya or someone can confirm how SC checks I guess? Or would debug mode show that?

  8. #2988
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Ok, so I made a brief modification to the MNK XML and was able to remove a substantial (In some cases, all) amount of lag by bracketing and channeling all actions through Dancing Chains. I did temporarily remove the <elseif notbuffactive="blah"> lines, but those shouldn't be a lag issue if I channel through dancing chains. The one concern I have is that doing do will double the number of dancing chains I do, which is redundant. Just having variables will work if I place them before the trigger spells I imagine, so that might be the solution. Either way, it pains me to think that I need to revise this again, but so be it. Also, I'll be adding Motenten's $Movement variable, since that seems like a smart way to handle that rather than equipment variables. In anticipation that it will make my work easier, I'll probably start by creating a new generic template. I'm on the fence about this, but I am thinking about making some of the include rules optional and replacing them with AutoExec rules in hopes that it will make the XML more lag-free, but the XML I tested was fine even with the include rules.

  9. #2989
    Fake Numbers
    Join Date
    Apr 2010
    Posts
    87
    BG Level
    2
    FFXI Server
    Asura

    Is there any rule for Artemis' Medal moon phases?

  10. #2990
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    <if moon="NameOfMoonPhase"> is what you're looking for. I wouldn't know your specific configuration without you telling us when you want the piece equipped.

  11. #2991
    Fake Numbers
    Join Date
    Apr 2010
    Posts
    87
    BG Level
    2
    FFXI Server
    Asura

    Quote Originally Posted by Yugl View Post
    <if moon="NameOfMoonPhase"> is what you're looking for. I wouldn't know your specific configuration without you telling us when you want the piece equipped.
    for nukes

    First Quarter Moon, Last Quarter Moon:
    Early Waxing Gibbous, Late Waning Gibbous:
    Late Waxing Gibbous, Early Waning Gibbous:
    Full Moon

    Otherwise Goetia neck

    and thanks

  12. #2992
    Radsourceful

    Join Date
    Jul 2007
    Posts
    1,964
    BG Level
    6
    FFXI Server
    Bismarck

    Looking for a sch snippet to handle auto-fire parsimony on high cost nukes.

    Code:
    <!if NotBuffActive="Parsimony" Buffactive="Dark Arts|Addendum: Black" Skill="ElementalMagic"  MPCostGT="200" Advanced='!($Books = 0)'>
    	<command>wait 2;%Spell %SpellTargetRaw;</command>
    	<command>Parsimony</command>
    	<cancelspell />
    	<return />
    </if>
    <if spell="Addendum*|Parsimony|Celerity|Manifestation|Penury|Celerity|Accession">
    	<command>sc v dec books;wait 120;sc var inc books</command>
    </if>
    This would work if there was only 1 book charge, but with 2, the timers count down at the same time, so:

    Code:
    Time(s)
    0	Use Pars1	
    30	90s			Use Pars2
    60	60s			90s
    90	30s			60s
    120	Books inc		30s
    150				Books inc
    180
    210
    240				When I actually have 2 books
    Thoughts on a way to get the timers to run after each other?

    Edit: Pseudo:

    Code:
    if books=2
    	set books = 1
    	wait 120
    	upgradebooks
    /if
    if books=1
    	set books = 0
    /if
    if upgradebooks
    	inc books
    	if books = 1
    		wait 120
    		upgradebooks
    	/if
    	if books > 2
    		set books = 2
    	/if
    /if
    Probably something like this

  13. #2993
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Quote Originally Posted by Dtroyy View Post
    for nukes

    First Quarter Moon, Last Quarter Moon:
    Early Waxing Gibbous, Late Waning Gibbous:
    Late Waxing Gibbous, Early Waning Gibbous:
    Full Moon

    Otherwise Goetia neck

    and thanks
    <If skill="Elemental Magic" spell="Fire*|Fira*|Stone*|Water*|Aero*|Blizza*|Thu nd*|*helix" moon="*Quarter*|*Gibbous|Full Moon">
    <equip when="midcast">
    <neck lock="true">Artemis' Medal</neck>
    </equip>
    </if>

  14. #2994
    Fake Numbers
    Join Date
    Apr 2010
    Posts
    87
    BG Level
    2
    FFXI Server
    Asura

    Quote Originally Posted by Yugl View Post
    <If skill="Elemental Magic" spell="Fire*|Fira*|Stone*|Water*|Aero*|Blizza*|Thu nd*|*helix" moon="*Quarter*|*Gibbous|Full Moon">
    <equip when="midcast">
    <neck lock="true">Artemis' Medal</neck>
    </equip>
    </if>
    ty <3

  15. #2995
    Old Merits
    Join Date
    Oct 2006
    Posts
    1,100
    BG Level
    6
    FFXIV Character
    Hahaha Woooo
    FFXIV Server
    Gilgamesh

    New to spellcast (lol) but I was just wondering if there was any possible way to add a /wait 1 before a WS?

  16. #2996
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Do you want to delay the WS?

    <castdelay delay="1" />

  17. #2997
    Yoshi P
    Join Date
    Jun 2007
    Posts
    5,144
    BG Level
    8
    FFXIV Character
    Fitz Everleigh
    FFXIV Server
    Excalibur

    Is it possible to do

    Code:
    <if BuffActive="Sneak Attack">
    	<set lock="yes">SA-Gear</set>
    </if>
    ?

  18. #2998
    Radsourceful

    Join Date
    Jul 2007
    Posts
    1,964
    BG Level
    6
    FFXI Server
    Bismarck

    Code:
    <if mode="OR" BuffActive="Sneak Attack" Spell="Sneak Attack">
    	<equip when="all"><hands lock="true">Raider's Armlet's +2</hands></set>
    </if>
    You might not want when="all", maybe something like.. "aftercast|idle|engaged" instead

  19. #2999
    Yoshi P
    Join Date
    Jun 2007
    Posts
    5,144
    BG Level
    8
    FFXIV Character
    Fitz Everleigh
    FFXIV Server
    Excalibur

    Maybe you posted before I edited since I pasted the wrong thing, but I'm asking about set lock since I have a few more things other than hands I want to equip.


    Also, what is the part

    <if mode="OR"

    part for? I've seen it in a few of my XMLs I've frankensteined, but I don't really understand that part of the syntax.

  20. #3000
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    You cannot lock sets, but you can use variables (Requires more rules for handling TP/Armor type sets; see my XML for an example) or put the rule at the bottom of the list.

    <mode="OR"> means if at least one of the conditions is met, then do w/e after.

    EX:
    <if mode="OR" spell="impetus" buffactive="impetus"> translates to "If you use Impetus or Impetus is already active."

    Important for people that made template XMLs based on my old one (Not necessarily people using my XMLs): I made a new template you can check out that should have much less lag. I haven't tested it yet since I'm too busy to fix it up into an actual XML, but I plan to do so in the future. I will be keeping the current Include XML up since I know current XMLs use it, but I hope to consolidate them into one XML so people do not get confused in the future. I PMed people I know have made an XML based on my XML, but I might have forgotten someone.

Page 150 of 328 FirstFirst ... 100 140 148 149 150 151 152 160 200 ... LastLast

Similar Threads

  1. Spellcast Shop Thread
    By Yugl in forum FFXI: Everything
    Replies: 232
    Last Post: 2014-03-18, 04:47
  2. time spent on ls events, helping friends and your own time
    By freewind in forum FFXI: Everything
    Replies: 6
    Last Post: 2005-09-06, 16:42